pixel-react 1.11.5 → 1.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ComponentProps/TreeNodeProps.d.ts +3 -0
- package/lib/components/PopUpModal/PopUpModal.js +2 -2
- package/lib/components/PopUpModal/PopUpModal.js.map +1 -1
- package/lib/components/PopUpModal/types.d.ts +2 -0
- package/lib/index.cjs +1 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +5 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.esm.js.br +0 -0
- package/lib/index.esm.js.map +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
@@ -49,5 +49,5 @@ var Vp={};void 0!==Vp.asn1&&Vp.asn1||(Vp.asn1={}),Vp.asn1.ASN1Util=new function(
|
|
49
49
|
Copyright (c) 2017 Jed Watson.
|
50
50
|
Licensed under the MIT License (MIT), see
|
51
51
|
http://jedwatson.github.io/classnames
|
52
|
-
*/!function(){var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var A=typeof r;if("string"==A||"number"==A)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"==A)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,n){e.exports=t},function(e,t,n){function r(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,A,i,a;e.exports=(o=n(3),A=n(5),a={},r.m=i=[function(e,t){e.exports=o},function(e,t){e.exports=A},function(e,t,n){e.exports=n(3)},function(e,t,n){n.r(t);var r=n(0),o=n(1);function A(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getStartKey(),o=t.getEndKey(),A=n.getBlockMap();return A.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat([[o,A.get(o)]])}function i(e){return A(e).toList()}function a(e){if(e)return i(e).get(0)}function l(e){if(e){var t=a(e),n=e.getCurrentContent().getBlockMap().toSeq().toList(),r=0;if(n.forEach((function(e,n){e.get("key")===t.get("key")&&(r=n-1)})),-1<r)return n.get(r)}}function c(e){return e?e.getCurrentContent().getBlockMap().toList():new o.List}function s(e){var t=i(e);if(!t.some((function(e){return e.type!==t.get(0).type})))return t.get(0).type}function f(e){var t=r.RichUtils.tryToRemoveBlockStyle(e);return t?r.EditorState.push(e,t,"change-block-type"):e}function d(e){var t="",n=e.getSelection(),r=n.getAnchorOffset(),o=n.getFocusOffset(),A=i(e);if(0<A.size){if(n.getIsBackward()){var a=r;r=o,o=a}for(var l=0;l<A.size;l+=1){var c=0===l?r:0,s=l===A.size-1?o:A.get(l).getText().length;t+=A.get(l).getText().slice(c,s)}}return t}function C(e){var t=e.getCurrentContent(),n=e.getSelection(),o=r.Modifier.removeRange(t,n,"forward"),A=o.getSelectionAfter(),i=o.getBlockForKey(A.getStartKey());return o=r.Modifier.insertText(o,A,"\n",i.getInlineStyleAt(A.getStartOffset()),null),r.EditorState.push(e,o,"insert-fragment")}function u(e){var t=r.Modifier.splitBlock(e.getCurrentContent(),e.getSelection());return f(r.EditorState.push(e,t,"split-block"))}function p(e){var t=e.getCurrentContent().getBlockMap().toList(),n=e.getSelection().merge({anchorKey:t.first().get("key"),anchorOffset:0,focusKey:t.last().get("key"),focusOffset:t.last().getLength()}),o=r.Modifier.removeRange(e.getCurrentContent(),n,"forward");return r.EditorState.push(e,o,"remove-range")}function g(e,t){var n=r.Modifier.setBlockData(e.getCurrentContent(),e.getSelection(),t);return r.EditorState.push(e,n,"change-block-data")}function h(e){var t=new o.Map({}),n=i(e);if(n&&0<n.size)for(var r=function(e){var r=n.get(e).getData();if(!r||0===r.size)return t=t.clear(),"break";if(0===e)t=r;else if(t.forEach((function(e,n){r.get(n)&&r.get(n)===e||(t=t.delete(n))})),0===t.size)return t=t.clear(),"break"},A=0;A<n.size&&"break"!==r(A);A+=1);return t}var m=Object(o.Map)({code:{element:"pre"}}),E=r.DefaultDraftBlockRenderMap.merge(m);function b(e){if(e){var t=e.getType();return"unordered-list-item"===t||"ordered-list-item"===t}return!1}function w(e,t,n){var o,i=e.getSelection();o=i.getIsBackward()?i.getFocusKey():i.getAnchorKey();var a=e.getCurrentContent(),l=a.getBlockForKey(o),c=l.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;var s=a.getBlockBefore(o);if(!s)return e;if(s.getType()!==c)return e;var f=l.getDepth();if(1===t&&f===n)return e;var d,C,u,p,g,h,m,E=Math.min(s.getDepth()+1,n),b=(C=t,u=E,p=(d=e).getSelection(),h=(g=d.getCurrentContent()).getBlockMap(),m=A(d).map((function(e){var t=e.getDepth()+C;return t=Math.max(0,Math.min(t,u)),e.set("depth",t)})),h=h.merge(m),g.merge({blockMap:h,selectionBefore:p,selectionAfter:p}));return r.EditorState.push(e,b,"adjust-depth")}function v(e,t){var n;return 13===(n=t).which&&(n.getModifierState("Shift")||n.getModifierState("Alt")||n.getModifierState("Control"))?e.getSelection().isCollapsed()?r.RichUtils.insertSoftNewline(e):C(e):function(e){var t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if(!b(o)&&"unstyled"!==o.getType()&&o.getLength()===t.getStartOffset())return u(e);if(b(o)&&0===o.getLength()){var A=o.getDepth();if(0===A)return f(e);if(0<A)return w(e,-1,A)}}}(e)}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e){var t=e.getSelection();if(t.isCollapsed()){var n={},r=e.getCurrentInlineStyle().toList().toJS();if(r)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(e){n[e]=0<=r.indexOf(e)})),n}var o=t.getStartOffset(),A=t.getEndOffset(),a=i(e);if(0<a.size){var l=function(){for(var e={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},t=0;t<a.size;t+=1){var n=0===t?o:0,r=t===a.size-1?A:a.get(t).getText().length;n===r&&0===n?(n=1,r=2):n===r&&--n;for(var i=function(n){var r=a.get(t).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(t){e[t]=e[t]&&r.get(t)===t}))},l=n;l<r;l+=1)i(l)}return{v:e}}();if("object"===x(l))return l.v}return{}}function L(e){var t,n=e.getSelection(),r=n.getStartOffset(),o=n.getEndOffset();r===o&&0===r?o=1:r===o&&--r;for(var A=a(e),i=r;i<o;i+=1){var l=A.getEntityAt(i);if(!l){t=void 0;break}if(i===r)t=l;else if(t!==l){t=void 0;break}}return t}function y(e,t){var n,r=a(e);return r.findEntityRanges((function(e){return e.get("entity")===t}),(function(e,t){n={start:e,end:t,text:r.get("text").slice(e,t)}})),n}function Q(e,t,n){D[e]["".concat(e.toLowerCase(),"-").concat(n)]=I({},"".concat(t),n)}function H(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},D.color,{},D.bgcolor,{},D.fontSize,{},D.fontFamily,{CODE:D.CODE,SUPERSCRIPT:D.SUPERSCRIPT,SUBSCRIPT:D.SUBSCRIPT})}var D={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 k(e,t,n){var o=e.getSelection(),A=Object.keys(D[t]).reduce((function(e,t){return r.Modifier.removeInlineStyle(e,o,t)}),e.getCurrentContent()),i=r.EditorState.push(e,A,"changeinline-style"),a=e.getCurrentInlineStyle();if(o.isCollapsed()&&(i=a.reduce((function(e,t){return r.RichUtils.toggleInlineStyle(e,t)}),i)),"SUPERSCRIPT"===t||"SUBSCRIPT"==t)a.has(n)||(i=r.RichUtils.toggleInlineStyle(i,n));else{var l="bgcolor"===t?"backgroundColor":t;a.has("".concat(l,"-").concat(n))||(i=r.RichUtils.toggleInlineStyle(i,"".concat(t.toLowerCase(),"-").concat(n)),Q(t,l,n))}return i}function V(e){e&&e.getCurrentContent().getBlockMap().map((function(e){return e.get("characterList")})).toList().flatten().forEach((function(e){e&&0===e.indexOf("color-")?Q("color","color",e.substr(6)):e&&0===e.indexOf("bgcolor-")?Q("bgcolor","backgroundColor",e.substr(8)):e&&0===e.indexOf("fontsize-")?Q("fontSize","fontSize",+e.substr(9)):e&&0===e.indexOf("fontfamily-")&&Q("fontFamily","fontFamily",e.substr(11))}))}function Z(e,t,n){var r=e.getInlineStyleAt(n).toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(r&&0<r.size)return r.get(0)}function j(e,t){if(e&&t&&0<t.length){var n=function(){var n=e.getSelection(),r={};if(n.isCollapsed())return t.forEach((function(t){r[t]=function(e,t){var n=e.getCurrentInlineStyle().toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(n&&0<n.size)return n.get(0)}(e,t)})),{v:r};var o=n.getStartOffset(),A=n.getEndOffset(),a=i(e);if(0<a.size){for(var l=function(e){var n=0===e?o:0,i=e===a.size-1?A:a.get(e).getText().length;n===i&&0===n?(n=1,i=2):n===i&&--n;for(var l=function(o){o===n?t.forEach((function(t){r[t]=Z(a.get(e),t,o)})):t.forEach((function(t){r[t]&&r[t]!==Z(a.get(e),t,o)&&(r[t]=void 0)}))},c=n;c<i;c+=1)l(c)},c=0;c<a.size;c+=1)l(c);return{v:r}}}();if("object"===x(n))return n.v}return{}}function N(e){var t=e.getCurrentInlineStyle(),n=e.getCurrentContent();return t.forEach((function(t){n=r.Modifier.removeInlineStyle(n,e.getSelection(),t)})),r.EditorState.push(e,n,"change-inline-style")}n.d(t,"isListBlock",(function(){return b})),n.d(t,"changeDepth",(function(){return w})),n.d(t,"handleNewLine",(function(){return v})),n.d(t,"getEntityRange",(function(){return y})),n.d(t,"getCustomStyleMap",(function(){return H})),n.d(t,"toggleCustomInlineStyle",(function(){return k})),n.d(t,"getSelectionEntity",(function(){return L})),n.d(t,"extractInlineStyle",(function(){return V})),n.d(t,"removeAllInlineStyles",(function(){return N})),n.d(t,"getSelectionInlineStyle",(function(){return M})),n.d(t,"getSelectionCustomInlineStyle",(function(){return j})),n.d(t,"getSelectedBlocksMap",(function(){return A})),n.d(t,"getSelectedBlocksList",(function(){return i})),n.d(t,"getSelectedBlock",(function(){return a})),n.d(t,"getBlockBeforeSelectedBlock",(function(){return l})),n.d(t,"getAllBlocks",(function(){return c})),n.d(t,"getSelectedBlocksType",(function(){return s})),n.d(t,"removeSelectedBlocksStyle",(function(){return f})),n.d(t,"getSelectionText",(function(){return d})),n.d(t,"addLineBreakRemovingSelection",(function(){return C})),n.d(t,"insertNewUnstyledBlock",(function(){return u})),n.d(t,"clearEditorContent",(function(){return p})),n.d(t,"setBlockData",(function(){return g})),n.d(t,"getSelectedBlocksMetadata",(function(){return h})),n.d(t,"blockRenderMap",(function(){return E}))}],r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t){e.exports=n},function(e,t,n){function r(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,A,i,a;e.exports=(o=n(5),A=n(3),a={},r.m=i=[function(e,t){e.exports=o},function(e,t){e.exports=A},function(e,t,n){e.exports=n(3)},function(e,t,n){n.r(t);var r=n(1),o=n(0),A=function(e,t,n){var r,A=e.textContent;return""===A.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:A,inlines:Array(A.length).fill(t),entities:Array(A.length).fill(n),blocks:[]}}},i=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},a=function(){return{text:"",inlines:[],entities:[],blocks:[]}},l=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new o.Map({})}]}},c=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new o.Map({})}]}},s=function(e){return{text:"\r ",inlines:[new o.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},f=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},d=new o.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"]}}),C={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function u(e){return e.style.textAlign?new o.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new o.Map({"margin-left":e.style.marginLeft}):void 0}var p=function(e){var t=void 0;if(e instanceof HTMLAnchorElement){var n={};t=e.dataset&&void 0!==e.dataset.mention?(n.url=e.href,n.text=e.innerHTML,n.value=e.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=e.getAttribute&&e.getAttribute("href")||e.href,n.title=e.innerHTML,n.targetOption=e.target,r.Entity.__create("LINK","MUTABLE",n))}return t};n.d(t,"default",(function(){return E}));var g=" ",h=new RegExp(" ","g"),m=!0;function E(e,t){var n,E,b=(n=t,(E=function(e){var t,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}(e.trim().replace(h,g)))?(m=!0,{chunk:function e(t,n,o,g,h,E){var b=t.nodeName.toLowerCase();if(E){var w=E(b,t);if(w){var v=r.Entity.__create(w.type,w.mutability,w.data||{});return{chunk:s(v)}}}if("#text"===b&&"\n"!==t.textContent)return A(t,n,h);if("br"===b)return{chunk:i()};if("img"===b&&t instanceof HTMLImageElement){var B={};B.src=t.getAttribute&&t.getAttribute("src")||t.src,B.alt=t.alt,B.height=t.style.height,B.width=t.style.width,t.style.float&&(B.alignment=t.style.float);var I=r.Entity.__create("IMAGE","MUTABLE",B);return{chunk:s(I)}}if("video"===b&&t instanceof HTMLVideoElement){var x={};x.src=t.getAttribute&&t.getAttribute("src")||t.src,x.alt=t.alt,x.height=t.style.height,x.width=t.style.width,t.style.float&&(x.alignment=t.style.float);var M=r.Entity.__create("VIDEO","MUTABLE",x);return{chunk:s(M)}}if("iframe"===b&&t instanceof HTMLIFrameElement){var L={};L.src=t.getAttribute&&t.getAttribute("src")||t.src,L.height=t.height,L.width=t.width;var y=r.Entity.__create("EMBEDDED_LINK","MUTABLE",L);return{chunk:s(y)}}var Q,H=function(e,t){var n=d.filter((function(n){return n.element===e&&(!n.wrapper||n.wrapper===t)||n.wrapper===e||n.aliasedElements&&-1<n.aliasedElements.indexOf(e)})).keySeq().toSet().toArray();if(1===n.length)return n[0]}(b,g);H&&("ul"===b||"ol"===b?(g=b,o+=1):("unordered-list-item"!==H&&"ordered-list-item"!==H&&(g="",o=-1),m?(Q=l(H,u(t)),m=!1):Q=c(H,o,u(t)))),Q=Q||a(),n=function(e,t,n){var r,o=C[e];if(o)r=n.add(o).toOrderedSet();else if(t instanceof HTMLElement){var A=t;r=(r=n).withMutations((function(e){var t=A.style.color,n=A.style.backgroundColor,r=A.style.fontSize,o=A.style.fontFamily.replace(/^"|"$/g,""),i=A.style.fontWeight,a=A.style.textDecoration,l=A.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),o&&e.add("fontfamily-".concat(o)),"bold"===i&&e.add(C.strong),"underline"===a&&e.add(C.ins),"italic"===l&&e.add(C.em)})).toOrderedSet()}return r}(b,t,n);for(var D=t.firstChild;D;){var k=e(D,n,o,g,p(D)||h,E).chunk;Q=f(Q,k),D=D.nextSibling}return{chunk:Q}}(E,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(b){var w=b.chunk,v=new o.OrderedMap({});w.entities&&w.entities.forEach((function(e){e&&(v=v.set(e,r.Entity.__get(e)))}));var B=0;return{contentBlocks:w.text.split("\r").map((function(e,t){var n=B+e.length,A=w&&w.inlines.slice(B,n),i=w&&w.entities.slice(B,n),a=new o.List(A.map((function(e,t){var n={style:e,entity:null};return i[t]&&(n.entity=i[t]),r.CharacterMetadata.create(n)})));return B=n,new r.ContentBlock({key:Object(r.genKey)(),type:w&&w.blocks[t]&&w.blocks[t].type||"unstyled",depth:w&&w.blocks[t]&&w.blocks[t].depth,data:w&&w.blocks[t]&&w.blocks[t].data||new o.Map({}),text:e,characterList:a})})),entityMap:v}}return null}}],r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t,n){function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function o(e){return Object.prototype.toString.call(e)}function A(e){return"[object Function]"===o(e)}function i(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var a={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var r=e.slice(t);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(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);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(r)?3<=t&&":"===e[t-3]||3<=t&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="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]",s="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function f(){return function(e,t){t.normalize(e)}}function d(e){var t=e.re=n(21)(e.__opts__),r=e.__tlds__.slice();function a(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(c),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(a(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(a(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(a(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(a(t.tpl_host_fuzzy_test),"i");var l=[];function s(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r,i={validate:null,link:null};if(e.__compiled__[t]=i,"[object Object]"===o(n))return"[object RegExp]"===o(n.validate)?i.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}):A(n.validate)?i.validate=n.validate:s(t,n),void(A(n.normalize)?i.normalize=n.normalize:n.normalize?s(t,n):i.normalize=f());"[object String]"!==o(n)?s(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:f()};var d,C=Object.keys(e.__compiled__).filter((function(t){return 0<t.length&&e.__compiled__[t]})).map(i).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+C+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+C+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),(d=e).__index__=-1,d.__text_cache__=""}function C(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function u(e,t){var n=new C(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function p(e,t){if(!(this instanceof p))return new p(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||a.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},a,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=s,this.__tlds_replaced__=!1,this.re={},d(this)}p.prototype.add=function(e,t){return this.__schemas__[e]=t,d(this),this},p.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},p.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,A,i,a,l;if(this.re.schema_test.test(e))for((a=this.re.schema_search).lastIndex=0;null!==(t=a.exec(e));)if(o=this.testSchemaAt(e,t[2],a.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(l=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(A=n.index+n[1].length,(this.__index__<0||A<this.__index__)&&(this.__schema__="",this.__index__=A,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=e.indexOf("@")&&null!==(r=e.match(this.re.email_fuzzy))&&(A=r.index+r[1].length,i=r.index+r[0].length,(this.__index__<0||A<this.__index__||A===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=A,this.__last_index__=i)),0<=this.__index__},p.prototype.pretest=function(e){return this.re.pretest.test(e)},p.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},p.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(u(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(u(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},p.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),d(this),this},p.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},p.prototype.onCompile=function(){},e.exports=p},function(e,t,n){e.exports=n(40)},function(e,t,n){},function(e,t,n){var r=n(11);function o(){}function A(){}A.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,A,i){if(i!==r){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 t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:A,resetWarningCache:o};return n.PropTypes=n}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=function(e){var t={};t.src_Any=n(22).source,t.src_Cc=n(23).source,t.src_Z=n(24).source,t.src_P=n(25).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.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]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t){e.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(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){n.r(t),n.d(t,"Editor",(function(){return no}));var r=n(1),o=n.n(r),A=n(0),i=n.n(A),a=n(3),l=n(4),c=n(2),s=n.n(c);function f(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}var d=f((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(e){t.callBacks.forEach((function(t){t(e)}))},this.init=function(e){var n=document.getElementById(e);n&&n.addEventListener("click",(function(){t.editorFlag=!0})),document&&(document.addEventListener("click",(function(){t.editorFlag?t.editorFlag=!1:(t.closeAllModals(),t.suggestionCallback&&t.suggestionCallback())})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&t.closeAllModals()})))},this.onEditorClick=function(){t.closeModals(),!t.suggestionFlag&&t.suggestionCallback?t.suggestionCallback():t.suggestionFlag=!1},this.closeModals=function(e){t.closeAllModals(e)},this.registerCallBack=function(e){t.callBacks.push(e)},this.deregisterCallBack=function(e){t.callBacks=t.callBacks.filter((function(t){return t!==e}))},this.setSuggestionCallback=function(e){t.suggestionCallback=e},this.removeSuggestionCallback=function(){t.suggestionCallback=void 0},this.onSuggestionClick=function(){t.suggestionFlag=!0}}));function C(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}var u,p=C((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){t.editorFocused=!0},this.onInputMouseDown=function(){t.inputFocused=!0},this.isEditorBlur=function(e){return"INPUT"!==e.target.tagName&&"LABEL"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName||t.editorFocused?!("INPUT"===e.target.tagName&&"LABEL"===e.target.tagName&&"TEXTAREA"===e.target.tagName||t.inputFocused||(t.editorFocused=!1)):!(t.inputFocused=!1)},this.isEditorFocused=function(){return!t.inputFocused||(t.inputFocused=!1)},this.isToolbarFocused=function(){return!t.editorFocused||(t.editorFocused=!1)},this.isInputFocused=function(){return t.inputFocused}})),g=[],h={onKeyDown:function(e){g.forEach((function(t){t(e)}))},registerCallBack:function(e){g.push(e)},deregisterCallBack:function(e){g=g.filter((function(t){return t!==e}))}},m=function(){u=!0},E=function(){u=!1},b=function(){return u};function w(e){var t=e.getData()&&e.getData().get("text-align");return t?"rdw-".concat(t,"-aligned-block"):""}function v(e,t){if(e)for(var n in e)!{}.hasOwnProperty.call(e,n)||t(n,e[n])}function B(e,t){var n=!1;if(e)for(var r in e)if({}.hasOwnProperty.call(e,r)&&t===r){n=!0;break}return n}function I(e){e.stopPropagation()}function x(e){return e[e.options[0]].icon}function M(e,t){if(e&&void 0===t)return e;var n={};return v(e,(function(e,r){var o;o=r,"[object Object]"===Object.prototype.toString.call(o)?n[e]=M(r,t[e]):n[e]=void 0!==t[e]?t[e]:r})),n}var L=n(6),y=n.n(L),Q=n(5);function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function V(e,t){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=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(e){return!1}}();return function(){var n,r=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===H(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9);var N=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}(A,r.Component);var e,t,n=Z(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onClick=function(){var t=e.props,n=t.disabled,r=t.onClick,o=t.value;n||r(o)},e}return e=A,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.className,A=t.activeClassName,i=t.active,a=t.disabled,l=t.title;return o.a.createElement("div",{className:s()("rdw-option-wrapper",r,(D(e={},"rdw-option-active ".concat(A),i),D(e,"rdw-option-disabled",a),e)),onClick:this.onClick,"aria-selected":i,title:l},n)}}])&&k(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t){return(S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=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(e){return!1}}();return function(){var n,r=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}N.propTypes={onClick:i.a.func.isRequired,children:i.a.any,value:i.a.string,className:i.a.string,activeClassName:i.a.string,active:i.a.bool,disabled:i.a.bool,title:i.a.string},N.defaultProps={activeClassName:""},n(12);var T=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(A,r.Component);var e,t,n=O(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={highlighted:-1},e.onChange=function(t){var n=e.props.onChange;n&&n(t),e.toggleExpansion()},e.setHighlighted=function(t){e.setState({highlighted:t})},e.toggleExpansion=function(){var t=e.props,n=t.doExpand,r=t.doCollapse;t.expanded?r():n()},e}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.expanded;e.expanded&&!t&&this.setState({highlighted:-1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.expanded,r=t.children,A=t.className,i=t.optionWrapperClassName,a=t.ariaLabel,l=t.onExpandEvent,c=t.title,f=this.state.highlighted,d=r.slice(1,r.length);return o.a.createElement("div",{className:s()("rdw-dropdown-wrapper",A),"aria-expanded":n,"aria-label":a||"rdw-dropdown"},o.a.createElement("a",{className:"rdw-dropdown-selectedtext",onClick:l,title:c},r[0],o.a.createElement("div",{className:s()({"rdw-dropdown-carettoclose":n,"rdw-dropdown-carettoopen":!n})})),n?o.a.createElement("ul",{className:s()("rdw-dropdown-optionwrapper",i),onClick:I},o.a.Children.map(d,(function(t,n){return t&&o.a.cloneElement(t,{onSelect:e.onChange,highlighted:f===n,setHighlighted:e.setHighlighted,index:n})}))):void 0)}}])&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y(e,t){return(Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function U(e){var t=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(e){return!1}}();return function(){var n,r=K(e);if(t){var o=K(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}T.propTypes={children:i.a.any,onChange:i.a.func,className:i.a.string,expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,optionWrapperClassName:i.a.string,ariaLabel:i.a.string,title:i.a.string},n(13);var W=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y(e,t)}(A,r.Component);var e,t,n=U(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onClick=function(t){var n=e.props,r=n.onSelect,o=n.onClick,A=n.value;n.disabled||(r&&r(A),o&&(t.stopPropagation(),o(A)))},e.setHighlighted=function(){var t=e.props;(0,t.setHighlighted)(t.index)},e.resetHighlighted=function(){(0,e.props.setHighlighted)(-1)},e}return e=A,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.active,A=t.disabled,i=t.highlighted,a=t.className,l=t.activeClassName,c=t.disabledClassName,f=t.highlightedClassName,d=t.title;return o.a.createElement("li",{className:s()("rdw-dropdownoption-default",a,(G(e={},"rdw-dropdownoption-active ".concat(l),r),G(e,"rdw-dropdownoption-highlighted ".concat(f),i),G(e,"rdw-dropdownoption-disabled ".concat(c),A),e)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:d},n)}}])&&X(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $(e){var t=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(e){return!1}}();return function(){var n,r=ee(e);if(t){var o=ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}W.propTypes={children:i.a.any,value:i.a.any,onClick:i.a.func,onSelect:i.a.func,setHighlighted:i.a.func,index:i.a.number,disabled:i.a.bool,active:i.a.bool,highlighted:i.a.bool,className:i.a.string,activeClassName:i.a.string,disabledClassName:i.a.string,highlightedClassName:i.a.string,title:i.a.string},W.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},n(14);var te=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(A,r.Component);var e,t,n=$(A);function A(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),n.apply(this,arguments)}return e=A,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState,r=e.onChange,A=e.translations;return o.a.createElement("div",{className:s()("rdw-inline-wrapper",t.className),"aria-label":"rdw-inline-control"},t.options.map((function(e,i){return o.a.createElement(N,{key:i,value:e,onClick:r,className:s()(t[e].className),active:!0===n[e]||"MONOSPACE"===e&&n.CODE,title:t[e].title||A["components.controls.inline.".concat(e)]},o.a.createElement("img",{alt:"",src:t[e].icon}))})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,A=e.onExpandEvent,i=e.doCollapse,a=e.currentState,l=e.onChange,c=e.translations,f=t.className,d=t.dropdownClassName,C=t.title;return o.a.createElement(T,{className:s()("rdw-inline-dropdown",f),optionWrapperClassName:s()(d),onChange:l,expanded:n,doExpand:r,doCollapse:i,onExpandEvent:A,"aria-label":"rdw-inline-control",title:C},o.a.createElement("img",{src:x(t),alt:""}),t.options.map((function(e,n){return o.a.createElement(W,{key:n,value:e,className:s()("rdw-inline-dropdownoption",t[e].className),active:!0===a[e]||"MONOSPACE"===e&&a.CODE,title:t[e].title||c["components.controls.inline.".concat(e)]},o.a.createElement("img",{src:t[e].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&J(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e,t){return(oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ae(e){var t=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(e){return!1}}();return function(){var n,r=ie(e);if(t){var o=ie(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}te.propTypes={expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,config:i.a.object,onChange:i.a.func,currentState:i.a.object,translations:i.a.object};var ae=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oe(e,t)}(A,r.Component);var e,t,n=Ae(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.toggleInlineStyle=function(e){var n="monospace"===e?"CODE":e.toUpperCase(),r=t.props,o=r.editorState,A=r.onChange,i=a.RichUtils.toggleInlineStyle(o,n);if("subscript"===e||"superscript"===e){var l="subscript"===e?"SUPERSCRIPT":"SUBSCRIPT",c=a.Modifier.removeInlineStyle(i.getCurrentContent(),i.getSelection(),l);i=a.EditorState.push(i,c,"change-inline-style")}i&&A(i)},t.changeKeys=function(e){if(e){var t={};return v(e,(function(e,n){t["CODE"===e?"monospace":e.toLowerCase()]=n})),t}},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r=t.props,o=r.editorState,i=r.modalHandler;return t.state={currentStyles:o?t.changeKeys(Object(l.getSelectionInlineStyle)(o)):{}},i.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentStyles:this.changeKeys(Object(l.getSelectionInlineStyle)(t))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,A=r.expanded,i=r.currentStyles,a=t.component||te;return o.a.createElement(a,{config:t,translations:n,currentState:i,expanded:A,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&re(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function le(e){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function se(e,t){return(se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fe(e){var t=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(e){return!1}}();return function(){var n,r=de(e);if(t){var o=de(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ae.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(15);var Ce=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&se(e,t)}(A,r.Component);var e,t,n=fe(A);function A(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).getBlockTypes=function(e){return[{label:"Normal",displayName:e["components.controls.blocktype.normal"]},{label:"H1",displayName:e["components.controls.blocktype.h1"]},{label:"H2",displayName:e["components.controls.blocktype.h2"]},{label:"H3",displayName:e["components.controls.blocktype.h3"]},{label:"H4",displayName:e["components.controls.blocktype.h4"]},{label:"H5",displayName:e["components.controls.blocktype.h5"]},{label:"H6",displayName:e["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:e["components.controls.blocktype.blockquote"]},{label:"Code",displayName:e["components.controls.blocktype.code"]}]},t.state={blockTypes:t.getBlockTypes(e.translations)},t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.translations;t!==e.translations&&this.setState({blockTypes:this.getBlockTypes(t)})}},{key:"renderFlat",value:function(e){var t=this.props,n=t.config.className,r=t.onChange,A=t.currentState.blockType;return o.a.createElement("div",{className:s()("rdw-inline-wrapper",n)},e.map((function(e,t){return o.a.createElement(N,{key:t,value:e.label,active:A===e.label,onClick:r},e.displayName)})))}},{key:"renderInDropdown",value:function(e){var t=this.props,n=t.config,r=n.className,A=n.dropdownClassName,i=n.title,a=t.currentState.blockType,l=t.expanded,c=t.doExpand,f=t.onExpandEvent,d=t.doCollapse,C=t.onChange,u=t.translations,p=this.state.blockTypes.filter((function(e){return e.label===a})),g=p&&p[0]&&p[0].displayName;return o.a.createElement("div",{className:"rdw-block-wrapper","aria-label":"rdw-block-control"},o.a.createElement(T,{className:s()("rdw-block-dropdown",r),optionWrapperClassName:s()(A),onChange:C,expanded:l,doExpand:c,doCollapse:d,onExpandEvent:f,title:i||u["components.controls.blocktype.blocktype"]},o.a.createElement("span",null,g||u["components.controls.blocktype.blocktype"]),e.map((function(e,t){return o.a.createElement(W,{active:a===e.label,value:e.label,key:t},e.displayName)}))))}},{key:"render",value:function(){var e=this.props.config,t=e.inDropdown,n=this.state.blockTypes.filter((function(t){var n=t.label;return-1<e.options.indexOf(n)}));return t?this.renderInDropdown(n):this.renderFlat(n)}}])&&ce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();Ce.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,doExpand:i.a.func,doCollapse:i.a.func,onChange:i.a.func,config:i.a.object,currentState:i.a.object,translations:i.a.object};var ue=Ce;function pe(e){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function he(e,t){return(he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function me(e){var t=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(e){return!1}}();return function(){var n,r=Ee(e);if(t){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var be=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&he(e,t)}(A,r.Component);var e,t,n=me(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.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"}],t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.blocksTypes.find((function(t){return t.label===e})).style,r=t.props,o=r.editorState,A=r.onChange,i=a.RichUtils.toggleBlockType(o,n);i&&A(i)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:!1,currentBlockType:r?Object(l.getSelectedBlocksType)(r):"unstyled"},o.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlockType:Object(l.getSelectedBlocksType)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,A=r.expanded,i=r.currentBlockType,a=t.component||ue,l=this.blocksTypes.find((function(e){return e.style===i}));return o.a.createElement(a,{config:t,translations:n,currentState:{blockType:l&&l.label},onChange:this.toggleBlockType,expanded:A,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&ge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();be.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var we=be;function ve(e){return(ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ie(e,t){return(Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xe(e){var t=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(e){return!1}}();return function(){var n,r=Me(e);if(t){var o=Me(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Me(e){return(Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(16);var Le=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ie(e,t)}(A,r.Component);var e,t,n=xe(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={defaultFontSize:void 0},e}return e=A,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-size");t=t.substring(0,t.length-2),this.setState({defaultFontSize:t})}}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,A=t.dropdownClassName,i=t.options,a=t.title,l=e.onChange,c=e.expanded,f=e.doCollapse,d=e.onExpandEvent,C=e.doExpand,u=e.translations,p=this.props.currentState.fontSize,g=this.state.defaultFontSize;return g=Number(g),p=p||i&&0<=i.indexOf(g)&&g,o.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},o.a.createElement(T,{className:s()("rdw-fontsize-dropdown",r),optionWrapperClassName:s()(A),onChange:l,expanded:c,doExpand:C,doCollapse:f,onExpandEvent:d,title:a||u["components.controls.fontsize.fontsize"]},p?o.a.createElement("span",null,p):o.a.createElement("img",{src:n,alt:""}),i.map((function(e,t){return o.a.createElement(W,{className:"rdw-fontsize-option",active:p===e,value:e,key:t},e)}))))}}])&&Be(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function ye(e){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function He(e,t){return(He=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function De(e){var t=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(e){return!1}}();return function(){var n,r=ke(e);if(t){var o=ke(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ye(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Le.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,doExpand:i.a.func,doCollapse:i.a.func,onChange:i.a.func,config:i.a.object,currentState:i.a.object,translations:i.a.object};var Ve=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&He(e,t)}(A,r.Component);var e,t,n=De(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).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.toggleFontSize=function(e){var n=t.props,r=n.editorState,o=n.onChange,A=Object(l.toggleCustomInlineStyle)(r,"fontSize",e);A&&o(A)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontSize:r?Object(l.getSelectionCustomInlineStyle)(r,["FONTSIZE"]).FONTSIZE:void 0},o.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontSize:Object(l.getSelectionCustomInlineStyle)(t,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,A=r.expanded,i=r.currentFontSize,a=t.component||Le,l=i&&Number(i.substring(9));return o.a.createElement(a,{config:t,translations:n,currentState:{fontSize:l},onChange:this.toggleFontSize,expanded:A,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Qe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function Ze(e){return(Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ne(e,t){return(Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ze(e){var t=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(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Pe(e){return(Pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ve.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(17);var Se=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ne(e,t)}(A,r.Component);var e,t,n=ze(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={defaultFontFamily:void 0},e}return e=A,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:t})}}},{key:"render",value:function(){var e=this.state.defaultFontFamily,t=this.props,n=t.config,r=n.className,A=n.dropdownClassName,i=n.options,a=n.title,l=t.translations,c=t.onChange,f=t.expanded,d=t.doCollapse,C=t.onExpandEvent,u=t.doExpand,p=this.props.currentState.fontFamily;return p=p||i&&e&&i.some((function(t){return t.toLowerCase()===e.toLowerCase()}))&&e,o.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},o.a.createElement(T,{className:s()("rdw-fontfamily-dropdown",r),optionWrapperClassName:s()("rdw-fontfamily-optionwrapper",A),onChange:c,expanded:f,doExpand:u,doCollapse:d,onExpandEvent:C,title:a||l["components.controls.fontfamily.fontfamily"]},o.a.createElement("span",{className:"rdw-fontfamily-placeholder"},p||l["components.controls.fontfamily.fontfamily"]),i.map((function(e,t){return o.a.createElement(W,{active:p===e,value:e,key:t},e)}))))}}])&&je(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();Se.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,doExpand:i.a.func,doCollapse:i.a.func,onChange:i.a.func,config:i.a.object,currentState:i.a.object,translations:i.a.object};var Oe=Se;function Fe(e){return(Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Re(e,t){return(Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ge(e){var t=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(e){return!1}}();return function(){var n,r=Xe(e);if(t){var o=Xe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Xe(e){return(Xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ye=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Re(e,t)}(A,r.Component);var e,t,n=Ge(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).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.toggleFontFamily=function(e){var n=t.props,r=n.editorState,o=n.onChange,A=Object(l.toggleCustomInlineStyle)(r,"fontFamily",e);A&&o(A)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontFamily:r?Object(l.getSelectionCustomInlineStyle)(r,["FONTFAMILY"]).FONTFAMILY:void 0},o.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontFamily:Object(l.getSelectionCustomInlineStyle)(t,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,A=r.expanded,i=r.currentFontFamily,a=t.component||Oe,l=i&&i.substring(11);return o.a.createElement(a,{translations:n,config:t,currentState:{fontFamily:l},onChange:this.toggleFontFamily,expanded:A,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function Ue(e){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function We(e,t){return(We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function qe(e){var t=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(e){return!1}}();return function(){var n,r=Je(e);if(t){var o=Je(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Je(e){return(Je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ye.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(18);var _e=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&We(e,t)}(A,r.Component);var e,t,n=qe(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).options=["unordered","ordered","indent","outdent"],e.toggleBlockType=function(t){(0,e.props.onChange)(t)},e.indent=function(){(0,e.props.onChange)("indent")},e.outdent=function(){(0,e.props.onChange)("outdent")},e}return e=A,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState.listType,r=e.translations,A=e.indentDisabled,i=e.outdentDisabled,a=t.options,l=t.unordered,c=t.ordered,f=t.indent,d=t.outdent,C=t.className;return o.a.createElement("div",{className:s()("rdw-list-wrapper",C),"aria-label":"rdw-list-control"},0<=a.indexOf("unordered")&&o.a.createElement(N,{value:"unordered",onClick:this.toggleBlockType,className:s()(l.className),active:"unordered"===n,title:l.title||r["components.controls.list.unordered"]},o.a.createElement("img",{src:l.icon,alt:""})),0<=a.indexOf("ordered")&&o.a.createElement(N,{value:"ordered",onClick:this.toggleBlockType,className:s()(c.className),active:"ordered"===n,title:c.title||r["components.controls.list.ordered"]},o.a.createElement("img",{src:c.icon,alt:""})),0<=a.indexOf("indent")&&o.a.createElement(N,{onClick:this.indent,disabled:A,className:s()(f.className),title:f.title||r["components.controls.list.indent"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=a.indexOf("outdent")&&o.a.createElement(N,{onClick:this.outdent,disabled:i,className:s()(d.className),title:d.title||r["components.controls.list.outdent"]},o.a.createElement("img",{src:d.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this,t=this.props,n=t.config,r=t.expanded,A=t.doCollapse,i=t.doExpand,a=t.onExpandEvent,l=t.onChange,c=t.currentState.listType,f=t.translations,d=n.options,C=n.className,u=n.dropdownClassName,p=n.title;return o.a.createElement(T,{className:s()("rdw-list-dropdown",C),optionWrapperClassName:s()(u),onChange:l,expanded:r,doExpand:i,doCollapse:A,onExpandEvent:a,"aria-label":"rdw-list-control",title:p||f["components.controls.list.list"]},o.a.createElement("img",{src:x(n),alt:""}),this.options.filter((function(e){return 0<=d.indexOf(e)})).map((function(t,r){return o.a.createElement(W,{key:r,value:t,disabled:e.props["".concat(t,"Disabled")],className:s()("rdw-list-dropdownOption",n[t].className),active:c===t,title:n[t].title||f["components.controls.list.".concat(t)]},o.a.createElement("img",{src:n[t].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Ke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tt(e,t){return(tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nt(e){var t=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(e){return!1}}();return function(){var n,r=rt(e);if(t){var o=rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function rt(e){return(rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}_e.propTypes={expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,config:i.a.object,onChange:i.a.func,currentState:i.a.object,translations:i.a.object,indentDisabled:i.a.bool,outdentDisabled:i.a.bool};var ot=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tt(e,t)}(A,r.Component);var e,t,n=nt(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){"unordered"===e?t.toggleBlockType("unordered-list-item"):"ordered"===e?t.toggleBlockType("ordered-list-item"):"indent"===e?t.adjustDepth(1):t.adjustDepth(-1)},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.toggleBlockType=function(e){var n=t.props,r=n.onChange,o=n.editorState,A=a.RichUtils.toggleBlockType(o,e);A&&r(A)},t.adjustDepth=function(e){var n=t.props,r=n.onChange,o=n.editorState,A=Object(l.changeDepth)(o,e,4);A&&r(A)},t.isIndentDisabled=function(){var e=t.props.editorState,n=t.state.currentBlock,r=Object(l.getBlockBeforeSelectedBlock)(e);return!r||!Object(l.isListBlock)(n)||r.get("type")!==n.get("type")||r.get("depth")<n.get("depth")},t.isOutdentDisabled=function(){var e=t.state.currentBlock;return!e||!Object(l.isListBlock)(e)||e.get("depth")<=0};var r=t.props,o=r.editorState,i=r.modalHandler;return t.state={expanded:!1,currentBlock:o?Object(l.getSelectedBlock)(o):void 0},i.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlock:Object(l.getSelectedBlock)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e,t=this.props,n=t.config,r=t.translations,A=this.state,i=A.expanded,a=A.currentBlock,l=n.component||_e;"unordered-list-item"===a.get("type")?e="unordered":"ordered-list-item"===a.get("type")&&(e="ordered");var c=this.isIndentDisabled(),s=this.isOutdentDisabled();return o.a.createElement(l,{config:n,translations:r,currentState:{listType:e},expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:c,outdentDisabled:s})}}])&&et(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function At(e){return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function it(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function at(e,t){return(at=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lt(e){var t=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(e){return!1}}();return function(){var n,r=ct(e);if(t){var o=ct(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===At(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ct(e){return(ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ot.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(19);var st=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&at(e,t)}(A,r.Component);var e,t,n=lt(A);function A(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),n.apply(this,arguments)}return e=A,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.left,A=t.center,i=t.right,a=t.justify,l=t.className,c=e.onChange,f=e.currentState.textAlignment,d=e.translations;return o.a.createElement("div",{className:s()("rdw-text-align-wrapper",l),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&o.a.createElement(N,{value:"left",className:s()(r.className),active:"left"===f,onClick:c,title:r.title||d["components.controls.textalign.left"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("center")&&o.a.createElement(N,{value:"center",className:s()(A.className),active:"center"===f,onClick:c,title:A.title||d["components.controls.textalign.center"]},o.a.createElement("img",{src:A.icon,alt:""})),0<=n.indexOf("right")&&o.a.createElement(N,{value:"right",className:s()(i.className),active:"right"===f,onClick:c,title:i.title||d["components.controls.textalign.right"]},o.a.createElement("img",{src:i.icon,alt:""})),0<=n.indexOf("justify")&&o.a.createElement(N,{value:"justify",className:s()(a.className),active:"justify"===f,onClick:c,title:a.title||d["components.controls.textalign.justify"]},o.a.createElement("img",{src:a.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,A=e.onExpandEvent,i=e.doCollapse,a=e.currentState.textAlignment,l=e.onChange,c=e.translations,f=t.options,d=t.left,C=t.center,u=t.right,p=t.justify,g=t.className,h=t.dropdownClassName,m=t.title;return o.a.createElement(T,{className:s()("rdw-text-align-dropdown",g),optionWrapperClassName:s()(h),onChange:l,expanded:n,doExpand:r,doCollapse:i,onExpandEvent:A,"aria-label":"rdw-textalign-control",title:m||c["components.controls.textalign.textalign"]},o.a.createElement("img",{src:a&&t[a]&&t[a].icon||x(t),alt:""}),0<=f.indexOf("left")&&o.a.createElement(W,{value:"left",active:"left"===a,className:s()("rdw-text-align-dropdownOption",d.className),title:d.title||c["components.controls.textalign.left"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=f.indexOf("center")&&o.a.createElement(W,{value:"center",active:"center"===a,className:s()("rdw-text-align-dropdownOption",C.className),title:C.title||c["components.controls.textalign.center"]},o.a.createElement("img",{src:C.icon,alt:""})),0<=f.indexOf("right")&&o.a.createElement(W,{value:"right",active:"right"===a,className:s()("rdw-text-align-dropdownOption",u.className),title:u.title||c["components.controls.textalign.right"]},o.a.createElement("img",{src:u.icon,alt:""})),0<=f.indexOf("justify")&&o.a.createElement(W,{value:"justify",active:"justify"===a,className:s()("rdw-text-align-dropdownOption",p.className),title:p.title||c["components.controls.textalign.justify"]},o.a.createElement("img",{src:p.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&it(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function ft(e){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ct(e,t){return(Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ut(e){var t=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(e){return!1}}();return function(){var n,r=pt(e);if(t){var o=pt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ft(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function pt(e){return(pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}st.propTypes={expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,config:i.a.object,onChange:i.a.func,currentState:i.a.object,translations:i.a.object};var gt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ct(e,t)}(A,r.Component);var e,t,n=ut(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).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.addBlockAlignmentData=function(e){var n=t.props,r=n.editorState;(0,n.onChange)(t.state.currentTextAlignment!==e?Object(l.setBlockData)(r,{"text-align":e}):Object(l.setBlockData)(r,{"text-align":void 0}))};var r=t.props.modalHandler;return t.state={currentTextAlignment:void 0},r.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t!==e.editorState&&this.setState({currentTextAlignment:Object(l.getSelectedBlocksMetadata)(t).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,A=r.expanded,i=r.currentTextAlignment,a=t.component||st;return o.a.createElement(a,{config:t,translations:n,expanded:A,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:i},onChange:this.addBlockAlignmentData})}}])&&dt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function ht(e){return(ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Et(e,t){return(Et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function bt(e){var t=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(e){return!1}}();return function(){var n,r=wt(e);if(t){var o=wt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ht(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function wt(e){return(wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}gt.propTypes={editorState:i.a.object.isRequired,onChange:i.a.func.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(20);var vt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Et(e,t)}(A,r.Component);var e,t,n=bt(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call.apply(n,[this].concat(r))).state={currentStyle:"color"},e.onChange=function(t){(0,e.props.onChange)(e.state.currentStyle,t)},e.setCurrentStyleColor=function(){e.setState({currentStyle:"color"})},e.setCurrentStyleBgcolor=function(){e.setState({currentStyle:"bgcolor"})},e.renderModal=function(){var t=e.props,n=t.config,r=n.popupClassName,A=n.colors,i=t.currentState,a=i.color,l=i.bgColor,c=t.translations,f=e.state.currentStyle,d="color"===f?a:l;return o.a.createElement("div",{className:s()("rdw-colorpicker-modal",r),onClick:I},o.a.createElement("span",{className:"rdw-colorpicker-modal-header"},o.a.createElement("span",{className:s()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"color"===f}),onClick:e.setCurrentStyleColor},c["components.controls.colorpicker.text"]),o.a.createElement("span",{className:s()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"bgcolor"===f}),onClick:e.setCurrentStyleBgcolor},c["components.controls.colorpicker.background"])),o.a.createElement("span",{className:"rdw-colorpicker-modal-options"},A.map((function(t,n){return o.a.createElement(N,{value:t,key:n,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:d===t,onClick:e.onChange},o.a.createElement("span",{style:{backgroundColor:t},className:"rdw-colorpicker-cube"}))}))))},e}return e=A,(t=[{key:"componentDidUpdate",value:function(e){this.props.expanded&&!e.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,A=t.title,i=e.expanded,a=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-colorpicker-wrapper","aria-haspopup":"true","aria-expanded":i,"aria-label":"rdw-color-picker",title:A||l["components.controls.colorpicker.colorpicker"]},o.a.createElement(N,{onClick:a,className:s()(r)},o.a.createElement("img",{src:n,alt:""})),i?this.renderModal():void 0)}}])&&mt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();vt.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,onChange:i.a.func,config:i.a.object,currentState:i.a.object,translations:i.a.object};var Bt=vt;function It(e){return(It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mt(e,t){return(Mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Lt(e){var t=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(e){return!1}}();return function(){var n,r=yt(e);if(t){var o=yt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===It(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mt(e,t)}(A,r.Component);var e,t,n=Lt(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).state={expanded:!1,currentColor:void 0,currentBgColor:void 0},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.toggleColor=function(e,n){var r=t.props,o=r.editorState,A=r.onChange,i=Object(l.toggleCustomInlineStyle)(o,e,n);i&&A(i),t.doCollapse()};var r=e.editorState,o=e.modalHandler,i={expanded:!1,currentColor:void 0,currentBgColor:void 0};return r&&(i.currentColor=Object(l.getSelectionCustomInlineStyle)(r,["COLOR"]).COLOR,i.currentBgColor=Object(l.getSelectionCustomInlineStyle)(r,["BGCOLOR"]).BGCOLOR),t.state=i,o.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentColor:Object(l.getSelectionCustomInlineStyle)(t,["COLOR"]).COLOR,currentBgColor:Object(l.getSelectionCustomInlineStyle)(t,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,A=r.currentColor,i=r.currentBgColor,a=r.expanded,l=t.component||Bt,c=A&&A.substring(6),s=i&&i.substring(8);return o.a.createElement(l,{config:t,translations:n,onChange:this.toggleColor,expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:c,bgColor:s}})}}])&&xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();Qt.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var Ht=Qt,Dt=n(7),kt=n.n(Dt);function Vt(e){return(Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jt(e,t){return(jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Nt(e){var t=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(e){return!1}}();return function(){var n,r=zt(e);if(t){var o=zt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Vt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function zt(e){return(zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(26);var Pt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jt(e,t)}(A,r.Component);var e,t,n=Nt(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:e.props.config.defaultTargetOption},e.removeLink=function(){(0,e.props.onChange)("unlink")},e.addLink=function(){var t=e.props.onChange,n=e.state;t("link",n.linkTitle,n.linkTarget,n.linkTargetOption)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.updateTargetOption=function(t){e.setState({linkTargetOption:t.target.checked?"_blank":"_self"})},e.hideModal=function(){e.setState({showModal:!1})},e.signalExpandShowModal=function(){var t=e.props,n=t.onExpandEvent,r=t.currentState,o=r.link,A=r.selectionText,i=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target||"",linkTargetOption:o&&o.targetOption||i,linkTitle:o&&o.title||A})},e.forceExpandAndShowModal=function(){var t=e.props,n=t.doExpand,r=t.currentState,o=r.link,A=r.selectionText,i=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target,linkTargetOption:o&&o.targetOption||i,linkTitle:o&&o.title||A})},e}return e=A,(t=[{key:"componentDidUpdate",value:function(e){e.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var e=this.props,t=e.config.popupClassName,n=e.doCollapse,r=e.translations,A=this.state,i=A.linkTitle,a=A.linkTarget,l=A.linkTargetOption;return o.a.createElement("div",{className:s()("rdw-link-modal",t),onClick:I},o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},r["components.controls.link.linkTitle"]),o.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:i}),o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},r["components.controls.link.linkTarget"]),o.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:a}),o.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},o.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===l,value:"_blank",onChange:this.updateTargetOption}),o.a.createElement("span",null,r["components.controls.link.linkTargetOption"])),o.a.createElement("span",{className:"rdw-link-modal-buttonsection"},o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!a||!i},r["generic.add"]),o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},r["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.link,A=t.unlink,i=t.className,a=e.currentState,l=e.expanded,c=e.translations,f=this.state.showModal;return o.a.createElement("div",{className:s()("rdw-link-wrapper",i),"aria-label":"rdw-link-control"},0<=n.indexOf("link")&&o.a.createElement(N,{value:"unordered-list-item",className:s()(r.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":f,title:r.title||c["components.controls.link.link"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("unlink")&&o.a.createElement(N,{disabled:!a.link,value:"ordered-list-item",className:s()(A.className),onClick:this.removeLink,title:A.title||c["components.controls.link.unlink"]},o.a.createElement("img",{src:A.icon,alt:""})),l&&f?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.expanded,n=e.onExpandEvent,r=e.doCollapse,A=e.doExpand,i=e.onChange,a=e.config,l=e.currentState,c=e.translations,f=a.options,d=a.link,C=a.unlink,u=a.className,p=a.dropdownClassName,g=a.title,h=this.state.showModal;return o.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":t,title:g},o.a.createElement(T,{className:s()("rdw-link-dropdown",u),optionWrapperClassName:s()(p),onChange:i,expanded:t&&!h,doExpand:A,doCollapse:r,onExpandEvent:n},o.a.createElement("img",{src:x(a),alt:""}),0<=f.indexOf("link")&&o.a.createElement(W,{onClick:this.forceExpandAndShowModal,className:s()("rdw-link-dropdownoption",d.className),title:d.title||c["components.controls.link.link"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=f.indexOf("unlink")&&o.a.createElement(W,{onClick:this.removeLink,disabled:!l.link,className:s()("rdw-link-dropdownoption",C.className),title:C.title||c["components.controls.link.unlink"]},o.a.createElement("img",{src:C.icon,alt:""}))),t&&h?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Zt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();Pt.propTypes={expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,config:i.a.object,onChange:i.a.func,currentState:i.a.object,translations:i.a.object};var St=Pt;function Ot(e){return(Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ft(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tt(e,t){return(Tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Rt(e){var t=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(e){return!1}}();return function(){var n,r=Gt(e);if(t){var o=Gt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ot(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Gt(e){return(Gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){Ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kt(e){var t=Wt.match(e.target);return Yt(Yt({},e),{},{target:t&&t[0]&&t[0].url||e.target})}var Wt=kt()(),qt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tt(e,t)}(A,r.Component);var e,t,n=Rt(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e,n,r,o){var A=t.props.config.linkCallback;if("link"===e){var i=(A||Kt)({title:n,target:r,targetOption:o});t.addLink(i.title,i.target,i.targetOption)}else t.removeLink()},t.getCurrentValues=function(){var e=t.props.editorState,n=t.state.currentEntity,r=e.getCurrentContent(),o={};if(n&&"LINK"===r.getEntity(n).get("type")){o.link={};var A=n&&Object(l.getEntityRange)(e,n);o.link.target=n&&r.getEntity(n).get("data").url,o.link.targetOption=n&&r.getEntity(n).get("data").targetOption,o.link.title=A&&A.text}return o.selectionText=Object(l.getSelectionText)(e),o},t.doExpand=function(){t.setState({expanded:!0})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doCollapse=function(){t.setState({expanded:!1})},t.removeLink=function(){var e=t.props,n=e.editorState,r=e.onChange,o=t.state.currentEntity,A=n.getSelection();if(o){var i=Object(l.getEntityRange)(n,o);A=A.getIsBackward()?A.merge({anchorOffset:i.end,focusOffset:i.start}):A.merge({anchorOffset:i.start,focusOffset:i.end}),r(a.RichUtils.toggleLink(n,A,null))}},t.addLink=function(e,n,r){var o=t.props,A=o.editorState,i=o.onChange,c=t.state.currentEntity,s=A.getSelection();if(c){var f=Object(l.getEntityRange)(A,c);s=s.getIsBackward()?s.merge({anchorOffset:f.end,focusOffset:f.start}):s.merge({anchorOffset:f.start,focusOffset:f.end})}var d=A.getCurrentContent().createEntity("LINK","MUTABLE",{url:n,targetOption:r}).getLastCreatedEntityKey(),C=a.Modifier.replaceText(A.getCurrentContent(),s,"".concat(e),A.getCurrentInlineStyle(),d),u=a.EditorState.push(A,C,"insert-characters");s=u.getSelection().merge({anchorOffset:s.get("anchorOffset")+e.length,focusOffset:s.get("anchorOffset")+e.length}),u=a.EditorState.acceptSelection(u,s),C=a.Modifier.insertText(u.getCurrentContent(),s," ",u.getCurrentInlineStyle(),void 0),i(a.EditorState.push(u,C,"insert-characters")),t.doCollapse()};var r=t.props,o=r.editorState,i=r.modalHandler;return t.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:o?Object(l.getSelectionEntity)(o):void 0},i.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentEntity:Object(l.getSelectionEntity)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,A=this.getCurrentValues(),i=A.link,a=A.selectionText,l=t.component||St;return o.a.createElement(l,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:i,selectionText:a},onChange:this.onChange})}}])&&Ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();qt.propTypes={editorState:i.a.object.isRequired,onChange:i.a.func.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var Jt=qt;function _t(e){return(_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function en(e,t){return(en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tn(e){var t=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(e){return!1}}();return function(){var n,r=nn(e);if(t){var o=nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===_t(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function nn(e){return(nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(27);var rn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&en(e,t)}(A,r.Component);var e,t,n=tn(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={embeddedLink:"",height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width},e.onChange=function(){var t=e.props.onChange,n=e.state;t(n.embeddedLink,n.height,n.width)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.expanded,r=t.config;if(!n&&e.expanded){var o=r.defaultSize,A=o.height,i=o.width;this.setState({embeddedLink:"",height:A,width:i})}}},{key:"rendeEmbeddedLinkModal",value:function(){var e=this.state,t=e.embeddedLink,n=e.height,r=e.width,A=this.props,i=A.config.popupClassName,a=A.doCollapse,l=A.translations;return o.a.createElement("div",{className:s()("rdw-embedded-modal",i),onClick:I},o.a.createElement("div",{className:"rdw-embedded-modal-header"},o.a.createElement("span",{className:"rdw-embedded-modal-header-option"},l["components.controls.embedded.embeddedlink"],o.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),o.a.createElement("div",{className:"rdw-embedded-modal-link-section"},o.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},o.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:l["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:t,name:"embeddedLink"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("div",{className:"rdw-embedded-modal-size"},o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:n,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:r,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),o.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!t||!n||!r},l["generic.add"]),o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:a},l["generic.cancel"])))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,A=t.title,i=e.expanded,a=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":i,"aria-label":"rdw-embedded-control"},o.a.createElement(N,{className:s()(r),value:"unordered-list-item",onClick:a,title:A||l["components.controls.embedded.embedded"]},o.a.createElement("img",{src:n,alt:""})),i?this.rendeEmbeddedLinkModal():void 0)}}])&&$t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();rn.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,onChange:i.a.func,config:i.a.object,translations:i.a.object,doCollapse:i.a.func};var on=rn;function An(e){return(An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function an(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ln(e,t){return(ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cn(e){var t=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(e){return!1}}();return function(){var n,r=sn(e);if(t){var o=sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===An(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function sn(e){return(sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ln(e,t)}(A,r.Component);var e,t,n=cn(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},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.addEmbeddedLink=function(t,n,r){var o=e.props,A=o.editorState,i=o.onChange,l=o.config.embedCallback,c=l?l(t):t,s=A.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:c,height:n,width:r}).getLastCreatedEntityKey();i(a.AtomicBlockUtils.insertAtomicBlock(A,s," ")),e.doCollapse()},e}return e=A,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,A=t.component||on;return o.a.createElement(A,{config:t,translations:n,onChange:this.addEmbeddedLink,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&an(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();fn.propTypes={editorState:i.a.object.isRequired,onChange:i.a.func.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var dn=fn;function Cn(e){return(Cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pn(e,t){return(pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function gn(e){var t=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(e){return!1}}();return function(){var n,r=hn(e);if(t){var o=hn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Cn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function hn(e){return(hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(28);var mn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pn(e,t)}(A,r.Component);var e,t,n=gn(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onChange=function(t){(0,e.props.onChange)(t.target.innerHTML)},e}return e=A,(t=[{key:"renderEmojiModal",value:function(){var e=this,t=this.props.config,n=t.popupClassName,r=t.emojis;return o.a.createElement("div",{className:s()("rdw-emoji-modal",n),onClick:I},r.map((function(t,n){return o.a.createElement("span",{key:n,className:"rdw-emoji-icon",alt:"",onClick:e.onChange},t)})))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,A=t.title,i=e.expanded,a=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":i,title:A||l["components.controls.emoji.emoji"]},o.a.createElement(N,{className:s()(r),value:"unordered-list-item",onClick:a},o.a.createElement("img",{src:n,alt:""})),i?this.renderEmojiModal():void 0)}}])&&un(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();mn.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,onChange:i.a.func,config:i.a.object,translations:i.a.object};var En=mn;function bn(e){return(bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vn(e,t){return(vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Bn(e){var t=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(e){return!1}}();return function(){var n,r=In(e);if(t){var o=In(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===bn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function In(e){return(In=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vn(e,t)}(A,r.Component);var e,t,n=Bn(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},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.addEmoji=function(t){var n=e.props,r=n.editorState,o=n.onChange,A=a.Modifier.replaceText(r.getCurrentContent(),r.getSelection(),t,r.getCurrentInlineStyle());o(a.EditorState.push(r,A,"insert-characters")),e.doCollapse()},e}return e=A,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,A=t.component||En;return o.a.createElement(A,{config:t,translations:n,onChange:this.addEmoji,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&wn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function Mn(){return o.a.createElement("div",{className:"rdw-spinner"},o.a.createElement("div",{className:"rdw-bounce1"}),o.a.createElement("div",{className:"rdw-bounce2"}),o.a.createElement("div",{className:"rdw-bounce3"}))}function Ln(e){return(Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qn(e,t){return(Qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Hn(e){var t=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(e){return!1}}();return function(){var n,r=Dn(e);if(t){var o=Dn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ln(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Dn(e){return(Dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}xn.propTypes={editorState:i.a.object.isRequired,onChange:i.a.func.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(29),n(30);var kn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qn(e,t)}(A,r.Component);var e,t,n=Hn(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:e.props.config.uploadEnabled&&!!e.props.config.uploadCallback,showImageLoading:!1,height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width,alt:""},e.onDragEnter=function(t){e.stopPropagation(t),e.setState({dragEnter:!0})},e.onImageDrop=function(t){var n,r;t.preventDefault(),t.stopPropagation(),e.setState({dragEnter:!1}),r=t.dataTransfer.items?(n=t.dataTransfer.items,!0):(n=t.dataTransfer.files,!1);for(var o=0;o<n.length;o+=1)if((!r||"file"===n[o].kind)&&n[o].type.match("^image/")){var A=r?n[o].getAsFile():n[o];e.uploadImage(A)}},e.showImageUploadOption=function(){e.setState({uploadHighlighted:!0})},e.addImageFromState=function(){var t=e.state,n=t.imgSrc,r=t.alt,o=e.state,A=o.height,i=o.width,a=e.props.onChange;isNaN(A)||(A+="px"),isNaN(i)||(i+="px"),a(n,A,i,r)},e.showImageURLOption=function(){e.setState({uploadHighlighted:!1})},e.toggleShowImageLoading=function(){var t=!e.state.showImageLoading;e.setState({showImageLoading:t})},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.selectImage=function(t){t.target.files&&0<t.target.files.length&&e.uploadImage(t.target.files[0])},e.uploadImage=function(t){e.toggleShowImageLoading(),(0,e.props.config.uploadCallback)(t).then((function(t){var n=t.data;e.setState({showImageLoading:!1,dragEnter:!1,imgSrc:n.link||n.url}),e.fileUpload=!1})).catch((function(){e.setState({showImageLoading:!1,dragEnter:!1})}))},e.fileUploadClick=function(t){e.fileUpload=!0,t.stopPropagation()},e.stopPropagation=function(t){e.fileUpload?e.fileUpload=!1:(t.preventDefault(),t.stopPropagation())},e}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.config;e.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback,showImageLoading:!1,height:t.defaultSize.height,width:t.defaultSize.width,alt:""}):t.uploadCallback===e.config.uploadCallback&&t.uploadEnabled===e.config.uploadEnabled||this.setState({uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback})}},{key:"renderAddImageModal",value:function(){var e=this.state,t=e.imgSrc,n=e.uploadHighlighted,r=e.showImageLoading,A=e.dragEnter,i=e.height,a=e.width,l=e.alt,c=this.props,f=c.config,d=f.popupClassName,C=f.uploadCallback,u=f.uploadEnabled,p=f.urlEnabled,g=f.previewImage,h=f.inputAccept,m=f.alt,E=c.doCollapse,b=c.translations;return o.a.createElement("div",{className:s()("rdw-image-modal",d),onClick:this.stopPropagation},o.a.createElement("div",{className:"rdw-image-modal-header"},u&&C&&o.a.createElement("span",{onClick:this.showImageUploadOption,className:"rdw-image-modal-header-option"},b["components.controls.image.fileUpload"],o.a.createElement("span",{className:s()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":n})})),p&&o.a.createElement("span",{onClick:this.showImageURLOption,className:"rdw-image-modal-header-option"},b["components.controls.image.byURL"],o.a.createElement("span",{className:s()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":!n})}))),n?o.a.createElement("div",{onClick:this.fileUploadClick},o.a.createElement("div",{onDragEnter:this.onDragEnter,onDragOver:this.stopPropagation,onDrop:this.onImageDrop,className:s()("rdw-image-modal-upload-option",{"rdw-image-modal-upload-option-highlighted":A})},o.a.createElement("label",{htmlFor:"file",className:"rdw-image-modal-upload-option-label"},g&&t?o.a.createElement("img",{src:t,alt:t,className:"rdw-image-modal-upload-option-image-preview"}):t||b["components.controls.image.dropFileText"])),o.a.createElement("input",{type:"file",id:"file",accept:h,onChange:this.selectImage,className:"rdw-image-modal-upload-option-input"})):o.a.createElement("div",{className:"rdw-image-modal-url-section"},o.a.createElement("input",{className:"rdw-image-modal-url-input",placeholder:b["components.controls.image.enterlink"],name:"imgSrc",onChange:this.updateValue,onBlur:this.updateValue,value:t}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),m.present&&o.a.createElement("div",{className:"rdw-image-modal-size"},o.a.createElement("span",{className:"rdw-image-modal-alt-lbl"},"Alt Text"),o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:l,name:"alt",className:"rdw-image-modal-alt-input",placeholder:"alt"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},m.mandatory&&"*")),o.a.createElement("div",{className:"rdw-image-modal-size"},"↕ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:i,name:"height",className:"rdw-image-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")," ↔ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:a,name:"width",className:"rdw-image-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",{className:"rdw-image-modal-btn-section"},o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:this.addImageFromState,disabled:!t||!i||!a||m.mandatory&&!l},b["generic.add"]),o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:E},b["generic.cancel"])),r?o.a.createElement("div",{className:"rdw-image-modal-spinner"},o.a.createElement(Mn,null)):void 0)}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,A=t.title,i=e.expanded,a=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":i,"aria-label":"rdw-image-control"},o.a.createElement(N,{className:s()(r),value:"unordered-list-item",onClick:a,title:A||l["components.controls.image.image"]},o.a.createElement("img",{src:n,alt:""})),i?this.renderAddImageModal():void 0)}}])&&yn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();kn.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,doCollapse:i.a.func,onChange:i.a.func,config:i.a.object,translations:i.a.object};var Vn=kn;function Zn(e){return(Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nn(e,t){return(Nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function zn(e){var t=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(e){return!1}}();return function(){var n,r=Pn(e);if(t){var o=Pn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Zn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Pn(e){return(Pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Sn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nn(e,t)}(A,r.Component);var e,t,n=zn(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.addImage=function(e,n,r,o){var A=t.props,i=A.editorState,l=A.onChange,c={src:e,height:n,width:r};A.config.alt.present&&(c.alt=o);var s=i.getCurrentContent().createEntity("IMAGE","MUTABLE",c).getLastCreatedEntityKey();l(a.AtomicBlockUtils.insertAtomicBlock(i,s," ")),t.doCollapse()};var r=t.props.modalHandler;return t.state={expanded:!1},r.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,A=t.component||Vn;return o.a.createElement(A,{config:t,translations:n,onChange:this.addImage,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&jn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function On(e){var t=e.config,n=e.onChange,r=e.translations,A=t.icon,i=t.className,a=t.title;return o.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},o.a.createElement(N,{className:s()(i),onClick:n,title:a||r["components.controls.remove.remove"]},o.a.createElement("img",{src:A,alt:""})))}Sn.propTypes={editorState:i.a.object.isRequired,onChange:i.a.func.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var Fn=Sn;n(31),On.propTypes={onChange:i.a.func,config:i.a.object,translations:i.a.object};var Tn=On;function Rn(e){return(Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xn(e,t){return(Xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Yn(e){var t=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(e){return!1}}();return function(){var n,r=Un(e);if(t){var o=Un(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Rn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Un(e){return(Un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Kn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xn(e,t)}(A,r.Component);var e,t,n=Yn(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.removeInlineStyles=function(){var t=e.props,n=t.editorState;(0,t.onChange)(e.removeAllInlineStyles(n))},e.removeAllInlineStyles=function(e){var t=e.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(n){t=a.Modifier.removeInlineStyle(t,e.getSelection(),n)})),v(Object(l.getSelectionCustomInlineStyle)(e,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),(function(n,r){r&&(t=a.Modifier.removeInlineStyle(t,e.getSelection(),r))})),a.EditorState.push(e,t,"change-inline-style")},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e}return e=A,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,A=t.component||Tn;return o.a.createElement(A,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&Gn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function Wn(e){return(Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jn(e,t){return(Jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _n(e){var t=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(e){return!1}}();return function(){var n,r=$n(e);if(t){var o=$n(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Wn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function $n(e){return($n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Kn.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object.isRequired,config:i.a.object,translations:i.a.object,modalHandler:i.a.object},n(32);var er=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jn(e,t)}(A,r.Component);var e,t,n=_n(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onChange=function(t){(0,e.props.onChange)(t)},e}return e=A,(t=[{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,A=e.onExpandEvent,i=e.doCollapse,a=e.currentState,l=a.undoDisabled,c=a.redoDisabled,f=e.translations,d=t.options,C=t.undo,u=t.redo,p=t.className,g=t.dropdownClassName,h=t.title;return o.a.createElement(T,{className:s()("rdw-history-dropdown",p),optionWrapperClassName:s()(g),expanded:n,doExpand:r,doCollapse:i,onExpandEvent:A,"aria-label":"rdw-history-control",title:h||f["components.controls.history.history"]},o.a.createElement("img",{src:x(t),alt:""}),0<=d.indexOf("undo")&&o.a.createElement(W,{value:"undo",onClick:this.onChange,disabled:l,className:s()("rdw-history-dropdownoption",C.className),title:C.title||f["components.controls.history.undo"]},o.a.createElement("img",{src:C.icon,alt:""})),0<=d.indexOf("redo")&&o.a.createElement(W,{value:"redo",onClick:this.onChange,disabled:c,className:s()("rdw-history-dropdownoption",u.className),title:u.title||f["components.controls.history.redo"]},o.a.createElement("img",{src:u.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.undo,A=t.redo,i=t.className,a=e.currentState,l=a.undoDisabled,c=a.redoDisabled,f=e.translations;return o.a.createElement("div",{className:s()("rdw-history-wrapper",i),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&o.a.createElement(N,{value:"undo",onClick:this.onChange,className:s()(r.className),disabled:l,title:r.title||f["components.controls.history.undo"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("redo")&&o.a.createElement(N,{value:"redo",onClick:this.onChange,className:s()(A.className),disabled:c,title:A.title||f["components.controls.history.redo"]},o.a.createElement("img",{src:A.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&qn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function tr(e){return(tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rr(e,t){return(rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function or(e){var t=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(e){return!1}}();return function(){var n,r=Ar(e);if(t){var o=Ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Ar(e){return(Ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}er.propTypes={expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,config:i.a.object,onChange:i.a.func,currentState:i.a.object,translations:i.a.object};var ir=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rr(e,t)}(A,r.Component);var e,t,n=or(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){var n=t.props,r=n.editorState,o=n.onChange,A=a.EditorState[e](r);A&&o(A)},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r={expanded:!(t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},o=e.editorState,i=e.modalHandler;return o&&(r.undoDisabled=0===o.getUndoStack().size,r.redoDisabled=0===o.getRedoStack().size),t.state=r,i.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&e.editorState!==t&&this.setState({undoDisabled:0===t.getUndoStack().size,redoDisabled:0===t.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,A=r.undoDisabled,i=r.redoDisabled,a=r.expanded,l=t.component||er;return o.a.createElement(l,{config:t,translations:n,currentState:{undoDisabled:A,redoDisabled:i},expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&nr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();ir.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var ar={inline:ae,blockType:we,fontSize:Ve,fontFamily:Ye,list:ot,textAlign:gt,colorPicker:Ht,link:Jt,embedded:dn,emoji:xn,image:Fn,remove:Kn,history:ir},lr=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,cr=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function sr(e){return String(e).replace(lr,"").match(cr)?e:"#"}function fr(e){return(fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cr(e,t){return(Cr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ur(e){var t=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(e){return!1}}();return function(){var n,r=pr(e);if(t){var o=pr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===fr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function pr(e){return(pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gr(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"LINK"===n.getEntity(t).getType()}),t)}function hr(e){var t,n=e.showOpenOptionOnHover;return(t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cr(e,t)}(i,r.Component);var e,t,A=ur(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=A.call.apply(A,[this].concat(n))).state={showPopOver:!1},e.openLink=function(){var t=e.props,n=t.entityKey,r=t.contentState.getEntity(n).getData().url,o=window.open(sr(r),"blank");o&&o.focus()},e.toggleShowPopOver=function(){var t=!e.state.showPopOver;e.setState({showPopOver:t})},e}return e=i,(t=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.entityKey,A=e.contentState.getEntity(r).getData(),i=A.url,a=A.targetOption,l=this.state.showPopOver;return o.a.createElement("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver},o.a.createElement("a",{href:sr(i),target:a},t),l&&n?o.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuMDcyIDBIOC45MTVhLjkyNS45MjUgMCAwIDAgMCAxLjg0OWgyLjkyNUw2Ljk2MSA2LjcyN2EuOTE4LjkxOCAwIDAgMC0uMjcuNjU0YzAgLjI0Ny4wOTUuNDguMjcuNjU0YS45MTguOTE4IDAgMCAwIC42NTQuMjcuOTE4LjkxOCAwIDAgMCAuNjUzLS4yN2w0Ljg4LTQuODh2Mi45MjZhLjkyNS45MjUgMCAwIDAgMS44NDggMFYuOTI0QS45MjUuOTI1IDAgMCAwIDE0LjA3MiAweiIvPjxwYXRoIGQ9Ik0xMC42MjMgMTMuNDExSDEuNTg1VjQuMzcyaDYuNzk4bDEuNTg0LTEuNTg0SC43OTJBLjc5Mi43OTIgMCAwIDAgMCAzLjU4djEwLjYyNGMwIC40MzcuMzU1Ljc5Mi43OTIuNzkyaDEwLjYyNGEuNzkyLjc5MiAwIDAgMCAuNzkyLS43OTJWNS4wMjlsLTEuNTg1IDEuNTg0djYuNzk4eiIvPjwvZz48L3N2Zz4=",alt:"",onClick:this.openLink,className:"rdw-link-decorator-icon"}):void 0)}}])&&dr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}()).propTypes={entityKey:i.a.string.isRequired,children:i.a.array,contentState:i.a.object},t}function mr(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}n(33),n(34);var Er=mr((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getMentionComponent=function(){function e(e){var n=e.entityKey,r=e.children,A=e.contentState.getEntity(n).getData(),i=A.url,a=A.value;return o.a.createElement("a",{href:i||a,className:s()("rdw-mention-link",t)},r)}var t=n.className;return e.propTypes={entityKey:i.a.number,children:i.a.array,contentState:i.a.object},e},this.getMentionDecorator=function(){return{strategy:n.findMentionEntities,component:n.getMentionComponent()}},this.className=t}));Er.prototype.findMentionEntities=function(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"MENTION"===n.getEntity(t).getType()}),t)};var br=Er;function wr(e){return(wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vr(e,t){return(vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Br(e){var t=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(e){return!1}}();return function(){var n,r=Ir(e);if(t){var o=Ir(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===wr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Ir(e){return(Ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mr(e,t,n){return t&&xr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(35);var yr=Mr((function e(t){var n=this;Lr(this,e),this.findSuggestionEntities=function(e,t){if(n.config.getEditorState()){var r=n.config,o=r.separator,A=r.trigger,i=r.getSuggestions,a=(0,r.getEditorState)().getSelection();if(a.get("anchorKey")===e.get("key")&&a.get("anchorKey")===a.get("focusKey")){var l=e.getText(),c=(l=l.substr(0,a.get("focusOffset")===l.length-1?l.length:a.get("focusOffset")+1)).lastIndexOf(o+A),s=o+A;if((void 0===c||c<0)&&l[0]===A&&(c=0,s=A),0<=c){var f=l.substr(c+s.length,l.length);i().some((function(e){return!!e.value&&(n.config.caseSensitive?0<=e.value.indexOf(f):0<=e.value.toLowerCase().indexOf(f&&f.toLowerCase()))}))&&t(0===c?0:c+1,l.length)}}}},this.getSuggestionComponent=function(){var e,t=this.config;return(e=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vr(e,t)}(n,r.Component);var e=Br(n);function n(){var r;Lr(this,n);for(var o=arguments.length,A=new Array(o),i=0;i<o;i++)A[i]=arguments[i];return(r=e.call.apply(e,[this].concat(A))).state={style:{left:15},activeOption:-1,showSuggestions:!0},r.onEditorKeyDown=function(e){var t=r.state.activeOption,n={};"ArrowDown"===e.key?(e.preventDefault(),t===r.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=t+1):"ArrowUp"===e.key?n.activeOption=t<=0?r.filteredSuggestions.length-1:t-1:"Escape"===e.key?(n.showSuggestions=!1,E()):"Enter"===e.key&&r.addMention(),r.setState(n)},r.onOptionMouseEnter=function(e){var t=e.target.getAttribute("data-index");r.setState({activeOption:t})},r.onOptionMouseLeave=function(){r.setState({activeOption:-1})},r.setSuggestionReference=function(e){r.suggestion=e},r.setDropdownReference=function(e){r.dropdown=e},r.closeSuggestionDropdown=function(){r.setState({showSuggestions:!1})},r.filteredSuggestions=[],r.filterSuggestions=function(e){var n=e.children[0].props.text.substr(1),o=t.getSuggestions();r.filteredSuggestions=o&&o.filter((function(e){return!n||0===n.length||(t.caseSensitive?0<=e.value.indexOf(n):0<=e.value.toLowerCase().indexOf(n&&n.toLowerCase()))}))},r.addMention=function(){var e=r.state.activeOption,n=t.getEditorState(),o=t.onChange,A=t.separator,i=t.trigger,c=r.filteredSuggestions[e];c&&function(e,t,n,r,o){var A=o.value,i=o.url,c=e.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(r).concat(A),value:A,url:i}).getLastCreatedEntityKey(),s=Object(l.getSelectedBlock)(e).getText(),f=e.getSelection().focusOffset,d=(s.lastIndexOf(n+r,f)||0)+1,C=!1;s.length===d+1&&(f=s.length)," "===s[f]&&(C=!0);var u=e.getSelection().merge({anchorOffset:d,focusOffset:f}),p=a.EditorState.acceptSelection(e,u),g=a.Modifier.replaceText(p.getCurrentContent(),u,"".concat(r).concat(A),p.getCurrentInlineStyle(),c);p=a.EditorState.push(p,g,"insert-characters"),C||(u=p.getSelection().merge({anchorOffset:d+A.length+r.length,focusOffset:d+A.length+r.length}),p=a.EditorState.acceptSelection(p,u),g=a.Modifier.insertText(p.getCurrentContent(),u," ",p.getCurrentInlineStyle(),void 0)),t(a.EditorState.push(p,g,"insert-characters"))}(n,o,A,i,c)},r}return Mr(n,[{key:"componentDidMount",value:function(){var e,n,r,o=t.getWrapperRef().getBoundingClientRect(),A=this.suggestion.getBoundingClientRect(),i=this.dropdown.getBoundingClientRect();o.width<A.left-o.left+i.width?n=15:e=15,o.bottom<i.bottom&&(r=0),this.setState({style:{left:e,right:n,bottom:r}}),h.registerCallBack(this.onEditorKeyDown),m(),t.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&(this.filterSuggestions(e),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){h.deregisterCallBack(this.onEditorKeyDown),E(),t.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var e=this,n=this.props.children,r=this.state,A=r.activeOption,i=r.showSuggestions,a=t.dropdownClassName,l=t.optionClassName;return o.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:t.modalHandler.onSuggestionClick,"aria-haspopup":"true","aria-label":"rdw-suggestion-popup"},o.a.createElement("span",null,n),i&&o.a.createElement("span",{className:s()("rdw-suggestion-dropdown",a),contentEditable:"false",suppressContentEditableWarning:!0,style:this.state.style,ref:this.setDropdownReference},this.filteredSuggestions.map((function(t,n){return o.a.createElement("span",{key:n,spellCheck:!1,onClick:e.addMention,"data-index":n,onMouseEnter:e.onOptionMouseEnter,onMouseLeave:e.onOptionMouseLeave,className:s()("rdw-suggestion-option",l,{"rdw-suggestion-option-active":n===A})},t.text)}))))}}]),n}()).propTypes={children:i.a.array},e}.bind(this),this.getSuggestionDecorator=function(){return{strategy:n.findSuggestionEntities,component:n.getSuggestionComponent()}};var A=t.separator,c=t.trigger,f=t.getSuggestions,d=t.onChange,C=t.getEditorState,u=t.getWrapperRef,p=t.caseSensitive,g=t.dropdownClassName,b=t.optionClassName,w=t.modalHandler;this.config={separator:A,trigger:c,getSuggestions:f,onChange:d,getEditorState:C,getWrapperRef:u,caseSensitive:p,dropdownClassName:g,optionClassName:b,modalHandler:w}})),Qr=function(e){return[new br(e.mentionClassName).getMentionDecorator(),new yr(e).getSuggestionDecorator()]};function Hr(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Dr(e){var t=e.block,n=e.contentState.getEntity(t.getEntityAt(0)).getData(),r=n.src,A=n.height,i=n.width;return o.a.createElement("iframe",{height:A,width:i,src:r,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}n(36);var kr=Hr((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getHashtagComponent=function(){function e(e){var n=e.children,r=n[0].props.text;return o.a.createElement("a",{href:r,className:s()("rdw-hashtag-link",t)},n)}var t=n.className;return e.propTypes={children:i.a.object},e},this.findHashtagEntities=function(e,t){for(var r=e.getText(),o=0,A=0;0<r.length&&0<=o;)if(r[0]===n.hashCharacter?(A=o=0,r=r.substr(n.hashCharacter.length)):0<=(o=r.indexOf(n.separator+n.hashCharacter))&&(r=r.substr(o+(n.separator+n.hashCharacter).length),A+=o+n.separator.length),0<=o){var i=0<=r.indexOf(n.separator)?r.indexOf(n.separator):r.length,a=r.substr(0,i);a&&0<a.length&&(t(A,A+a.length+n.hashCharacter.length),A+=n.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:n.findHashtagEntities,component:n.getHashtagComponent()}},this.className=t.className,this.hashCharacter=t.hashCharacter||"#",this.separator=t.separator||" "})),Vr=function(e){return new kr(e).getHashtagDecorator()};Dr.propTypes={block:i.a.object,contentState:i.a.object};var Zr=Dr;function jr(e){return(jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zr(e,t){return(zr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pr(e){var t=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(e){return!1}}();return function(){var n,r=Sr(e);if(t){var o=Sr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===jr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Sr(e){return(Sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(37);var Or=function(e){var t;return(t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zr(e,t)}(i,r.Component);var t,n,A=Pr(i);function i(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=A.call.apply(A,[this].concat(r))).state={hovered:!1},t.setEntityAlignmentLeft=function(){t.setEntityAlignment("left")},t.setEntityAlignmentRight=function(){t.setEntityAlignment("right")},t.setEntityAlignmentCenter=function(){t.setEntityAlignment("none")},t.setEntityAlignment=function(n){var r=t.props,o=r.block,A=r.contentState,i=o.getEntityAt(0);A.mergeEntityData(i,{alignment:n}),e.onChange(a.EditorState.push(e.getEditorState(),A,"change-block-data")),t.setState({dummy:!0})},t.toggleHovered=function(){var e=!t.state.hovered;t.setState({hovered:e})},t}return t=i,(n=[{key:"renderAlignmentOptions",value:function(e){return o.a.createElement("div",{className:s()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":"right"===e})},o.a.createElement(N,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),o.a.createElement(N,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),o.a.createElement(N,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var t=this.props,n=t.block,r=t.contentState,A=this.state.hovered,i=e.isReadOnly,a=e.isImageAlignmentEnabled,l=r.getEntity(n.getEntityAt(0)).getData(),c=l.src,f=l.alignment,d=l.height,C=l.width,u=l.alt;return o.a.createElement("span",{onMouseEnter:this.toggleHovered,onMouseLeave:this.toggleHovered,className:s()("rdw-image-alignment",{"rdw-image-left":"left"===f,"rdw-image-right":"right"===f,"rdw-image-center":!f||"none"===f})},o.a.createElement("span",{className:"rdw-image-imagewrapper"},o.a.createElement("img",{src:c,alt:u,style:{height:d,width:C}}),!i()&&A&&a()?this.renderAlignmentOptions(f):void 0))}}])&&Nr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}()).propTypes={block:i.a.object,contentState:i.a.object},t},Fr=function(e,t){return function(n){if("function"==typeof t){var r=t(n,e,e.getEditorState);if(r)return r}if("atomic"===n.getType()){var o=e.getEditorState().getCurrentContent().getEntity(n.getEntityAt(0));if(o&&"IMAGE"===o.type)return{component:Or(e),editable:!1};if(o&&"EMBEDDED_LINK"===o.type)return{component:Zr,editable:!1}}}},Tr={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+PHBhdGggZD0iTTYuMjM2IDBjMS42NTIgMCAyLjk0LjI5OCAzLjg2Ni44OTMuOTI1LjU5NSAxLjM4OCAxLjQ4NSAxLjM4OCAyLjY2OSAwIC42MDEtLjE3MyAxLjEzOS0uNTE2IDEuNjEtLjM0My40NzQtLjg0NC44My0xLjQ5OSAxLjA2OC44NDMuMTY3IDEuNDc0LjUyMyAxLjg5NSAxLjA3MS40MTkuNTUuNjMgMS4xODMuNjMgMS45MDMgMCAxLjI0NS0uNDQ0IDIuMTg3LTEuMzMgMi44MjUtLjg4Ni42NDEtMi4xNDQuOTYxLTMuNzY5Ljk2MUgwdi0yLjE2N2gxLjQ5NFYyLjE2N0gwVjBoNi4yMzZ6TTQuMzA4IDUuNDQ2aDIuMDI0Yy43NTIgMCAxLjMzLS4xNDMgMS43MzQtLjQzLjQwNS0uMjg1LjYwOC0uNzAxLjYwOC0xLjI1IDAtLjYtLjIwNC0xLjA0NC0uNjEyLTEuMzMtLjQwOC0uMjg2LTEuMDE2LS40MjctMS44MjYtLjQyN0g0LjMwOHYzLjQzN3ptMCAxLjgwNFYxMWgyLjU5M2MuNzQ3IDAgMS4zMTQtLjE1MiAxLjcwNy0uNDUyLjM5LS4zLjU4OC0uNzQ1LjU4OC0xLjMzNCAwLS42MzYtLjE2OC0xLjEyNC0uNS0xLjQ2LS4zMzYtLjMzNS0uODY0LS41MDQtMS41ODItLjUwNEg0LjMwOHoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},italic:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTcgM1YyaDR2MUg5Ljc1M2wtMyAxMEg4djFINHYtMWgxLjI0N2wzLTEwSDd6Ii8+PC9zdmc+",className:void 0,title:void 0},underline:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTYuMDQ1IDJ2Ljk5Mkw0Ljc4NSAzdjUuMTcyYzAgLjg1OS4yNDMgMS41MTIuNzI3IDEuOTU3czEuMTI0LjY2OCAxLjkxOC42NjhjLjgzNiAwIDEuNTA5LS4yMjEgMi4wMTktLjY2NC41MTEtLjQ0Mi43NjYtMS4wOTYuNzY2LTEuOTYxVjNsLTEuMjYtLjAwOFYySDEzdi45OTJMMTEuNzM5IDN2NS4xNzJjMCAxLjIzNC0uMzk4IDIuMTgxLTEuMTk1IDIuODQtLjc5Ny42NTktMS44MzUuOTg4LTMuMTE0Ljk4OC0xLjI0MiAwLTIuMjQ4LS4zMjktMy4wMTctLjk4OC0uNzY5LS42NTktMS4xNTItMS42MDUtMS4xNTItMi44NFYzTDIgMi45OTJWMmg0LjA0NXpNMiAxM2gxMXYxSDJ6Ii8+PC9zdmc+",className:void 0,title:void 0},strikethrough:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4wNCA1Ljk1NGg2LjIxNWE3LjQxMiA3LjQxMiAwIDAgMC0uNzk1LS40MzggMTEuOTA3IDExLjkwNyAwIDAgMC0xLjQ0Ny0uNTU3Yy0xLjE4OC0uMzQ4LTEuOTY2LS43MTEtMi4zMzQtMS4wODgtLjM2OC0uMzc3LS41NTItLjc3LS41NTItMS4xODEgMC0uNDk1LjE4Ny0uOTA2LjU2LTEuMjMyLjM4LS4zMzEuODg3LS40OTcgMS41MjMtLjQ5Ny42OCAwIDEuMjY2LjI1NSAxLjc1Ny43NjcuMjk1LjMxNS41ODIuODkxLjg2MSAxLjczbC4xMTcuMDE2LjcwMy4wNS4xLS4wMjRjLjAyOC0uMTUyLjA0Mi0uMjc5LjA0Mi0uMzggMC0uMzM3LS4wMzktLjg1Mi0uMTE3LTEuNTQ0YTkuMzc0IDkuMzc0IDAgMCAwLS4xNzYtLjk5NUM5Ljg4LjM3OSA5LjM4NS4yNDQgOS4wMTcuMTc2IDguMzY1LjA3IDcuODk5LjAxNiA3LjYyLjAxNmMtMS40NSAwLTIuNTQ1LjM1Ny0zLjI4NyAxLjA3MS0uNzQ3LjcyLTEuMTIgMS41ODktMS4xMiAyLjYwNyAwIC41MTEuMTMzIDEuMDQuNCAxLjU4Ni4xMjkuMjUzLjI3LjQ3OC40MjcuNjc0ek04LjI4IDguMTE0Yy41NzUuMjM2Ljk1Ny40MzYgMS4xNDcuNTk5LjQ1MS40MS42NzcuODUyLjY3NyAxLjMyNCAwIC4zODMtLjEzLjc0NS0uMzkzIDEuMDg4LS4yNS4zMzgtLjU5LjU4LTEuMDIuNzI2YTMuNDE2IDMuNDE2IDAgMCAxLTEuMTYzLjIyOGMtLjQwNyAwLS43NzUtLjA2Mi0xLjEwNC0uMTg2YTIuNjk2IDIuNjk2IDAgMCAxLS44NzgtLjQ4IDMuMTMzIDMuMTMzIDAgMCAxLS42Ny0uNzk0IDEuNTI3IDEuNTI3IDAgMCAxLS4xMDQtLjIyNyA1Ny41MjMgNTcuNTIzIDAgMCAwLS4xODgtLjQ3MyAyMS4zNzEgMjEuMzcxIDAgMCAwLS4yNTEtLjU5OWwtLjg1My4wMTd2LjM3MWwtLjAxNy4zMTNhOS45MiA5LjkyIDAgMCAwIDAgLjU3M2MuMDExLjI3LjAxNy43MDkuMDE3IDEuMzE2di4xMWMwIC4wNzkuMDIyLjE0LjA2Ny4xODUuMDgzLjA2OC4yODQuMTQ3LjYwMi4yMzdsMS4xNy4zMzdjLjQ1Mi4xMy45OTYuMTk0IDEuNjMyLjE5NC42ODYgMCAxLjI1Mi0uMDU5IDEuNjk4LS4xNzdhNC42OTQgNC42OTQgMCAwIDAgMS4yOC0uNTU3Yy40MDEtLjI1OS43MDUtLjQ4Ni45MTEtLjY4My4yNjgtLjI3Ni40NjYtLjU2OC41OTQtLjg3OGE0Ljc0IDQuNzQgMCAwIDAgLjM0My0xLjc4OGMwLS4yOTgtLjAyLS41NTctLjA1OC0uNzc2SDguMjgxek0xNC45MTQgNi41N2EuMjYuMjYgMCAwIDAtLjE5My0uMDc2SC4yNjhhLjI2LjI2IDAgMCAwLS4xOTMuMDc2LjI2NC4yNjQgMCAwIDAtLjA3NS4xOTR2LjU0YzAgLjA3OS4wMjUuMTQzLjA3NS4xOTRhLjI2LjI2IDAgMCAwIC4xOTMuMDc2SDE0LjcyYS4yNi4yNiAwIDAgMCAuMTkzLS4wNzYuMjY0LjI2NCAwIDAgMCAuMDc1LS4xOTR2LS41NGEuMjY0LjI2NCAwIDAgMC0uMDc1LS4xOTR6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},monospace:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzQ0NCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS4wMjEgMi45MDZjLjE4NiAxLjIxOS4zNzIgMS41LjM3MiAyLjcxOUMxLjM5MyA2LjM3NSAwIDcuMDMxIDAgNy4wMzF2LjkzOHMxLjM5My42NTYgMS4zOTMgMS40MDZjMCAxLjIxOS0uMTg2IDEuNS0uMzcyIDIuNzE5Qy43NDMgMTQuMDYzIDEuNzY0IDE1IDIuNjkzIDE1aDEuOTV2LTEuODc1cy0xLjY3Mi4xODgtMS42NzItLjkzOGMwLS44NDMuMTg2LS44NDMuMzcyLTIuNzE4LjA5My0uODQ0LS40NjQtMS41LTEuMDIyLTEuOTY5LjU1OC0uNDY5IDEuMTE1LTEuMDMxIDEuMDIyLTEuODc1QzMuMDY0IDMuNzUgMi45NyAzLjc1IDIuOTcgMi45MDZjMC0xLjEyNSAxLjY3Mi0xLjAzMSAxLjY3Mi0xLjAzMVYwaC0xLjk1QzEuNjcgMCAuNzQzLjkzOCAxLjAyIDIuOTA2ek0xMS45NzkgMi45MDZjLS4xODYgMS4yMTktLjM3MiAxLjUtLjM3MiAyLjcxOSAwIC43NSAxLjM5MyAxLjQwNiAxLjM5MyAxLjQwNnYuOTM4cy0xLjM5My42NTYtMS4zOTMgMS40MDZjMCAxLjIxOS4xODYgMS41LjM3MiAyLjcxOS4yNzggMS45NjktLjc0MyAyLjkwNi0xLjY3MiAyLjkwNmgtMS45NXYtMS44NzVzMS42NzIuMTg4IDEuNjcyLS45MzhjMC0uODQzLS4xODYtLjg0My0uMzcyLTIuNzE4LS4wOTMtLjg0NC40NjQtMS41IDEuMDIyLTEuOTY5LS41NTgtLjQ2OS0xLjExNS0xLjAzMS0xLjAyMi0xLjg3NS4xODYtMS44NzUuMzcyLTEuODc1LjM3Mi0yLjcxOSAwLTEuMTI1LTEuNjcyLTEuMDMxLTEuNjcyLTEuMDMxVjBoMS45NWMxLjAyMiAwIDEuOTUuOTM4IDEuNjcyIDIuOTA2eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},superscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMzA1IDEwLjE2NUwxMS44NjUgMTVIOS4wNTdsLTMuMTkyLTMuNTM2TDIuNzQ2IDE1SDBsNC41MjMtNC44MzVMLjIxOCA1LjYwM2gyLjc3TDUuOTg2IDguOTEgOS4wMSA1LjYwM2gyLjY0OWwtNC4zNTQgNC41NjJ6bTYuMjM0LTMuMjY5bDEuODc5LTEuMzA2Yy42NC0uNDE2IDEuMDYyLS44MDEgMS4yNjQtMS4xNTcuMjAxLS4zNTYuMzAyLS43MzguMzAyLTEuMTQ4IDAtLjY2OS0uMjM3LTEuMjEtLjcxLTEuNjItLjQ3NC0uNDExLTEuMDk3LS42MTctMS44NjgtLjYxNy0uNzQ0IDAtMS4zNC4yMDgtMS43ODUuNjI0LS40NDcuNDE2LS42NyAxLjA0My0uNjcgMS44ODFoMS40MzZjMC0uNS4wOTQtLjg0Ni4yODEtMS4wMzguMTg4LS4xOTEuNDQ1LS4yODcuNzcyLS4yODdzLjU4NS4wOTcuNzc3LjI5MmMuMTkuMTk1LjI4Ni40MzcuMjg2LjcyNiAwIC4yOS0uMDg5LjU1LS4yNjYuNzg1cy0uNjcuNjI4LTEuNDc5IDEuMTg0Yy0uNjkxLjQ3Ny0xLjYyNy45MjctMS45MDggMS4zNWwuMDE0IDEuNTY5SDE3VjYuODk2aC0zLjQ2MXoiLz48L3N2Zz4=",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:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS43MiAzLjQyN2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3LjAxIDEuNzIuMDFDLjc3LjAwOCAwIC43NzUgMCAxLjcxNWMwIC45NC43NzQgMS43MTEgMS43MiAxLjcxMXptMC0yLjYyNWMuNTEgMCAuOTIyLjQxMi45MjIuOTE0YS45Mi45MiAwIDAgMS0xLjg0MiAwIC45Mi45MiAwIDAgMSAuOTItLjkxNHpNMS43MiA4LjcwM2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3IDUuMjg3IDEuNzIgNS4yODdDLjc3IDUuMjg3IDAgNi4wNTIgMCA2Ljk5NXMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjJjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAwIDEtMS44NDIgMGMwLS41MDUuNDE1LS45MTQuOTItLjkxNHpNMS43MiAxMy45ODJjLjk1MSAwIDEuNzIyLS43NjggMS43MjItMS43MDggMC0uOTQzLS43NzQtMS43MDgtMS43MjEtMS43MDgtLjk0NyAwLTEuNzIxLjc2OC0xLjcyMSAxLjcwOHMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjVjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAxIDEtMS44NDIgMCAuOTIuOTIgMCAwIDEgLjkyLS45MTR6TTUuNzQ0IDIuMTE1aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OS40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDcuMzk0aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOThINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OC40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDEyLjY3aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjQuNC40IDAgMCAwIC40MDIuMzk4eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},ordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4yMDIgMS40NjZoOC4xNWMuMzM4IDAgLjYxMi0uMzIyLjYxMi0uNzIgMC0uMzk3LS4yNzQtLjcyLS42MTItLjcyaC04LjE1Yy0uMzM4IDAtLjYxMS4zMjMtLjYxMS43MiAwIC4zOTguMjczLjcyLjYxLjcyek0xMi4zNTIgNS43ODNoLTguMTVjLS4zMzggMC0uNjExLjMyMi0uNjExLjcyIDAgLjM5Ny4yNzMuNzIuNjEuNzJoOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5OC0uMjc0LS43Mi0uNjEyLS43MnpNMTIuMzUyIDExLjU0aC04LjE1Yy0uMzM4IDAtLjYxMS4zMjItLjYxMS43MiAwIC4zOTYuMjczLjcxOS42MS43MTloOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5Ny0uMjc0LS43Mi0uNjEyLS43MnpNLjc2NyAxLjI0OXYxLjgwMmMwIC4xOTUuMTM2LjM0My4zMTUuMzQzLjE3NiAwIC4zMTUtLjE1LjMxNS0uMzQzVi4zNTZjMC0uMTktLjEzMy0uMzM5LS4zMDItLjMzOS0uMTQ4IDAtLjIyMy4xMTgtLjI0Ny4xNTZhLjIyOC4yMjggMCAwIDAtLjAwMy4wMDVMLjU3OS42MjFhLjQ3NC40NzQgMCAwIDAtLjA5OC4yNzNjMCAuMTk0LjEyOC4zNTEuMjg2LjM1NXpNLjM1MiA4LjE5SDEuNTVjLjE1NyAwIC4yODUtLjE2Mi4yODUtLjM2MiAwLS4xOTgtLjEyOC0uMzU5LS4yODUtLjM1OUguNjh2LS4wMDZjMC0uMTA3LjIxLS4yODEuMzc4LS40MjIuMzM2LS4yNzguNzUzLS42MjUuNzUzLTEuMjI2IDAtLjU3LS4zNzYtMS0uODc0LTEtLjQ3NyAwLS44MzYuMzg1LS44MzYuODk3IDAgLjI5Ny4xNjQuNDAyLjMwNS40MDIuMiAwIC4zMjEtLjE3Ni4zMjEtLjM0NiAwLS4xMDYuMDIzLS4yMjguMjA0LS4yMjguMjQzIDAgLjI1LjI1NC4yNS4yODMgMCAuMjI4LS4yNTIuNDQyLS40OTUuNjQ5LS4zMDEuMjU1LS42NDIuNTQ0LS42NDIuOTkydi4zODRjMCAuMjA1LjE1OS4zNDMuMzA4LjM0M3pNMS43NyAxMC41NDNjMC0uNTkyLS4yOTYtLjkzMS0uODE0LS45MzEtLjY4IDAtLjg1OS41Ny0uODU5Ljg3MiAwIC4zNTEuMjIyLjM5LjMxOC4zOS4xODUgMCAuMzEtLjE0OC4zMS0uMzY2IDAtLjA4NC4wMjYtLjE4MS4yMjQtLjE4MS4xNDIgMCAuMi4wMjQuMi4yNjcgMCAuMjM3LS4wNDMuMjYzLS4yMTMuMjYzLS4xNjQgMC0uMjg4LjE1Mi0uMjg4LjM1NCAwIC4yLjEyNS4zNS4yOTEuMzUuMjI1IDAgLjI3LjEwOC4yNy4yODN2LjA3NWMwIC4yOTQtLjA5Ny4zNS0uMjc3LjM1LS4yNDggMC0uMjY3LS4xNS0uMjY3LS4xOTcgMC0uMTc0LS4wOTgtLjM1LS4zMTctLjM1LS4xOTIgMC0uMzA3LjE0MS0uMzA3LjM3OCAwIC40My4zMTMuODg4Ljg5NS44ODguNTY0IDAgLjkwMS0uNC45MDEtMS4wN3YtLjA3NGMwLS4yNzQtLjA3NC0uNTAyLS4yMTQtLjY2Ni4wOTYtLjE2My4xNDgtLjM4LjE0OC0uNjM1eiIvPjwvZz48L3N2Zz4=",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+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNTU2IDE0Ljg4N0gzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTggMTAuMTYySC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUzaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6TTExLjU1NiA1LjQzNUgzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTguNzA5SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTJ6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},right:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjE4IDE0Ljg4N0g2LjQ1YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOCAxMC4xNjJILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTNoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1M3pNMTQuNjE4IDUuNDM1SDYuNDVhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4LjcwOUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1MmgxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyeiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},justify:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjIgMTQuODg4SC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgMTAuMTYySC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgNS40MzZILjMyNWEuMzI2LjMyNiAwIDAgMSAwLS42NTJIMTQuNjJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42Mi43MUguMzI1YS4zMjYuMzI2IDAgMCAxIDAtLjY1M0gxNC42MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},title:void 0},colorPicker:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNDA2LjU4NWExLjk5OCAxLjk5OCAwIDAgMC0yLjgyNSAwbC0uNTQuNTRhLjc0MS43NDEgMCAxIDAtMS4wNDggMS4wNDhsLjE3NS4xNzUtNS44MjYgNS44MjUtMi4wMjIgMi4wMjNhLjkxLjkxIDAgMCAwLS4yNjYuNjAybC0uMDA1LjEwOHYuMDAybC0uMDgxIDEuODI5YS4zMDIuMzAyIDAgMCAwIC4zMDIuMzE2aC4wMTNsLjk3LS4wNDQuNTkyLS4wMjYuMjY4LS4wMTJjLjI5Ny0uMDEzLjU3OS0uMTM3Ljc5LS4zNDdsNy43Ny03Ljc3LjE0Ni4xNDRhLjc0Ljc0IDAgMCAwIDEuMDQ4IDBjLjI5LS4yOS4yOS0uNzU5IDAtMS4wNDhsLjU0LS41NGMuNzgtLjc4Ljc4LTIuMDQ0IDAtMi44MjV6TTguNzk1IDcuMzMzbC0yLjczLjUxNSA0LjQ1Mi00LjQ1MiAxLjEwOCAxLjEwNy0yLjgzIDIuODN6TTIuMDggMTMuNjczYy0xLjE0OCAwLTIuMDguMjk1LTIuMDguNjYgMCAuMzYzLjkzMi42NTggMi4wOC42NTggMS4xNSAwIDIuMDgtLjI5NCAyLjA4LS42NTkgMC0uMzY0LS45My0uNjU5LTIuMDgtLjY1OXoiLz48L2c+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+PHBhdGggZD0iTTEzLjk2Ny45NUEzLjIyNiAzLjIyNiAwIDAgMCAxMS42Ny4wMDJjLS44NyAwLTEuNjg2LjMzNy0yLjI5Ny45NDhMNy4xMDUgMy4yMThBMy4yNDcgMy4yNDcgMCAwIDAgNi4yNCA2LjI0YTMuMjI1IDMuMjI1IDAgMCAwLTMuMDIyLjg2NUwuOTUgOS4zNzNhMy4yNTMgMy4yNTMgMCAwIDAgMCA0LjU5NCAzLjIyNiAzLjIyNiAwIDAgMCAyLjI5Ny45NDhjLjg3IDAgMS42ODYtLjMzNiAyLjI5OC0uOTQ4TDcuODEyIDExLjdhMy4yNDcgMy4yNDcgMCAwIDAgLjg2NS0zLjAyMyAzLjIyNSAzLjIyNSAwIDAgMCAzLjAyMi0uODY1bDIuMjY4LTIuMjY3YTMuMjUyIDMuMjUyIDAgMCAwIDAtNC41OTV6TTcuMTA1IDEwLjk5M0w0LjgzNyAxMy4yNmEyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NSAyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LS42NTUgMi4yNTIgMi4yNTIgMCAwIDEgMC0zLjE4bDIuMjY4LTIuMjY4YTIuMjMyIDIuMjMyIDAgMCAxIDEuNTktLjY1NWMuNDMgMCAuODQxLjEyIDEuMTk1LjM0M0w0Ljc3MiA5LjQzOGEuNS41IDAgMSAwIC43MDcuNzA3bDEuOTM5LTEuOTM4Yy41NDUuODY4LjQ0MiAyLjAzLS4zMTMgMi43ODV6bTYuMTU1LTYuMTU1bC0yLjI2OCAyLjI2N2EyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NWMtLjQzMSAwLS44NDEtLjEyLTEuMTk1LS4zNDNsMS45MzgtMS45MzhhLjUuNSAwIDEgMC0uNzA3LS43MDdMNy40OTkgNi43MWEyLjI1MiAyLjI1MiAwIDAgMSAuMzEzLTIuNzg1bDIuMjY3LTIuMjY4YTIuMjMzIDIuMjMzIDAgMCAxIDEuNTktLjY1NSAyLjIzMyAyLjIzMyAwIDAgMSAyLjI0NiAyLjI0NWMwIC42MDMtLjIzMiAxLjE2OC0uNjU1IDEuNTl6IiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",className:void 0,title:void 0},unlink:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTMuOTU2IDEuMDM3YTMuNTUgMy41NSAwIDAgMC01LjAxNCAwTDYuNDM2IDMuNTQ0YS41NDUuNTQ1IDAgMSAwIC43Ny43N2wyLjUwOC0yLjUwNmEyLjQzOCAyLjQzOCAwIDAgMSAxLjczNS0uNzE1Yy42NTggMCAxLjI3NS4yNTQgMS43MzYuNzE1LjQ2LjQ2MS43MTUgMS4wNzguNzE1IDEuNzM2IDAgLjY1OC0uMjU0IDEuMjc0LS43MTUgMS43MzVMOS45MDcgOC41NThhMi40NTggMi40NTggMCAwIDEtMy40NzIgMCAuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3MSAzLjUzNCAzLjUzNCAwIDAgMCAyLjUwNyAxLjAzN2MuOTA4IDAgMS44MTYtLjM0NiAyLjUwNy0xLjAzN2wzLjI3OC0zLjI3OGEzLjUyIDMuNTIgMCAwIDAgMS4wMzUtMi41MDdjMC0uOTUtLjM2Ny0xLjg0LTEuMDM1LTIuNTA3eiIvPjxwYXRoIGQ9Ik03LjQgMTEuMDY1bC0yLjEyMiAyLjEyYTIuNDM3IDIuNDM3IDAgMCAxLTEuNzM1LjcxNiAyLjQzNyAyLjQzNyAwIDAgMS0xLjczNi0uNzE1IDIuNDU3IDIuNDU3IDAgMCAxIDAtMy40NzFsMy4wODYtMy4wODZhMi40MzggMi40MzggMCAwIDEgMS43MzUtLjcxNWMuNjU4IDAgMS4yNzUuMjU0IDEuNzM2LjcxNWEuNTQ1LjU0NSAwIDEgMCAuNzcxLS43NzEgMy41NSAzLjU1IDAgMCAwLTUuMDE0IDBMMS4wMzYgOC45NDRBMy41MiAzLjUyIDAgMCAwIDAgMTEuNDVjMCAuOTUuMzY3IDEuODQgMS4wMzUgMi41MDdhMy41MiAzLjUyIDAgMCAwIDIuNTA2IDEuMDM1Yy45NSAwIDEuODQtLjM2OCAyLjUwNy0xLjAzNWwyLjEyMi0yLjEyMWEuNTQ1LjU0NSAwIDAgMC0uNzcxLS43NzF6TTkuMjc0IDEyLjAwMmEuNTQ2LjU0NiAwIDAgMC0uNTQ2LjU0NXYxLjYzN2EuNTQ2LjU0NiAwIDAgMCAxLjA5MSAwdi0xLjYzN2EuNTQ1LjU0NSAwIDAgMC0uNTQ1LS41NDV6TTExLjIzIDExLjYxNmEuNTQ1LjU0NSAwIDEgMC0uNzcyLjc3MmwxLjE1NyAxLjE1NmEuNTQzLjU0MyAwIDAgMCAuNzcxIDAgLjU0NS41NDUgMCAwIDAgMC0uNzdsLTEuMTU2LTEuMTU4ek0xMi41MzcgOS44MkgxMC45YS41NDYuNTQ2IDAgMCAwIDAgMS4wOTFoMS42MzdhLjU0Ni41NDYgMCAwIDAgMC0xLjA5ek00LjkxIDMuNTQ3YS41NDYuNTQ2IDAgMCAwIC41NDUtLjU0NVYxLjM2NmEuNTQ2LjU0NiAwIDAgMC0xLjA5IDB2MS42MzZjMCAuMzAxLjI0NC41NDUuNTQ1LjU0NXpNMi44ODggMy45MzNhLjU0My41NDMgMCAwIDAgLjc3MSAwIC41NDUuNTQ1IDAgMCAwIDAtLjc3MUwyLjUwMiAyLjAwNWEuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3bDEuMTU3IDEuMTU4ek0xLjYyOCA1LjczaDEuNjM2YS41NDYuNTQ2IDAgMCAwIDAtMS4wOTJIMS42MjhhLjU0Ni41NDYgMCAwIDAgMCAxLjA5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},linkCallback:void 0},emoji:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHZpZXdCb3g9IjE1LjcyOSAyMi4wODIgMTcgMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI5LjcwOCAyNS4xMDRjLTMuMDIxLTMuMDIyLTcuOTM3LTMuMDIyLTEwLjk1OCAwLTMuMDIxIDMuMDItMy4wMiA3LjkzNiAwIDEwLjk1OCAzLjAyMSAzLjAyIDcuOTM3IDMuMDIgMTAuOTU4LS4wMDEgMy4wMi0zLjAyMSAzLjAyLTcuOTM2IDAtMTAuOTU3em0tLjg0NSAxMC4xMTJhNi41NiA2LjU2IDAgMCAxLTkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAtOS4yNjcgNi41NiA2LjU2IDAgMCAxIDkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAgOS4yNjd6bS03LjUyNC02LjczYS45MDYuOTA2IDAgMSAxIDEuODExIDAgLjkwNi45MDYgMCAwIDEtMS44MTEgMHptNC4xMDYgMGEuOTA2LjkwNiAwIDEgMSAxLjgxMiAwIC45MDYuOTA2IDAgMCAxLTEuODEyIDB6bTIuMTQxIDMuNzA4Yy0uNTYxIDEuMjk4LTEuODc1IDIuMTM3LTMuMzQ4IDIuMTM3LTEuNTA1IDAtMi44MjctLjg0My0zLjM2OS0yLjE0N2EuNDM4LjQzOCAwIDAgMSAuODEtLjMzNmMuNDA1Ljk3NiAxLjQxIDEuNjA3IDIuNTU5IDEuNjA3IDEuMTIzIDAgMi4xMjEtLjYzMSAyLjU0NC0xLjYwOGEuNDM4LjQzOCAwIDAgMSAuODA0LjM0N3oiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,emojis:["😀","😁","😂","😃","😉","😋","😎","😍","😗","🤗","🤔","😣","😫","😴","😌","🤓","😛","😜","😠","😇","😷","😈","👻","😺","😸","😹","😻","😼","😽","🙀","🙈","🙉","🙊","👼","👮","🕵","💂","👳","🎅","👸","👰","👲","🙍","🙇","🚶","🏃","💃","⛷","🏂","🏌","🏄","🚣","🏊","⛹","🏋","🚴","👫","💪","👈","👉","👆","🖕","👇","🖖","🤘","🖐","👌","👍","👎","✊","👊","👏","🙌","🙏","🐵","🐶","🐇","🐥","🐸","🐌","🐛","🐜","🐝","🍉","🍄","🍔","🍤","🍨","🍪","🎂","🍰","🍾","🍷","🍸","🍺","🌍","🚑","⏰","🌙","🌝","🌞","⭐","🌟","🌠","🌨","🌩","⛄","🔥","🎄","🎈","🎉","🎊","🎁","🎗","🏀","🏈","🎲","🔇","🔈","📣","🔔","🎵","🎷","💰","🖊","📅","✅","❎","💯"],title:void 0},embedded:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzA4IDYuNjE1YS40MzYuNDM2IDAgMCAwLS41NDMuMjkxbC0xLjgzIDYuMDQ1YS40MzYuNDM2IDAgMCAwIC44MzMuMjUyTDcgNy4xNmEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHpNOC45MzEgNi42MTVhLjQzNi40MzYgMCAwIDAtLjU0My4yOTFsLTEuODMgNi4wNDVhLjQzNi40MzYgMCAwIDAgLjgzNC4yNTJsMS44My02LjA0NGEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHoiLz48cGF0aCBkPSJNMTYuNTY0IDBILjQzNkEuNDM2LjQzNiAwIDAgMCAwIC40MzZ2MTYuMTI4YzAgLjI0LjE5NS40MzYuNDM2LjQzNmgxNi4xMjhjLjI0IDAgLjQzNi0uMTk1LjQzNi0uNDM2Vi40MzZBLjQzNi40MzYgMCAwIDAgMTYuNTY0IDB6TTMuNDg3Ljg3MmgxMC4wMjZ2MS43NDNIMy40ODdWLjg3MnptLTIuNjE1IDBoMS43NDN2MS43NDNILjg3MlYuODcyem0xNS4yNTYgMTUuMjU2SC44NzJWMy40ODhoMTUuMjU2djEyLjY0em0wLTEzLjUxM2gtMS43NDNWLjg3MmgxLjc0M3YxLjc0M3oiLz48Y2lyY2xlIGN4PSI5My44NjciIGN5PSIyNDUuMDY0IiByPSIxMy4xMjgiIHRyYW5zZm9ybT0ibWF0cml4KC4wMzMyIDAgMCAuMDMzMiAwIDApIi8+PGNpcmNsZSBjeD0iOTMuODY3IiBjeT0iMzYwLjU5MiIgcj0iMTMuMTI4IiB0cmFuc2Zvcm09Im1hdHJpeCguMDMzMiAwIDAgLjAzMzIgMCAwKSIvPjxwYXRoIGQ9Ik0xNC4yNTQgMTIuNjQxSDEwLjJhLjQzNi40MzYgMCAwIDAgMCAuODcyaDQuMDU0YS40MzYuNDM2IDAgMCAwIDAtLjg3MnoiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,embedCallback:void 0,defaultSize:{height:"auto",width:"auto"},title:void 0},image:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNzQxIDBILjI2Qy4xMTYgMCAwIC4xMzYgMCAuMzA0djEzLjM5MmMwIC4xNjguMTE2LjMwNC4yNTkuMzA0SDE0Ljc0Yy4xNDMgMCAuMjU5LS4xMzYuMjU5LS4zMDRWLjMwNEMxNSAuMTM2IDE0Ljg4NCAwIDE0Ljc0MSAwem0tLjI1OCAxMy4zOTFILjUxN1YuNjFoMTMuOTY2VjEzLjM5eiIvPjxwYXRoIGQ9Ik00LjEzOCA2LjczOGMuNzk0IDAgMS40NC0uNzYgMS40NC0xLjY5NXMtLjY0Ni0xLjY5NS0xLjQ0LTEuNjk1Yy0uNzk0IDAtMS40NC43Ni0xLjQ0IDEuNjk1IDAgLjkzNC42NDYgMS42OTUgMS40NCAxLjY5NXptMC0yLjc4MWMuNTA5IDAgLjkyMy40ODcuOTIzIDEuMDg2IDAgLjU5OC0uNDE0IDEuMDg2LS45MjMgMS4wODYtLjUwOSAwLS45MjMtLjQ4Ny0uOTIzLTEuMDg2IDAtLjU5OS40MTQtMS4wODYuOTIzLTEuMDg2ek0xLjgxIDEyLjE3NGMuMDYgMCAuMTIyLS4wMjUuMTcxLS4wNzZMNi4yIDcuNzI4bDIuNjY0IDMuMTM0YS4yMzIuMjMyIDAgMCAwIC4zNjYgMCAuMzQzLjM0MyAwIDAgMCAwLS40M0w3Ljk4NyA4Ljk2OWwyLjM3NC0zLjA2IDIuOTEyIDMuMTQyYy4xMDYuMTEzLjI3LjEwNS4zNjYtLjAyYS4zNDMuMzQzIDAgMCAwLS4wMTYtLjQzbC0zLjEwNC0zLjM0N2EuMjQ0LjI0NCAwIDAgMC0uMTg2LS4wOC4yNDUuMjQ1IDAgMCAwLS4xOC4xTDcuNjIyIDguNTM3IDYuMzk0IDcuMDk0YS4yMzIuMjMyIDAgMCAwLS4zNTQtLjAxM2wtNC40IDQuNTZhLjM0My4zNDMgMCAwIDAtLjAyNC40My4yNDMuMjQzIDAgMCAwIC4xOTQuMTAzeiIvPjwvZz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,urlEnabled:!0,uploadEnabled:!0,previewImage:!1,alignmentEnabled:!0,uploadCallback:void 0,inputAccept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",alt:{present:!1,mandatory:!1},defaultSize:{height:"auto",width:"auto"},title:void 0},remove:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOC4xIDE0bDYuNC03LjJjLjYtLjcuNi0xLjgtLjEtMi41bC0yLjctMi43Yy0uMy0uNC0uOC0uNi0xLjMtLjZIOC42Yy0uNSAwLTEgLjItMS40LjZMLjUgOS4yYy0uNi43LS42IDEuOS4xIDIuNWwyLjcgMi43Yy4zLjQuOC42IDEuMy42SDE2di0xSDguMXptLTEuMy0uMXMwLS4xIDAgMGwtMi43LTIuN2MtLjQtLjQtLjQtLjkgMC0xLjNMNy41IDZoLTFsLTMgMy4zYy0uNi43LS42IDEuNy4xIDIuNEw1LjkgMTRINC42Yy0uMiAwLS40LS4xLS42LS4yTDEuMiAxMWMtLjMtLjMtLjMtLjggMC0xLjFMNC43IDZoMS44TDEwIDJoMUw3LjUgNmwzLjEgMy43LTMuNSA0Yy0uMS4xLS4yLjEtLjMuMnoiLz48L3N2Zz4=",className:void 0,component:void 0,title:void 0},history:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["undo","redo"],undo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcgMTQuODc1YzIuNjcyIDAgNC44NDYtMi4xNDUgNC44NDYtNC43ODEgMC0yLjYzNy0yLjE3NC00Ljc4MS00Ljg0Ni00Ljc4MVY4LjVMMS42MTUgNC4yNSA3IDB2My4xODhjMy44NiAwIDcgMy4wOTggNyA2LjkwNlMxMC44NiAxNyA3IDE3cy03LTMuMDk4LTctNi45MDZoMi4xNTRjMCAyLjYzNiAyLjE3NCA0Ljc4MSA0Ljg0NiA0Ljc4MXoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},redo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNTA0IDEzLjk3N2E0LjQ5NyA0LjQ5NyAwIDAgMS00LjQ5Mi00LjQ5MiA0LjQ5NyA0LjQ5NyAwIDAgMSA0LjQ5Mi00LjQ5M3YyLjk5NWw0Ljk5LTMuOTkzTDYuNTA0IDB2Mi45OTVhNi40OTYgNi40OTYgMCAwIDAtNi40ODggNi40OWMwIDMuNTc4IDIuOTEgNi40OSA2LjQ4OCA2LjQ5YTYuNDk2IDYuNDk2IDAgMCAwIDYuNDg3LTYuNDloLTEuOTk2YTQuNDk3IDQuNDk3IDAgMCAxLTQuNDkxIDQuNDkyeiIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+",className:void 0,title:void 0},title:void 0}},Rr={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 Gr(e){return(Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xr(){return(Xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yr(Object(n),!0).forEach((function(t){Kr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wr(e){return function(e){if(Array.isArray(e))return qr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return qr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qr(e,t):void 0}}(e)||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 qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _r(e,t){return(_r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $r(e){var t=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(e){return!1}}();return function(){var n,r=eo(e);if(t){var o=eo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Gr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function eo(e){return(eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(38),n(39);var to=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_r(e,t)}(A,r.Component);var e,t,n=$r(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).onEditorBlur=function(){t.setState({editorFocused:!1})},t.onEditorFocus=function(e){var n=t.props.onFocus;t.setState({editorFocused:!0});var r=t.focusHandler.isEditorFocused();n&&r&&n(e)},t.onEditorMouseDown=function(){t.focusHandler.onEditorMouseDown()},t.keyBindingFn=function(e){if("Tab"!==e.key)return"ArrowUp"!==e.key&&"ArrowDown"!==e.key||b()&&e.preventDefault(),Object(a.getDefaultKeyBinding)(e);var n=t.props.onTab;if(!n||!n(e)){var r=Object(l.changeDepth)(t.state.editorState,e.shiftKey?-1:1,4);r&&r!==t.state.editorState&&(t.onChange(r),e.preventDefault())}return null},t.onToolbarFocus=function(e){var n=t.props.onFocus;n&&t.focusHandler.isToolbarFocused()&&n(e)},t.onWrapperBlur=function(e){var n=t.props.onBlur;n&&t.focusHandler.isEditorBlur(e)&&n(e,t.getEditorState())},t.onChange=function(e){var n=t.props,r=n.readOnly,o=n.onEditorStateChange;r||"atomic"===Object(l.getSelectedBlocksType)(e)&&e.getSelection().isCollapsed||(o&&o(e,t.props.wrapperId),B(t.props,"editorState")?t.afterChange(e):t.setState({editorState:e},t.afterChange(e)))},t.setWrapperReference=function(e){t.wrapper=e},t.setEditorReference=function(e){t.props.editorRef&&t.props.editorRef(e),t.editor=e},t.getCompositeDecorator=function(e){var n=[].concat(Wr(t.props.customDecorators),[{strategy:gr,component:hr({showOpenOptionOnHover:e.link.showOpenOptionOnHover})}]);return t.props.mention&&n.push.apply(n,Wr(Qr(Ur(Ur({},t.props.mention),{},{onChange:t.onChange,getEditorState:t.getEditorState,getSuggestions:t.getSuggestions,getWrapperRef:t.getWrapperRef,modalHandler:t.modalHandler})))),t.props.hashtag&&n.push(Vr(t.props.hashtag)),new a.CompositeDecorator(n)},t.getWrapperRef=function(){return t.wrapper},t.getEditorState=function(){return t.state?t.state.editorState:null},t.getSuggestions=function(){return t.props.mention&&t.props.mention.suggestions},t.afterChange=function(e){setTimeout((function(){var n=t.props,r=n.onChange,o=n.onContentStateChange;r&&r(Object(a.convertToRaw)(e.getCurrentContent())),o&&o(Object(a.convertToRaw)(e.getCurrentContent()))}))},t.isReadOnly=function(){return t.props.readOnly},t.isImageAlignmentEnabled=function(){return t.state.toolbar.image.alignmentEnabled},t.createEditorState=function(e){var n;if(B(t.props,"editorState"))t.props.editorState&&(n=a.EditorState.set(t.props.editorState,{decorator:e}));else if(B(t.props,"defaultEditorState"))t.props.defaultEditorState&&(n=a.EditorState.set(t.props.defaultEditorState,{decorator:e}));else if(B(t.props,"contentState")){if(t.props.contentState){var r=Object(a.convertFromRaw)(t.props.contentState);n=a.EditorState.createWithContent(r,e),n=a.EditorState.moveSelectionToEnd(n)}}else if(B(t.props,"defaultContentState")||B(t.props,"initialContentState")){var o=t.props.defaultContentState||t.props.initialContentState;o&&(o=Object(a.convertFromRaw)(o),n=a.EditorState.createWithContent(o,e),n=a.EditorState.moveSelectionToEnd(n))}return n||a.EditorState.createEmpty(e)},t.filterEditorProps=function(e){return t=e,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"],r=Object.keys(t).filter((function(e){return n.indexOf(e)<0})),o={},r&&0<r.length&&r.forEach((function(e){o[e]=t[e]})),o;var t,n,r,o},t.getStyleMap=function(e){return Ur(Ur({},Object(l.getCustomStyleMap)()),e.customStyleMap)},t.changeEditorState=function(e){var n=Object(a.convertFromRaw)(e),r=t.state.editorState;return r=a.EditorState.push(r,n,"insert-characters"),a.EditorState.moveSelectionToEnd(r)},t.focusEditor=function(){setTimeout((function(){t.editor.focus()}))},t.handleKeyCommand=function(e){var n=t.state,r=n.editorState,o=n.toolbar.inline;if(o&&0<=o.options.indexOf(e)){var A=a.RichUtils.handleKeyCommand(r,e);if(A)return t.onChange(A),!0}return!1},t.handleReturn=function(e){if(b())return!0;var n=t.state.editorState,r=Object(l.handleNewLine)(n,e);return!!r&&(t.onChange(r),!0)},t.handlePastedTextFn=function(e,n){var r=t.state.editorState,o=t.props,A=o.handlePastedText,i=o.stripPastedStyles;return A?A(e,n,r,t.onChange):!i&&function(e,t,n,r){var o=Object(l.getSelectedBlock)(n);if(o&&"code"===o.type){var A=a.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),e,n.getCurrentInlineStyle());return r(a.EditorState.push(n,A,"insert-characters")),!0}if(t){var i=y()(t),c=n.getCurrentContent();return i.entityMap.forEach((function(e,t){c=c.mergeEntityData(t,e)})),c=a.Modifier.replaceWithFragment(c,n.getSelection(),new Q.List(i.contentBlocks)),r(a.EditorState.push(n,c,"insert-characters")),!0}return!1}(e,n,r,t.onChange)},t.preventDefault=function(e){"INPUT"===e.target.tagName||"LABEL"===e.target.tagName||"TEXTAREA"===e.target.tagName?t.focusHandler.onInputMouseDown():e.preventDefault()};var r=M(Tr,e.toolbar),o=e.wrapperId?e.wrapperId:Math.floor(1e4*Math.random());t.wrapperId="rdw-wrapper-".concat(o),t.modalHandler=new d,t.focusHandler=new p,t.blockRendererFn=Fr({isReadOnly:t.isReadOnly,isImageAlignmentEnabled:t.isImageAlignmentEnabled,getEditorState:t.getEditorState,onChange:t.onChange},e.customBlockRenderFunc),t.editorProps=t.filterEditorProps(e),t.customStyleMap=t.getStyleMap(e),t.compositeDecorator=t.getCompositeDecorator(r);var i=t.createEditorState(t.compositeDecorator);return Object(l.extractInlineStyle)(i),t.state={editorState:i,editorFocused:!1,toolbar:r},t}return e=A,(t=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(e){if(e!==this.props){var t={},n=this.props,r=n.editorState,o=n.contentState;if(!this.state.toolbar){var A=M(Tr,A);t.toolbar=A}if(B(this.props,"editorState")&&r!==e.editorState)t.editorState=r?a.EditorState.set(r,{decorator:this.compositeDecorator}):a.EditorState.createEmpty(this.compositeDecorator);else if(B(this.props,"contentState")&&o!==e.contentState)if(o){var i=this.changeEditorState(o);i&&(t.editorState=i)}else t.editorState=a.EditorState.createEmpty(this.compositeDecorator);e.editorState===r&&e.contentState===o||Object(l.extractInlineStyle)(t.editorState),Object.keys(t).length&&this.setState(t),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}}},{key:"render",value:function(){var e=this.state,t=e.editorState,n=e.editorFocused,r=e.toolbar,A=this.props,i=A.locale,c=A.localization,f=c.locale,d=c.translations,C=A.toolbarCustomButtons,u=A.toolbarOnFocus,p=A.toolbarClassName,g=A.toolbarHidden,m=A.editorClassName,E=A.wrapperClassName,b=A.toolbarStyle,v=A.editorStyle,B=A.wrapperStyle,I=A.uploadCallback,x=A.ariaLabel,M={modalHandler:this.modalHandler,editorState:t,onChange:this.onChange,translations:Ur(Ur({},Rr[i||f]),d)},L=n||this.focusHandler.isInputFocused()||!u;return o.a.createElement("div",{id:this.wrapperId,className:s()(E,"rdw-editor-wrapper"),style:B,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper"},!g&&o.a.createElement("div",{className:s()("rdw-editor-toolbar",p),style:Ur({visibility:L?"visible":"hidden"},b),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!n&&u).toString(),onFocus:this.onToolbarFocus},r.options.map((function(e,t){var n=ar[e],A=r[e];return"image"===e&&I&&(A.uploadCallback=I),o.a.createElement(n,Xr({key:t},M,{config:A}))})),C&&C.map((function(e,t){return o.a.cloneElement(e,Ur({key:t},M))}))),o.a.createElement("div",{ref:this.setWrapperReference,className:s()(m,"rdw-editor-main"),style:v,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:h.onKeyDown,onMouseDown:this.onEditorMouseDown},o.a.createElement(a.Editor,Xr({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:t,onChange:this.onChange,blockStyleFn:w,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:x||"rdw-editor",blockRenderMap:l.blockRenderMap},this.editorProps))))}}])&&Jr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();to.propTypes={onChange:i.a.func,onEditorStateChange:i.a.func,onContentStateChange:i.a.func,initialContentState:i.a.object,defaultContentState:i.a.object,contentState:i.a.object,editorState:i.a.object,defaultEditorState:i.a.object,toolbarOnFocus:i.a.bool,spellCheck:i.a.bool,stripPastedStyles:i.a.bool,toolbar:i.a.object,toolbarCustomButtons:i.a.array,toolbarClassName:i.a.string,toolbarHidden:i.a.bool,locale:i.a.string,localization:i.a.object,editorClassName:i.a.string,wrapperClassName:i.a.string,toolbarStyle:i.a.object,editorStyle:i.a.object,wrapperStyle:i.a.object,uploadCallback:i.a.func,onFocus:i.a.func,onBlur:i.a.func,onTab:i.a.func,mention:i.a.object,hashtag:i.a.object,textAlignment:i.a.string,readOnly:i.a.bool,tabIndex:i.a.number,placeholder:i.a.string,ariaLabel:i.a.string,ariaOwneeID:i.a.string,ariaActiveDescendantID:i.a.string,ariaAutoComplete:i.a.string,ariaDescribedBy:i.a.string,ariaExpanded:i.a.string,ariaHasPopup:i.a.string,customBlockRenderFunc:i.a.func,wrapperId:i.a.number,customDecorators:i.a.array,editorRef:i.a.func,handlePastedText:i.a.func},to.defaultProps={toolbarOnFocus:!1,toolbarHidden:!1,stripPastedStyles:!1,localization:{locale:"en",translations:{}},customDecorators:[]};var no=to}],r.c=A,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=8);function r(e){if(A[e])return A[e].exports;var t=A[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,A}(t,tL(),cb())),oL.exports);A('.fontXs {\n font-family: "Poppins";\n font-size: 10px;\n}\n\n.fontSm {\n font-family: "Poppins";\n font-size: 12px;\n}\n\n.fontMd {\n font-family: "Poppins";\n font-size: 14px;\n}\n\n.fontLg {\n font-family: "Poppins";\n font-size: 16px;\n}\n\n.fontXL {\n font-family: "Poppins";\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: "Poppins";\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: "Poppins";\n font-size: 8px;\n}\n\n.font-size-10 {\n font-family: "Poppins";\n font-size: 10px;\n}\n\n.font-size-20 {\n font-family: "Poppins";\n font-size: 20px;\n}\n\n.font-size-32 {\n font-family: "Poppins";\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: "Poppins";\n font-size: 80px;\n}\n\n.public-DraftEditor-content {\n min-height: 133px;\n padding: 0 8px;\n}\n\n.rdw-link-modal {\n height: 230px;\n}\n\n.ff-heading-TextEditor-style h1 {\n font-size: 2em;\n font-weight: bolder;\n}\n.ff-heading-TextEditor-style h2 {\n font-size: 1.5em;\n font-weight: bolder;\n}\n.ff-heading-TextEditor-style h3 {\n font-size: 1.17em;\n font-weight: bolder;\n}\n.ff-heading-TextEditor-style h4 {\n font-size: 1em;\n font-weight: bolder;\n}\n.ff-heading-TextEditor-style h5 {\n font-size: 0.83em;\n font-weight: bolder;\n}\n.ff-heading-TextEditor-style h6 {\n font-size: 0.67em;\n font-weight: bolder;\n}\n.ff-heading-TextEditor-style .rdw-right-aligned-block.public-DraftStyleDefault-orderedListItem:before {\n position: relative !important;\n left: 0 !important;\n}\n.ff-heading-TextEditor-style .rdw-left-aligned-block.public-DraftStyleDefault-orderedListItem:before {\n position: relative !important;\n left: 0 !important;\n}\n.ff-heading-TextEditor-style .rdw-center-aligned-block.public-DraftStyleDefault-orderedListItem:before {\n position: relative !important;\n left: 0 !important;\n}\n.ff-heading-TextEditor-style .rdw-justify-aligned-block.public-DraftStyleDefault-orderedListItem:before {\n position: relative !important;\n left: 0 !important;\n}\n.ff-heading-TextEditor-style .rdw-right-aligned-block.public-DraftStyleDefault-unorderedListItem {\n list-style-position: inside;\n}\n.ff-heading-TextEditor-style .rdw-left-aligned-block.public-DraftStyleDefault-unorderedListItem {\n list-style-position: inside;\n}\n.ff-heading-TextEditor-style .rdw-center-aligned-block.public-DraftStyleDefault-unorderedListItem {\n list-style-position: inside;\n}\n.ff-heading-TextEditor-style .rdw-justify-aligned-block.public-DraftStyleDefault-unorderedListItem {\n list-style-position: inside;\n}\n\n.ff-toolbarClass {\n font-size: 12px;\n font-family: OpenSans-Regular, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, poppins;\n}\n\n.rdw-option-wrapper {\n border: 1px solid #f1f1f1;\n padding: 5px;\n min-width: 25px;\n height: 20px;\n border-radius: 2px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n background: white;\n text-transform: capitalize;\n}\n\n.rdw-option-wrapper:hover {\n box-shadow: 1px 1px 0px #bfbdbd;\n}\n\n.rdw-option-wrapper:active {\n box-shadow: 1px 1px 0px #bfbdbd inset;\n}\n\n.rdw-option-active {\n box-shadow: 1px 1px 0px #bfbdbd inset;\n}\n\n.rdw-option-disabled {\n opacity: 0.3;\n cursor: default;\n}\n\n.rdw-dropdown-wrapper {\n height: 30px;\n background: white;\n cursor: pointer;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n margin: 0 3px;\n text-transform: capitalize;\n background: white;\n}\n\n.rdw-dropdown-wrapper:focus {\n outline: none;\n}\n\n.rdw-dropdown-wrapper:hover {\n box-shadow: 1px 1px 0px #bfbdbd;\n background-color: #ffffff;\n}\n\n.rdw-dropdown-wrapper:active {\n box-shadow: 1px 1px 0px #bfbdbd inset;\n}\n\n.rdw-dropdown-carettoopen {\n height: 0px;\n width: 0px;\n position: absolute;\n top: 35%;\n right: 10%;\n border-top: 6px solid black;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n}\n\n.rdw-dropdown-carettoclose {\n height: 0px;\n width: 0px;\n position: absolute;\n top: 35%;\n right: 10%;\n border-bottom: 6px solid black;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n}\n\n.rdw-dropdown-selectedtext {\n display: flex;\n position: relative;\n height: 100%;\n align-items: center;\n padding: 0 5px;\n}\n\n.rdw-dropdown-optionwrapper {\n z-index: 100;\n position: relative;\n border: 1px solid #f1f1f1;\n width: 98%;\n background: white;\n border-radius: 2px;\n margin: 0;\n padding: 0;\n max-height: 250px;\n overflow-y: scroll;\n}\n\n.rdw-dropdown-optionwrapper:hover {\n box-shadow: 1px 1px 0px #bfbdbd;\n background-color: #ffffff;\n}\n\n.rdw-dropdownoption-default {\n min-height: 25px;\n display: flex;\n align-items: center;\n padding: 0 5px;\n}\n\n.rdw-dropdownoption-highlighted {\n background: #f1f1f1;\n}\n\n.rdw-dropdownoption-active {\n background: #f5f5f5;\n}\n\n.rdw-dropdownoption-disabled {\n opacity: 0.3;\n cursor: default;\n}\n\n.rdw-inline-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap;\n}\n\n.rdw-inline-dropdown {\n width: 50px;\n}\n\n.rdw-inline-dropdownoption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n\n.rdw-block-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap;\n}\n\n.rdw-block-dropdown {\n width: 110px;\n}\n\n.rdw-fontsize-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap;\n}\n\n.rdw-fontsize-dropdown {\n min-width: 40px;\n}\n\n.rdw-fontsize-option {\n display: flex;\n justify-content: center;\n}\n\n.rdw-fontfamily-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap;\n}\n\n.rdw-fontfamily-dropdown {\n width: 115px;\n}\n\n.rdw-fontfamily-placeholder {\n white-space: nowrap;\n max-width: 90px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.rdw-fontfamily-optionwrapper {\n width: 140px;\n}\n\n.rdw-list-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap;\n}\n\n.rdw-list-dropdown {\n width: 50px;\n z-index: 90;\n}\n\n.rdw-list-dropdownOption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n\n.rdw-text-align-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap;\n}\n\n.rdw-text-align-dropdown {\n width: 50px;\n z-index: 90;\n}\n\n.rdw-text-align-dropdownOption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n\n.rdw-right-aligned-block {\n text-align: right;\n}\n\n.rdw-left-aligned-block {\n text-align: left !important;\n}\n\n.rdw-center-aligned-block {\n text-align: center !important;\n}\n\n.rdw-justify-aligned-block {\n text-align: justify !important;\n}\n\n.rdw-right-aligned-block > div {\n display: inline-block;\n}\n\n.rdw-left-aligned-block > div {\n display: inline-block;\n}\n\n.rdw-center-aligned-block > div {\n display: inline-block;\n}\n\n.rdw-justify-aligned-block > div {\n display: inline-block;\n}\n\n.rdw-colorpicker-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap;\n}\n\n.rdw-colorpicker-modal {\n position: absolute;\n top: 35px;\n left: 5px;\n display: flex;\n flex-direction: column;\n width: 175px;\n height: 175px;\n border: 1px solid #f1f1f1;\n padding: 15px;\n border-radius: 2px;\n z-index: 100;\n background: white;\n box-shadow: 3px 3px 5px #bfbdbd;\n}\n\n.rdw-colorpicker-modal-header {\n display: flex;\n padding-bottom: 5px;\n}\n\n.rdw-colorpicker-modal-style-label {\n font-size: 15px;\n width: 50%;\n text-align: center;\n cursor: pointer;\n padding: 0 10px 5px;\n}\n\n.rdw-colorpicker-modal-style-label-active {\n border-bottom: 2px solid #0a66b7;\n}\n\n.rdw-colorpicker-modal-options {\n margin: 5px auto;\n display: flex;\n width: 100%;\n height: 100%;\n flex-wrap: wrap;\n overflow: scroll;\n}\n\n.rdw-colorpicker-cube {\n width: 22px;\n height: 22px;\n border: 1px solid #f1f1f1;\n}\n\n.rdw-colorpicker-option {\n margin: 3px;\n padding: 0;\n min-height: 20px;\n border: none;\n width: 22px;\n height: 22px;\n min-width: 22px;\n box-shadow: 1px 2px 1px #bfbdbd inset;\n}\n\n.rdw-colorpicker-option:hover {\n box-shadow: 1px 2px 1px #bfbdbd;\n}\n\n.rdw-colorpicker-option:active {\n box-shadow: -1px -2px 1px #bfbdbd;\n}\n\n.rdw-colorpicker-option-active {\n box-shadow: 0px 0px 2px 2px #bfbdbd;\n}\n\n.rdw-link-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap;\n}\n\n.rdw-link-dropdown {\n width: 50px;\n}\n\n.rdw-link-dropdownOption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n\n.rdw-link-dropdownPlaceholder {\n margin-left: 8px;\n}\n\n.rdw-link-modal {\n position: absolute;\n top: 35px;\n left: 5px;\n display: flex;\n flex-direction: column;\n width: 235px;\n height: 205px;\n border: 1px solid #f1f1f1;\n padding: 15px;\n border-radius: 2px;\n z-index: 100;\n background: white;\n box-shadow: 3px 3px 5px #bfbdbd;\n}\n\n.rdw-link-modal-label {\n font-size: 15px;\n}\n\n.rdw-link-modal-input {\n margin-top: 5px;\n border-radius: 2px;\n border: 1px solid #f1f1f1;\n height: 25px;\n margin-bottom: 15px;\n padding: 0 5px;\n}\n\n.rdw-link-modal-input:focus {\n outline: none;\n}\n\n.rdw-link-modal-buttonsection {\n margin: 0 auto;\n}\n\n.rdw-link-modal-target-option {\n margin-bottom: 20px;\n}\n\n.rdw-link-modal-target-option > span {\n margin-left: 5px;\n}\n\n.rdw-link-modal-btn {\n margin-left: 10px;\n width: 75px;\n height: 30px;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n cursor: pointer;\n background: white;\n text-transform: capitalize;\n}\n\n.rdw-link-modal-btn:hover {\n box-shadow: 1px 1px 0px #bfbdbd;\n}\n\n.rdw-link-modal-btn:active {\n box-shadow: 1px 1px 0px #bfbdbd inset;\n}\n\n.rdw-link-modal-btn:focus {\n outline: none !important;\n}\n\n.rdw-link-modal-btn:disabled {\n background: #ece9e9;\n}\n\n.rdw-link-dropdownoption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n\n.rdw-history-dropdown {\n width: 50px;\n}\n\n.rdw-embedded-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap;\n}\n\n.rdw-embedded-modal {\n position: absolute;\n top: 35px;\n left: 5px;\n display: flex;\n flex-direction: column;\n width: 235px;\n height: 180px;\n border: 1px solid #f1f1f1;\n padding: 15px;\n border-radius: 2px;\n z-index: 100;\n background: white;\n justify-content: space-between;\n box-shadow: 3px 3px 5px #bfbdbd;\n}\n\n.rdw-embedded-modal-header {\n font-size: 15px;\n display: flex;\n}\n\n.rdw-embedded-modal-header-option {\n width: 50%;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n\n.rdw-embedded-modal-header-label {\n width: 95px;\n border: 1px solid #f1f1f1;\n margin-top: 5px;\n background: #6eb8d4;\n border-bottom: 2px solid #0a66b7;\n}\n\n.rdw-embedded-modal-link-section {\n display: flex;\n flex-direction: column;\n}\n\n.rdw-embedded-modal-link-input {\n width: 88%;\n height: 35px;\n margin: 10px 0;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n font-size: 15px;\n padding: 0 5px;\n}\n\n.rdw-embedded-modal-link-input-wrapper {\n display: flex;\n align-items: center;\n}\n\n.rdw-embedded-modal-link-input:focus {\n outline: none;\n}\n\n.rdw-embedded-modal-btn-section {\n display: flex;\n justify-content: center;\n}\n\n.rdw-embedded-modal-btn {\n margin: 0 3px;\n width: 75px;\n height: 30px;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n cursor: pointer;\n background: white;\n text-transform: capitalize;\n}\n\n.rdw-embedded-modal-btn:hover {\n box-shadow: 1px 1px 0px #bfbdbd;\n}\n\n.rdw-embedded-modal-btn:active {\n box-shadow: 1px 1px 0px #bfbdbd inset;\n}\n\n.rdw-embedded-modal-btn:focus {\n outline: none !important;\n}\n\n.rdw-embedded-modal-btn:disabled {\n background: #ece9e9;\n}\n\n.rdw-embedded-modal-size {\n align-items: center;\n display: flex;\n margin: 8px 0;\n justify-content: space-between;\n}\n\n.rdw-embedded-modal-size-input {\n width: 80%;\n height: 20px;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n font-size: 12px;\n}\n\n.rdw-embedded-modal-size-input:focus {\n outline: none;\n}\n\n.rdw-emoji-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap;\n}\n\n.rdw-emoji-modal {\n overflow: auto;\n position: absolute;\n top: 35px;\n left: 5px;\n display: flex;\n flex-wrap: wrap;\n width: 235px;\n height: 180px;\n border: 1px solid #f1f1f1;\n padding: 15px;\n border-radius: 2px;\n z-index: 100;\n background: white;\n box-shadow: 3px 3px 5px #bfbdbd;\n}\n\n.rdw-emoji-icon {\n margin: 2.5px;\n height: 24px;\n width: 24px;\n cursor: pointer;\n font-size: 22px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.rdw-spinner {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n}\n\n.rdw-spinner > div {\n width: 12px;\n height: 12px;\n background-color: #333;\n border-radius: 100%;\n display: inline-block;\n -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;\n animation: sk-bouncedelay 1.4s infinite ease-in-out both;\n}\n\n.rdw-spinner .rdw-bounce1 {\n -webkit-animation-delay: -0.32s;\n animation-delay: -0.32s;\n}\n\n.rdw-spinner .rdw-bounce2 {\n -webkit-animation-delay: -0.16s;\n animation-delay: -0.16s;\n}\n\n@-webkit-keyframes sk-bouncedelay {\n 0%, 80%, 100% {\n -webkit-transform: scale(0);\n }\n 40% {\n -webkit-transform: scale(1);\n }\n}\n@keyframes sk-bouncedelay {\n 0%, 80%, 100% {\n -webkit-transform: scale(0);\n transform: scale(0);\n }\n 40% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n}\n.rdw-image-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap;\n}\n\n.rdw-image-modal {\n position: absolute;\n top: 35px;\n left: 5px;\n display: flex;\n flex-direction: column;\n width: 235px;\n border: 1px solid #f1f1f1;\n padding: 15px;\n border-radius: 2px;\n z-index: 100;\n background: white;\n box-shadow: 3px 3px 5px #bfbdbd;\n}\n\n.rdw-image-modal-header {\n font-size: 15px;\n margin: 10px 0;\n display: flex;\n}\n\n.rdw-image-modal-header-option {\n width: 50%;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n\n.rdw-image-modal-header-label {\n width: 80px;\n background: #f1f1f1;\n border: 1px solid #f1f1f1;\n margin-top: 5px;\n}\n\n.rdw-image-modal-header-label-highlighted {\n background: #6eb8d4;\n border-bottom: 2px solid #0a66b7;\n}\n\n.rdw-image-modal-upload-option {\n width: 100%;\n color: gray;\n cursor: pointer;\n display: flex;\n border: none;\n font-size: 15px;\n align-items: center;\n justify-content: center;\n background-color: #f1f1f1;\n outline: 2px dashed gray;\n outline-offset: -10px;\n margin: 10px 0;\n padding: 9px 0;\n}\n\n.rdw-image-modal-upload-option-highlighted {\n outline: 2px dashed #0a66b7;\n}\n\n.rdw-image-modal-upload-option-label {\n cursor: pointer;\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 15px;\n}\n\n.rdw-image-modal-upload-option-label span {\n padding: 0 20px;\n}\n\n.rdw-image-modal-upload-option-image-preview {\n max-width: 100%;\n max-height: 200px;\n}\n\n.rdw-image-modal-upload-option-input {\n width: 0.1px;\n height: 0.1px;\n opacity: 0;\n overflow: hidden;\n position: absolute;\n z-index: -1;\n}\n\n.rdw-image-modal-url-section {\n display: flex;\n align-items: center;\n}\n\n.rdw-image-modal-url-input {\n width: 90%;\n height: 35px;\n margin: 15px 0 12px;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n font-size: 15px;\n padding: 0 5px;\n}\n\n.rdw-image-modal-btn-section {\n margin: 10px auto 0;\n}\n\n.rdw-image-modal-url-input:focus {\n outline: none;\n}\n\n.rdw-image-modal-btn {\n margin: 0 5px;\n width: 75px;\n height: 30px;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n cursor: pointer;\n background: white;\n text-transform: capitalize;\n}\n\n.rdw-image-modal-btn:hover {\n box-shadow: 1px 1px 0px #bfbdbd;\n}\n\n.rdw-image-modal-btn:active {\n box-shadow: 1px 1px 0px #bfbdbd inset;\n}\n\n.rdw-image-modal-btn:focus {\n outline: none !important;\n}\n\n.rdw-image-modal-btn:disabled {\n background: #ece9e9;\n}\n\n.rdw-image-modal-spinner {\n position: absolute;\n top: -3px;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0.5;\n}\n\n.rdw-image-modal-alt-input {\n width: 70%;\n height: 20px;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n font-size: 12px;\n margin-left: 5px;\n}\n\n.rdw-image-modal-alt-input:focus {\n outline: none;\n}\n\n.rdw-image-modal-alt-lbl {\n font-size: 12px;\n}\n\n.rdw-image-modal-size {\n align-items: center;\n display: flex;\n margin: 8px 0;\n justify-content: space-between;\n}\n\n.rdw-image-modal-size-input {\n width: 40%;\n height: 20px;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n font-size: 12px;\n}\n\n.rdw-image-modal-size-input:focus {\n outline: none;\n}\n\n.rdw-image-mandatory-sign {\n color: red;\n margin-left: 3px;\n margin-right: 3px;\n}\n\n.rdw-remove-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap;\n}\n\n.rdw-history-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap;\n}\n\n.rdw-history-dropdownoption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n\n.rdw-history-dropdown {\n width: 50px;\n}\n\n.rdw-link-decorator-wrapper {\n position: relative;\n}\n\n.rdw-link-decorator-icon {\n position: absolute;\n left: 40%;\n top: 0;\n cursor: pointer;\n background-color: white;\n}\n\n.rdw-mention-link {\n text-decoration: none;\n color: #1236ff;\n background-color: #f0fbff;\n padding: 1px 2px;\n border-radius: 2px;\n}\n\n.rdw-suggestion-wrapper {\n position: relative;\n}\n\n.rdw-suggestion-dropdown {\n position: absolute;\n display: flex;\n flex-direction: column;\n border: 1px solid #f1f1f1;\n min-width: 100px;\n max-height: 150px;\n overflow: auto;\n background: white;\n z-index: 100;\n}\n\n.rdw-suggestion-option {\n padding: 7px 5px;\n border-bottom: 1px solid #f1f1f1;\n}\n\n.rdw-suggestion-option-active {\n background-color: #f1f1f1;\n}\n\n.rdw-hashtag-link {\n text-decoration: none;\n color: #1236ff;\n background-color: #f0fbff;\n padding: 1px 2px;\n border-radius: 2px;\n}\n\n.rdw-image-alignment-options-popup {\n position: absolute;\n background: white;\n display: flex;\n padding: 5px 2px;\n border-radius: 2px;\n border: 1px solid #f1f1f1;\n width: 105px;\n cursor: pointer;\n z-index: 100;\n}\n\n.rdw-alignment-option-left {\n justify-content: flex-start;\n}\n\n.rdw-image-alignment-option {\n height: 15px;\n width: 15px;\n min-width: 15px;\n}\n\n.rdw-image-alignment {\n position: relative;\n}\n\n.rdw-image-imagewrapper {\n position: relative;\n}\n\n.rdw-image-center {\n display: flex;\n justify-content: center;\n}\n\n.rdw-image-left {\n display: flex;\n}\n\n.rdw-image-right {\n display: flex;\n justify-content: flex-end;\n}\n\n.rdw-image-alignment-options-popup-right {\n right: 0;\n}\n\n.rdw-editor-main {\n height: 100%;\n overflow: auto;\n box-sizing: border-box;\n}\n\n.rdw-editor-toolbar {\n padding: 6px 5px 0;\n border-radius: 2px;\n border: 1px solid #f1f1f1;\n display: flex;\n justify-content: flex-start;\n background: white;\n flex-wrap: wrap;\n font-size: 15px;\n margin-bottom: 5px;\n user-select: none;\n}\n\n.public-DraftStyleDefault-block {\n margin: 1em 0;\n}\n\n.rdw-editor-wrapper:focus {\n outline: none;\n}\n\n.rdw-editor-wrapper {\n box-sizing: content-box;\n}\n\n.rdw-editor-main blockquote {\n border-left: 5px solid #f1f1f1;\n padding-left: 5px;\n}\n\n.rdw-editor-main pre {\n background: #f1f1f1;\n border-radius: 3px;\n padding: 1px 10px;\n}\n\n.DraftEditor-editorContainer,\n.DraftEditor-root,\n.public-DraftEditor-content {\n height: inherit;\n text-align: initial;\n}\n\n.public-DraftEditor-content[contenteditable=true] {\n -webkit-user-modify: read-write-plaintext-only;\n}\n\n.DraftEditor-root {\n position: relative;\n}\n\n.DraftEditor-editorContainer {\n background-color: rgba(255, 255, 255, 0);\n border-left: 0.1px solid transparent;\n position: relative;\n z-index: 1;\n}\n\n.public-DraftEditor-block {\n position: relative;\n}\n\n.DraftEditor-alignLeft .public-DraftStyleDefault-block {\n text-align: left;\n}\n\n.DraftEditor-alignLeft .public-DraftEditorPlaceholder-root {\n left: 0;\n text-align: left;\n}\n\n.DraftEditor-alignCenter .public-DraftStyleDefault-block {\n text-align: center;\n}\n\n.DraftEditor-alignCenter .public-DraftEditorPlaceholder-root {\n margin: 0 auto;\n text-align: center;\n width: 100%;\n}\n\n.DraftEditor-alignRight .public-DraftStyleDefault-block {\n text-align: right;\n}\n\n.DraftEditor-alignRight .public-DraftEditorPlaceholder-root {\n right: 0;\n text-align: right;\n}\n\n.public-DraftEditorPlaceholder-root {\n color: #9197a3;\n position: absolute;\n z-index: 0;\n}\n\n.public-DraftEditorPlaceholder-hasFocus {\n color: #bdc1c9;\n}\n\n.DraftEditorPlaceholder-hidden {\n display: none;\n}\n\n.public-DraftStyleDefault-block {\n position: relative;\n white-space: pre-wrap;\n}\n\n.public-DraftStyleDefault-ltr {\n direction: ltr;\n text-align: left;\n}\n\n.public-DraftStyleDefault-rtl {\n direction: rtl;\n text-align: right;\n}\n\n.public-DraftStyleDefault-listLTR {\n direction: ltr;\n}\n\n.public-DraftStyleDefault-listRTL {\n direction: rtl;\n}\n\n.public-DraftStyleDefault-ol,\n.public-DraftStyleDefault-ul {\n margin: 16px 0;\n padding: 0;\n}\n\n.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listLTR {\n margin-left: 1.5em;\n}\n\n.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listRTL {\n margin-right: 1.5em;\n}\n\n.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listLTR {\n margin-left: 3em;\n}\n\n.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listRTL {\n margin-right: 3em;\n}\n\n.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listLTR {\n margin-left: 4.5em;\n}\n\n.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listRTL {\n margin-right: 4.5em;\n}\n\n.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listLTR {\n margin-left: 6em;\n}\n\n.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listRTL {\n margin-right: 6em;\n}\n\n.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listLTR {\n margin-left: 7.5em;\n}\n\n.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listRTL {\n margin-right: 7.5em;\n}\n\n.public-DraftStyleDefault-unorderedListItem {\n list-style-type: square;\n position: relative;\n}\n\n.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth0 {\n list-style-type: disc;\n}\n\n.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth1 {\n list-style-type: circle;\n}\n\n.public-DraftStyleDefault-orderedListItem {\n list-style-type: none;\n position: relative;\n}\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listLTR:before {\n left: -36px;\n position: absolute;\n text-align: right;\n width: 30px;\n}\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listRTL:before {\n position: absolute;\n right: -36px;\n text-align: left;\n width: 30px;\n}\n\n.public-DraftStyleDefault-orderedListItem:before {\n content: counter(ol0) ". ";\n counter-increment: ol0;\n}\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth1:before {\n content: counter(ol1) ". ";\n counter-increment: ol1;\n}\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth2:before {\n content: counter(ol2) ". ";\n counter-increment: ol2;\n}\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth3:before {\n content: counter(ol3) ". ";\n counter-increment: ol3;\n}\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth4:before {\n content: counter(ol4) ". ";\n counter-increment: ol4;\n}\n\n.public-DraftStyleDefault-depth0.public-DraftStyleDefault-reset {\n counter-reset: ol0;\n}\n\n.public-DraftStyleDefault-depth1.public-DraftStyleDefault-reset {\n counter-reset: ol1;\n}\n\n.public-DraftStyleDefault-depth2.public-DraftStyleDefault-reset {\n counter-reset: ol2;\n}\n\n.public-DraftStyleDefault-depth3.public-DraftStyleDefault-reset {\n counter-reset: ol3;\n}\n\n.public-DraftStyleDefault-depth4.public-DraftStyleDefault-reset {\n counter-reset: ol4;\n}\n\n.required-asterisk {\n color: var(--input-error-text-color);\n}\n\n.ff-texteditor-label-asterisk-container {\n display: flex;\n align-items: center;\n gap: 2px;\n}\n\n.ff-textEditor-error-msg {\n color: var(--input-error-text-color);\n}');A(".no_data_message {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n}");A(".ff-card {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n transition: all 0.3s ease;\n}\n.ff-card .ff-card-header {\n overflow: hidden;\n border-top-left-radius: inherit;\n border-top-right-radius: inherit;\n}\n.ff-card .ff-card-footer {\n overflow: hidden;\n border-bottom-left-radius: inherit;\n border-bottom-right-radius: inherit;\n}\n.ff-card .ff-card-header,\n.ff-card .ff-card-content,\n.ff-card .ff-card-footer {\n width: 100%;\n}\n\n.row {\n color: var(--base-bg-color);\n text-align: center;\n margin: 30px auto;\n}");exports.AADHAAR_REGEX=/^\d{12}$/,exports.ALPHABET_ONLY_REGEX=/^[A-Za-z]+$/,exports.ALPHANUMERIC_REGEX=/^[A-Za-z0-9]+$/,exports.ALPHANUMERIC_WITH_ROUND_BRACES_REGEX=/^[a-zA-Z0-9-_() ]*$/,exports.Accordion=L,exports.AddContentButton=({iconName:t="",onButtonClick:n,buttonLabel:r="Label",buttonText:o="To Add Group",disableButton:A=!1,stepCount:i=1,iconWidth:a=120,iconHeight:l=120})=>e.jsxs("div",{className:"add-content-button "+(A?"disabled":""),children:[!x(t)&&e.jsx("div",{className:"icon-container",children:e.jsx(E,{name:t,width:a,height:l})}),e.jsxs("div",{className:"typography-label-button",children:[e.jsxs(b,{fontSize:"12px",fontWeight:"regular",lineHeight:"18px",children:["step ",i," :"]}),e.jsx(b,{fontSize:"12px",fontWeight:"semi-bold",lineHeight:"18px",children:"Click"}),e.jsx(Gc,{label:r,onClick:n,iconName:"plus_user_icon",isDisable:A}),e.jsx(b,{fontSize:"12px",fontWeight:"semi-bold",lineHeight:"18px",children:o})]})]}),exports.AddResourceButton=({id:r="AddModule",variant:o="primary",directionalArrow:A=[{direction:"right",menuOptions:[{label:"Sub Module",value:"sub_module",icon:"",disable:!1}]}],zIndex:i=99,menuOptionZIndex:a=100,treeRowRef:l,onMenuOptionClick:c})=>{const[s,f]=t.useState(!1),[d,C]=t.useState({left:0,top:0}),[u,p]=t.useState(""),g=t.useRef(null),h=x(m=A)?[{direction:null,menuOptions:[{label:"Sub Module",value:"sub_module",icon:"",disable:!1}]}]:m;var m;const b=G(g,s),w=()=>{u||f(!0);const{positionX:e,positionY:t}=b(g);C({left:e,top:t});const n=g.current?.parentNode;if(null!==l&&n){const e=l?.current?.querySelector(".table-tree-row-action");e?.classList.add("table-row-add-button")}},v=()=>{f(!1),p("");const e=g.current?.parentNode;if(null!==l&&e){const e=l?.current?.querySelector(".table-tree-row-action");e?.classList.remove("table-row-add-button")}};return e.jsxs("div",{className:"ff-add-button-container "+(s&&!u?`ff-hovered-add-button--${o}`:""),id:r,onMouseEnter:w,onMouseLeave:v,ref:g,children:[e.jsx("span",{className:"ff-add-button",children:e.jsx(E,{name:"plus_icon",width:16,height:16,className:s?`ff-hovered-add-icon--${o}`:`ff-add-icon--${o}`})}),s&&n.createPortal(e.jsx("div",{id:"portal-123",className:`ff-arrow-buttons-container ff-${h.map((e=>e.direction)).sort().join("-")}`,onMouseEnter:w,onMouseLeave:v,style:{left:d.left,top:d.top,zIndex:i},children:A.map((({direction:t,menuOptions:n},r)=>e.jsx(sr,{direction:t,onArrowClick:()=>(e=>{u===e?(p(""),f(!1)):(p(e),f(!0))})(t),menuOptions:n,isActive:u===t,variant:o,treeRowRef:l,onMenuOptionClick:c,menuOptionZIndex:a},r)))}),document.body)]})},exports.AiToggle=({onChange:t,disabled:n,checked:r=!1,id:o="toggle",path:A})=>e.jsxs("div",{className:"ff--ai-switch-container",children:[e.jsx("input",{className:"ff--ai-switch-checkbox",id:`ff-toggle-${o}`,type:"checkbox",disabled:!!n,onChange:e=>{t&&t(e)},checked:r}),e.jsx("label",{className:d("ff--ai-switch-label",{"ff--ai-switch-label--disabled":n}),htmlFor:`ff-toggle-${o}`,children:e.jsx("span",{className:"ff--ai-switch-content",children:e.jsxs("span",{className:"ff--ai-switch-content",children:[e.jsx(b,{className:d("ff--ai-switch-typography",{left:r,right:!r}),as:"div",fontWeight:"bold",fontSize:18,color:r?"var(--base-bg-color)":"var(--ff-ai-toggle-text-color)",children:"AI"}),e.jsx("img",{className:"ff--ai-switch-image",src:A,alt:"AI image"})]})})})]}),exports.AllProjectsDropdown=Uc,exports.AppHeader=({logoIconName:n="fireflink_icon",width:r,borderRadius:o,leftContent:A,rightContent:i,projectsList:a,appHeaderMenuItems:l,appHeaderHiddenMenuItems:c,selectedMenu:s,selectedSubMenu:f,selectedQuickMenu:C,selectedProject:u={label:"",value:"",iconName:""},onMenuClick:p=()=>{},onSubMenuClick:g=()=>{},onQuickMenuClick:h=()=>{},onProjectMenuClick:m=()=>{},onProjectDropdownLabelClick:w=()=>{},onMoreMenuOptionClick:v=()=>{},disabled:B=!1})=>{const I=t.useRef(null),L=t.useRef(null),[y,Q]=t.useState(a);t.useEffect((()=>{a!==y&&Q(a)}),[a,y]);return e.jsx("div",{className:d("ff-app-header-main",{"ff-app-header-disabled":B}),children:e.jsxs("div",{className:"ff-app-header",style:{borderStartStartRadius:o,borderStartEndRadius:o},children:[e.jsxs("div",{className:"ff-app-header-left-container",children:[e.jsx("div",{className:"ff-app-header-logo-icon",children:e.jsx(E,{color:"",name:n,height:24,width:21})}),A&&e.jsx("div",{className:"ff-app-header-left-content",children:A})]}),!x(l)&&e.jsxs("div",{className:"ff-app-header-nav-bar",style:{width:r},children:[y&&!x(y)&&e.jsx("div",{children:e.jsx(Uc,{onClick:e=>{B||m(e)},options:y,selectedOption:u,onMenuClick:()=>{B||w()},selected:"All Projects"===s,placeholder:"Search Projects",disabled:B})}),e.jsx("div",{className:"ff-app-header-nav-bar-items fontSm",children:l.map((t=>!c?.find((e=>e.label===t.label))&&!t.hide&&!("No Access"===t.access)&&"All Projects"!==t.label&&e.jsxs("div",{className:d("ff-app-header-nav-bar-item",{"ff-app-header-nav-bar-item--selected":t.label===s,"ff-app-header-nav-bar-item--disabled":B}),children:[e.jsx(b,{as:"div",className:"ff-app-header-nav-bar-item-label",lineHeight:"18px",onClick:()=>(e=>{B||p(e)})(t),children:t.label}),t.label===s&&t?.subMenuItems&&e.jsxs(e.Fragment,{children:[t.subMenuItems.map((t=>e.jsx(e.Fragment,{children:!t.hide&&e.jsx("div",{className:"ff-app-header-submenu-container",children:e.jsx(b,{as:"div",className:d("ff-app-header-nav-bar-submenu-item",{"ff-app-header-nav-bar-submenu-item--selected":t.label===f,"ff-app-header-nav-bar-submenu-item--disabled":B}),lineHeight:"18px",onClick:()=>(e=>{B||g(e)})(t),children:t.label})},t.label)}))),t.subMenuItems.map((t=>e.jsx(e.Fragment,{children:!t.hide&&e.jsx("div",{className:"ff-app-header-submenu-container",children:t.label===f&&t?.quickMenuItems&&t?.quickMenuItems.length>0&&(()=>{const n=t.quickMenuItems.slice(0,8),r=t.quickMenuItems.slice(8),o=r.map((e=>({...e,value:e.path,icon:e.iconName})));return e.jsxs("div",{className:d("ff-app-header-quickmenu-container",t.quickMenuItems?.length?"visible":""),children:[e.jsx("div",{children:e.jsx(E,{name:"vertical_separator"})}),n.map((t=>e.jsx(e.Fragment,{children:!t.hide&&e.jsx("div",{onClick:()=>(e=>{B||h(e)})(t),className:d("ff-app-header-nav-bar-quickmenu-item",{"ff-app-header-nav-bar-quickmenu-item--selected":t.path===C}),children:e.jsx(M,{title:t?.label,children:e.jsx(E,{name:t.iconName,height:16,width:16,hoverEffect:!0})})},t.iconName)}))),r&&!x(r)&&e.jsx("div",{ref:L,children:e.jsx(te,{iconName:"more",options:o,onOptionClick:h,dropdownPlacement:"down",zIndex:1001,tooltipTitle:"More",variant:"light",targetRef:L})})]})})()},t.label)})))]})]},t.label)))}),c&&!x(c)&&e.jsx("div",{className:"more-menu",ref:I,children:e.jsx(te,{iconName:"more",options:c,onOptionClick:e=>{B||v(e)},variant:"dark",dropdownPlacement:"down",zIndex:1001,tooltipTitle:"More",optionCardVariant:"default",targetRef:I,disabled:B})})]}),i&&e.jsx("div",{className:"ff-app-header-right-content",children:i})]})})},exports.AttachImage=({imageSrc:t,onExpandClick:n,onDeleteClick:r,onDownloadClick:o,height:A="75px",width:i="79px"})=>e.jsx("div",{className:"ff-attach-image-container",style:{height:A,width:i},children:e.jsxs("div",{className:"ff-image-wrapper",style:{height:A,width:i},children:[e.jsx("img",{src:t,alt:"Attached"}),e.jsxs("div",{className:"ff-hover-icons",children:[e.jsxs("div",{className:"ff-top-icons",children:[e.jsx("div",{className:"ff-icon-container",children:e.jsx(M,{title:"Download File",placement:"bottom",children:e.jsx(E,{name:"download_file_icon",height:10,width:10,onClick:o,color:"var(--icons-default-color)"})})}),e.jsx("div",{className:"ff-icon-container",children:e.jsx(M,{title:"Delete",placement:"bottom",children:e.jsx(E,{name:"delete",height:10,width:10,color:"var(--ff-delete-button-attachment)",onClick:r})})})]}),e.jsx("div",{className:"ff-expand-icon-container",children:e.jsx(M,{title:"Maximize",placement:"bottom",children:e.jsx(E,{name:"expand_icon",height:16,width:16,onClick:n})})})]})]})}),exports.AttachmentButton=nf,exports.Avatar=({variant:t="small",iconName:n,iconColor:r="var(--avatar-icon-color)",customAvatarSize:o,customIconSize:A,backgroundColor:i,label:a,labelFontSize:l})=>{const c=a?.slice(0,2);return e.jsx("div",{className:`ff-avatar ff-avatar--${t}`,style:{height:`${o}px`,width:`${o}px`,backgroundColor:i},children:a?e.jsx("span",{className:"ff-avatar-label",style:{fontSize:l||"14px",color:r},children:c}):e.jsx(E,{name:n,height:A,width:A,color:r})})},exports.BASE64_REGEX=/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/,exports.BINARY_NUMBER_REGEX=/^[01]+$/,exports.BarChart=({data:n,barWidth:r,height:o,barGap:A=20,colors:i=[],xAxisLabel:a,isTruncateText:l=!0,yAxisLabel:c,padding:s=20,yAxisDivisions:f=5,barBorderRadius:d=0,legend:C=!0,showXAxisLabels:u=!0,icons:p=[],iconSize:g,legendPosition:h="bottom",legendGap:m=5,extendBarChartRightWidth:w=0,isYAxisValuePercentage:v=!1,selectedBar:B,setSelectedBar:I,onSelectedBar:x=e=>{},totalLabel:M="Total Execution",customToolTip:L=!1,isOnclick:y=!1,isDashboardVersions:Q,type:D=""})=>{const k=t.useRef(null),[V,Z]=t.useState(null),j=n.map((e=>{if("string"==typeof e.value){let t=0;return t="memory"===D?Fp(e.value):parseFloat(e.value),{...e,normalizedValue:t}}return{...e,normalizedValue:e.value}}));let N=0;"memory"===D&&(N=n.reduce(((e,t)=>"string"==typeof t.value?e+Op(t.value):e+1024*Number(t.value)*1024*1024),0));const z=N/1048576,P=z<1024?`${Math.round(z)} mb`:`${(z/1024).toFixed(1)} gb`;let S=Math.max(...j.map((e=>e.normalizedValue)));S="memory"===D?Math.max(S,1):Math.max(S,f);const O=40,F=j.length*r+(j.length-1)*A+80+10+w,T=Date.now(),R=e=>i?.[e%i.length]?.[0]?`url(#gradient-${T}-${D}-${e%i.length})`:"grey",G=(e,t,n,r,o)=>{const A=k.current;if(A)if(A.style.display="block",L)A.innerHTML=`<div>\n <div><Typography fontWeight='semi-bold'>${e}</Typography></div>\n <div><Typography>${n||""}</Typography></div>\n <div><Typography>${M} : ${t} ${r?"("+r+"%)":""}</Typography></div>\n </div>`;else if(Q){const e=o?o.join(", "):"";A.innerHTML=`\n <div>\n <div><Typography>${M} : ${t}</Typography></div>\n ${e?`<div><Typography>Versions : ${e}</Typography></div>`:""}\n </div>`}else A.innerHTML="memory"===D?`<strong>${e}</strong>: ${t} / ${P}`:`<strong>${e}</strong>: ${t} ${v?"%":""}`},X=(e,t=!1)=>{const n=k.current;if(n){const r=n.parentElement?.getBoundingClientRect(),o=window.scrollX,A=window.scrollY,i=t?e.clientX-(r?.left||0)+o-n.offsetWidth-10:e.clientX-(r?.left||0)+o+10,a=e.clientY-(r?.top||0)+A-20;n.style.left=`${i}px`,n.style.top=`${a}px`}},Y=()=>{const e=k.current;e&&(e.style.display="none")};return e.jsxs("div",{className:"ff-bar-chart-container",style:{width:F},children:[e.jsx("div",{ref:k,className:"ff-bar-chart-tooltip"}),C&&"top"===h&&e.jsx("div",{className:"ff-legend-container",children:e.jsx("div",{className:"ff-bar-chart-legend",style:{gap:`${m}px`},children:j.map(((t,n)=>e.jsxs("div",{className:"ff-bar-chart-legend-item",onMouseEnter:()=>Z(n),onMouseLeave:()=>Z(null),children:[p[n]&&"string"==typeof p[n]?e.jsx(E,{name:String(p[n]),width:g,height:g}):e.jsx("span",{className:"ff-bar-chart-legend-item-circle",style:{backgroundColor:i[n%i.length]?.[0]||"grey"}}),e.jsx(b,{as:"div",fontSize:10,fontWeight:"regular",className:"ff-legend-label",children:t.label})]},t.label)))})}),e.jsx("div",{children:e.jsxs("svg",{width:F,height:o+O+5+(u?20:0)+(a?20:0),children:[Array.isArray(i)&&i.length>0&&(U=i,U.map(((t,n)=>e.jsx("defs",{children:e.jsx("linearGradient",{id:`gradient-${T}-${D}-${n}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:t.map(((r,o)=>e.jsx("stop",{offset:o/(t.length-1)*100+"%",stopColor:r},`${n}-${o}`)))})},n)))),Array.from({length:f+1}).map(((t,n)=>{const r=o-n/f*o+O+4,A=n*S/f,i="memory"===D?A.toFixed(1):v?`${A.toFixed(0).padStart(2,"0")}%`:A.toFixed(0).padStart(2,"0");return e.jsx("text",{x:40,y:r,fill:"black",textAnchor:"middle",className:"ff-bar-chart-labels",children:i},n)})),j.map(((t,n)=>{const i=t.normalizedValue/S*o,a=0===t.normalizedValue?2:i,c=n*(r+A)+40+s,f=o-a+O,C=g||20,h=c+r/2-C/2,m=f-C,b=B===t.label,w=V===n;return e.jsxs("g",{children:[p[n]&&"string"==typeof p[n]&&e.jsx("g",{onMouseEnter:()=>G(t.label,"memory"===D?t.value:t.normalizedValue,t.id,t.percent,t.versions),onMouseMove:e=>X(e,n===j.length-1),onMouseLeave:Y,children:e.jsx(E,{name:String(p[n]),x:String(h),y:String(m),width:C,height:C,chartIcon:!0})}),e.jsx("rect",{x:c,y:f,width:r,height:a,fill:R(n),rx:d,ry:d,style:{strokeWidth:b?3:0,opacity:null===V||w?1:.3,cursor:y?"pointer":"default",transition:"opacity 0.5s ease"},onMouseEnter:()=>G(t.label,"memory"===D?t.value:t.normalizedValue,t.id,t.percent,t.versions),onMouseMove:e=>X(e,n===j.length-1),onMouseLeave:Y,onClick:()=>{return e=t.label,void(I&&(I(e),y&&x(e)));var e}}),b&&y&&e.jsx("rect",{x:c,y:f,width:r,height:a,fill:"var(--select-chart-highlight-color)",rx:d,ry:d,onMouseEnter:()=>G(t.label,"memory"===D?t.value:t.normalizedValue,t.id,t.percent,t.versions),onMouseMove:e=>X(e,n===j.length-1),onMouseLeave:Y}),u&&e.jsx("text",{x:0===n?c:n===j.length-1?c+r:c+r/2,y:o+O+15,className:"ff-bar-chart-labels",fill:b?"var(--brand-color)":"black",fontWeight:b?"bold":"normal",textAnchor:0===n?"start":"middle",children:l?H(t.label,10):t.label})]},n)})),e.jsx("line",{x1:60,y1:o+O,x2:F,y2:o+O,stroke:"#D9D9D9",strokeWidth:"1"}),a&&e.jsx("text",{x:F/2,y:o+O+(u?40:20),fontSize:"12",fill:"black",textAnchor:"middle",className:"ff-bar-chart-labels",children:a}),c&&e.jsx("text",{x:-(o/2+35),y:10,transform:"rotate(-90)",fill:"black",textAnchor:"middle",alignmentBaseline:"middle",className:"ff-bar-chart-labels",children:c})]})}),C&&"bottom"===h&&e.jsx("div",{className:"ff-legend-container",children:e.jsx("div",{className:"ff-bar-chart-legend",style:{gap:`${m}px`},children:n.map(((t,n)=>e.jsxs("div",{className:"ff-bar-chart-legend-item",onMouseEnter:()=>Z(n),onMouseLeave:()=>Z(null),children:[p[n]&&"string"==typeof p[n]?e.jsx(E,{name:String(p[n]),width:g,height:g}):e.jsx("span",{className:"ff-bar-chart-legend-item-circle",style:{backgroundColor:i[n%i.length]?.[0]||"grey"}}),e.jsx("div",{children:e.jsx(b,{as:"div",fontSize:10,fontWeight:"regular",className:"ff-legend-label",children:t.label})})]},t.label)))})})]});var U},exports.Box=({cardProperties:t={width:"200px",height:"200px",background:"white",borderRadius:"16px",boxShadow:"1px 4px 8px var(--plugins-header-bg-color)",padding:"16px",margin:"0",border:"none",className:"",style:{},onClick:()=>{}},headerContent:n,midContent:r,footerContent:o})=>{const{width:A,height:i,background:a,borderRadius:l,boxShadow:c,padding:s,margin:f,border:d,className:C="",style:u={}}=t;return e.jsxs("section",{className:`ff-card ${C}`,style:{width:A,height:i,background:a,borderRadius:l,boxShadow:c,padding:s,margin:f,border:d,...u},onClick:t.onClick,children:[n?.isHeader&&e.jsx("div",{className:"ff-card-header",children:n.content}),r?.isMidContent&&e.jsx("div",{className:"ff-card-content",children:r.content}),o?.isFooter&&e.jsx("div",{className:"ff-card-footer",children:o.content})]})},exports.BrowserTabs=({tabsData:n,activeTabId:r,onTabClick:o,onTabClose:A,onTabAdd:i,maxTabWidth:a=132,showCloseOnActive:l=!0})=>{const c=t.useRef(null),[s,f]=t.useState();return t.useEffect((()=>{const e=()=>{if(c.current){const e=(c.current.getBoundingClientRect().width-a)/n.length;f(Math.min(a,e))}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[n.length,a]),e.jsx("div",{className:"ff-browser-tabs-container",ref:c,children:e.jsxs("div",{className:"ff-browser-tab-row",children:[e.jsx("div",{className:"ff-tab-button-container",children:n.map(((t,i)=>{const c=r===t.id,f=s&&s<80;return e.jsxs("div",{className:d("ff-tab-wrapper",{active:c}),children:[e.jsx(M,{title:f?t.label:"",children:e.jsx("button",{onClick:()=>o(t.id),className:d("ff-tab-button",{shrink:s&&s<=80}),style:{width:s?`${s}px`:"auto",padding:void 0===s||s<60?"0px":s<80?"0px 2px":s<132?"0px 8px":`0px ${s/17}px`},children:e.jsxs("div",{className:"ff-tab-content",children:[s&&s>=20&&(!c||s>=80)&&e.jsx(e.Fragment,{children:t.tabIconSrc?e.jsx("img",{src:t.tabIconSrc,alt:t.label,className:"ff-tab-icon"}):t.tabIcon&&e.jsx(E,{name:t.tabIcon,hoverEffect:!1,color:"inherit"})}),s&&s>40&&e.jsx("div",{className:"ff-tab-label-container",children:e.jsx(b,{children:t.label,lineHeight:"18px",fontWeight:c?"semi-bold":"regular",color:c?"var(--tabs-label-active-color)":"var(--tabs-label-default-color)",className:"ff-tab-label"})}),(s&&s>=80||c)&&l&&e.jsx(M,{title:"Close ",children:e.jsx(E,{name:"close",className:"ff-close-icon",hoverEffect:!1,height:10,width:10,onClick:e=>{e.stopPropagation(),A&&A(t.id)}})})]})})}),s&&s<a&&!(c||i===n.length-1||r===n[0]?.id&&0===i||r===n[i+1]?.id)&&e.jsx("span",{className:"ff-tab-separator "+(s>80?"wide-browser-tab":"narrow-browser-tab")})]},t.id)}))}),e.jsx(M,{title:"Add",children:e.jsx("div",{className:"ff-tab-plus-icon",onClick:i,children:e.jsx(E,{name:"add_file",color:"#71347B",width:10,height:10})})})]})})},exports.Button=w,exports.CAMEL_CASE_REGEX=/(?:^\w|[A-Z]|\b\w|\s+)/g,exports.CERTIFICATES_NAME_REGEX=/^[^:;/\\@()=?{}[\]<>,.]*$/,exports.CREDIT_CARD_REGEX=/^\d{4}-?\d{4}-?\d{4}-?\d{4}$/,exports.CURRENCY_GENERIC_REGEX=/^[\u0024-\u20B9]?\d+(,\d{3})*(\.\d{1,2})?$/,exports.ChatModal=({iconName:r,iconPosition:{top:o,left:A,bottom:i,right:a},hoverIconPosition:{top:l,left:c,bottom:s,right:f},modalPosition:{top:C,left:u,bottom:p,right:g},modalWidth:h,modalHeight:m,headerContent:w="Header Content",footerContent:v="Footer Content",iconWidth:B,iconHeight:I,modalHeading:x="Ask Fia",children:L,onClearChat:y})=>{const[Q,H]=t.useState(!1),[D,k]=t.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{top:void 0!==o?`${o}px`:void 0,left:void 0!==A?`${A}px`:void 0,bottom:void 0!==i?`${i}px`:void 0,right:void 0!==a?`${a}px`:void 0},className:"ff-dynamic-icon-container",children:[e.jsx(E,{className:"ff-dynamic-icon",name:r,onClick:()=>{k((e=>!e)),setTimeout((()=>H((e=>!e))),10)},height:I,width:B}),e.jsx("div",{style:{top:void 0!==l?`${l}px`:void 0,left:void 0!==c?`${c}px`:void 0,bottom:void 0!==s?`${s}px`:void 0,right:void 0!==f?`${f}px`:void 0},className:"ff-chat-icon-hover",children:e.jsx(E,{name:"ask_fia_icon",height:32,width:82})})]}),D&&n.createPortal(e.jsx("div",{className:d("ff-dynamic-modal",{open:Q}),style:{top:void 0!==C?`${C}px`:void 0,left:void 0!==u?`${u}px`:void 0,bottom:void 0!==p?`${p}px`:void 0,right:void 0!==g?`${g}px`:void 0,position:"fixed",height:m,width:h},children:e.jsxs("div",{className:"ff-dynamic-modal-content",children:[w&&e.jsx("div",{className:"ff-dynamic-modal-header",children:e.jsxs("div",{className:"header-container",children:[e.jsxs("div",{className:"header-left",children:[e.jsx(E,{height:16,width:16,name:"fia_icon"}),e.jsx(b,{fontWeight:"medium",children:x})]}),e.jsxs("div",{className:"header-right",children:[e.jsx("span",{className:"action",children:e.jsx(M,{title:"Clear chat",placement:"top",children:e.jsx(E,{height:16,width:16,name:"delete",color:"var(--tooltip-text-color)",onClick:y})})}),e.jsx("span",{className:"action",children:e.jsx(M,{title:"Close",placement:"top",children:e.jsx(E,{height:16,width:16,name:"close",color:"var(--tooltip-text-color)",onClick:()=>(H(!1),void setTimeout((()=>k(!1)),300))})})})]})]})}),e.jsx("div",{className:"ff-dynamic-modal-body",children:L}),v&&e.jsx("div",{className:"ff-dynamic-modal-footer",children:v})]})}),document.body)]})},exports.Checkbox=Q,exports.Chip=({label:n="",fullText:r="",variant:o="primary",labelWidth:A=36,fullTextWidth:i=86,onClick:a=()=>{}})=>{const[l,c]=t.useState(!1),s=l&&r?r:n,f=l?{maxWidth:`${i}px`,transition:"transform 0.3s ease-in-out,max-width 0.5s ease-in-out",overflow:"hidden"}:{maxWidth:`${A}px`,transition:"transform 0.3s ease-in-out,max-width 0.5s ease-in-out",overflow:"hidden"};return e.jsx("div",{className:"ff-chip-wrapper",children:e.jsx("button",{onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onClick:a,className:d(`ff-default-chip-style ff-default-chip-style--${o}`,{"ff-default-chip-style--fullText":!!r}),style:f,children:s&&e.jsx(b,{as:"p",fontSize:10,fontWeight:"semi-bold",color:"var(----text-color)",className:"ff-chip-paragraph",children:s})})})},exports.ChipWithCount=({labelsList:t=[]})=>{const n=e.jsx("div",{className:"ff-chip-tooltip",children:t.map(((t,n)=>n>0?e.jsx(b,{as:"div",children:t,className:"ff-chip-tooltip-label"},n):null))});return e.jsx(e.Fragment,{children:!x(t)&&e.jsxs("div",{className:"ff-chip-with-count-container",children:[e.jsx(M,{title:t[0],children:e.jsx(b,{as:"div",children:H(t[0]||"",10),className:"ff-chip-label",fontWeight:"medium"})}),t.length>1&&e.jsx(M,{title:e.jsx(b,{as:"div",children:n}),children:e.jsx(b,{as:"div",children:"+"+(t.length-1),className:"ff-chip-count",fontWeight:"medium"})})]})})},exports.ChooseFile=({variant:t="primary",size:n="small",onClick:r,label:o="Choose File",disabled:A=!1,type:i="button",className:a="",style:l={},iconName:c,isChooseFile:s=!1,buttonWidth:f="auto",buttonHeight:d="auto",selectedFile:C={},handleCloseIcon:u})=>e.jsx("div",{children:e.jsx(w,{variant:t,label:o,type:i,onClick:r,buttonWidth:f,buttonHeight:d,isChooseFile:s,size:n,disabled:A,className:a,iconName:c,style:l,iconPosition:"right",selectedFile:C,handleCloseIcon:u})}),exports.Col=({children:t,size:n=12,className:r=""})=>{const o=`ff-col-${n}`;return e.jsx("div",{className:d(o,r),children:t})},exports.Comments=({commentsData:n,handleAddComment:r,handleEditComment:o,handleDeleteComment:A,onCommentsDataChange:i,currentUser:a,isDisable:l=!1})=>{const[c,s]=t.useState(""),[f,d]=t.useState([]),C=(e,t)=>{for(const n of e){if(n.id===t)return n;const e=C(n.comments,t);if(e)return e}return null};t.useEffect((()=>{n&&d(n)}),[n]);const{insertNode:u,editNode:p,deleteNode:g}=(()=>{const e=(t,n,r)=>t.map((t=>t.id===n?{...t,comments:[...t.comments,{id:Js(),description:r.description,comments:[],createdBy:t.createdBy,modifiedBy:t.modifiedBy,createdByUname:t.createdByUname,modifiedByUname:t.modifiedByUname,createdOn:(new Date).toLocaleString(),modifiedOn:(new Date).toLocaleString(),commentParentId:n}]}:{...t,comments:e(t.comments,n,r)})),t=(e,n,r)=>e.map((e=>({...e,description:e.id===n?r:e.description,comments:t(e.comments,n,r)}))),n=(e,t)=>e.filter((e=>e.id!==t)).map((e=>({...e,comments:n(e.comments,t)})));return{insertNode:e,editNode:t,deleteNode:n}})(),h=(e,t)=>{if(!t.trim())return;const n={id:Js(),description:t,commentParentId:e,emailId:[],comments:[],createdBy:a?.createdBy,modifiedBy:a?.modifiedBy,createdByUname:a?.createdByUname,modifiedByUname:a?.modifiedByUname,createdOn:(new Date).toISOString(),modifiedOn:(new Date).toISOString()};d((t=>u(t,e,n))),r&&r(n,C(f,e))},m=t.useCallback(((e,t)=>{const n=p(f,e,t);d(n);const r=C(n,e);o&&o(e,t,r)}),[f,p,o]),w=t.useCallback((e=>{const t=g(f,e);d(t),A&&A(e)}),[f,g,A]);t.useEffect((()=>{i&&i(f)}),[f,i]);return e.jsxs("div",{className:"ff-comments-container-box",children:[e.jsxs("div",{className:"first-comment",children:[e.jsx(b,{fontWeight:"semi-bold",className:"ff-comment-heading",children:"Comments"}),e.jsxs("div",{className:"input-wrapper",children:[e.jsx("textarea",{className:"inputContainer__input first_input",rows:1,autoFocus:!0,value:c,onChange:e=>s(e.target.value),placeholder:"Add Comments",disabled:l}),e.jsx("span",{className:"reply-comment",children:e.jsx(M,{title:"reply",children:e.jsx(E,{name:"comment_reply",onClick:()=>{if(!c.trim())return;const e={id:Js(),description:c,comments:[],createdBy:a?.createdBy,modifiedBy:a?.modifiedBy,createdByUname:a?.createdByUname,modifiedByUname:a?.modifiedByUname,createdOn:(new Date).toISOString(),modifiedOn:(new Date).toISOString(),commentParentId:""};d((t=>[...t,e])),r&&r(e,null),s("")},hoverEffect:!0,disabled:l})})})]})]}),f.length>0&&f.map((t=>e.jsx(im,{handleInsertNode:h,handleEditNode:m,handleDeleteNode:w,comment:t,depth:0,isDisable:l},t.id)))]})},exports.ConditionalDropdown=cm,exports.ConnectingBranch=({data:n,getChildNodeComponent:r,getParentNodeComponent:o,getParentNodeComponentActionItems:A,childNodeCurveHeight:i=1.28,isReadOnlyMode:a=!1})=>{const l=t.useRef(null),[c,s]=t.useState(0),[f,d]=t.useState([]),C=t.useRef([]);t.useEffect((()=>{l.current&&s(l.current.offsetHeight)}),[n]);t.useEffect((()=>{(()=>{const e=C.current.map(((e,t)=>0===t?0:c*i));d(e)})()}),[c,n]);const u=e=>1+(e.machineInstances?.length+1||0);let p=1;const g=n?.machines?.selectedMachines.reduce(((e,t)=>a?e+(e=>!e?.machineInstances||x(e.machineInstances)?1:e.machineInstances.length)(t):e+u(t)),0),h=Math.round(g/2);let m=1===h&&a&&2===g||1===h&&!a&&2===g;return e.jsx("div",{className:"connecting-branch-container",children:e.jsx(om.ArcherContainer,{strokeColor:"var(--brand-color)",strokeWidth:1,startMarker:!0,endMarker:!1,noCurves:!0,children:e.jsxs("div",{className:"ff-connecting-branch-grid-container",children:[e.jsx(om.ArcherElement,{id:"rootNode",children:e.jsx("div",{className:"ff-grid-item ff-dynamic-item",style:{gridRow:h,top:m?"44px":""},children:e.jsx("div",{className:"ff-script-count-container",children:e.jsxs("div",{className:"ff-script-count-box",children:[e.jsx(b,{children:n?.machines?.totalNoScript}),e.jsx(b,{children:"Scripts"})]})})})}),n?.machines?.selectedMachines.map(((n,i)=>{const s=p,d=u(n);p+=d;const g=((e,t,n)=>{if(1===e.length&&a)return 0;const r=e.reduce(((t,n,r)=>t+(r===e.length-1&&a?0:n.runLevelExecutionDataSets?.length||0)),0);return r*(t+n)})(n?.machineInstances,c,16);return e.jsx(t.Fragment,{children:e.jsxs("div",{className:"ff-selectedMachines",style:{gridRow:`${s} / span ${d}`},children:[e.jsx("div",{className:"ff-selectedMachines-input",children:e.jsxs("div",{className:"ff-input-box-container "+(n?.machineInstances.length?"":"ff-input-box-aligned"),children:[e.jsx(om.ArcherElement,{id:`parentnode${i}`,relations:[{targetId:"rootNode",targetAnchor:"left",sourceAnchor:"left"}],children:o({isMultiSelect:!1,parentNodeData:n,parentNodeIndex:i})},Js()),A({parentNodeData:n,parentNodeIndex:i})]})}),e.jsx(Am,{parentNodeIndex:i,parentNodeData:n,verticalLineHeight:g,datasetHeight:c,curveHeights:f,itemRefs:C,datasetRef:l,getChildNodeComponent:r,isReadOnlyMode:a})]})},Js())})),!a&&e.jsx("div",{className:"ff-select-machine-input",style:{gridRow:`${p}`},children:e.jsx(om.ArcherElement,{id:"lastNode",relations:[{targetId:"rootNode",targetAnchor:"left",sourceAnchor:"left"}],children:e.jsx("div",{children:o({isMultiSelect:!0})})})})]})})})},exports.Container=({children:t,fluid:n=!1,gap:r="0px",className:o=""})=>{const A=n?"ff-container-fluid":"ff-container";return e.jsx("div",{className:d(A,o),style:{gap:r},children:t})},exports.CreateVariableSlider=({isOpen:t,variableTypesList:n=[],onClose:r,onNameChange:o,onValueChange:A,variableName:i,value:a,onVariableTypeChange:l,selectedVariableType:c,hideValue:s=!1,onHideChange:f,handleSubmit:d,mode:C="create",disabled:u})=>e.jsx(I,{onClose:r,isOpen:t,title:"create"===C?"Create Variable":"Edit Variable",width:"284px",height:"272px",top:"30%",right:8,isFooterRequired:!0,overlay:!0,footerContent:e.jsx((()=>e.jsxs("div",{className:"ff-create-slider-footer",children:[e.jsx(w,{onClick:r,label:"Cancel",variant:"tertiary"}),e.jsx(w,{variant:"primary",label:"create"===C?"Create":"Edit",type:"submit",onClick:d,disabled:x(i)})]})),{}),children:e.jsxs("div",{className:"ff-create-variable-slider",children:[e.jsx(z,{label:"Variable Name",required:!0,type:"text",name:"variable name",value:i||"",onChange:e=>o(e.target.value)}),e.jsx(X,{label:"Variable Type",required:!0,onChange:e=>l(e),selectedOption:c,optionsList:n,optionZIndex:99999}),e.jsx(z,{label:"Variable Value",type:s?"password":"text",name:"value",value:"create"===C?i:a||"",onChange:e=>A(e.target.value)}),e.jsxs("div",{className:"ff-hide-value-content",children:[e.jsx(Q,{onChange:e=>f(e.target.checked),name:"hide value",label:"Hide Value",checked:s,disabled:u}),e.jsx(M,{title:"Once the value is hidden, it cannot be undone",children:e.jsx(E,{name:"info",width:12,height:12})})]})]})}),exports.DATE_REGEX=/^\d{4}-\d{2}-\d{2}$/,exports.DECIMAL_NUMBER_REGEX=/^-?\d+(\.\d+)?$/,exports.DRIVING_LICENSE_REGEX=/^[A-Z]{2}-\d{2}-\d{4}-\d{7}$/,exports.DYNAMIC_VALUE_PATTERN_REGEX=/\{Dynamic Val[0-9]+\}/g,exports.DYNAMIC_VALUE_TYPE_REGEX=/{([^}]+)}/g,exports.DYNAMIC_VALUE_WITH_VALID_BRACKETS_REGEX=/\{Dynamic Val[A-Za-z0-9\s]+\}/g,exports.DYNAMIC_VALUE__PLACEHOLDER_REGEX=/Dynamic Val[0-9]+/g,exports.DashboardDonutChart=({radius:n=60,tableWidth:r,tableHeight:o=120,lineWidth:A=15,statusValues:i=[],gapAngle:a=0,legendDetailsType:l="",isLegendDetails:c=!0,legendType:s="numberLegend",showOnlyLabel:f=!1,apiDataLabel:C,unit:u,showUnit:p=!0,labelFontSize:g=24,subLabelFontSize:h=14,legendPosition:m="bottom",chartGap:w=0,legendGap:v=5,legendValueFontSize:B=22,legendKeyFontSize:I=12,legendWithVersionFontSize:x=12,versionErrorText:L,labelYoffSet:y=-5,subLabelYoffSet:Q=20,capsuleStyle:H={},legendTruncate:D=1/0,isLegendToolTip:k=!1,containerHeight:V="",onSelectedStatus:Z=e=>{},selectedStatusKey:j="",setSelectedStatusKey:N=e=>{},isOnClick:z=!1})=>{const[P,S]=t.useState(null),[O,F]=t.useState(null),[T,R]=t.useState({x:0,y:0}),[G,X]=t.useState(!1),[Y,U]=t.useState(null);t.useEffect((()=>{j||U(null)}),[j]),t.useEffect((()=>{i.forEach((e=>{e.version&&console.log(`Version for ${e.key}:`,e.version)}))}),[i]);const K="memoryLegend"===s?i.map((e=>{if("string"==typeof e.value){const{normalizedValue:t,unit:n,value:r}=function(e){const t=e.match(/^(\d+(?:\.\d+)?)\s*(B|KB|MB|GB)$/i);if(!t)throw new Error(`Invalid storage value format: ${e}`);const[,n,r]=t;if(!n||!r)throw new Error(`Invalid storage value format: ${e}`);return{normalizedValue:parseFloat(n)*(oe[r.toUpperCase()]||1),unit:r.toUpperCase(),value:parseFloat(n)}}(e.value);return{...e,normalizedValue:t,unit:n,labelValue:r}}return{...e,normalizedValue:e.value,labelValue:e.value,unit:"B"}})):i.map((e=>{if("string"==typeof e.value){const t=parseFloat(e.value),n=isNaN(t)?0:t;return{...e,normalizedValue:n,unit:"",labelValue:Number.isInteger(n)?n:n.toFixed(2)}}return{...e,normalizedValue:e.value,unit:"",labelValue:Number.isInteger(e.value)?e.value:e.value?.toFixed(2)}})),W=K?.map(((e,t)=>({...e,value:e.normalizedValue??e.value,originalIndex:t}))),q=W?.reduce(((e,{value:t})=>e+Wc(t)),0)||0,J=W?.filter((({value:e})=>Wc(e)>0))||[],_=function(e){const t=["GB","MB","KB","B"];for(const n of t){const t=oe[n];if(void 0===t)throw new Error(`Missing factor for unit: ${n}`);if(e>=t||"B"===n){const r=e/t;return`${r%1==0?`${r.toFixed(0)}`:`${r.toFixed(2)}`} ${n}`}}return`${e} B`}(q),$=2*Math.PI*.01,ee=t.useMemo((()=>{if(0===J.length)return[];const e=2*Math.PI,t=a*J.length;let n=e-t;J.forEach((({value:t})=>{const r=Wc(t)/q,o=Math.max(r*e,$);n-=o}));let r=Math.PI/2;return J.map((t=>{const o=Wc(t.value)/q,A=Math.max(o*e,$),i=r,l=r+(A+n*(o/q));r=l+a;let c=null;if(t.version&&Array.isArray(t.version)&&0!==t.version.length||!L){if(t.version&&Array.isArray(t.version)&&t.version.length>0){const e=qc(t);if(e.length>0){const t=e.length,n=(l-i)/t;c=e.map(((e,t)=>({randomColor:e.color,value:e.ver,startAngle:i+t*n,endAngle:i+(t+1)*n})))}}}else c=[{randomColor:"var(--tooltip-bg-color)",value:L,startAngle:i,endAngle:l,opacity:.2}];return{item:t,startAngle:i,endAngle:l,subArcs:c}}))}),[J,q,a,$,L]),te=e=>{S(e),X(!0)},ne=()=>{S(null),X(!1)},re=e=>{R({x:e.clientX+10,y:e.clientY+10})},Ae=(e,t)=>{z&&j!==e?(U(t),N(e),Z(e)):(U(null),N(""),Z(""))},ie=2*n+A+6,ae=2*n-A-6;function le(e,t,n){const r=e.split(" "),o=[];let A="";return r.forEach((e=>{const r=A?`${A} ${e}`:e;(function(e,t){const n=document.createElement("canvas").getContext("2d");if(!n)throw new Error("Unable to get canvas context");return n.font=`${t}px Poppins`,n.measureText(e).width})(r,n)<=t?A=r:(A&&o.push(A),A=e)})),A&&o.push(A),o}const ce=e=>{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.style.fontSize=`${h}px`,t.style.visibility="hidden";const n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.appendChild(t),document.body.appendChild(n),t.textContent=e;let r=t.getComputedTextLength();if(r<=ae)return document.body.removeChild(n),e;let o=e;for(;r>ae&&o.length>0;)o=o.slice(0,-1),t.textContent=`${o}...`,r=t.getComputedTextLength();return document.body.removeChild(n),`${o}...`};return e.jsxs("div",{className:d("ff-dashboard-donut-chart-section",{"ff-dashboard-donut-chart-section-table-legend":"tableLegend"===s,"legend-position-bottom":"bottom"===m,"legend-position-left":"left"===m,"ff-overflow-visible":!0}),style:{gap:`${w}px`},children:[e.jsxs("div",{className:"ff-dashboard-donut-chart-svg-container",children:[e.jsx("svg",{width:ie,height:ie,viewBox:`0 0 ${ie} ${ie}`,className:"ff-svg-overflow-visible",children:e.jsxs("g",{transform:`translate(${n+A/2+3}, ${n+A/2+3})`,children:[0===q||0===J.length?e.jsx("circle",{cx:0,cy:0,r:n,fill:"none",stroke:"var(--tooltip-bg-color)",strokeWidth:A,strokeOpacity:.8,opacity:.2}):ee.map(((t,r)=>(t=>{if(t.subArcs)return e.jsx("g",{className:"donut-segment version-segment",children:t.subArcs.map(((r,o)=>{const i=r.endAngle-r.startAngle,a=Math.abs(i-2*Math.PI)<.01,l=null!==O?O.parentIndex===t.item.originalIndex&&O.subIndex===o:null===P||P===t.item.originalIndex;if(a)return e.jsxs("g",{className:"sub-arc-group",onMouseEnter:e=>{F({parentIndex:t.item.originalIndex,subIndex:o}),R({x:e.clientX+10,y:e.clientY+10}),X(!0)},onMouseLeave:()=>{F(null),X(!1)},onMouseMove:e=>R({x:e.clientX+10,y:e.clientY+10}),children:[e.jsx("circle",{cx:"0",cy:"0",r:n,fill:"none",stroke:r.randomColor,strokeWidth:A,strokeOpacity:L?.2:l?1:0,style:{transition:"stroke-opacity 0.5s ease"}}),e.jsx("g",{className:"sub-arc-border-wrapper",style:{opacity:O&&O.parentIndex===t.item.originalIndex&&O.subIndex===o?1:0,transition:"opacity 0.5s ease",overflow:"visible"},children:e.jsx("circle",{cx:"0",cy:"0",r:n+A/2+2+1,fill:"none",stroke:r.randomColor,strokeWidth:2,style:{transition:"stroke 0.5s ease"}})})]},o);{const i=Jc(0,0,n,r.startAngle,r.endAngle),a=_c(n+A/2+2,n+A/2+2+2,r.startAngle,r.endAngle),c=O&&O.parentIndex===t.item.originalIndex&&O.subIndex===o?1:0,s=j===t?.item?.key;return e.jsxs("g",{className:"sub-arc-group",onMouseEnter:e=>{F({parentIndex:t.item.originalIndex,subIndex:o}),R({x:e.clientX+10,y:e.clientY+10}),X(!0)},onMouseLeave:()=>{F(null),X(!1)},onMouseMove:e=>R({x:e.clientX+10,y:e.clientY+10}),children:[e.jsx("path",{d:i,fill:"none",stroke:r.randomColor,strokeWidth:A,style:{strokeOpacity:l?1:.2,transition:"stroke-opacity 0.5s ease"}}),s&&z&&e.jsx("path",{d:i,fill:"none",stroke:"var(--dotted-border-color)",strokeWidth:A,strokeOpacity:.4,pointerEvents:"none"}),e.jsx("g",{className:"sub-arc-border-wrapper",style:{opacity:c,transition:"opacity 0.5s ease",overflow:"visible"},children:e.jsx("path",{d:a,fill:r.randomColor,pointerEvents:"none"})})]},o)}}))},t.item.originalIndex);{const r=t.endAngle-t.startAngle,o=Math.abs(r-2*Math.PI)<.01,i=null!==P?P===t.item.originalIndex:null===O||O.parentIndex===t.item.originalIndex,a=t.item.color||$c[t.item.originalIndex%$c.length],l=P===t.item.originalIndex?1:0,c=j===t?.item?.key;if(o)return e.jsxs("g",{className:"donut-segment",children:[e.jsx("circle",{cx:"0",cy:"0",r:n,fill:"none",stroke:a,strokeWidth:A,onMouseEnter:()=>te(t.item.originalIndex),onMouseLeave:ne,onMouseMove:re,onClick:()=>Ae(t.item.key,t.item.originalIndex),style:{cursor:z?"pointer":"default",strokeOpacity:i?1:.2,transition:"stroke-opacity 0.5s ease"}}),c&&z&&e.jsx("circle",{cx:"0",cy:"0",r:n,fill:"none",strokeWidth:A,stroke:"var(--dotted-border-color)",strokeOpacity:.4,pointerEvents:"none"}),e.jsx("g",{className:"donut-border-wrapper",style:{opacity:l,transition:"opacity 0.5s ease",overflow:"visible"},children:e.jsx("circle",{cx:"0",cy:"0",r:n+A/2+2+1,fill:"none",stroke:a,strokeWidth:2,style:{transition:"stroke 0.5s ease"}})})]},t.item.originalIndex);{const r=Jc(0,0,n,t.startAngle,t.endAngle);return e.jsxs("g",{className:"donut-segment",children:[e.jsx("path",{d:r,fill:"none",stroke:a,strokeWidth:A,onMouseEnter:()=>te(t.item.originalIndex),onMouseLeave:ne,onMouseMove:re,onClick:()=>Ae(t.item.key,t.item.originalIndex),style:{cursor:z?"pointer":"default",strokeOpacity:i?1:.2,transition:"stroke-opacity 0.5s ease"}}),c&&z&&e.jsx("path",{d:r,fill:"none",stroke:"var(--dotted-border-color)",strokeWidth:A,strokeOpacity:.4,pointerEvents:"none"}),e.jsx("g",{className:"donut-border-wrapper",style:{opacity:l,transition:"opacity 0.5s ease",overflow:"visible"},children:e.jsx("path",{d:_c(n+A/2+2,n+A/2+2+2,t.startAngle,t.endAngle),fill:a,pointerEvents:"none"})})]},t.item.originalIndex)}}})(t))),f&&e.jsx("text",{x:"0",y:"5",className:"ff-svg-label-text",textAnchor:"middle",fill:$c[3],style:{fontSize:`${g}px`},children:le(l,ae,g).map(((t,n,r)=>e.jsx("tspan",{x:"0",dy:0===n?r.length>1?-8:0:24,children:t},n)))}),!f&&e.jsxs(e.Fragment,{children:[e.jsx("text",{x:"0",y:y,textAnchor:"middle",fill:$c[3],style:{fontSize:`${g}px`},children:le("tableLegend"===s&&null!==P&&W.find((e=>e.originalIndex===P))?`${((W.find((e=>e.originalIndex===P))?.value||0)/q*100).toFixed(1)}%`:"memoryLegend"===s?`${_}`:z&&null!==P&&W.find((e=>e.originalIndex===P))?.value?`${W.find((e=>e.originalIndex===P))?.value}`:`${Number.isInteger(q)?q:q?.toFixed(2)} ${p&&u?u.toUpperCase():""}`,ae,g).map(((t,n)=>e.jsx("tspan",{x:"0",dy:0===n?0:g,children:null!==Y&&W.find((e=>e.originalIndex===Y))?0===n?W.find((e=>e.originalIndex===Y))?.value:null:C||t},n)))}),e.jsx("text",{x:"0",y:Q,textAnchor:"middle",fill:"var(--text-color)",style:{fontSize:`${h}px`},children:le("tableLegend"===s&&null!==P&&W.find((e=>e.originalIndex===P))?W.find((e=>e.originalIndex===P))?.key||"":z&&null!==P&&W.find((e=>e.originalIndex===P))?.key?`${W.find((e=>e.originalIndex===P))?.key}`:l,ae,h).map(((t,n)=>e.jsx("tspan",{x:"0",dy:0===n?0:h,fill:null!==Y&&W.find((e=>e.originalIndex===Y))?.color||null!==P&&z&&W.find((e=>e.originalIndex===P))?.color||"",children:null!==Y&&W.find((e=>e.originalIndex===Y))?0===n?ce(W.find((e=>e.originalIndex===Y))?.key||""):null:ce(t)},n)))})]})]})}),G&&(()=>{if(null!==O){const t=ee.find((e=>e.item.originalIndex===O.parentIndex)),n=t?.subArcs?.[O.subIndex]?.value??"";return e.jsx("div",{className:"ff-donut-chart-tooltip",style:{left:T.x,top:T.y},children:e.jsx(b,{children:`${t?.item?.key}: ${n}`})})}if(null!==P){const t=W.find((e=>e.originalIndex===P));return e.jsxs("div",{className:"ff-donut-chart-tooltip",style:{left:T.x,top:T.y},children:[e.jsx(b,{children:`${t?.key} : `}),e.jsx(b,{children:"memoryLegend"===s?`${t?.labelValue} ${t?.unit}`:t?.value}),t?.version&&e.jsx(b,{children:`Version: ${t.version.join(", ")}`})]})}return null})()]}),c&&((t,n,A)=>{const i=t.length,a=i>6?"ff-count-more":`ff-count-${i}`,l="left"===A||"right"===A,c=(t,n,r)=>k?e.jsx(M,{placement:"bottom",title:n,children:t},r):t;switch(n){case"numberLegend":return e.jsx("div",{className:d("ff-legend-container","ff-number-legend",a,{"ff-side-legend":l}),style:{"--donut-legend-gap":`${v}px`},children:t?.map((t=>e.jsxs("div",{className:"ff-legend-item ff-d-flex",onMouseEnter:()=>{Wc(t.value)>0&&S(t.originalIndex)},onMouseLeave:()=>S(null),children:[e.jsxs("div",{className:"ff-legend-item",children:[e.jsxs(b,{fontSize:B,fontWeight:"semi-bold",className:"ff-legend-value",color:t.color?t.color:$c[t.originalIndex%$c.length],children:[t.osIcon&&t.osIcon.length>0?e.jsx(E,{name:t.osIcon}):String(t.labelValue||"00").padStart(2,"0")+" ",p&&u?.toUpperCase()]}),e.jsx(b,{fontSize:I,className:"ff-legend-key",textAlign:"center",children:t.key.length>D?`${t.key.slice(0,D)}...`:t.key})]}),t.version&&t.version.length>0?e.jsx("div",{className:"ff-legend-version-container",children:e.jsx("div",{className:"ff-legend-version-grid",children:qc(t).map(((n,r)=>e.jsxs("div",{onMouseEnter:()=>F({parentIndex:t.originalIndex,subIndex:r}),onMouseLeave:()=>F(null),className:"ff-legend-version-item",children:[e.jsx("div",{className:"ff-legend-version-circle",style:{backgroundColor:n.color}}),e.jsx(b,{fontSize:x,children:n.major})]},r)))})}):L?e.jsx(b,{textAlign:"center",className:"ff-legend-version-error",fontSize:14,children:L}):null]},t.originalIndex)))});case"pillLegend":return e.jsx("div",{className:"ff-legend-container ff-pill-legend",style:{"--donut-legend-gap":`${v}px`,height:Number(V)-(ie+w)},children:t?.map((t=>{const n=e.jsxs("div",{className:"ff-legend-item",children:[e.jsx("span",{className:"ff-legend-capsule",style:{backgroundColor:t?.color?t.color:$c[t.originalIndex%$c.length],...H},children:e.jsx(b,{className:"ff-legend-capsule-content",fontSize:B,children:0===t?.labelValue?"00":t?.labelValue})}),e.jsx(b,{fontSize:I,className:"ff-legend-key",children:t?.key.length>D?`${t?.key.slice(0,D)}...`:t?.key})]},t.originalIndex);return c(n,t.key,t.originalIndex)}))});case"memoryLegend":return e.jsx("div",{className:d("ff-legend-container","ff-memory-legend",a,{"ff-side-legend":l}),style:{"--donut-legend-gap":`${v}px`},children:t?.map((t=>{const n=e.jsxs("div",{className:"ff-legend-item",onMouseEnter:()=>{Wc(t.value)>0&&S(t.originalIndex)},onMouseLeave:()=>S(null),children:[e.jsxs(b,{fontSize:B,fontWeight:"semi-bold",className:"ff-legend-value",color:t.color?t.color:$c[t.originalIndex%$c.length],children:[t.labelValue," ",t.unit]}),e.jsx(b,{fontSize:I,className:"ff-legend-key",textAlign:"center",children:t.key.length>D?`${t.key.slice(0,D)}...`:t.key})]},t.originalIndex);return c(n,t.key,t.originalIndex)}))});case"tableLegend":return e.jsx("div",{className:"ff-legend-table-wrapper",style:{height:o},children:e.jsxs("table",{className:"ff-legend-table",children:[e.jsx("thead",{className:"ff-legend-table-thead",children:e.jsxs("tr",{children:[e.jsx("th",{className:"ff-table-header",style:{width:r,textAlign:"left"},children:"Name"}),e.jsx("th",{className:"ff-table-header",style:{textAlign:"left",paddingLeft:"10px"},children:"%"}),e.jsx("th",{className:"ff-table-header",style:{textAlign:"left"},children:"Count"})]})}),e.jsx("tbody",{children:t?.map((t=>e.jsxs("tr",{className:"ff-legend-item",onMouseEnter:()=>{Wc(t.value)>0&&S(t.originalIndex)},onMouseLeave:()=>S(null),children:[e.jsxs("td",{className:"ff-legend-name",children:[e.jsxs("span",{className:"ff-legend-capsule",style:{backgroundColor:t.color?t.color:$c[t.originalIndex%$c.length]},children:[e.jsx(b,{fontSize:10,children:0===t?.value?"00":t.value})," "]}),e.jsx(b,{fontSize:10,children:t.key})]}),e.jsx("td",{className:"ff-legend-percentage",children:t.percentage?t.percentage:"string"==typeof t.value?(parseFloat(t.value)/q*100).toFixed(1):0===q?0:(t.value/q*100).toFixed(1)}),e.jsx("td",{className:"ff-legend-count",children:t.value})]},t.originalIndex)))})]})});default:return null}})(W,s,m)]})},exports.DatePicker=Rc,exports.DonutChart=({radius:n=60,lineWidth:r=15,resultStats:o=[],gapAngle:A=.06,legendDetailsType:i="",isLegendDetails:a=!0,totalCount:l})=>{const[c,s]=t.useState(null),{colorMapping:f,hoverMapping:d}={colorMapping:{passed:"var(--status-success-text-color)",failed:"var(--status-rejected-text-color)",warning:"var(--status-warning-text-color)",skipped:"var(--status-skipped-text-color)",default:"var(--brand-color)"},hoverMapping:{passed:"var(--status-success-bg-color)",failed:"var(--status-rejected-bg-color)",warning:"var(--status-warning-bg-color)",skipped:"var(--status-skipped-bg-color)",default:"var(--status-percentage-growth-bg-color)"}},C=o?.filter((({count:e})=>e>0)),u=A*C.length;let p=2*Math.PI-u,g=-Math.PI/2;const h=2*Math.PI*.01;C.forEach((({count:e})=>{const t=e/l,n=Math.max(t*(2*Math.PI),h);p-=n}));const m=e=>s(e),E=()=>s(null),b=2*(n+r)+8;return e.jsxs("div",{className:"ff-donut-chart-section",children:[e.jsx("div",{className:"ff-donut-chart-svg-container",children:e.jsx("svg",{width:b,height:b,viewBox:`0 0 ${b} ${b}`,children:e.jsxs("g",{transform:`translate(${n+r+4}, ${n+r+4})`,children:[C?.map(((t,o)=>{const i=t.count/l;let a=Math.max(i*(2*Math.PI),h);a+=p*i;return((t,o,i)=>{const a=t?.status?.toLowerCase(),l=1===C.length,s=l?fr(0,0,n,0,2*Math.PI):fr(0,0,n,g,o),d=n+r-1,u=l?fr(0,0,d,0,2*Math.PI):fr(0,0,d,g,o);return g=o+A,e.jsxs("g",{children:[e.jsx("path",{d:s,fill:"none",stroke:f[a],strokeWidth:r,onMouseEnter:()=>m(a),onMouseLeave:E,strokeOpacity:null===c||c===a?.8:.3}),c===a&&e.jsx("path",{d:u,fill:"none",stroke:f[a],strokeWidth:4,strokeOpacity:.3})]},i)})(t,g+a,o)})),e.jsx("text",{x:"0",y:"-18",textAnchor:"middle",fill:f.default,children:c?c?.toUpperCase():"TOTAL"}),e.jsx("text",{x:"0",y:"5",textAnchor:"middle",fill:f.skipped,children:c?`${o?.find((e=>e?.status?.toLowerCase()===c))?.count} ${i}`:`${l} ${i}`}),e.jsx("rect",{x:-17,y:14,width:34,height:18,fill:c?d[c?.toLowerCase()]:d.default,rx:"5",ry:"5"}),e.jsx("text",{x:"0",y:"26",textAnchor:"middle",fill:c?f[c?.toLowerCase()]:f.default,children:c?`${(o?.find((e=>e?.status?.toLowerCase()===c))?.percentage||0)?.toFixed(2)}%`:"100%"})]})})}),a&&e.jsx("div",{className:"ff-status-container",children:["passed","failed","warning","skipped"]?.map((t=>(t=>{const n=o?.find((e=>e.status?.toLowerCase()===t?.toLowerCase()));return e.jsxs("div",{className:"ff-status-item "+(null===c||c===t?"ff-highlighted":"ff-fade"),onMouseEnter:()=>m(t),onMouseLeave:E,children:[e.jsxs("div",{className:"ff-status-label",children:[e.jsx("div",{className:"ff-status-color",style:{backgroundColor:f[t]}}),e.jsx("div",{className:"ff-status-text",children:t?.charAt(0)?.toUpperCase()+t?.slice(1)?.toLowerCase()})]}),e.jsxs("div",{className:"ff-status-details",children:[e.jsxs("div",{className:"ff-status-details-script-count",children:[n?.count||0,e.jsx("span",{children:i})]}),e.jsxs("div",{className:"ff-status-details-script-percentage",children:["(",n?.percentage?.toFixed(2)||0,"%)"]})]})]},t)})(t)))})]})},exports.DownloadClient=({onClose:n,top:r="100px",left:o="0px",className:A,description:i="Download and Install the fireflink client to run the script",onClick:a=()=>{},optionZIndex:l=10000001})=>{t.useEffect((()=>{const e=e=>{"Escape"===e.key&&n?.()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[n]);return e.jsxs("div",{className:`ff-download-client-wrapper ${A}`,style:{top:r,left:o,zIndex:l},children:[e.jsxs("div",{className:"ff-download-client-header-wrapper",children:[e.jsx("div",{className:"ff-download-client-hollow-triangle"}),e.jsx(b,{fontWeight:"semi-bold",lineHeight:"32px",className:"ff-download-client-header-text",children:"Download client"}),e.jsx(E,{name:"close",color:"var(--brand-color)",className:"ff-download-client-close-icon",height:12,width:12})]}),e.jsxs("div",{className:"ff-download-client-content-text",children:[e.jsx(b,{as:"div",color:"var(--download-client-content-text-color)",fontWeight:"semi-bold",textAlign:"center",lineHeight:"26px",children:i}),e.jsx(b,{as:"div",className:"ff-download-client-description-text",textAlign:"center",fontWeight:"medium",lineHeight:"26px",children:"Choose OS to Download"}),e.jsx("div",{className:"ff-download-client-os-wrapper",children:["windows","mac_icon","linux"].map((t=>e.jsx("div",{className:"ff-os-version-wrapper",onClick:()=>{a("mac_icon"===t?"mac":t)},children:e.jsx(E,{name:t,height:36,width:36})})))})]})]})},exports.DragAndDrop=Yc,exports.Drawer=I,exports.Dropzone=hr,exports.ELEMENTS_TRAILING_SPACE_REGEX=/^\S.*\S$/,exports.ELEMENTS_WHITE_SPACE_REGEX=/.*\S.*/,exports.EMAIL_REGEX=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,exports.EditLabel=ri,exports.EditTextField=({label:n,text:r,highlightText:o,customError:A,customErrorCondition:i=!1,confirmIcon:a,cancelIcon:l,editIcon:c,dropdownData:s=[],isOpen:f=!1,confirmAction:d,onClick:C,nameTooltipTitle:u})=>{const[p,g]=t.useState(f??!1),[h,m]=t.useState(r),[w,v]=t.useState(!0),[B,I]=t.useState(s[0]?.value??""),[x,L]=t.useState(""),[y,Q]=t.useState(!1),H=!(!x||!p),D=t.useRef(null),k=t.useRef(null),V=()=>{const e=((e,t,n,r)=>e===t?"No changes were made.":e?e.length<3?"Please enter at least 3 characters.":r?n??"":"":"Text is required")(h,r,A,i);e&&p?L(e):(g(!1),L(""),d&&d(h,B))},Z=()=>{m(r),I(s[0]?.value??""),g(!1),L(""),Q(!1)};function j(e){"Enter"===e&&V(),"Escape"===e&&Z()}return Ci([{key:"Enter",action:()=>j("Enter")},{key:"Escape",action:()=>j("Escape")}]),e.jsxs("div",{className:"ff-label-edit-text-field",ref:D,children:[p?e.jsxs("div",{className:"ff-label-text-field",children:[e.jsx("div",{className:"ff-label-text-field-without-dropdown",children:e.jsx(z,{name:"input",label:n||"",disabled:!1,error:H,placeholder:"Enter your name",value:h,onChange:e=>{m(e.target.value),Q(!0),L(""),v(!1)},className:"\n \n "+(y?"modified":""),type:"text"})}),e.jsxs("div",{className:"ff-icon-container",children:[a&&e.jsx(M,{title:"confirm",placement:"bottom",children:e.jsx(E,{color:a?.color??"var(--default-confirm-icon-color)",height:a?.height??20,disabled:w,width:a?.width??20,name:a?.name??"default-confirm-icon",className:`${a?.className??"default-confirm-class"} ${w?"disabled-confirm-icon":"confirm-icon"}`,onClick:V})}),l&&e.jsx(M,{title:"cancel",placement:"bottom",children:e.jsx(E,{color:l?.color??"var(--label-edit-cancel-icon)",height:l?.height??12,width:l?.width??20,name:l?.name??"default-cancel-icon",className:l?.className??"cancel-icon",onClick:Z,ref:k})})]})]}):e.jsxs("div",{className:"display-text-container",children:[u?e.jsx(M,{title:u,children:e.jsx("span",{className:"display-text",onClick:C,children:e.jsx(ci,{text:h,highlight:o})})}):e.jsx("span",{className:"display-text",onClick:C,children:e.jsx(ci,{text:h,highlight:o})}),e.jsx(M,{title:rf(c?.name??"Edit"),children:e.jsx(E,{color:c?.color??"var(--label-edit-cancel-icon)",height:c?.height??20,width:c?.width??20,name:c?.name??"edit",className:c?.className??"edit-icon",onClick:()=>{g(!0),L("")}})})]}),x&&p&&e.jsx(b,{as:"p",fontSize:8,className:"error-text",children:x})]})},exports.Editor=em,exports.ErrorBoundary=Vu,exports.Excel=({excelData:n,contextOption:r,toolbar:o="show",sheetBar:A="show",rowCount:i=26,colCount:a=26,sheetHeight:l="100%",editable:c=!0,contextHeightPositioning:s=0,contextWidthPositioning:f=0,onSave:C=()=>Promise.resolve(),onSaveInfoChange:u,attachmentAction:p={addAttachment:()=>Promise.resolve({responseCode:0,responseObject:[]}),viewAttachment:()=>Promise.resolve(),deleteAttachment:()=>Promise.resolve()},onSaveDelay:g=3e3,columnContextEnable:h=!0,rowContextEnable:m=!0})=>{const[w,v]=t.useState([]),[B,I]=t.useState(""),[L,y]=t.useState({open:!1,position:{x:0,y:0},options:[{label:"",value:"",iconName:"",action:()=>{},disable:!1}]}),[Q,H]=t.useState({name:"defaultSheet",index:0}),[D,k]=t.useState({defaultSheet:[[iC]]}),[V,Z]=t.useState([[iC]]),[j,N]=t.useState({x:0,y:0}),z=t.useRef(""),P=t.useRef(null),S=t.useRef(null);t.useEffect((()=>{const e=n;if(e){const t=e.map((e=>e.sheetName));v(t),x(t.length)||(z.current=t[0]||"",H({name:t[0]||"",index:0}));const n={};e.forEach((e=>{const t=e.sheetName,r=e.data,o=Math.max(i,r.length+2),A=Math.max(a,Math.max(...r.map((e=>e.length)))+2);let l=Array.from({length:o},(()=>Array(A).fill({value:"",style:iC.style,readOnly:!1,inputType:void 0})));r.forEach(((e,t)=>{e.forEach(((e,n)=>{var r;t<o&&n<A&&(l[t]||(l[t]=[]),l[t][n]={value:(r=e.value,null==r?null:r),style:x(e?.style)?iC.style:vu(e?.style),readOnly:!!e?.readOnly&&e?.readOnly,inputType:e?.inputType??void 0,contextDisable:e.contextDisable})}))}));const c=new Set([...e?.rows?.readOnly?e.rows.readOnly.map((e=>`r${e}`)):[],...e?.columns?.readOnly?e.columns.readOnly.map((e=>`c${e}`)):[],...e?.cells?.readOnly?e.cells.readOnly.map((([e,t])=>`${e},${t}`)):[]]);l.forEach(((t,n)=>{t.forEach(((t,r)=>{l[n]||(l[n]=[]);const o=c.has(`r${n+1}`)||c.has(`c${r+1}`)||c.has(`${n+1},${r+1}`),A=((t,n,r)=>r?.inputType?r.inputType:e?.rows?.inputType?.[t+1]||e?.columns?.inputType?.[n+1]||e?.cells?.inputType?.[`${t+1},${n+1}`]||{type:"text"})(n,r,t||iC);l[n][r]={...t,value:t?.value??"",readOnly:t?.readOnly?t.readOnly:o,inputType:A,contextDisable:t?.contextDisable}}))})),n[t]=l})),k(n);const r=Object.keys(n)[0];r&&void 0!==n[r]&&Z(n[r])}}),[n]),t.useEffect((()=>{u&&u(B),"File saved"===B&&setTimeout((()=>{I("")}),2e3)}),[B]),t.useEffect((()=>{I("Saving..."),O(T())}),[D]);const O=t.useCallback(yu((e=>{C(e),I("File saved")}),g),[C]),F=t.useCallback((e=>{e.ctrlKey&&"s"===e.key&&(e.preventDefault(),e.stopPropagation(),O(T()))}),[C]);t.useEffect((()=>(document.addEventListener("keydown",F),()=>{document.removeEventListener("keydown",F)})),[F]);const T=()=>w.map((e=>{const t=D[e]?.map((e=>{const t=e.reduce(((e,t,n)=>""!==String(t?.value??"").trim()?n:e),-1),n=e.map(((e,n)=>e&&e.style&&n<=t?{value:e.value,style:Iu(e.style),readOnly:e.readOnly,inputType:e.inputType,contextDisable:e.contextDisable}:null)).filter((e=>null!==e));return n.length>0?n:[]}))||[],n=t.filter(((e,n)=>{const r=t.slice(n+1).some((e=>e.length>0));return e.length>0||r}));return{sheetName:e,data:x(n.length)?[[]]:n}})),[R,G]=t.useState(null),X=()=>{const e=((e,t)=>{let n=`${e}1`,r=2;for(;t.includes(n);)n=`${e}${r}`,r++;return n})("Sheet",w),t=Array.from({length:i},(()=>Array.from({length:a},(()=>iC))));v((t=>[...t,e])),H({index:w?.length,name:e}),k({...D,[e]:t}),Z(t),z.current=e};t.useEffect((()=>{const e=D[Q.name];Z(void 0!==e?e:[])}),[Q.name]);const Y=(e,t,n)=>{const r=e.target;if(!r)return void G(null);const o=r.textContent?.trim();if(!o)return di.warning("Sheet name cannot be empty."),r.textContent=Q.name,void G(null);if(o.length>30)return di.warning("The sheet name cannot be greater than 30 characters"),r.textContent=Q.name,void G(null);if(w.includes(o)&&w[t]!==o)return di.warning("Sheet name already exists"),r.textContent=Q.name,void G(null);w.splice(t,1,o);let A=function(e,t,n,r){if(!(t in e))throw new Error(`Key "${t}" not found in object`);return delete e[t],e[n]=r,e}(D,n,o,V);z.current=o,H((e=>({...e,name:o}))),k(A),G(null)};const U=(e,t)=>{if(e===Q.name||t===Q.index)return;H({index:t,name:e}),v((n=>{const r=[...n];return r[t]=e,r}));const n=D[e];Z(n||[[iC]]),z.current=e},K=t.useCallback((e=>{L.open&&(e.preventDefault(),e.stopPropagation(),y({open:!1,position:{x:0,y:0},options:[{label:"",value:"",iconName:"",action:()=>{},disable:!1}]}))}),[L.open]);t.useEffect((()=>(document.addEventListener("click",K),()=>{document.removeEventListener("click",K)})),[K]);const W=(e,t,n)=>{e.preventDefault();const r=[{label:"Add Sheet",value:"Add Sheet",iconName:"plus_icon",action:()=>{X()},disable:!1},{label:"Delete Sheet",value:"Delete Sheet",iconName:"delete",action:()=>{((e,t)=>{if(w.length>1){let n=w.slice();n.splice(t,1);const r={...D};delete r[e];const o=Math.min(t,n.length-1);v(n),k(r),H({index:o,name:n[o]?n[o]:""})}else di.warning("Cannot delete the last sheet.")})(t,n)},disable:!1}];y((e=>({...e,open:!0,options:r})))};return e.jsx(e.Fragment,{children:w.length>0&&e.jsxs("div",{ref:P,className:"ff-excel",onContextMenu:e=>{e.preventDefault();const t=S.current?.parentElement?.getBoundingClientRect(),n=window.scrollX,r=window.scrollY;let o=e.clientX-(t?.left||0)+n+10,A=e.clientY-(t?.top||0)+r-5;if(e.target.classList.contains("ff-excel-tab-list"))return void N({x:o,y:A-65});const i=window.innerWidth,a=window.innerHeight;o+300>i&&(o=i-300-100),A+200>a&&(A=a-200-100),N({x:o+f,y:A+s})},onClick:e=>{e.stopPropagation(),L.open&&y({open:!1,position:{x:0,y:0},options:[{label:"",value:"",iconName:"",action:()=>{},disable:!1}]})},children:[e.jsx("div",{ref:S,className:"ff-excel-sheet",children:e.jsx(Mu,{editable:c,attachmentAction:p,toolbar:o,sheetHeight:l,setContextMenu:y,contextOption:r,data:V,columnContextEnable:h,rowContextEnable:m,onEvaluatedDataChange:e=>{k((t=>({...t,[z.current]:e})))},workRef:P})}),"show"===A&&e.jsxs("div",{className:"ff-excel-sheet-bar",children:[e.jsx("div",{className:"ff-excel-add-sheet-set",children:e.jsx(M,{title:"Add Sheet",placement:"top",children:e.jsx(E,{disabled:!c,className:"ff-excel-add-sheet-icon",hoverEffect:!0,onClick:X,name:"plus_icon",height:20,width:20})})}),e.jsx("div",{className:"ff-excel-tab-container",children:w.map(((t,n)=>e.jsx(b,{lineHeight:"16px",children:e.jsx("div",{onContextMenu:e=>{U(t,n),W(e,t,n)},className:d("ff-excel-tab-list",{active:t===Q.name}),onClick:()=>{U(t,n)},suppressContentEditableWarning:R===n,onDoubleClick:e=>{G(n),null===R&&setTimeout((()=>(e=>{const t=document.createRange(),n=window.getSelection();t.selectNodeContents(e),t.collapse(!1),n?.removeAllRanges(),n?.addRange(t)})(e.target)),0)},contentEditable:R===n,onBlur:e=>{Y(e,n,t)},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),Y(e,n,t))},children:t})},t)))})]}),L.open&&e.jsx(Lu,{contextMenu:L,position:j,editable:c}),e.jsx(fi,{})]})})},exports.ExpandableMenu=({label:n="",icon:r=e.jsx(E,{name:"arrow_right",height:5,width:8,color:"var(--icons-default-color)"}),variant:o="primary",size:A="medium",disable:i=!1,subMenus:a=[],selectedMenu:l="",onSubMenuClick:c=()=>{},menuExpandStatus:s})=>{const[f,C]=t.useState(s||!1),[u,p]=t.useState(!1),g=t.useCallback((()=>{f||p(!0)}),[f]),h=t.useCallback((()=>{f||p(!1)}),[f]),m=f||u;return e.jsxs("div",{className:d("ff-expandable-chip-menu",`ff-expandable-chip-menu--${o}`,{"ff-expandable-chip-menu--disabled":i,expanded:m}),onMouseEnter:g,onMouseLeave:h,children:[e.jsxs("div",{className:`ff-label-chip ff-label-chip--${o} ff-expandable-chip-menu--${A}`,onClick:()=>{C((e=>!e)),p(!1)},children:[e.jsx(b,{children:n}),e.jsx("span",{className:"arrow-icon",children:r})]}),m&&!x(a)&&e.jsx("div",{className:d("ff-sub-chips",{expanded:m}),children:a.map(((t,n)=>e.jsx("div",{className:d("ff-sub-chip",`ff-sub-chip--${o}`,`ff-sub-chip--${A}`,{selected:l===t}),onClick:()=>(e=>{i||(c(e),C(!0))})(t),children:t},n)))})]})},exports.FILE_EXTENSION_REGEX=/\.(jpg|png|gif|bmp)$/i,exports.FILE_NAME_REGEX=/\.([^.@]+)$/,exports.FieldSet=({legendName:t,height:n,width:r,children:o})=>e.jsx("div",{className:"ff_fieldSet_container",children:e.jsxs("fieldset",{className:"ff_fieldSet",style:{height:n,width:r},children:[e.jsx("legend",{className:"ff_legend_container",children:e.jsx(b,{color:"var(--license_header_text_color)",fontSize:8,lineHeight:"12px",children:t})}),e.jsx("div",{className:"ff_children_container",children:o})]})}),exports.FileDropzone=({icon:n=e.jsx(E,{name:"dropzone_icon",height:80,width:80,hoverEffect:!1}),primaryLabel:r="Drag & drop your file to upload",secondaryLabel:o="Or",buttonLabel:A="Choose File to upload",accept:i=[],multiple:a=!1,maxFiles:l,maxSize:c,onMaxFilesError:s,maxSizeErrorMessage:f="",invalidFileMessage:C="",fileExistMessage:u="",validateMIMEType:p=!1,width:g=640,height:h=188,getAcceptedFiles:m=()=>{},getRejectedFiles:b=()=>{},isWebServiceFileDropZone:w=!1,selectedRadioOption:v,radioOptions:B,handleOptionChange:I,selectedFile:M,setSelectedFile:L,handleFileChange:y,handleRemoveFile:Q,isApiResponseError:H=!1,isDisable:D=!1,setShowDrawer:k,setFileContent:V,fileContent:Z="",isUploadIcon:j=!1,onUploadFile:N})=>{const z=t.useRef(null),{getRootProps:P,getInputProps:S,acceptedFiles:O,rejectedFiles:F,isDragActive:T,handleRemoveClick:R,handleReplaceClick:G}=Cr({accept:i,multiple:a,maxFiles:l,maxSize:c,onMaxFilesError:s,maxSizeErrorMessage:f,invalidFileMessage:C,fileExistMessage:u,validateMIMEType:p,isApiResponseError:H});m(O),b(F);const X=t.useMemo((()=>O.map((t=>e.jsx(mr,{file:t,onRemoveClick:R,onReplaceClick:G,onUploadFile:N,isUploadIcon:j},t.name)))),[O,R,G,j,N]);t.useEffect((()=>{"Local File"===v?.value&&z.current&&z.current.click()}),[v]),t.useEffect((()=>{!x(O)&&L&&L(O[0]||null)}),[O,L]);const Y=t.useMemo((()=>F.map((t=>e.jsx(mr,{file:t.file,error:t.errors[0]?.message,onRemoveClick:R,onReplaceClick:G,onUploadFile:N,isUploadIcon:j},t.file.name)))),[F,R,G,j,N]);return e.jsxs("div",{className:d("ff-file-dropzone-wrapper"),style:{width:`${g}px`},children:[e.jsx(hr,{icon:n,primaryLabel:r,secondaryLabel:o,buttonLabel:A,getRootProps:P,getInputProps:S,isDragActive:T,height:`${h}px`,isWebServiceFileDropZone:w,selectedRadioOption:v,radioOptions:B??[{label:"Default Label",value:"default_value"}],handleOptionChange:I,selectedFile:M,handleFileChange:y,handleRemoveFile:Q,setSelectedFile:L,isDisable:D,setShowDrawer:k,setFileContent:V,fileContent:Z}),w&&e.jsx("input",{ref:z,type:"file",className:"ff-input-ref",onChange:y,accept:i.join(",")}),w?null:e.jsxs("div",{className:"ff-file-details-wrapper",style:{width:`${g}px`},children:[!x(O)&&e.jsx("div",{className:"ff-file-details",children:X}),!x(F)&&e.jsx("div",{className:"ff-file-details",children:Y})]})]})},exports.FilePreview=mr,exports.Form=_A,exports.FormatString=function(e,t=[]){return e.toUpperCase()===e&&(e=e.toLowerCase()),e.includes("_")?function(e){return e.toLowerCase().replace(/_/g," ").replace(/^./,(e=>e.toUpperCase()))}(e):am(e,t)},exports.GSTIN_REGEX=/^\d{2}[A-Z]{5}\d{4}[A-Z]{1}[A-Z\d]{1}[Z]{1}[A-Z\d]{1}$/,exports.HEXADECIMAL_NUMBER_REGEX=/^[0-9A-Fa-f]+$/,exports.HEX_COLOR_REGEX=/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})$/,exports.HSL_COLOR_REGEX=/^hsl\((\d{1,3}),\s*(\d{1,3})%,\s*(\d{1,3})%\)$/,exports.HTML_ATTRIBUTE_REGEX=/\b[a-zA-Z-]+(="[^"]*"|='[^']*'|=[^\s>]*)?/g,exports.HTML_TAG_REGEX=/<\/?[\w\s=\"'\/\.:;#-]*>/g,exports.HighlightText=ci,exports.HistoryCard=({variant:t,title:n,tabTitle:r,comment:o,profileShortName:A})=>e.jsxs("div",{className:"ff-history-card",children:[e.jsx("div",{className:d("header",`header--${t}`),children:e.jsx(b,{fontWeight:"semi-bold",children:r})}),e.jsxs("div",{className:"body",children:[e.jsx("div",{className:"title",children:e.jsxs("div",{className:"profile",children:[e.jsx(b,{className:d("avatar",`avatar--${t}`),children:A}),e.jsx(b,{children:n})]})}),e.jsxs("div",{className:"comment-container",children:[e.jsx(b,{fontWeight:"semi-bold",className:"heading",children:"Comments:"}),e.jsx(b,{color:"var(--details-page-value-color)",className:"comment",children:o})]})]})]}),exports.INDIAN_CURRENCY_REGEX=/^\u20B9?\s?\d{1,3}(,\d{3})*(\.\d{1,2})?$/,exports.INDIAN_PASSPORT_REGEX=/^[A-Z]{1}-?\d{7}$/,exports.INDIAN_PHONE_REGEX=/^[6-9]\d{9}$/,exports.INDIAN_PIN_CODE_REGEX=/^\d{6}$/,exports.INTERNATIONAL_PHONE_REGEX=/^\+?[1-9]\d{1,14}$/,exports.IPV4_REGEX=/^((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]?)$/,exports.IPV6_REGEX=/^(?:[a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}$/,exports.Icon=E,exports.IconButton=Gc,exports.IconRadialChart=({radius:n=15,lineWidth:r=5,label:o,percentageValue:A,icon:i,fontSize:a=10,labelColor:l="",arcColor:c="var(--brand-color)",backgroundArcColor:s="var(--ff-select-scroll-thumb-color)",isSelectedArch:f=!1,onSelect:d})=>{const[C,u]=t.useState({x:0,y:0}),[p,g]=t.useState(!1);let h=-Math.PI/2;const m=2*(n+r),{backgroundArcPath:w,foregroundArcPath:v}=((e,t,n)=>{const r=t,o=r+Math.max(0,Math.min(e,100))/100*2*Math.PI;return{backgroundArcPath:Qu({x:0,y:0,radius:n,startAngle:0,endAngle:2*Math.PI}),foregroundArcPath:Qu({x:0,y:0,radius:n,startAngle:r,endAngle:o})}})(A,h,n),B=()=>{g(!0)},I=()=>{u({x:0,y:0}),g(!1)},x=e=>{u({x:e.clientX+10,y:e.clientY+10})};return e.jsxs("div",{className:"ff-icon-radial-chart-container",style:{"--fontSize":`${a}px`},onClick:d,children:[e.jsx("svg",{width:m,height:m,viewBox:`0 0 ${m} ${m}`,role:"img",children:e.jsxs("g",{transform:`translate(${n+r}, ${n+r})`,children:[e.jsx("path",{d:w,fill:"none",stroke:s,strokeWidth:r,onMouseEnter:B,onMouseLeave:I,onMouseMove:x}),e.jsx("path",{d:v,fill:"none",stroke:c,strokeWidth:r,onMouseEnter:B,onMouseLeave:I,onMouseMove:x}),f&&e.jsx("path",{d:v,fill:"none",stroke:"var(--dotted-border-color)",strokeOpacity:"0.4",strokeWidth:r,onMouseEnter:B,onMouseLeave:I,onMouseMove:x}),i?e.jsx("foreignObject",{x:"-10",y:"-10",width:"20",height:"20",children:e.jsx(E,{className:"ff-radial-chart-icon-padding",name:i,height:20,width:20})}):e.jsx("text",{x:"0",y:"0",fill:l||c,textAnchor:"middle",dominantBaseline:"central",children:`${Math.round(A)}%`})]})}),p&&e.jsxs("div",{className:"ff-icon-radial-chart-tooltip",style:{left:C.x,top:C.y},children:[e.jsx(b,{children:`${o} : `}),e.jsxs(b,{children:[A,"%"]})]})]})},exports.IconRadioGroup=({items:n,onButtonClick:r,selectedValue:o=null,onChange:A,className:i=""})=>{const[a,l]=t.useState(o);t.useEffect((()=>{o!==a&&l(o)}),[o,a]);return e.jsxs("div",{className:d("ff-icon-radio-group",i),children:[n.map((t=>e.jsx("div",{className:d("ff-icon-radio-button",{selected:a===t.iconName,disabled:t.disabled}),onClick:()=>(e=>{if(e.disabled)return;const t=e.iconName;l(t),A&&A(t),r(e)})(t),children:e.jsx(M,{title:t.iconLabel,children:e.jsx("div",{className:d("icon-container",{selected:a===t.iconName}),children:e.jsx(E,{name:t.iconName,hoverEffect:!1,color:a===t.iconName?"var(--drawer-footer-bg)":"var(--brand-color)"})})})},t.iconName))),e.jsx("div",{className:"line-connector"})]})},exports.Input=z,exports.InputWithDropdown=$A,exports.LINKEDIN_PROFILE_REGEX=/^https?:\/\/(www\.)?linkedin\.com\/in\/([a-zA-Z0-9-]{5,30})$/,exports.LabelEditTextField=({label:n,placeholder:r,text:o,showText:A=!0,highlightText:i,customError:a,confirmIcon:l,customErrorCondition:c,cancelIcon:s,variant:f="textField",onInputChange:d,dropdownData:C=[],className:u,height:p,isOpen:g=!1,confirmAction:h,onClick:m,tooltip:w,onDoubleClick:B,disableEditing:I=!1})=>{const[x,L]=t.useState(g??!1),[y,Q]=t.useState(o??""),[H,D]=t.useState(C[0]?.value??""),[k,V]=t.useState(""),[Z,j]=t.useState(!0),[N,P]=t.useState(!1),S=!(!k||!x),O=t.useRef(null),F=t.useRef(null),[T,R]=t.useState(null),G=v("Escape");t.useEffect((()=>()=>{T&&clearTimeout(T)}),[T]);const Y=()=>{let e="";0===y.length||0===y.trim().length?e="Please type any text.":y.length<3?e="Please enter at least 3 characters.":c&&(e=a??"Invalid input."),e?V(e):(L(!1),V(""),h&&h(y,H))},U=()=>{Q(o??""),D(C[0]?.value??""),L(!1),V(""),P(!1)},K=e=>{const t=e.target.value;Q(t),j(!1),0===t.length||0===t.trim().length?V("Please type any text."):t.length<3?V("Please enter at least 3 characters."):V(c?a??"Invalid input.":""),P(t!==o),d&&d(t)},W=e=>{if(O.current&&!O.current.contains(e.target)&&F.current!==e.target){const e=((e,t)=>e===t?"No changes were made.":e?e.length<3?"Please enter at least 3 characters.":"":"Text is required")(y,o??"");e&&x?V(e):(L(!1),V(""))}};return t.useEffect((()=>(document.addEventListener("click",W),()=>{document.removeEventListener("click",W)})),[y]),G(U),Ci([{key:"Enter",action:()=>{Y()}}]),e.jsxs("div",{className:"ff-label-edit-text-field",ref:O,children:[x?e.jsxs("div",{className:"ff-label-text-field",children:["textFieldWithDropdown"===f?e.jsxs("div",{className:"ff-label-text-field-with-dropdown "+(x?"open":""),style:{height:p},children:[e.jsx(z,{name:"input",type:"text",label:n||"",disabled:!1,error:S,placeholder:r||"",value:y,onChange:K,className:`${u} \n \n ${N?"modified":""}`}),e.jsx(X,{label:"",optionsList:C,selectedOption:{value:H,label:H},onChange:e=>D(e.value)})]}):e.jsx("div",{className:"ff-label-text-field-without-dropdown",children:e.jsx(z,{name:"input",type:"text",label:n||"",disabled:!1,error:S,placeholder:r||"",value:y,onChange:K,className:`${u} \n \n ${N?"modified":""}`})}),e.jsxs("div",{className:"ff-icon-container",children:[l&&e.jsx(M,{title:"Confirm",placement:"bottom",children:e.jsx(E,{color:"var(--label-edit-confirm-icon)",height:20,width:20,name:l.name,disabled:Z,className:""+(Z?"disabled-confirm-icon":"confirm-icon"),onClick:Y})}),s&&e.jsx(M,{title:"Cancel",placement:"bottom",children:e.jsx(E,{color:"var(--label-edit-cancel-icon)",height:12,width:20,name:s.name,className:"cancel-icon",onClick:U,ref:F})})]})]}):e.jsx(M,{title:w?.tooltipTitle?w?.tooltipTitle:"",placement:"bottom",children:A&&e.jsx("span",{className:"display-text",onDoubleClick:()=>{I||(T&&(clearTimeout(T),R(null)),B&&B(),L(!0),V(""))},role:"button",onClick:()=>{if(I)return;T&&(clearTimeout(T),R(null));const e=window.setTimeout((()=>{m&&m(),R(null)}),1e3);R(e)},children:e.jsx(ci,{text:y,highlight:i})})}),k&&x&&e.jsx(b,{as:"p",fontSize:8,className:"error-text",children:k})]})},exports.LazyLoad=so,exports.LineChart=({data:n=[],width:r,height:o,lineChartWidth:A,yAxisLabel:i,xAxisLabel:a,yAxisValueColor:l,xAxisColor:c,yAxisColor:s,yAxisLabelColor:f,textSize:d,fontWeight:C,numberSize:u,chartName:p,shouldCenterSinglePoint:g,xAxisLabelGap:h=16})=>{const m=40,E=r-80,w=o-80;if(!(n&&n.length>0&&n?.some((e=>Array.isArray(e?.data)&&e?.data?.length>0)))){const t=[];for(let e=6;e>=0;e--){const n=new Date;n.setDate(n.getDate()-e);const r=n?.toLocaleDateString("en-US",{day:"numeric",month:"short"});t.push(r)}const n=1024,A=6,p=7;return e.jsxs("div",{className:"ff-line-chart-text",style:{width:r+20+h,gap:h},children:[e.jsx("div",{className:"ff-line-chart-yAxisLabel-warpper",style:{height:o},children:e.jsx(b,{className:"ff-line-chart-yAxisLabel",fontSize:d,fontWeight:"semi-bold",children:i})}),e.jsx("div",{className:"ff-line-chart-svg",children:e.jsx("svg",{height:o,width:r,className:"ff-line-chart-svg",children:e.jsxs("g",{transform:"translate(40, 40)",children:[e.jsx("line",{x1:0,y1:w,x2:E,y2:w,stroke:c,strokeWidth:1}),e.jsx("text",{x:E/2.1,y:w+m/1.2,textAnchor:"middle",fill:f,className:"ff-line-chart-x-axis-label",style:{fontSize:d,fontWeight:C},children:a}),t.map(((t,n)=>{const r=E/(p-1);return e.jsx("text",{x:n*r,y:w+15,textAnchor:0===n?"start":n===p-1?"end":"middle",fill:s,className:"ff--line-chart-x-line-data",style:{fontSize:u},children:t},t)})),Array.from({length:A}).map(((t,r)=>{const o=r*n/(A-1),i=o/1024,a=w-o*w/n;return e.jsx("text",{x:-10,y:a,textAnchor:"end",fill:l,className:"ff-line-chart-y-axis-text",style:{fontSize:u},children:i?.toFixed(1)},`y-${r}`)}))]})})})]})}function v(e){if(!isNaN(e))return parseFloat(e);const t=K,n=e.match(t);if(!n)throw new Error("Invalid input format. Use '<value> <unit>' format (e.g., '10.9580078125 KB') or just a number.");const r=parseFloat(n[1]);switch(n[2]?n[2].toUpperCase():null){case"GB":return parseFloat((1024*r).toFixed(2));case"MB":return parseFloat(r.toFixed(2));case"KB":return parseFloat((r/1024).toFixed(2));default:throw new Error("Invalid unit. Supported units are GB, MB, and KB.")}}const B=n?.[0]?.data?.[0]?.hasOwnProperty("date")&&n?.[0]?.data?.[0]?.hasOwnProperty("totalMemory"),I="date",x=B?"totalMemory":"value",M=e=>{const t=n?.[0]?.data?.length;if(1===t)return g?E/2:E;const r=n[0].data.findIndex((t=>t[I]===e));return-1===r?0:r/(t-1)*E},L=Math.max(...n?.flatMap((e=>e?.data?.map((e=>v(e[x]))))),5),y=e=>{if("memory"===p){const t=Math.max(...n?.flatMap((e=>e?.data?.map((e=>v(e[x]))))));return w-e*w/(t>1024?t:1024)}return w-e*w/(0===L?1024:L)},Q=e=>{if(1===e?.length){const t=e?.[0],n=M(t[I]),r=y(v(t[x]));return`M 0 ${y(0)} L ${n} ${r}`}return e?.reduce(((t,n,r)=>{const o=M(n[I]),A=y(v(n[x]));if(0===r)return`M ${o} ${A}`;const i=e[r-1],a=i?M(i[I]):0;return`${t} C ${a+(o-a)/2} ${i?y(v(i[x])):0}, ${o-(o-a)/2} ${A}, ${o} ${A}`}),"")},H=n[0].data,[D,k]=t.useState({cursorX:null,hoverValues:{},dotPositions:{},tooltip:{visible:!1,left:0,top:0},currentXValue:null});return e.jsxs("div",{className:"ff-line-chart-text",style:{width:r+20+h,gap:h},children:[e.jsx("div",{className:"ff-line-chart-yAxisLabel-warpper",style:{height:o},children:e.jsx(b,{className:"ff-line-chart-yAxisLabel",fontSize:d,fontWeight:"semi-bold",children:i})}),e.jsxs("div",{className:"ff-line-chart-svg",children:[e.jsx("svg",{height:o,width:r,onMouseMove:e=>{const t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left-m;let o={hoverValues:{},dotPositions:{}},A=null;n.forEach(((e,t)=>{const n=e.data.reduce(((e,t)=>{const n=Math.abs(r-M(t[I]));return n<e.distance?{point:t,distance:n}:e}),{point:null,distance:1/0}).point;n&&(A=n[I],o.hoverValues[t]=((e,t=2)=>{let n="";if("string"==typeof e){const t=e.match(Y),r=e.match(U);t&&(e=parseFloat(t[0])),r&&(n=r[0])}const r=Math.pow(10,t);return`${Math.ceil(e*r)/r} ${n}`.trim()})(n[x]),o.dotPositions[t]={x:M(n[I]),y:y(v(n[x]))})})),k({cursorX:r,hoverValues:o.hoverValues,dotPositions:o.dotPositions,currentXValue:A,tooltip:A?{visible:!0,left:e.clientX+10,top:e.clientY-20}:{visible:!1,left:0,top:0}})},onMouseLeave:()=>k({cursorX:null,hoverValues:{},dotPositions:{},tooltip:{visible:!1,left:0,top:0},currentXValue:null}),className:"ff-line-chart-svg",children:e.jsxs("g",{transform:"translate(40, 40)",children:[e.jsx("line",{x1:0,y1:0,x2:0,y2:w,strokeWidth:2}),e.jsx("line",{x1:0,y1:w,x2:E,y2:w,stroke:c,strokeWidth:1}),e.jsx("text",{x:E/2.1,y:w+m/1.2,textAnchor:"middle",fill:f,className:"ff-line-chart-x-axis-label",style:{fontSize:d,fontWeight:C},children:a}),n.map(((t,n)=>{return!1!==t.show?e.jsxs("g",{children:[e.jsx("path",{d:Q(t.data),fill:"none",stroke:t.color,strokeWidth:A,opacity:(r=t.data,r.every((e=>0===v(e[x])))?.5:1)}),D.dotPositions[n]&&e.jsxs(e.Fragment,{children:[e.jsx("line",{x1:D.dotPositions[n].x,y1:0,x2:D.dotPositions[n].x,y2:w,stroke:"gray",strokeWidth:.5,strokeDasharray:"4"}),e.jsx("circle",{cx:D.dotPositions[n].x,cy:D.dotPositions[n].y,r:5,fill:"white",stroke:t.color,strokeWidth:A,style:{transition:"cx 0.1s, cy 0.1s"}}),e.jsx("line",{x1:0,y1:D.dotPositions[n].y,x2:E,y2:D.dotPositions[n].y,stroke:"gray",strokeWidth:.5,strokeDasharray:"4"})]})]},n):null;var r})),(()=>{if(1===H.length){const t=H?.[0];return e.jsx("text",{x:g?E/2:E,y:w+15,textAnchor:g?"middle":"end",fill:s,className:"ff--line-chart-x-line-data",style:{fontSize:u},children:null!=t[I]?String(t[I]):""},String(t[I]))}if(H.length<7)return H.map((t=>e.jsx("text",{x:M(t[I]),y:w+15,textAnchor:"middle",fill:s,className:"ff--line-chart-x-line-data",style:{fontSize:u},children:null!=t[I]?String(t[I]):""},String(t[I]))));{const t=E/6;return Array.from({length:7}).map(((n,r)=>{const o=Math.floor(r*(H?.length-1)/6),A=H[o];return e.jsx("text",{x:r*t,y:w+15,textAnchor:0===r?"start":6===r?"end":"middle",fill:s,className:"ff--line-chart-x-line-data",style:{fontSize:u},children:null!=A?.[I]?String(A?.[I]):""},String(A?.[I]))}))}})(),(()=>{if("memory"===p){const t=Math.max(L,1024);return Array.from({length:6}).map(((n,r)=>{const o=r*t/5,A=o/1024;return e.jsx("text",{x:-10,y:y(o),textAnchor:"end",fill:l,className:"ff-line-chart-y-axis-text",style:{fontSize:u},children:A.toFixed(1)},`y-${r}`)}))}return Array.from({length:6}).map(((t,n)=>{const r=n*L/5;return e.jsx("text",{x:-10,y:y(r),textAnchor:"end",fill:l,className:"ff-line-chart-y-axis-text",style:{fontSize:u},children:r.toFixed(0)},`y-${n}`)}))})()]})}),D.tooltip.visible&&e.jsxs("div",{className:"ff-line-chart-tooltip",style:{left:D.tooltip.left,top:D.tooltip.top},children:[e.jsx("div",{className:"ff-line-chart-date",children:D.currentXValue}),Object.entries(D.hoverValues).map((([t,r])=>!1!==n[Number(t)]?.show&&e.jsxs("div",{className:"ff-line-chart-inner-tooltip",children:["default"!==n[Number(t)]?.name&&e.jsx("div",{className:"ff-line-chart-status-dot",style:{backgroundColor:n[Number(t)]?.color}}),n[Number(t)]?.name,": ",r]},t)))]})]})]})},exports.Link=ku,exports.MAC_ADDRESS_REGEX=/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/,exports.MEMORY_VALIDATION_REGEX=K,exports.MachineInputField=qs,exports.MenuOption=te,exports.MessageBox=({content:t,isVisible:n,maxWidth:r=300,onClick:o,isClickable:A=!0,arrowPosition:i="left"})=>e.jsx("div",{onClick:o,style:{width:`${r}px`,"--triangle-position":r-4+"px"},className:d("ff-chat-msg-box",{visible:n,hidden:!n,pointer:A,default:!A,"chat-arrow-left":"left"===i,"chat-arrow-right":"left"!==i}),children:e.jsx("div",{className:d("content",`arrow-${i}`),children:e.jsx(b,{children:t})})}),exports.MiniModal=ei,exports.MobileSkin=({children:n,orientation:r="",navBarIcons:o,mobileHeight:A=448,mobileWidth:i=220,UtilityBar:a})=>{const l="portrait"===r,c=l?A:i,s=l?i:A;return e.jsxs("div",{className:"ff-mobileskin-wrapper "+(l?"portrait":"landscape"),children:[e.jsx("div",{className:"ff-mobileskin-container",style:{height:c+16,width:s+16},children:e.jsx("div",{className:"ff-mobile-container",style:{width:s,height:c},children:e.jsx("div",{className:"ff-mobile-image-container",children:t.isValidElement(n)?n:e.jsx("img",{src:n,alt:"Mobile content",style:{width:l?"100%":2.1*i+"px",height:l?"100%":.5*A+"px"}})})})}),a&&e.jsx("div",{className:"ff-nav-bar",children:o?.map(((t,n)=>e.jsx("div",{className:`ff-nav-bar-icon ${t?.className||""} ${n===o.length-1?"last-icon":""}`,children:e.jsx(M,{title:t?.title,children:e.jsx(E,{...t})})},n)))})]})},exports.Modal=Xc,exports.ModuleChip=({label:t="",isActive:n=!0,onClick:r=()=>{},isFilterChip:o=!1})=>{const A=o?"filter":"module";return e.jsx("div",{className:d("ff-module-chip",{"ff-filter-chip":o,[`ff-${A}-chip--active`]:n,[`ff-${A}-chip--hover`]:!n}),onClick:r,children:e.jsx(b,{lineHeight:"18px",className:"module-typography",children:t})})},exports.MultiRadialChart=({radius:n,lineWidth:r,lineCap:o,barValues:A,labelHeading:i,legendType:a="numberLegend",isLegendDetails:l=!0,chartToLegendGap:c="16px",legendGap:s="8px",labelFontSize:f=12,subLabelFontSize:d=8,gapBetweenArch:C=10,capsuleStyle:u={padding:"4px"}})=>{const[p,g]=t.useState({visible:!1,x:0,y:0,content:""}),[h,m]=t.useState(null),E=A.map((e=>{if("string"==typeof e.value){const t=parseFloat(e.value),n=isNaN(t)?0:t;return{...e,normalizedValue:n,labelValue:Number.isInteger(n)?n:n.toFixed(2)}}return{...e,normalizedValue:e.value,labelValue:Number.isInteger(e.value)?e.value:e.value?.toFixed(2)}})),w=E.reduce(((e,t)=>e+t.normalizedValue),0),v=n,B=r+C,I=2*(v+B*(E.length-1)+r),x=[...E].reverse(),M=i.trim().split(" "),L=(e,t)=>{const{clientX:n,clientY:r}=e,o=e.currentTarget.getBoundingClientRect();g({visible:!0,x:n-o.left,y:r-o.top,content:t})},y=e=>{const{clientX:t,clientY:n}=e,r=e.currentTarget.getBoundingClientRect();g((e=>({...e,x:t-r.left,y:n-r.top})))},Q=()=>{g({visible:!1,x:0,y:0,content:""})},H=(e,t)=>e.length>t?e.slice(0,t)+"...":e;return e.jsxs("div",{className:"ff-multi-radial-chart-container "+("numberLegend"===a?"ff-multi-radial-chart-number":"ff-multi-radial-chart-pill"),style:{gap:c},children:[e.jsxs("div",{className:"relative",style:{width:I,height:I},children:[e.jsx("svg",{width:I,height:I,viewBox:`0 0 ${I} ${I}`,className:"absolute top-0 left-0",children:e.jsxs("g",{transform:`translate(${I/2+1}, ${I/2+1})`,children:[x.map(((t,n)=>{const A=E.length-1-n,i=2*(t.normalizedValue/w)*Math.PI;let a=-Math.PI/2,l=a+i;t.normalizedValue===w&&(a=0,l=2*Math.PI);const c=v+B*A,s=Tp(0,0,c,0,2*Math.PI),f={opacity:null!==h?t.barLabel===h?1:.2:1,transition:"opacity 0.3s ease"};if(0===t.normalizedValue){const n=c*Math.cos(-Math.PI/2),o=c*Math.sin(-Math.PI/2);return e.jsxs("g",{children:[e.jsx("path",{d:s,fill:"none",stroke:t.arcBackgroundColor,strokeWidth:r,className:"transition-all duration-300",style:f}),e.jsx("circle",{cx:n,cy:o,r:r+1,fill:t.arcColor,onMouseEnter:e=>L(e,`${t.barLabel||"Data"}: ${t.value}`),onMouseMove:y,onMouseLeave:Q,style:f})]},A)}const d=Tp(0,0,c,a,l);return e.jsxs("g",{children:[e.jsx("path",{d:s,fill:"none",stroke:t.arcBackgroundColor,strokeWidth:r,className:"transition-all duration-300",style:f}),e.jsx("path",{d:d,fill:"none",stroke:t.arcColor,strokeWidth:r,strokeLinecap:"square"===o?"butt":"round",onMouseEnter:e=>L(e,`${t.barLabel||"Data"}: ${t.value}`),onMouseMove:y,onMouseLeave:Q,style:{pointerEvents:"stroke",...f}})]},A)})),e.jsx("text",{x:"0",y:`-${r+C+2}`,fill:(()=>{if(!p.visible)return"";const e=p.content.split(":")[0]?.trim();if(void 0===e)return"";const t=E.find((t=>t.barLabel===e));return t?.arcColor||""})(),textAnchor:"middle",dominantBaseline:"central",children:p.visible?e.jsxs(e.Fragment,{children:[e.jsx("tspan",{x:"0",dy:""+(r+C-5),className:"ff-center-text-tooltip",children:H(p.content.split(":")[1]?.trim()||"",5)}),e.jsx("tspan",{x:"0",dy:`${r+C+5}`,className:"ff-center-text-tooltip",children:H(p.content.split(":")[0]??"",8)})]}):e.jsx(e.Fragment,{children:M.map(((t,n)=>{if(0===n){const[r,...o]=t.split(" ");return e.jsxs("tspan",{children:[e.jsx("tspan",{x:"0",dy:"0",style:{fontSize:`${f}px`},className:"ff-center-first-text",children:r}),e.jsx("tspan",{x:"0",dy:18,style:{fontSize:`${d}px`},className:"ff-center-text",children:o.join(" ")})]},n)}return e.jsx("tspan",{x:"0",dy:0===n?0:18,className:"ff-center-text",style:{fontSize:`${d}px`},children:t},n)}))})})]})}),p.visible&&e.jsx("div",{className:"ff-multi-radial-tooltip",style:{top:p.y+10,left:p.x+100,zIndex:1e3},children:p.content})]}),l&&((t,n)=>{switch(n){case"numberLegend":return e.jsx("div",{className:"ff-legend-container ff-number-legend",style:{gap:s},children:t.map(((t,n)=>e.jsxs("div",{className:"ff-legend-item",onMouseEnter:()=>m(t.barLabel||t.label),onMouseLeave:()=>m(null),children:[e.jsx(b,{fontSize:20,fontWeight:"semi-bold",className:"ff-legend-value",color:t.arcColor,children:t.key.padStart(2,"0")}),e.jsx(b,{fontSize:10,className:"ff-legend-key",color:"var(--text-color)",children:t.label})]},n)))});case"pillLegend":return e.jsx("div",{className:"ff-legend-container ff-pill-legend",style:{gap:s},children:t.slice().reverse().map(((t,n)=>e.jsxs("div",{className:"ff-legend-item",onMouseEnter:()=>m(t.barLabel||t.label),onMouseLeave:()=>m(null),children:[e.jsx("span",{className:"ff-legend-capsule",style:{backgroundColor:t.arcColor},children:e.jsx(b,{fontSize:10,color:"var(--tooltip-text-color)",style:u,children:t.value})}),e.jsx(b,{className:"ff-legend-key",children:t.label})]},n)))});default:return null}})(E.map((e=>({...e,label:e?.barLabel,key:e.labelValue?.toString()}))),a)]})},exports.MultiSelect=({options:r=[],type:o="text",selectedOptions:A=[],onChange:i=()=>{},acceptNewOption:a=!1,zIndex:l=100,label:c="",onSearch:s=()=>{},required:f=!1,disabled:C=!1,errorMessage:u="Fill this field",displayCount:p=!1,isAllSelected:g,onToggleAllSelect:h,displayAllSelectedAsText:m,isAllSelect:w,placeholderForSearching:v="Search",variant:B="default",onLabelPlusIconClick:I=async()=>{},className:L="",onSelectButtonClick:y=()=>{},labelAccessor:Q="label",valueAccessor:H="value",withSelectButton:V="machines"===B,loadMoreOptions:N=()=>{},onEnter:z=()=>{},maxVisibleChips:P=2,onBlur:S=()=>{},maxDropdownHeight:O=160})=>{const[F,T]=t.useState(!1),[R,G]=t.useState(r),[X,Y]=t.useState(""),[U,K]=t.useState(!1),[W,q]=t.useState(""),[J,_]=t.useState(!1),[$,ee]=t.useState(p),[te,ne]=t.useState({top:0,left:0,width:0,fromBottom:0,selectHeight:0}),[re,oe]=t.useState("white"),Ae=t.useRef(null),ie=t.useRef(null),ae=t.useRef(null),le=t.useRef(null);let ce=U&&0===A.length;const se=A.length-P,fe=(e,t)=>{Ae.current?.focus();const n=R.map((n=>k(n,H)===k(e,H)?{...n,isChecked:t}:n));G(n);const r=n.filter((e=>e.isChecked)).map((({isChecked:e,...t})=>t));if(U||K(!0),x(e))return T(!1),void y?.(r);i&&i(r)},de=(e,t)=>{t.stopPropagation(),fe(e,!1)},Ce=async()=>{try{await I(X),Y(""),_(!1)}catch(e){}};t.useEffect((()=>{if(le.current){const e=le.current.parentElement?.parentElement;if(e){const t=(e=>{let t=e;for(;t;){const e=window.getComputedStyle(t);if("rgba(0, 0, 0, 0)"!==e.backgroundColor)return e.backgroundColor;t=t.parentElement}return""})(e);t&&oe(t)}}}),[le.current]);const ue=()=>{if(ie.current&&le.current){const e=ie.current.getBoundingClientRect(),t=le.current.getBoundingClientRect();ne({top:e.bottom+window.scrollY,left:e.left+window.scrollX,width:e.width,fromBottom:document.documentElement.clientHeight-(e.bottom-4),selectHeight:t.height})}};t.useEffect((()=>{const e=ie.current?.getBoundingClientRect();ne((t=>({...t,width:e?.width})))}),[J]),t.useEffect((()=>{F&&ue()}),[F,R]);const pe=e=>{const t=function(){const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);const t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();document.body.scrollHeight>window.innerHeight&&(document.body.style.paddingRight=e?"":`${t}px`),document.body.style.overflow=e?"":"hidden"};t.useEffect((()=>(F&&pe(!F),ae?.current&&Ae?.current?.focus(),()=>{pe(!0)})),[F]),t.useEffect((()=>{!F&&U&&S()}),[F,U]),t.useEffect((()=>{if(!x(r)){let e=r;x(A)||(e=r.map((e=>({...e,isChecked:A.some((t=>k(t,H)===k(e,H)))})))),G(e)}}),[r,A]),t.useEffect((()=>{const e=e=>{V&&ie.current&&le.current&&ae.current&&!ae.current.contains(e?.target)&&!le.current.contains(e?.target)&&(q(""),T(!1),U||K(!0)),!(ie.current&&Ae.current&&le.current&&ae.current)||Ae.current.contains(e?.target)||ae.current.contains(e?.target)||le.current.contains(e?.target)||e?.target&&e.target.closest(".ff-label-plus-icon")||(q(""),T(!1),U||K(!0))};return window.addEventListener("resize",ue),window.addEventListener("click",e,!0),()=>{window.removeEventListener("resize",ue),window.removeEventListener("click",e),document.body.style.overflow="auto"}}),[]);const ge=m&&A.length===R.length;return e.jsxs("div",{className:`ff-multiselect-container-with-icon ${L}`,children:[e.jsxs("div",{ref:le,className:d("ff-multiselect-wrapper",{"ff-multiselect-wrapper--with-options":A?.length,"ff-multiselect-wrapper--opened-dropdown":F,"ff-multiselect-wrapper--error":ce&&f||W,"ff-multiselect-wrapper--disabled":C}),children:[e.jsxs("div",{className:"ff-multiselect",onClick:()=>{F?V&&ae.current&&T(!1):T(!0)},children:[e.jsxs("div",{className:"ff-multiselect__main",children:[e.jsx(b,{style:{backgroundColor:re},className:d({"active-default-label":F||!V&&A?.length||ce&&f,"default-label":!F&&!A?.length}),required:f,children:c}),e.jsxs("div",{className:"ff-multiselect-chip-container",children:[!V&&(m&&A.length===R.length&&"name"!==Q?e.jsx(j,{zIndex:l,label:"All",onChipCloseClick:e=>{e.stopPropagation();const t=R.map((e=>({...e,isChecked:!1})));G(t),i&&i([])},disableChip:!1},"all"):$?e.jsx(e.Fragment,{children:A.slice(0,P).map((t=>e.jsx(j,{zIndex:l,label:D(t,Q)||"",onChipCloseClick:e=>de(t,e),disableChip:t?.isDisabled||!1},D(t,Q))))}):A.map((t=>e.jsx(j,{zIndex:l,label:D(t,Q)||"",onChipCloseClick:e=>de(t,e),disableChip:t?.isDisabled||!1},D(t,Q))))),!ge&&e.jsx("div",{className:"ff-multiselect-input-container",children:e.jsx("input",{value:X,type:o,autoComplete:"off",placeholder:v,ref:Ae,onChange:e=>{F||T(!0);const t=e.target.value;if(Y(t),s?.(t),t.length>2){const e=R.find((e=>D(e,H)?.toLowerCase()===t.toLowerCase()));_(!e)}else _(!1)},onKeyDown:e=>{if(a&&"Enter"===e.key){if(q(""),"email"===o){if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(X))return T(!1),void q("Please enter a valid email address.")}z?.(X),Y(""),T(!1)}},id:"input-ele",className:"ff-select-input",style:{display:F||A.length&&!V?"inherit":"none"}})})]})]}),se>0&&$&&e.jsx("div",{className:"ff-multiselect-more-chip",onClick:()=>{T(!1),ee(!1)},children:e.jsxs(b,{fontSize:12,fontWeight:"semi-bold",lineHeight:"16px",color:"var(--brand-color)",children:["+",se]})}),e.jsx("div",{onClick:e=>{(e=>{e.stopPropagation(),Ae.current?.focus(),T((e=>!e)),!U&&F&&K(!0)})(e)},className:"ff-multiselect__toggle",children:e.jsx(E,{name:"arrow_down",className:d({"ff-select-arrow--opened-dropdown":F,"ff-select-arrow":!F}),color:F?"var(--brand-color)":"var(--default-icon-color)",height:8,width:12})})]}),e.jsxs("div",{ref:ie,children:[(W||ce&&f&&u)&&e.jsx(b,{children:W||u,fontSize:10,className:"error-text"}),F&&n.createPortal(e.jsx(Z,{ref:ae,searchedKeyword:X,checkedOptions:A,handleOptionChange:fe,options:R,dropdownPosition:te,zIndex:l,withSelectButton:V,labelAccessor:Q,valueAccessor:H,loadMoreOptions:N,isAllSelected:g,onToggleAllSelect:h,isAllSelect:w,maxDropdownHeight:O,variant:B,handleIconClick:Ce}),document.body)]})]}),"labels"===B&&J&&e.jsx(M,{title:"Add Label",placement:"top",zIndex:l+1,children:e.jsx(E,{name:"label_plus",onClick:Ce,className:"ff-label-plus-icon"})})]})},exports.NLPInput=({label:r="",leftIcon:o,rightIcon:A,rightIconColor:i,showLabel:a=!0,onHelpIconClick:l=()=>{},aiIconClick:c=()=>{},webServiceClick:s=()=>{},containerWidth:f="",optionsList:C=[],selectedOption:u={displayName:"",projectId:"",nlpType:"",platform:""},onChange:p=()=>{},errorMsg:g="",className:h="",optionZIndex:m=100,disabled:w=!1,borderRadius:v=!0,showBorder:B=!0,required:I=!1,value:M="",onSelect:L=()=>{},chipOptionList:y,selectedChips:Q,loadMoreOptions:H=()=>{},isWebservice:D=!0})=>{const k={isInputFocused:!1,isIconClick:!1,showOptions:!1,option:x(u)&&"string"==typeof u?.displayName?u.displayName:"",dropdownPosition:{positionX:0,positionY:0,width:0,fromBottom:0}},[V,Z]=t.useReducer(Ws,k),[j,N]=t.useState(u);t.useEffect((()=>{const e="string"==typeof u.displayName?u.displayName:String(u.displayName??"");e!==j.displayName&&N({...u,displayName:e})}),[u]),t.useEffect((()=>{M&&U("FOCUS_INPUT")}),[M]);const z=t.useRef(null),P=t.useRef(null),S=t.useRef(null),{isInputFocused:O,isIconClick:F,showOptions:T,dropdownPosition:R,option:X}=V,Y=G(z,T),U=e=>{w||Z("SHOW_ERROR"===e||"BLUR_INPUT"===e?{type:e,payload:{option:"string"==typeof u.displayName?u.displayName:String(u.displayName??"")}}:{type:e})},K=()=>{if(!T||!z?.current||w)return;const{positionX:e,positionY:t,width:n,fromBottom:r}=Y(z);Z({type:"UPDATE_DROPDOWN_POSITION",payload:{positionX:e,positionY:t,width:n,fromBottom:r}})},W=e=>{const t=window.innerWidth-document.body.clientWidth;document.body.style.paddingRight=e?"":`${t}px`,document.body.style.overflow=e?"":"hidden"};t.useEffect((()=>{if(w)return;T&&W(!T),K();const e=()=>K();return window.addEventListener("resize",e),window.addEventListener("scroll",e),()=>{W(!0),window.removeEventListener("resize",e),window.removeEventListener("scroll",e)}}),[T]),t.useEffect((()=>{g&&U("SHOW_ERROR")}),[]),t.useEffect((()=>{U("FOCUS_INPUT")}),[]);const q=!O&&Boolean(X);return e.jsxs("section",{className:"main-section",children:[e.jsxs("div",{className:d(`ff-nlp-input-wrapper ${h}`),children:[e.jsxs("div",{className:"ff-nlp-input",children:[e.jsx("input",{type:"text",className:d("ff-nlp-input-container",{"ff-nlp-input-container--default":!O,"ff-nlp-input-container--active":q,"ff-nlp-input-container--no-label":!a,"ff-nlp-input-container--error":g&&!O&&!Boolean(X),"ff-nlp-input-container--border-radius":!v,"ff-nlp-input-container--disable":w,"ff-nlp-input-container--no-border":!B}),style:{zIndex:m,paddingLeft:"10px"},onFocus:()=>U("FOCUS_INPUT"),onChange:e=>{w||p(e)},value:M,disabled:w,autoComplete:"off",spellCheck:"false",ref:P}),e.jsxs("div",{className:"ff-nlp-icon-container",children:[e.jsx(E,{name:o||"ai_search",className:"ff-nlp-help_icon",width:16,height:16,onClick:c}),e.jsx(b,{className:"icon-label",fontSize:10,children:"Search With Ai"})]}),a&&e.jsxs("div",{className:d("ff-nlp-input-label","ff-nlp-input-label--default",{"ff-nlp-input-label--active":M||Boolean(X),"ff-nlp-input-label--error":g}),children:[I&&e.jsx(b,{color:"var(--$error-light)",className:"ff-nlp-input-label--required",children:"*"}),r]}),e.jsxs("div",{className:"help-icon-container",children:[e.jsx(E,{name:A||"",height:16,width:16,onClick:l,className:d("ff-nlp-input-arrow",{"ff-nlp-input-arrow--down":!F,"ff-nlp-input-arrow--no-label":!a}),color:i}),e.jsx(b,{className:"help-icon-label",fontSize:10,children:"Help"})]}),e.jsx("fieldset",{className:d("ff-nlp-input-fieldset",{"ff-nlp-input-fieldset--no-label":!a,"ff-nlp-input-fieldset--default":!O,"ff-nlp-input-fieldset--active":O,"ff-nlp-input-fieldset--option":q,"ff-nlp-input-fieldset--error":g,"ff-nlp-input-fieldset--border-radius":!v,"ff-nlp-input-fieldset--no-border":!B}),children:a&&e.jsx("legend",{className:d("ff-nlp-input-legend",{"ff-nlp-input-legend--default":!O,"ff-nlp-input-legend--active":O,"ff-nlp-input-legend--option":q,"ff-nlp-input-legend--error":g}),children:e.jsx("span",{children:" "})})})]}),g&&e.jsx(b,{className:"ff-nlp-input-wrapper-error-text",fontSize:8,color:"var(--error-light)",children:g}),e.jsx("div",{ref:z,children:T&&n.createPortal(e.jsx(Us,{onSelectBlur:()=>{w||U(g?"SHOW_ERROR":"BLUR_INPUT")},onSelectOptionSelector:e=>{L(e)},dropdownPosition:R,options:C,optionZIndex:m,inputRef:P,webServiceClick:s,containerWidth:f,loadMoreOptions:H,chipRef:S,isWebservice:D}),document.body)})]}),e.jsx("div",{className:"chips-accordion-content",children:y&&y.length>0&&e.jsx(Ks,{chipOptionList:y,selectedChips:Q,optionZIndex:m,ref:S})})]})},exports.NLP_DESCRIPTION_REGEX=/^[a-zA-Z0-9_$\s]*$/,exports.NUMBERS_ONLY_REGEX=/^\d+$/,exports.NUMBER_REGEX=Y,exports.NoDataContent=({iconName:t,iconWidth:n=120,iconHeight:r=115,text:o,textFontSize:A="24px"})=>e.jsxs("div",{className:"no_data_message",children:[e.jsx(E,{name:t,width:n,height:r}),e.jsx(b,{fontSize:A,lineHeight:"36px",fontWeight:"bold",children:o})]}),exports.OverviewModal=({isOpen:t,isMaximized:r,width:o="800px",height:A="432px",header:i,children:a,zIndex:l=999,icons:c,downloadFileIcon:s=!1,showheader:f=!0,top:C="0",overlay:u=!0,downloadHandler:p})=>{if(!t)return null;const g=e.jsx("div",{className:d("ff-overviewmodal-overlay"),style:{background:u?"var(--default-icon-color)":void 0,zIndex:l},children:e.jsxs("div",{className:d("ff-overviewmodal-container",{"ff-overviewmaximized-container":r}),style:{"--modal-width":o,"--modal-height":A,"--modal-top":C},children:[f&&e.jsxs("div",{className:d("ff-overviewmodal-header"),children:[i,e.jsxs("div",{className:d("ff-overviewmodal-icons"),children:[s&&e.jsx(E,{width:16,height:16,name:"download_file",onClick:p}),c]})]}),e.jsx("div",{className:d("ff-overviewmodal-body"),children:a})]})});return n.createPortal(g,document.body)},exports.PAN_CARD_REGEX=/^[A-Z]{5}\d{4}[A-Z]{1}$/,exports.PARAMETER_ALPHANUMERIC_REGEX=/^[-_A-Za-z0-9 ]*$|^[-_A-Za-z0-9 ][A-Za-z0-9 ]*[-_A-Za-z-_]$/,exports.PASSWORD_COMPLEX_REGEX=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,exports.PASSWORD_SIMPLE_REGEX=/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/,exports.PHONE_REGEX=/^\+?[\d\s\-()]{7,15}$/,exports.POSTAL_CODE_REGEX=/^[A-Za-z\d\s\-]{3,10}$/,exports.Paper=({children:t,className:n="",rounded:r=!1})=>{const o=d({ff_rounded_lg:r},n);return e.jsx("div",{className:o,children:t})},exports.PhoneInputField=({country:n,value:r,onChange:o,width:A="100%",placeholder:i="Enter phone number",onFocus:a,onBlur:l,id:c,dropdownStyle:s={},enableAreaCodeStretch:f=!1,disabled:d=!1,isValid:C=!0})=>{const[u,p]=t.useState(r),[g,h]=t.useState(!1),[m,E]=t.useState(C);t.useEffect((()=>{if(r){let e=r;e.startsWith("+")||(e=`+${e}`),p(e)}}),[r]);const w=e=>{const t=um[n];if(!t)return!1;let r=e;return r.startsWith("+")||(r=`+${r}`),t.test(r)};return e.jsxs("div",{id:c,children:[e.jsx(Cm,{specialLabel:"",countryCodeEditable:!1,country:n,value:u,onChange:e=>{const t=e.replace(/[^0-9+]/g,"");p(t),o(t);const n=w(t);E(n)},inputStyle:{width:A,height:"32px",border:g?"1px solid var(--brand-color)":m?"1px solid var(--default-color)":"1px solid var(--error_light)",borderRadius:"4px",fontSize:"14px",transition:"border-color 0.3s ease"},enableSearch:!0,placeholder:i,onFocus:e=>{h(!0),a&&a(e)},onBlur:e=>{h(!1),l&&l(e);const t=w(u);E(t)},dropdownStyle:s,enableAreaCodeStretch:f,disabled:d}),!m&&!g&&e.jsx(b,{color:"var(--error_light)",className:"error",children:"Invalid phone number format"})]})},exports.PieChart=({radius:n=15,colors:r=[],data:o=[],chartBorder:A=!1})=>{const[i,a]=t.useState(null),[l,c]=t.useState({x:0,y:0}),[s,f]=t.useState(null),d=o.map((e=>{let t;if("string"==typeof e.value){const n=parseFloat(e.value);t=isNaN(n)?0:n}else t=e.value;return{...e,value:t,labelValue:Number.isInteger(t)?e.value:t.toFixed(2)}})),C=d.reduce(((e,t)=>e+t.value),0),u=1===d.filter((e=>e.value>0)).length;let p=-Math.PI/2;const g=2*(n+5),h=A&&d.length>0?[{label:d[0]?.label||"",value:d.slice(1).reduce(((e,t)=>e+t.value),0)},...d.slice(1)]:d,m=e=>{const{clientX:t,clientY:n}=e;c({x:t,y:n})},E=(e,t,n,r=!1)=>{r?f(n):a({label:e.label,value:e.value,color:t})},w=()=>{a(null),f(null)},v=e=>({transform:s===e?"scale(1.1)":"scale(1)",transition:"transform 0.3s ease, opacity 0.3s ease",opacity:null===s||s===e?1:.5}),B=d.map(((t,n)=>e.jsxs("div",{className:"ff-pie-chart-legend-item",onMouseEnter:()=>E(t,r[n%r.length]||"",n,!0),onMouseLeave:w,children:[e.jsx(b,{as:"div",fontSize:24,fontWeight:"semi-bold",lineHeight:"36px",color:r[n%r.length]||"",children:t.labelValue}),e.jsx(b,{as:"div",fontSize:10,fontWeight:"regular",lineHeight:"18px",className:"ff-pie-chart-legend-value",children:t.label})]},t.label)));if(0===C){const t=`M ${n} 0 A ${n} ${n} 0 1 1 ${-n} 0 A ${n} ${n} 0 1 1 ${n} 0 Z`;return e.jsxs("div",{className:"ff-pie-chart-container",onMouseMove:m,children:[e.jsx("div",{className:""+(A?"ff-pie-chart-border":""),style:{width:g,height:g},children:e.jsx("svg",{width:g,height:g,viewBox:`0 0 ${g} ${g}`,children:e.jsx("g",{transform:`translate(${n+5}, ${n+5})`,children:e.jsx("path",{d:t,fill:"var(--tooltip-bg-color)",stroke:"white",strokeWidth:.5,opacity:.2})})})}),i&&e.jsxs("div",{className:"ff-pie-chart-tooltip",style:{top:l.y,left:l.x},children:[i.label," : ",i.value]}),e.jsx("div",{className:"ff-pie-chart-legend",children:B})]})}return e.jsxs("div",{className:"ff-pie-chart-container",onMouseMove:m,children:[e.jsx("div",{className:""+(A?"ff-pie-chart-border":""),style:{width:g,height:g},children:e.jsx("svg",{width:g,height:g,viewBox:`0 0 ${g} ${g}`,children:e.jsx("g",{transform:`translate(${n+5}, ${n+5})`,children:h.map(((t,o)=>{if(t.value>0){const A=r[o%r.length]||"",{endAngle:i,backgroundArcPath:a}=Kc(t.value,C,p,n);return p=i,u?e.jsxs("g",{onMouseEnter:()=>E(t,A,o),onMouseLeave:w,style:v(o),children:[e.jsx("path",{d:a,fill:A,stroke:"white",strokeWidth:.5}),e.jsx("line",{x1:0,y1:n,x2:0,y2:0,stroke:"white",strokeWidth:2})]},t.label):e.jsxs("g",{children:[e.jsx("path",{d:a,fill:A,stroke:"white",strokeWidth:.5,onMouseEnter:()=>E(t,A,o),onMouseLeave:w,style:v(o)}),e.jsx("text",{x:n/2*Math.cos((p+i)/2),y:n/2*Math.sin((p+i)/2),fill:"white",textAnchor:"middle",dominantBaseline:"central"})]},t.label)}return null}))})})}),i&&e.jsxs("div",{className:"ff-pie-chart-tooltip",style:{top:l.y,left:l.x},children:[i.label," : ",i.value]}),e.jsx("div",{className:"ff-pie-chart-legend",children:B})]})},exports.PopUpModal=({isOpen:t,onClose:n,onContinue:r,titleMessage:o="Warning!",subTitleMessage:A="Unsaved Changes.",iconName:i,modalMessage:a="Your web service data will be lost. Are you sure you want to exit?",firstButtonLabel:l="Cancel",secondButtonLabel:c="Continue",buttonVariant:s="warning",border:f="1px solid var(--warning-modal-border-color)",popupWidth:d="420",popupHeight:C="226",colorForTitleMessage:u="var(--status-button-bg-warning)",footerContent:p})=>e.jsx(Xc,{overlayClassName:"custom-overlay",isOpen:t,onClose:n,isHeaderDisplayed:!1,children:e.jsxs("div",{className:"warning_modal_container",children:[e.jsxs("div",{className:"warning_modal_content",children:[e.jsx(E,{name:i,className:"warning_modal_icon",width:94,height:94}),e.jsxs("div",{className:"warning_modal_message",children:[e.jsxs(b,{fontSize:20,fontWeight:"semi-bold",className:"warning_modal_title_wrapper",children:[" ",e.jsxs(b,{color:`${u}`,fontSize:20,fontWeight:"semi-bold",children:[" ",o," "]})," ",A]}),e.jsxs("div",{className:"warning_modal_message_wrapper",children:[e.jsx(b,{fontSize:16,children:a}),e.jsx(b,{as:"div",children:p})]})]})]}),e.jsxs("div",{className:"warning_modal_footer_button",children:[e.jsx(w,{variant:"secondary",label:l,onClick:n}),e.jsx(w,{variant:s||"warning",label:c,onClick:r})]})]}),ariaHideApp:!0,isFooterDisplayed:!1,customWidth:`${d}px`,customHeight:`${C}px`,boxShadow:"0px 1px 4px 0px var(--toaster-boxshadow)",border:f}),exports.PrePostTable=({data:n=[],columns:r=[],headerType:o,withCheckbox:A=!1,onSelect:i,allSelected:a,partialSelected:l=!1,withFixedHeader:c=!0,borderWithRadius:s=!1,headerCheckboxDisabled:f=!1,noDataContent:C,height:u="100%",className:p="",tableHeadClass:g="",tableBodyRowClass:h="",headerTextColor:m,tableDataTextColor:E,draggable:w=!1,onDragEnd:v,loadMore:B=()=>{},editMode:I="",editComponent:x,NlpComponent:M,AddNlp:L,handleDragStart:y,handelViewComponent:H,handleAccordion:D,loading:k})=>{const V=t.useRef(null),[Z,j]=t.useState(null),[N,z]=t.useState(null),P=e=>{z((t=>t===e?.stepId?null:e?.stepId))},S=e=>{P(e);const t=H(e,P);t?j((()=>t)):P(null)},[O,F]=t.useState(new Map),T=e=>O.has(e),R=e=>{T(e?.stepId)||D?.(e),k||F((t=>{const n=new Map(t);return n.has(e?.stepId)?n.delete(e?.stepId):n.set(e?.stepId,!0),n}))};t.useEffect((()=>{const e=document.getElementById("ff-table-scroll-container"),t=document.getElementById("ff-table-first-node"),r=document.getElementById("ff-table-last-node");if(e&&t&&r&&n?.length)return V.current=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t="ff-table-last-node"===e.target.id?"below":"above";B(t)}}))}),{root:e,rootMargin:"8px",threshold:.1}),V.current.observe(t),V.current.observe(r),()=>{V.current?.disconnect()}}),[n,B]);const G=(e,t,n)=>{let{onClick:r,accessor:o}=e;r&&ne(r)&&r(o,t,n)},X=(e,t)=>{i&&i(e,t)};return e.jsx(vn,{collisionDetection:$e,onDragStart:()=>{y?.(),O.clear()},onDragEnd:e=>{const{active:t,over:r}=e;if(!r||t.id===r.id)return;const o=n.findIndex((e=>e._id===t.id||e.stepId===t.id)),A=n.findIndex((e=>e._id===r.id||e.stepId===r.id));-1!==o&&-1!==A&&v&&v(o,A)},children:e.jsx(Jn,{disabled:!w,items:n?.map((e=>e.stepId||e._id)),strategy:Kn,children:e.jsxs("div",{style:{height:u,position:"relative"},id:"ff-table-scroll-container",className:d(p,{"pre-fixed-header-table":c,"pre-border-borderRadius":s}),children:[e.jsxs("table",{className:d("ff-table-pre-post"),cellSpacing:0,children:[e.jsx("thead",{className:d({"pre-table-thead":c},g),children:e.jsx("tr",{children:r.map(((t,n)=>e.jsx("th",{className:d(`${o&&`${o}-bg`}`,`${m&&`${m}-color`}`),style:{width:t?.width},children:e.jsxs(b,{as:"div",fontWeight:"semi-bold",className:"ff-label-checkbox-container",lineHeight:"18px",color:"var(--drawer-title-color)",children:[0===n&&A&&e.jsx("span",{className:"ff-table-checkbox",children:e.jsx(Q,{onChange:e=>{X(e,{allSelected:e.target.checked})},checked:void 0!==a&&a,partial:!!l,disabled:f})}),t.header]})},t.header)))})}),e.jsxs("tbody",{className:"pre-table-tbody",children:[e.jsx("tr",{id:"ff-table-first-node"}),mm(n,L??{})?.map(((o,i)=>{const a=I===o.stepId;return a||o.isNew?e.jsxs("tr",{className:"pre-edit-row",children:[a&&t.isValidElement(x)&&e.jsx("td",{colSpan:r.length,children:t.cloneElement(x,{rowData:o,rowIndex:i+1})}),o.isNew&&!a&&t.isValidElement(M)&&e.jsx("td",{colSpan:r.length,children:t.cloneElement(M,{rowIndex:i,stepId:o.stepId})})]},o.stepId||i):e.jsx(bm,{row:o,indexNumber:i,columns:r,tableBodyRowClass:h,handleOnclick:G,tableDataTextColor:E,withCheckbox:A,onSelectClick:X,draggable:w,dataLength:n?.length,viewModeId:N,ViewComponent:Z,handleClick:S,handleStepGroupExpand:R,isStepGroupExpanded:T})})),e.jsx("tr",{id:"ff-table-last-node"})]})]}),n?.length<=0&&e.jsx("div",{className:"ff-no-data-content",style:{height:`calc(${u} - 50px)`},children:C})]})})})},exports.ProgressBar=({progressPercentage:t,color:n="var(--brand-color)",trackColor:r="#f0f0f0",height:o=10,label:A,labelFontSize:i=12,labelTextColor:a="var(--ff-card-status-text-color)",showPercentage:l=!1,percentageFontSize:c=10,percentageTextColor:s="var(--tooltip-text-color)"})=>{const f=Math.max(0,Math.min(t,100)),d={width:`${f}%`,backgroundColor:n,height:`${o}px`},C={backgroundColor:r,height:`${o}px`};return e.jsxs("div",{className:"ff-progress-bar-container "+(A?"ff-has-label":""),children:[e.jsx("div",{className:"ff-progress-bar-track",style:C,children:e.jsx("div",{className:"ff-progress-bar",style:d,children:l&&e.jsx(b,{className:"ff-progress-bar-percentage",fontSize:c,color:s,children:`${f}%`})})}),A&&e.jsx(b,{as:"div",className:"ff-progress-bar-label",fontSize:i,color:a,children:A})]})},exports.Prompt=Du,exports.PromptContainer=({id:t=0,serialNumber:n,activeId:r,setActiveId:o,children:A,onIconClick:i,numberChildren:a,onClick:l,onNextClick:c,onPreviousClick:s})=>{const f=(e,t)=>{e.stopPropagation(),t()};return e.jsxs("div",{className:"ff-prompt-container-Block "+(r===t?"active":"inactive"),onClick:()=>{o(t),l()},children:[e.jsx("div",{className:"ff--prompt-header",children:e.jsx(b,{as:"div",className:"ff-prompt-number-bg-color",color:"var(--table-column-text-color)",children:n})}),e.jsx("div",{className:"ff-prompt-content",children:A}),e.jsxs("div",{className:"ff-prompt-icons",children:[e.jsx("div",{className:"ff-prompt-icons-leftside",children:[{action:"delete",title:"Delete",color:"var(--ff-delete-button-attachment)"},{action:"edit",title:"Edit",color:"var(--label-edit-text-label-color)"},{action:"regenerate",title:"Regenerate",color:"var(--label-edit-text-label-color)"}].map((t=>e.jsx(M,{title:t.title,placement:"bottom",children:e.jsx(E,{name:t.action,color:t.color,hoverEffect:!0,onClick:e=>((e,t)=>{e.stopPropagation(),i(t)})(e,t.action)})})))}),e.jsxs("div",{className:"ff-prompt-icons-rightside",children:[e.jsx(E,{className:"ff-prompt-icons-style",name:"arrow_left_accordian",color:"var(--table-column-text-color)",width:12,height:12,onClick:e=>f(e,s)}),a,e.jsx(E,{className:"ff-prompt-icons-style",name:"arrow_right_icon",color:"var(--table-column-text-color)",width:12,height:12,onClick:e=>f(e,c)})]})]})]})},exports.RGB_COLOR_REGEX=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,exports.ROMAN_NUMERALS_REGEX=/^(?=[MDCLXVI])M*(C[MD]|D?C{0,3})(X[CL]|L?X{0,3})(I[XV]|V?I{0,3})$/,exports.RadialChart=({radius:n=15,lineWidth:r=5,statusValues:o=[],onClick:A=()=>{},fontSize:i=6})=>{const{colorMapping:a,backgroundColorMapping:l}=t.useMemo((()=>({colorMapping:{passed:"var(--status-success-text-color)",failed:"var(--status-rejected-text-color)",warning:"var(--status-warning-text-color)",skipped:"var(--status-skipped-text-color)"},backgroundColorMapping:{passed:"var(--status-success-bg-color)",failed:"var(--status-rejected-bg-color)",warning:"var(--status-warning-bg-color)",skipped:"var(--status-skipped-bg-color)"}})),[]),c=o.reduce(((e,t)=>e+t.value),0);let s=-Math.PI/2;const f=2*(n+r);return e.jsx("div",{className:"ff-radial-chart-container",style:{"--fontSize":`${i}px`},children:o.map((t=>{const o=t.status.toLowerCase(),{endAngle:i,backgroundArcPath:d,foregroundArcPath:C,percentage:u}=((e,t,n,r)=>{if(0===t)return{endAngle:n,backgroundArcPath:P({x:0,y:0,radius:r,startAngle:0,endAngle:2*Math.PI}),foregroundArcPath:"",percentage:0};const o=e/t;let A=n,i=A+2*o*Math.PI;return e===t&&(A=0,i=2*Math.PI),{endAngle:i,backgroundArcPath:P({x:0,y:0,radius:r,startAngle:0,endAngle:2*Math.PI}),foregroundArcPath:P({x:0,y:0,radius:r,startAngle:A,endAngle:i}),percentage:o}})(t.value,c,s,n);return s=i,e.jsx(M,{title:`${t.status}: ${Math.round(100*u)}%`,zIndex:1e3,children:e.jsx("svg",{width:f,height:f,viewBox:`0 0 ${f} ${f}`,onClick:()=>A(t),role:"img","aria-label":`${t.status}: ${Math.round(100*u)}%`,children:e.jsxs("g",{transform:`translate(${n+r}, ${n+r})`,children:[e.jsx("path",{d:d,fill:"none",stroke:l[o],strokeWidth:r}),e.jsx("path",{d:C,fill:"none",stroke:a[o],strokeWidth:r}),e.jsx("text",{x:"0",y:"0",fill:a[o],textAnchor:"middle",dominantBaseline:"central",children:`${Math.round(100*u)}%`})]})},t.status)})}))})},exports.RadioButton=ur,exports.RadioGroup=pr,exports.Recaptcha=Xs,exports.Row=({children:t,gap:n="0px",className:r=""})=>e.jsx("div",{className:d("ff-row",r),style:{gap:n},children:t}),exports.SCRIPT_REGEX=/SCR\d+/,exports.SSN_REGEX=/^\d{3}-\d{2}-\d{4}$/,exports.STEP_GROUP_NAME_REGEX=/^[a-zA-Z0-9()\-_ ]+$/,exports.ScriptSwitchButton=({selected:t="text",handleClick:n,tabList:r})=>{const o=r?.includes("Automation"),A=r?.includes("Manual");return e.jsxs("div",{className:"ff-script-switch-container",children:[e.jsx(M,{title:o?"Automation":"Add Automation",zIndex:1e3,children:e.jsx("div",{className:"ff-script-switch-button "+("Automation"===t?"active":""),onClick:()=>n(o?"Automation":"Add Automation"),children:e.jsx(E,{name:o?"automation_testcase":"add_testcase",color:"Automation"===t?"var(--primary-button-text-color)":"var(--description-text)"})})}),e.jsx(M,{title:A?"Manual":"Add Manual",zIndex:1e3,children:e.jsx("div",{className:"ff-script-switch-button "+("Manual"===t?"active":""),onClick:()=>n(A?"Manual":"Add Manual"),children:e.jsx(E,{name:A?"manual_testcase":"add_testcase",color:"Manual"===t?"var(--primary-button-text-color)":"var(--description-text)"})})})]})},exports.Search=ui,exports.Select=X,exports.SequentialConnectingBranch=({machineInstances:n=[],machineColumnWidth:r=180,machineColumnCount:o=1,selectedMachine:A={},machineOptionsList:i=[],onHandleSelect:a=()=>{},onAddBrowserInstance:l=()=>{},onAddRunBrowserInstance:c=()=>{},onDeleteBrowserInstance:s=()=>{},onUpdateDataSetList:f=()=>{},onDeleteMachineInstance:C=()=>{},dataSetValues:u={testDataSetId:"",globalVariableSetId:"",peVariableSetId:"",globalVariableSetName:"",peVariableSetName:"",testDataSetName:""},onUpdateAddBrowserInstance:p=()=>{},addInstanceLabel:g="Add Environment",placeholder:h="Choose Machine",scriptType:m="Automation",projectType:v="Web",readOnly:B=!1,zIndex:I=99999,maxRunCount:L=35})=>{const[y,Q]=t.useState({}),H=t.useRef(null),D=Math.max(o,1),k=Math.max(r,180),[V,Z]=t.useState([]),j=x(n);let N=x(A.value?.clientId);"Manual"===m&&(N=x(A.value));t.useEffect((()=>{Q(A)}),[A]),t.useEffect((()=>{Z(B?n:[...n,{}])}),[n]);const z="manual"!==m.toLowerCase(),P=(S=u,O="Id",Object.fromEntries(Object.entries(S).filter((([e])=>!e.includes(O)))));var S,O;return e.jsxs("div",{className:"ff-sequential-connecting-branch-wrapper",children:[e.jsxs("div",{className:"ff-connecting-select-branch-wrapper",children:[e.jsxs("div",{className:"ff-select-branch-wrapper",children:[e.jsx(X,{onChange:a,optionsList:i,label:h,required:!1,showLabel:!0,className:"ff-sequential-select-branch",width:"240px",selectedOption:y,valueAccessor:"name",optionsRequired:!B,disableInput:B,optionZIndex:I}),!N&&e.jsxs("div",{className:d({"ff-select-branch-arrow":j,"ff-select-branch-arrow-down":!j}),children:[e.jsx("div",{className:"ff-select-branch-point"}),e.jsxs("div",{className:"ff-select-branch-arrow",children:[e.jsx("div",{className:"ff-branch-arrow-wrapper",children:j&&e.jsx("div",{className:"ff-branch-arrow"})}),j&&e.jsx(e.Fragment,{children:e.jsx(w,{variant:"tertiary",label:"+ Environment",size:"small",className:"branch-button",ref:H,onClick:()=>l("ff-sequential-branch-button"),id:"ff-sequential-branch-button"})})]})]})]}),!N&&e.jsxs("div",{className:"ff-select-scope-datalist",children:[e.jsx("div",{className:"ff-scope-wrapper",children:e.jsx(b,{as:"span",color:((e="")=>e.toLowerCase().includes("inactive")?"var(--ff-machine-inactive-status-color)":e.toLowerCase().includes("running")?"var(--ff-machine-running-status-color)":e.toLowerCase().includes("active")?"var(--ff-machine-active-status-color)":"var(--ff-machine-active-status-color))")(A.value?.status),className:"ff-scope-text",children:A.value?.status})}),e.jsxs("div",{className:"ff-datalist-wrapper",children:[z&&e.jsxs("div",{id:"ff-sequential-machine-datalist",onClick:()=>{B||f("ff-sequential-machine-datalist",u)},children:[e.jsx(M,{placement:"bottom",title:e.jsx("div",{children:e.jsx(_s,{datSetToolTip:P})}),children:e.jsx(E,{name:"datalist_icon",className:"ff-dataset-icon",hoverEffect:!0})}),e.jsx(b,{as:"span",color:"var(--ff-connecting-branch-color)",className:"ff-datalist-text",children:"Data Set List"})]}),!B&&e.jsx(E,{name:"delete",className:"ff-run-delete-icon",color:"var(--ff-connecting-branch-delete-color)",onClick:C,hoverEffect:!0})]})]})]}),e.jsx("div",{className:"ff-sequential-branches-wrapper",children:!j&&e.jsx(tf,{machineBranchInstances:V,machineColumnCount:D,machineColumnWidth:k,onAddBrowser:l,onDeleteBrowser:s,onAddRunBrowser:c,onUpdateDataSetList:f,onUpdateAddBrowserInstance:p,addInstanceLabel:g,scriptType:m,projectType:v,readOnly:B,maxRunCount:L})})]})},exports.StateDropdown=({value:t,isReviewer:n=!1,isApprovePage:r=!1,handleStateValueClick:o,handleDropdownOptionsClick:A,disabled:i=!1,isOnlyReviewer:a=!1,showBorder:l=!0,zIndex:c=100})=>{const s=t.toUpperCase(),f=n&&!r&&"REVIEW"===s,d=a&&!r?[{label:"New",value:"New"},{label:"Approve",value:"Approve"}]:n||r?n&&!r?[{label:"REJECTED"===s?"Rejected":"New",value:"REJECTED"===s?"Rejected":"New"},{label:"Review",value:"Review"},{label:"Approve",value:"Approve"}]:n&&r?[{label:"Review",value:"Review"},{label:"Approve",value:"Approve"},{label:"Reject",value:"Reject"}]:f?[{label:"Review",value:"Review"},{label:"Approve",value:"Approve"}]:[{label:"New",value:"New"},{label:"Review",value:"Review"}]:[{label:"REJECTED"===s?"Rejected":"New",value:"REJECTED"===s?"Rejected":"New"},{label:"Review",value:"Review"}],C={label:t,value:t},u=("NEW"===s&&!r||r&&"REVIEW"===s||f||"REJECTED"===s&&!r)&&!i?e.jsx(X,{label:t,onChange:e=>A(e),optionsList:d,selectedOption:C,showLabel:!1,showBorder:l,disableInput:!0,selectedOptionColor:"var(--brand-color)",optionZIndex:c}):e.jsx(b,{children:t,className:"ff-state-value",onClick:()=>{"review"!==t.toLowerCase()||i||r||n||o()},cursor:i?"text":"pointer"});return e.jsx(e.Fragment,{children:u})},exports.StatusButton=({status:t="passed",label:n="",onClick:r=()=>{},className:o="",style:A={},disabled:i=!1,...a})=>{const l="partially-executed"===t||"not-executed"===t;return e.jsx(M,{title:l?n:"",placement:"bottom",children:e.jsx("button",{className:d("ff-status-button",`ff-status-button--${t}`,o),style:A,onClick:r,disabled:i,...a,children:e.jsx(b,{as:"div",fontWeight:"semi-bold",lineHeight:"16px",textAlign:"center",className:"ff-status-button__text",children:n})})})},exports.StatusCard=({icon:n,status:r,count:o,text:A,style:i={width:"196.4px"},resetToggle:a,onSelectedStatus:l=e=>{}})=>{const[c,s]=t.useState(!1),f=["total defects","defect density","open defects","closed defects","quality score"],d=f.includes(r.toLowerCase()),C=f.includes(r.toLowerCase());t.useEffect((()=>{s(!a)}),[a]);return e.jsxs("div",{className:`ff-card-container ${r.toLowerCase()} ${c?"toggled":""}`,style:i,onClick:()=>(e=>{f.includes(e.toLowerCase())||(s(!0),l(e))})(r),children:[e.jsxs("div",{className:"ff-status-bar",children:[e.jsx("div",{children:e.jsx(E,{name:n,height:20,width:20,hoverEffect:!1})}),!f.includes(r.toLowerCase())&&e.jsx(b,{fontWeight:"semi-bold",fontSize:"10px",textAlign:"center",lineHeight:"15px",className:"ff-status-text",as:"div",children:r.charAt(0).toUpperCase()+r.slice(1).toLowerCase()})]}),e.jsx("div",{className:"ff-content "+(C?"red-background":""),children:d?e.jsxs(e.Fragment,{children:[e.jsx(b,{fontWeight:"semi-bold",fontSize:"10px",className:"ff-text",lineHeight:"15px",color:"var(--ff-chip-text-color)",children:A}),e.jsx(b,{fontWeight:"semi-bold",fontSize:"24px",className:"ff-number",lineHeight:"36px",children:"defect density"===r.toLowerCase()?e.jsxs(e.Fragment,{children:[o.toString().padStart(2,"0"),e.jsx(b,{fontSize:"15px",fontWeight:"semi-bold",children:"/ Modules"})]}):"quality score"===r.toLowerCase()?`${parseFloat(o.toString()).toFixed(2)}%`:o.toString().padStart(2,"0")})]}):e.jsxs(e.Fragment,{children:[e.jsx(b,{fontWeight:"semi-bold",fontSize:"24px",className:"ff-number",lineHeight:"24px",color:c?"var(--base-bg-color)":"",children:o.toString().padStart(2,"0")}),e.jsx(b,{className:"ff-text",lineHeight:"18px",color:c?"var(--base-bg-color)":"var(--ff-chip-text-color)",children:A})]})})]})},exports.StepLandingTable=({tableMeta:n=[],tableData:r=[],noDataContent:o,height:A="100%",withFixedHeader:i=!1,headerType:a,handleDragStart:l,onDragEnd:c,editMode:s,editComponent:f,NlpComponent:C,AddNlp:u,handleAccordion:p,handelViewComponent:g,onSelectClick:h,loading:m=!1,isViewPrivilegeMode:w=!1})=>{const[v,B]=t.useState(null),[I,x]=t.useState(null),[M,L]=t.useState({});t.useEffect((()=>{L((e=>{const t={};return r.forEach((n=>{t[n.title]=n.title in e?e[n.title]??!1:"Steps"===n.title})),t}))}),[r]);const y=t.useMemo((()=>e=>M[e]??!1),[M]),H=e=>{x((t=>t===e?.stepId?null:e?.stepId))},D=e=>{H(e);const t=g(e,H);t?B((()=>t)):H(null)},[k,V]=t.useState(Object.fromEntries(r.map((e=>[e.title,new Set]))));t.useEffect((()=>{var e;e=k,Object.values(e).some((e=>e.size>0))?h(k):h(null)}),[k]);const Z=(e,t,n)=>{V((r=>{const o=new Set(r[e]);return n?o.add(t.stepId):o.delete(t.stepId),{...r,[e]:o}}))},j=(e,t)=>t>0&&k[e]?.size===t,N=(e,t)=>{const n=k[e]?.size||0;return n>0&&n<t},[z,P]=t.useState(new Map),S=e=>z.has(e),O=e=>{S(e?.stepId)||p?.(e),m||P((t=>{const n=new Map(t);return n.has(e?.stepId)?n.delete(e?.stepId):n.set(e?.stepId,!0),n}))};return e.jsxs("div",{className:d("ff-accordion-table-container-steps",{"ff-accordion-fixed-header-table":i}),children:[e.jsx("table",{cellSpacing:0,className:d("ff-accordion-table",{"ff-accordion-fixed-header":i}),children:e.jsx("thead",{className:"table-thead",children:e.jsx("tr",{className:"ff-table-row",children:n.map(((t,n)=>e.jsx("th",{style:{width:t.width},className:d("ff-table-header",a&&`ff-accordion-table--${a}-bg`),children:e.jsx(b,{as:"div",fontWeight:"semi-bold",lineHeight:"18px",color:"var(--drawer-title-color)",children:t.header})},`${t.header}-${n}`)))})})}),e.jsx("div",{className:"ff-accordion-table-body",style:{height:A},children:r.map((t=>{const{title:A,data:i,actionCell:d}=t,p=i.length,g=y(A),h=(k[A]?.size??0)>0&&p>0&&d;return e.jsxs("div",{className:"column-table-accordion",children:[e.jsx("div",{className:"ff-display-flex",children:e.jsxs("div",{className:"accordion-header",children:[e.jsx("div",{children:e.jsx(Q,{onChange:e=>((e,t)=>{const n=r.find((t=>t.title===e))?.data.map((e=>e.stepId));n&&V((r=>({...r,[e]:t?new Set(n):new Set})))})(A,e.target.checked),checked:j(A,p),partial:N(A,p),disabled:0===p})}),e.jsx("div",{className:"header-title",children:e.jsx(b,{as:"div",fontWeight:"semi-bold",color:"var(--nlp-option-color)",cursor:"default",lineHeight:"18px",children:A})}),e.jsx("div",{className:"accordion-arrow "+(g?"expanded":""),onClick:()=>(e=>{L((t=>({...t,[e]:!t[e]})))})(A),children:e.jsx(E,{name:"arrow_right",color:g?"var(--brand-color)":"var(--default-color)",width:16,height:16,className:"steps-arrow-svg"})}),h&&e.jsx("div",{children:d(t)})]})}),g&&(m=t,"Steps"===m.title?e.jsx(Im,{draggable:!w,columns:n,onDragEnd:c,data:m.data,headerType:a,withCheckbox:!0,editMode:s,editComponent:f,noDataContent:o,NlpComponent:C,AddNlp:u,tableType:m.title,handleDragStart:()=>{z.clear(),l&&l()},onSelect:Z,selectedRows:k,viewModeId:I,ViewComponent:v,handleClick:D,handleStepGroupExpand:O,isStepGroupExpanded:S}):e.jsx(Im,{editMode:s,withCheckbox:!0,editComponent:f,columns:n,data:m.data,headerType:a,noDataContent:void 0,tableType:m.title,onSelect:Z,selectedRows:k,viewModeId:I,ViewComponent:v,handleClick:D,handleStepGroupExpand:O,isStepGroupExpanded:S}))]},A);var m}))})]})},exports.SwitchButton=({selected:t,handleClick:n,tabList:r})=>e.jsx("div",{className:"ff-switch-container",children:r.map((r=>e.jsx(M,{title:r.tooltip,zIndex:1e3,children:e.jsx("div",{className:"ff-switch-button "+(t===r.name?"active":""),onClick:()=>n(r.name),children:e.jsx(E,{name:r.icon,color:t===r.name?"var(--primary-button-text-color)":"var(--description-text)"})})},r.name)))}),exports.TIME_REGEX=/^\d{2}:\d{2}:\d{2}$/,exports.TWITTER_HANDLE_REGEX=/^@?([a-zA-Z0-9_]{1,15})$/,exports.Table=({data:n=[],columns:r=[],headerType:o,withCheckbox:A=!1,onSelect:i,allSelected:a,partialSelected:l=!1,withFixedHeader:c=!0,borderWithRadius:s=!1,headerCheckboxDisabled:f=!1,noDataContent:C,height:u="100%",className:p="",tableHeadClass:g="",tableBodyRowClass:h="",headerTextColor:m,tableDataTextColor:w,headerIconName:v="",headerIconOnClick:B=()=>{},draggable:I=!1,onDragEnd:x,loadMore:M=()=>{},editMode:L="",editComponent:y,getAccordionStatus:H=()=>{},accordionContent:D,columnSticky:k=!1,onScrollEnd:V=()=>{}})=>{const Z=t.useRef(null),j=t.useRef(null),[N,z]=t.useState(!1);t.useEffect((()=>{const e=document.getElementById("ff-table-scroll-container"),t=document.getElementById("ff-table-first-node"),r=document.getElementById("ff-table-last-node");if(e&&t&&r&&n?.length)return Z.current=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t="ff-table-last-node"===e.target.id?"below":"above";M(t)}}))}),{root:e,rootMargin:"8px",threshold:.1}),Z.current.observe(t),Z.current.observe(r),()=>{Z.current?.disconnect()}}),[n,M]),t.useEffect((()=>{const e=()=>{if(!j.current)return;const{scrollTop:e,scrollHeight:t,clientHeight:n}=j.current;e+n>=t-5?N||(z(!0),V(!0)):z(!1)},t=j.current;return t&&t.addEventListener("scroll",e),()=>{t&&t.removeEventListener("scroll",e)}}),[V,N]);const P=(e,t)=>{let{onClick:n,accessor:r}=e;n&&ne(n)&&n(r,t)},S=(e,t)=>{i&&i(e,t)};return e.jsx(vn,{collisionDetection:$e,onDragEnd:e=>{const{active:t,over:r}=e;if(!r||t.id===r.id)return;const o=n.findIndex((e=>e._id===t.id||e.id===t.id)),A=n.findIndex((e=>e._id===r.id||e.id===r.id));-1!==o&&-1!==A&&x&&x(o,A)},children:e.jsx(Jn,{disabled:!I,items:n?.map((e=>e._id||e.id)),strategy:Kn,children:e.jsxs("div",{style:{height:u,position:"relative",overflowX:"auto",whiteSpace:"nowrap",scrollbarWidth:I?"none":"auto"},id:"ff-table-scroll-container",className:d(p,{"ff-fixed-header-table":c,"border-borderRadius":s}),ref:j,children:[e.jsxs("table",{className:d("ff-table"),cellSpacing:0,children:[e.jsx("thead",{className:d({"ff-fixed-header":c},g),children:e.jsx("tr",{children:r.map(((t,n)=>e.jsxs("th",{className:d(`${o&&`${o}-bg`}`,`${m&&`${m}-color`}`,{"sticky-column":k&&(0===n||1===n)}),style:{width:t?.width,left:!k||0!==n&&1!==n?"auto":53*n+"px"},children:[e.jsx("div",{className:"ff-table-icon",children:e.jsx(E,{height:14,width:14,name:v,onClick:B})}),e.jsxs(b,{as:"div",fontWeight:"semi-bold",className:"ff-label-checkbox-container",children:[0===n&&A&&e.jsx("span",{className:"ff-table-checkbox",children:e.jsx(Q,{onChange:e=>{S(e,{allSelected:e.target.checked})},checked:void 0!==a&&a,partial:!!l,disabled:f})}),t.header]})]},t.header)))})}),e.jsxs("tbody",{className:"ff-fixed-header-table",children:[e.jsx("tr",{id:"ff-table-first-node"}),n?.length>0&&n?.map(((n,o)=>{const i=H(n?.id||n?._id||n?.scriptId);return e.jsx(e.Fragment,{children:L===n._id||L===n.id?e.jsx("tr",{className:d(h,"edit-row",{"disabled-row":n.disabled}),children:e.jsx("td",{colSpan:r.length,style:{padding:"0px"},children:L&&t.isValidElement(y)&&t.cloneElement(y,{rowData:n,rowIndex:o+1})})},n?._id||o):e.jsx(cr,{row:n,serialNumber:o+1,columns:r,tableBodyRowClass:h,handleOnclick:P,tableDataTextColor:w,withCheckbox:A,onSelectClick:S,draggable:I,columnSticky:k,isAccordionOpen:i,accordionContent:D})})})),e.jsx("tr",{id:"ff-table-last-node"})]})]}),n?.length<=0&&e.jsx("div",{className:"no-data-content",style:{height:`calc(${u} - 50px)`},children:C})]})})})},exports.TableTree=({treeData:n,columnsData:r,selected:o=[],select:A=null,onChange:i,onClick:a,onExpand:l,loadMore:c=()=>{},tableBorder:s,height:f="calc(100vh - 134px)",newNode:d,onAddConfirm:C=e=>{},onAddCancel:u=()=>{},handleEditFieldError:p,loading:g=!1,rootNode:h,getContentLength:m,pagination:E=!0,selectedNode:b,tableHeaderBgColor:w="var(--border-color)"})=>{const[v,B]=t.useState(null),[I,x]=t.useState(null),M=t.useRef(null),L=t.useRef(null),[y,Q]=t.useState(null),H=t.useRef([]),D=t.useCallback((()=>{const e=L.current;!g&&e&&setTimeout((()=>{const t=e.scrollTop,r=H.current;if(r.length>0&&"above"===I){const o=Array.from(e.querySelectorAll(".ff-table-tree-row"));let A=0;if(m)A=m;else for(let e=0;e<n.length&&r[0]!==n[e];e++)A++;const i=n.slice(0,A-(t>5?0:1)).reduce(((e,t,n)=>e+(o[n]?.getBoundingClientRect().height||0)),0);"above"===I&&(e.scrollTop=y+i)}H.current=n}),0)}),[g,I,n]);t.useEffect((()=>{const e=document.getElementById("ff-table-tree-scroll-container"),t=document.getElementById("ff-table-tree-last-node"),r=document.getElementById("ff-table-tree-first-node");if(!(e&&t&&r&&n?.length&&E))return;const o=!!n[n.length-1]?.lastResource,A=!!n[0]?.lastResource;M.current?.disconnect();return M.current=new IntersectionObserver((e=>{e.forEach((e=>{const t="ff-table-tree-last-node"===e.target.id?"below":"above";e.isIntersecting&&("below"!==t||I||o?"above"!==t||I||A||g||"above"===I||(x("above"),Q(L.current?.scrollTop??null),c("above")):g||"below"===I||(x("below"),c("below")))}))}),{root:e,rootMargin:"30px",threshold:1}),o||M.current.observe(t),A||M.current.observe(r),0===H.current.length&&(H.current=n),()=>{M.current?.disconnect()}}),[n,c,I]),t.useEffect((()=>{!g&&I&&("above"===I&&E?D():H.current=n,x(null))}),[g]),t.useEffect((()=>{!g&&v&&B(null)}),[g]);const k=t.useCallback((e=>{v||(B(e.key),l?.(e))}),[l,v]),V=t.useCallback(((e,t)=>{v||i?.(e,t)}),[i,v]),Z=t.useCallback(((e,t)=>{v||a?.(e,t)}),[a,v]);return e.jsx("div",{className:"tree-table-wrap",children:e.jsx("div",{className:"table-scrollable "+(n.length?"":"table-empty"),ref:L,id:"ff-table-tree-scroll-container",style:{"--table-height":n.length?f:"auto",border:s},children:e.jsxs("table",{className:"tree-table",children:[e.jsx(ti,{columnsData:r,rootNode:h,onCheckBoxChange:V,selected:o,selectedNode:b,tableHeaderBgColor:w}),e.jsx(li,{flattenedTreeData:n,rootNode:h?.node,columnsData:r,selected:o,select:A,onRowClick:Z,onToggleExpand:k,onCheckBoxChange:V,newNode:d,onAddConfirm:C,onAddCancel:u,handleEditFieldError:p,expanding:v,selectedNode:b})]})})})},exports.TableWithAccordion=({tableMeta:n=[],tableData:r=[],accordionType:o="row",noDataContent:A,height:i="100%",withFixedHeader:a=!1,headerType:l,TableAccordionStateIconWidth:c=4,TableAccordionStateIconHeight:s=8})=>{const[f,C]=t.useState(-1),u=(e,t)=>{let n=e[t.accessor];return t.cell?t.cell({value:n,row:e,column:t.accessor}):t.accessor||n&&"object"!=typeof n?n:"--"},p=t=>{const r=t.map(((t,r)=>e.jsx("table",{className:"ff-accordion-table",cellSpacing:0,children:e.jsx("tbody",{className:"ff-table-body",children:e.jsx("tr",{className:"ff-table-row",children:n.map(((n,r)=>e.jsx("td",{className:"ff-table-cell",style:{width:n.width},children:"column"===o&&0===r?"":e.jsx(b,{children:u(t,n)})},n.accessor+r)))},t.id||r)})},`accordion-table-${r}`)));return r};return e.jsxs("div",{style:{height:i},className:d("ff-accordion-table-container",{"ff-accordion-fixed-header-table":a}),children:[e.jsx("table",{cellSpacing:0,className:d("ff-accordion-table",{"ff-accordion-fixed-header":a}),children:e.jsx("thead",{children:e.jsx("tr",{className:"ff-table-row",children:n.map((t=>e.jsx("th",{style:{width:t.width},className:d("ff-table-header",l&&`ff-accordion-table--${l}-bg`),children:e.jsx("div",{children:e.jsx(b,{fontWeight:"medium",fontSize:12,children:t.header})})},`header-${t.header}`)))})})}),"row"===o&&r.map(((t,n)=>e.jsx(L,{headerTitle:t.title,color:"var(--text-color)",accordionContent:p(t.data),disable:t.disable,disableInfoMessage:t.disableInfoMessage,accordionStateIconName:"arrows_down_icon",AccordionStateIconWidth:c,AccordionStateIconHeight:s},`accordion-row-${n}`))),"column"===o&&r.map(((t,n)=>e.jsxs("div",{className:"column-table-accordion",children:[e.jsx("div",{className:"ff-display-flex",children:e.jsx(M,{title:t?.disableInfoMessage,children:e.jsxs("div",{className:`accordion-header ${t.disable&&"ff-disabled"}`,children:[e.jsx("div",{className:"header-title",children:e.jsx("span",{children:e.jsx(b,{fontWeight:"regular",children:t.title})})}),e.jsx("div",{className:"accordion-arrow",onClick:()=>{!t.disable&&(e=>{C(e===f?-1:e)})(n)},children:e.jsx(E,{name:f===n?"arrows_down_icon":"arrows_right_icon",color:"var(--table-with-accordion-icon-color)",width:c,height:s,hoverEffect:!1})})]})})}),f===n&&e.jsx("div",{children:p(t.data)})]},`column-accordion-${n}`))),r.length<=0&&e.jsx("div",{className:"no-data-content",style:{height:`calc(${i} - 50px)`},children:A})]})},exports.Tabs=({variant:t="default",tabsData:n,activeTabId:r,onTabClick:o,noBorder:A=!1,noPadding:i=!1,titleSize:a="12px"})=>e.jsxs("div",{className:"ff-tabs-container",children:[e.jsx("div",{className:d(`ff-tab-row--${t}`,{"ff-tab-row--no-border":A,"ff-tab-row--no-padding":i}),children:n.map((n=>e.jsxs("button",{onClick:()=>!n.disabled&&o(n.id),disabled:n.disabled,className:d(`ff-tab-button--${t}`,{disabled:n.disabled,active:r===n.id}),children:[e.jsxs("div",{className:"label-count-section",children:[e.jsx(b,{children:n.label,fontSize:a,lineHeight:"18px",fontWeight:r===n.id?"semi-bold":"regular",color:r===n.id?"var(--tabs-label-active-color)":"var(--tabs-label-default-color)",className:d("ff-tab-label",{"ff-tab-label--active":r===n.id})}),"default"===t&&n.count&&e.jsx("span",{className:d("tab-count",{"tab-count--active":r===n.id}),children:n.count})]}),e.jsx("div",{className:d("ff-tab-bar",{"ff-tab-bar--active":r===n.id})}),e.jsx("span",{className:"ff-defaultStatus "+("success"===n.status?"ff-successStatus":"error"===n.status?"ff-dangerStatus":"")})]},n.id)))}),e.jsx("div",{className:"ff-tab-content",children:n.find((e=>e.id===r))?.component})]}),exports.TextArea=({capacity:t=200,name:n,label:r,value:o="",variant:A="primary",error:i,helperText:a="",disabled:l=!1,required:c=!1,placeholder:s="Enter text",className:f="",onChange:C,onBlur:u,onFocus:p,onPaste:g,rows:h=4,cols:m=40,resize:E=!1,errorText:w,...v})=>{const B=d("ff-textarea-label ff-textarea-label--"+A,{"ff-textarea-label--danger":i}),I=d(`ff-textarea ff-textarea--${A}`,f,{"ff-textarea--danger":i,"ff-textarea--resize":!E}),x=d("ff-textarea-container",{"ff-textarea-container--disabled":l,"ff-textarea-container--float":Boolean(o)}),M=i&&c||!o,L=M?e.jsx("span",{className:"ff-textarea-error-text",children:e.jsx(b,{fontSize:10,children:w})}):null;return e.jsxs("div",{className:x,children:[e.jsx("label",{htmlFor:n,className:d("ff-textarea-label-container",{"ff-textarea-label-container--danger":i}),children:e.jsxs("span",{className:B,children:[c&&e.jsx("span",{className:"required-asterisk",children:"*"}),r]})}),e.jsx("textarea",{name:n,value:o,id:n,className:I,placeholder:s+"...",disabled:l,onChange:e=>{const n=e.target.value;J(n)<=t&&C?.(e)},onBlur:u,onFocus:p,onKeyDown:e=>{if("Enter"===e.key){const t=e.currentTarget,n=t.selectionStart;""===(t.value.substring(0,n).split("\n").pop()||"").trim()&&e.preventDefault()}v.onKeyDown?.(e)},onPaste:e=>{e.preventDefault();const n=e.clipboardData.getData("text/plain").split("\n").filter((e=>""!==e.trim())).join("\n"),r=e.currentTarget,o=r.selectionStart,A=r.selectionEnd,i=r.value.slice(0,o),a=r.value.slice(A),l=J(i+a);let c=t-l,s="";for(const e of n)"\n"===e?s+=e:c>0&&(s+=e,c--);const f=i+s+a,d={...e,target:{...r,value:f}};C?.(d),g?.(e)},required:c,rows:h,cols:m,...v}),e.jsxs("div",{className:M?"ff-textarea-error-alignment":"msg-character-count",children:[L,t>0&&e.jsxs("div",{className:"ff-textarea-character-count",children:[e.jsxs(b,{fontSize:8,children:[J(o),"/"]}),e.jsx(b,{fontSize:8,children:t})]})]})]})},exports.TextEditor=({convertedContent:n,setConvertedContent:r,readOnly:o,toolbarHidden:A,toolbarOptions:i,label:a,required:l=!1,onBlur:c,mode:s,helperText:f,analyticsClasses:d=!1})=>{const[C,u]=t.useState(null),[p,g]=t.useState(!1),[h,m]=t.useState(!1);t.useEffect((()=>{let e=null;const t=n?JSON.parse(n):{};if(!x(n))if(t)e=rL.EditorState.createWithContent(rL.convertFromRaw(JSON.parse(n)));else if("view"===s){const t=rL.ContentState.createFromText("--");e=rL.EditorState.createWithContent(t)}else e=rL.EditorState.createEmpty();u(e)}),[n,s]),t.useEffect((()=>{let e=null;if(0===n.length){if("view"===s){const t=rL.ContentState.createFromText("--");e=rL.EditorState.createWithContent(t)}else e=rL.EditorState.createEmpty();u(e)}}),[n]);const E=AL.Editor;return e.jsxs("div",{children:[e.jsxs("div",{className:"ff-texteditor-label-asterisk-container",children:[l&&e.jsx(b,{className:"required-asterisk",children:"* "}),a&&e.jsx(b,{lineHeight:"10px",fontWeight:"medium",fontSize:"12px",children:a})]}),e.jsx(E,{editorState:C,onEditorStateChange:e=>{u(e);const t=rL.convertToRaw(e.getCurrentContent());""!==t?.blocks[0]?.text&&m(!1)},wrapperClassName:"wrapperClass",editorClassName:"ff-heading-TextEditor-style "+(d?"fontSm":"fontMd"),editorStyle:"view"!==s?p?{border:"1px solid var(--text-editor-in-focus-border-color)",borderRadius:"5px"}:{border:"1px solid var(--text-editor-out-focus-border-color) ",borderRadius:"5px"}:{border:"none"},onFocus:()=>{g(!0)},onBlur:e=>{const t=rL.convertToRaw(C.getCurrentContent());r(JSON.stringify(t)),""===t?.blocks[0]?.text&&m(!0),c&&c(e)},readOnly:o,toolbarHidden:A,toolbarClassName:"ff-toolbarClass",handlePastedText:()=>!1,toolbar:{options:Array.isArray(i)&&i?.length>0?i:["inline","blockType","fontSize","fontFamily","list","textAlign","colorPicker","link","emoji","image","remove","history"],fontFamily:{options:["Arial","Georgia","Impact","OpenSans-Regular","Tahoma","Times New Roman","Verdana","poppins"]}}}),l&&h&&e.jsx(b,{fontSize:10,className:"ff-textEditor-error-msg",as:"span",children:f})]})},exports.ThemeProvider=({children:n,theme:r})=>{const[o,A]=t.useState(r||"ff-light-theme");return t.useEffect((()=>(document.body.className=o,()=>{document.body.className=""})),[o]),e.jsx(B.Provider,{value:{currentTheme:o,setCurrentTheme:A,applyTheme:e=>A(e)},children:n})},exports.Toaster=N,exports.Toastify=fi,exports.Toggle=({onChange:t,variant:n="primary",disabled:r,checked:o=!1,id:A="toggle",size:i="large",icon:a})=>{const l={large:10,medium:8,small:6}[i],c={name:"wrong_mark",width:l,height:l},s={checked:{...{name:"check_mark",width:l,height:l},...a?.checked},unchecked:{...c,...a?.unchecked}};return e.jsxs("div",{className:"ff--switch-container",children:[e.jsx("input",{className:"ff--switch-checkbox",id:`ff-toggle-${A}`,type:"checkbox",disabled:!!r,onChange:e=>{t&&t(e)},checked:o}),e.jsx("label",{className:d(`ff--switch-label default--${i} ff--switch-label--${n}`,{"ff--switch-label--disabled":r}),htmlFor:`ff-toggle-${A}`,children:e.jsx("span",{className:d(`ff--switch-button ff--switch-button--${i}`,{checked:o}),children:o?e.jsx(E,{name:s.checked.name,width:s.checked.width,height:s.checked.height,className:`ff-checked-icon--${n}`}):e.jsx(E,{name:s.unchecked.name,width:s.unchecked.width,height:s.unchecked.height,className:`ff-unchecked-icon--${n}`})})})]})},exports.ToggleSwitch=({selected:t="text",firstButton:n="File",secondButton:r="File",handleClick:o})=>e.jsxs("div",{className:"toggle-container",children:[e.jsx("button",{className:"toggle-button "+(t===n?"active":""),onClick:()=>o(n),children:n}),e.jsx("button",{className:"toggle-button "+(t===r?"active":""),onClick:()=>o(r),children:r})]}),exports.Tooltip=M,exports.Typography=b,exports.UNIT_REGEX=U,exports.URL_REGEX=/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([\/\w.-]*)*\/?$/,exports.USERNAME_REGEX=/^[a-zA-Z0-9_]{3,16}$/,exports.USERNAME_SPECIAL_REGEX=/^[a-zA-Z0-9._-]{3,16}$/,exports.US_ZIP_CODE_REGEX=/^\d{5}(-\d{4})?$/,exports.UUID_REGEX=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,exports.VEHICLE_REGISTRATION_REGEX=/^[A-Z]{2}\d{2}[A-Z]{0,2}\d{4}$/,exports.VariableDropdown=Hu,exports.VariableInput=({type:n="url",name:r="",label:o,disabled:A=!1,required:i=!1,placeholder:a="",value:l="",error:c,className:s="",onChange:f,onKeyDown:C,onBlur:u,onFocus:p,list:g=[],...h})=>{const[m,E]=t.useState(""),[w,v]=t.useState(0),[B,I]=t.useState(!0),[x,M]=t.useState([]),[L,y]=t.useState(!1),Q=t.useRef(null),H=t.useRef([]),D=t.useRef([]);t.useEffect((()=>{l&&E(l)}),[l]);const k=()=>{const e=(e=>{const t=/\$\{(\w+)\}/g,n=[];let r,o=0;for(;null!==(r=t.exec(e));){const[t,A]=r,i=g?.includes(A??"");r.index>o&&n.push({text:e.slice(o,r.index),textType:"normal"}),n.push({text:t,textType:i?"variable":"nonVariable"}),o=r.index+t.length}return o<e.length&&n.push({text:e.slice(o),textType:"normal"}),n})(m),t=Q.current;t&&(t.innerHTML=e.map((e=>`<Typography class="${d({ff_var_red:"nonVariable"===e.textType,ff_var_green:"variable"===e.textType,ff_var_def_textType:"nonVariable"!==e.textType&&"variable"!==e.textType})}">${e.text}</Typography>`)).join(""),V(t))},V=e=>{const t=window.getSelection(),n=document.createRange(),r=Z(e);if(r.length>0){const e=r[r.length-1],t=B?1:-1,o=Math.max(0,Math.min(w+t,e.length||0));e&&n.setStart(e,o),n.collapse(!0)}else n.selectNodeContents(e),n.collapse(!1);t?.removeAllRanges(),t?.addRange(n),e.focus()},Z=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);let r;for(;r=n.nextNode();)t.push(r);return t},j=()=>{const e=window.getSelection();if(e&&e.rangeCount>0){return e.getRangeAt(0).startOffset}return 0},N=()=>{H.current.length>1&&(D.current.push(H.current.pop()),E(H.current[H.current.length-1]??""),I(!1))},z=()=>{if(D.current.length>0){const e=D.current.pop();E(e),H.current.push(e),I(!0)}},P=e=>{const t=window.getSelection(),n=t?.getRangeAt(0);if(n){n.deleteContents();const r=document.createTextNode(e);n.insertNode(r);const o=document.createElement("br");n.insertNode(o),n.setStartAfter(o),n.collapse(!0),t?.removeAllRanges(),t?.addRange(n),Q.current?.focus(),E(Q.current?.innerText||"")}};t.useEffect((()=>{k()}),[m]);const S=d("ff_content_editable",{ff_placeholder:!m,ff_disabled:A,ff_required:i,ff_invalid_input:c});return e.jsxs("div",{className:"ff_variable_input_container",children:[o&&e.jsxs("label",{htmlFor:r,className:d("ff_label_container",{ff_labelDanger:c}),children:[i&&e.jsx(b,{className:"ff_required_asterisk",children:"*"}),e.jsx(b,{className:d("ff_input_label",{ff_no_hover:l,ff_disabled_label:A,ff_danger_label:c}),children:o})]}),e.jsx("div",{id:r,contentEditable:!A,ref:Q,onInput:e=>{const t=e.currentTarget.innerText.split("\n").join("");if(E(t),H.current.push(t),D.current=[],i&&!t.trim()?e.currentTarget.classList.add("ff_required_empty"):e.currentTarget.classList.remove("ff_required_empty"),"url"===n){new RegExp("^(https?://)?([\\w.-]+)\\.([a-zA-Z]{2,})(/([\\w.-]+|\\$\\{[\\w.-]+\\}))*/?$").test(t)?(e.currentTarget.classList.remove("ff_invalid_input"),e.currentTarget.classList.remove("ff_required_empty")):e.currentTarget.classList.add("ff_invalid_input")}else e.currentTarget.classList.add("ff_invalid_input");f&&f(t);const r=/\$\{(\w*)$/.exec(t);if(r){const e=r[1],t=g?.filter((t=>t.startsWith(e??"")));M(t),y(!0)}else y(!1)},onKeyDown:e=>{const t=j();v(t),I(!0);const n=Q.current&&Q.current.textContent||"";if(("Backspace"===e.key||"Delete"===e.key)&&(I(!1),!n.trim()))return e.preventDefault(),void(Q.current&&(Q.current.textContent="",Q.current.blur()));"Enter"===e.key?(e.preventDefault(),P("\n")):e.ctrlKey&&"z"===e.key?(e.preventDefault(),N()):e.ctrlKey&&"y"===e.key&&(e.preventDefault(),z()),C&&C(e)},onFocus:e=>{e.currentTarget.style.outline="none",p&&p(e)},onBlur:e=>{e.currentTarget.style.outline="none",u&&u(e),i&&!m.trim()?e.currentTarget.classList.add("ff_required_empty"):e.currentTarget.classList.remove("ff_required_empty")},className:S,suppressContentEditableWarning:!0,"aria-required":i?"true":"false","data-name":r,"data-type":n,"data-placeholder":a,spellCheck:!1,...h}),L&&e.jsx("ul",{className:"ff_suggestions",children:x.map((t=>e.jsx("li",{onClick:()=>(e=>{const t=m.replace(/\$\{\w*$/,`\${${e}`);E(t),y(!1)})(t),className:"ff_suggestion_item",children:t},t)))})]})},exports.VariableSuggestionInputDropDown=hm,exports.WHITESPACE_REGEX=/^\s+|\s+$/g,exports.addPrePostStepGroup=pm,exports.addStepGroup=(e,t,n,r)=>e.map((e=>e.title===t?{...e,data:pm(e.data,n,r)}:e)),exports.capitalize=rf,exports.checkEmpty=x,exports.clearStore=()=>{try{localStorage.clear()}catch(e){throw console.error("Failed to clear data:",e),new Error("Failed to clear data")}},exports.compareArrays=(e,t)=>!(!Array.isArray(e)||!Array.isArray(t))&&(e.length===t.length&&e.every(((e,n)=>{const r=t[n];return Zu(e,r)}))),exports.compareObjects=Zu,exports.convertFormDataToObject=e=>{const t={};return e.forEach(((e,n)=>{t[n]?t[n]=Array.isArray(t[n])?[...t[n],e]:[t[n],e]:t[n]=e})),t},exports.convertToBytes=Op,exports.convertToGB=Fp,exports.debounce=yu,exports.deleteStoreValue=e=>{if(!e)throw new Error("Key must be provided");try{localStorage.removeItem(e)}catch(e){throw console.error("Failed to delete data:",e),new Error("Failed to delete data")}},exports.ffid=Js,exports.findAndInsert=function(e,t,n,r,o,A="children"){return function e(i){for(let a=0;a<i.length;a++){const l=i[a];if(l&&l[t]===n){const e=[...i];return"replace"===o?e[a]=r:e.splice("above"===o?a:a+1,0,r),{updatedArray:e}}if(l&&l[A]&&Array.isArray(l[A])){const t=e(l[A]);if(t)return{updatedArray:i.map(((e,n)=>n===a?{...e,[A]:t.updatedArray}:e))}}}return null}(e)},exports.formatDate=e=>`${e.getDate().toString().padStart(2,"0")}/${(e.getMonth()+1).toString().padStart(2,"0")}/${e.getFullYear()}`,exports.getEncryptedData=(e,t)=>{const n=new Sp;n.setPublicKey(t);return n.encrypt(e)},exports.getExtension=e=>{if("string"==typeof e&&e.includes(".")){const t=e.split(".").pop();return t!==e?t:""}return e instanceof File?e.name.split(".").pop():""},exports.getExtensionWithPeriod=dr,exports.getSequentialPayload=e=>e.flatMap((e=>e.runLevelExecutionDataSets.map(((t,n)=>{const{runLevelExecutionDataSets:r,...o}=e;return{...o,...t,runCount:n+1}})))),exports.getStoreValue=e=>{if(!e)throw new Error("Key must be provided");try{const t=localStorage.getItem(e);return t?(e=>{try{const t=decodeURIComponent(escape(atob(e)));try{return JSON.parse(t)}catch{return t}}catch(e){throw console.error("Error decoding data:",e),new Error("Decoding failed")}})(t):null}catch(e){throw console.error("Failed to retrieve data:",e),new Error("Failed to retrieve data")}},exports.getTreeDetails=(e,t,n,r)=>{let o,A;const i=()=>{if(r){const e=((e,t)=>e.findIndex((e=>e.key===t)))(t,r);if(-1===e)throw new Error(`Key "${r}" not found in oldData.`);return e}return 0};switch(e){case"above":o=[...n,...t].slice(0,100);break;case"below":o=[...t,...n].slice(-100);break;case"expand":case"expandAll":case"collapse":const r=i();if(void 0===r)throw new Error("Both sourceId and index are required for 'expand' or 'collapse' actions.");o=[...t.slice(0,r),...n].slice(-40);break;case"addAbove":const a=i();if(void 0===a)throw new Error("Both sourceId and index are required for 'addAbove' action.");o=[...t.slice(0,a),...n,...t.slice(a)];break;case"addBelow":const l=i();if(void 0===l)throw new Error("Both sourceId and index are required for 'addBelow' action.");o=[...t.slice(0,l+1),...n,...t.slice(l+1)];break;case"start":if(x(n))throw new Error("Tree data list is empty, cannot determine root.");A=n[0],o=n.slice(1);break;default:throw new Error(`Invalid action: ${e}`)}if(x(o)&&"start"!==e)throw new Error("Tree data list is empty.");const a=o[0]||A,l=o[o.length-1]||{lastResource:!0,key:""};return{treeDataList:o,next:!l?.lastResource,previous:!a?.lastResource,startId:a?.key,endId:l?.key,root:A}},exports.handleTreeNodeExpandCollapse=(e,t,n,r)=>{if(!t)throw new Error("Key is required");const o=new Map,A=new Map,i=new Set;let a=[...e];n&&!x(n)&&(a=[n,...e]),a.forEach((e=>{o.set(e.key,e),e.parentId&&(A.has(e.parentId)||A.set(e.parentId,[]),A.get(e.parentId).push(e))}));const l=o.get(t);if(l)if(l.expanded=r,r){(A.get(t)||[]).forEach((e=>e.hide=!1))}else!function e(t,n){if(i.has(t))throw new Error(`Cycle detected at node: ${t}`);i.add(t),(A.get(t)||[]).forEach((t=>{t.hide=n,e(t.key,!0)})),i.delete(t)}(t,!0);return x(n)?{data:a}:{rootNode:a[0],data:a.slice(1)}},exports.handleTreeNodeSect=(e,t,n,r)=>{if(!t)throw new Error("Key is required");const o=new Map,A=new Map,i=new Set;let a=[...e];n&&!x(n)&&(a=[n,...e]),a.forEach((e=>{o.set(e.key,e),e.parentId&&(A.has(e.parentId)||A.set(e.parentId,[]),A.get(e.parentId).push(e))}));const l=o.get(t);return l&&(l.selectedStatus=r?"completely":"none",function e(t,n){if(i.has(t))throw new Error(`Cycle detected at node: ${t}`);i.add(t),(A.get(t)||[]).forEach((t=>{t.selectedStatus=n,e(t.key,n)})),i.delete(t)}(t,l.selectedStatus),function e(t){if(i.has(t))throw new Error(`Cycle detected at node: ${t}`);i.add(t);const n=o.get(t);if(n&&n.parentId){const t=o.get(n.parentId);t&&(t.selectedStatus=function(e){const t=o.get(e);if(!t)return"none";const n=(t.resourceCount??0)+(t.subContainerCount??0);if(0===n)return t.selectedStatus??"none";const r=A.get(e)||[];let i=0,a=!1;for(const e of r)"completely"===e.selectedStatus?i++:"partially"===e.selectedStatus&&(a=!0);return i===n?"completely":a||i>0?"partially":"none"}(t.key),e(t.key))}i.delete(t)}(t)),x(n)?{data:a}:{rootNode:a[0],data:a.slice(1)}},exports.hasDuplicateFile=(e,t)=>{const n=new Set;for(const r of e){const e=t?r[t]:JSON.stringify(r);if(n.has(e))return!0;n.add(e)}return!1},exports.isEmptyObject=$s,exports.rearrangeDragItem=(e,t,n)=>{const r=[...e],o=r[t];return r.splice(t,1),r.splice(n,0,o),r},exports.saveFileFromBlob=(e,t)=>{if(!(e&&e instanceof Blob))throw console.error("Invalid Blob object"),new Error("Invalid Blob object");const n=window.navigator;if(n.msSaveOrOpenBlob){const r=n.msSaveOrOpenBlob;r&&r(e,t)}else{const n=document.createElement("a");document.body.appendChild(n);const r=window.URL.createObjectURL(e);n.href=r,n.download=t,n.click(),setTimeout((()=>{window.URL.revokeObjectURL(r),document.body.removeChild(n)}),0)}},exports.setStoreValue=(e,t)=>{if(!e||void 0===t)throw new Error("Key and value must be provided");try{const n=(e=>{try{const t="object"==typeof e?JSON.stringify(e):e;return btoa(unescape(encodeURIComponent(t)))}catch(e){throw console.error("Error encoding data:",e),new Error("Encoding failed")}})(t||{});localStorage.setItem(e,n)}catch(e){throw console.error("Failed to save data:",e),new Error("Failed to save data")}},exports.throttle=(e,t)=>{let n,r=null;const o=function(...o){const A=this;null===r||Date.now()-r>=t?(e.apply(A,o),r=Date.now()):(n&&clearTimeout(n),n=setTimeout((()=>{e.apply(A,o),r=Date.now()}),t-(Date.now()-r)))};return o.cancel=()=>{n&&clearTimeout(n),n=null,r=null},o},exports.toast=di,exports.truncateText=H,exports.useClickOutside=O,exports.useFileDropzone=Cr,exports.useKeyboardActions=Ci,exports.useTheme=()=>{const e=t.useContext(B);if(void 0===e)throw new Error("useTheme must be used within a ThemeProvider");return e};
|
52
|
+
*/!function(){var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var A=typeof r;if("string"==A||"number"==A)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"==A)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,n){e.exports=t},function(e,t,n){function r(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,A,i,a;e.exports=(o=n(3),A=n(5),a={},r.m=i=[function(e,t){e.exports=o},function(e,t){e.exports=A},function(e,t,n){e.exports=n(3)},function(e,t,n){n.r(t);var r=n(0),o=n(1);function A(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getStartKey(),o=t.getEndKey(),A=n.getBlockMap();return A.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat([[o,A.get(o)]])}function i(e){return A(e).toList()}function a(e){if(e)return i(e).get(0)}function l(e){if(e){var t=a(e),n=e.getCurrentContent().getBlockMap().toSeq().toList(),r=0;if(n.forEach((function(e,n){e.get("key")===t.get("key")&&(r=n-1)})),-1<r)return n.get(r)}}function c(e){return e?e.getCurrentContent().getBlockMap().toList():new o.List}function s(e){var t=i(e);if(!t.some((function(e){return e.type!==t.get(0).type})))return t.get(0).type}function f(e){var t=r.RichUtils.tryToRemoveBlockStyle(e);return t?r.EditorState.push(e,t,"change-block-type"):e}function d(e){var t="",n=e.getSelection(),r=n.getAnchorOffset(),o=n.getFocusOffset(),A=i(e);if(0<A.size){if(n.getIsBackward()){var a=r;r=o,o=a}for(var l=0;l<A.size;l+=1){var c=0===l?r:0,s=l===A.size-1?o:A.get(l).getText().length;t+=A.get(l).getText().slice(c,s)}}return t}function C(e){var t=e.getCurrentContent(),n=e.getSelection(),o=r.Modifier.removeRange(t,n,"forward"),A=o.getSelectionAfter(),i=o.getBlockForKey(A.getStartKey());return o=r.Modifier.insertText(o,A,"\n",i.getInlineStyleAt(A.getStartOffset()),null),r.EditorState.push(e,o,"insert-fragment")}function u(e){var t=r.Modifier.splitBlock(e.getCurrentContent(),e.getSelection());return f(r.EditorState.push(e,t,"split-block"))}function p(e){var t=e.getCurrentContent().getBlockMap().toList(),n=e.getSelection().merge({anchorKey:t.first().get("key"),anchorOffset:0,focusKey:t.last().get("key"),focusOffset:t.last().getLength()}),o=r.Modifier.removeRange(e.getCurrentContent(),n,"forward");return r.EditorState.push(e,o,"remove-range")}function g(e,t){var n=r.Modifier.setBlockData(e.getCurrentContent(),e.getSelection(),t);return r.EditorState.push(e,n,"change-block-data")}function h(e){var t=new o.Map({}),n=i(e);if(n&&0<n.size)for(var r=function(e){var r=n.get(e).getData();if(!r||0===r.size)return t=t.clear(),"break";if(0===e)t=r;else if(t.forEach((function(e,n){r.get(n)&&r.get(n)===e||(t=t.delete(n))})),0===t.size)return t=t.clear(),"break"},A=0;A<n.size&&"break"!==r(A);A+=1);return t}var m=Object(o.Map)({code:{element:"pre"}}),E=r.DefaultDraftBlockRenderMap.merge(m);function b(e){if(e){var t=e.getType();return"unordered-list-item"===t||"ordered-list-item"===t}return!1}function w(e,t,n){var o,i=e.getSelection();o=i.getIsBackward()?i.getFocusKey():i.getAnchorKey();var a=e.getCurrentContent(),l=a.getBlockForKey(o),c=l.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;var s=a.getBlockBefore(o);if(!s)return e;if(s.getType()!==c)return e;var f=l.getDepth();if(1===t&&f===n)return e;var d,C,u,p,g,h,m,E=Math.min(s.getDepth()+1,n),b=(C=t,u=E,p=(d=e).getSelection(),h=(g=d.getCurrentContent()).getBlockMap(),m=A(d).map((function(e){var t=e.getDepth()+C;return t=Math.max(0,Math.min(t,u)),e.set("depth",t)})),h=h.merge(m),g.merge({blockMap:h,selectionBefore:p,selectionAfter:p}));return r.EditorState.push(e,b,"adjust-depth")}function v(e,t){var n;return 13===(n=t).which&&(n.getModifierState("Shift")||n.getModifierState("Alt")||n.getModifierState("Control"))?e.getSelection().isCollapsed()?r.RichUtils.insertSoftNewline(e):C(e):function(e){var t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if(!b(o)&&"unstyled"!==o.getType()&&o.getLength()===t.getStartOffset())return u(e);if(b(o)&&0===o.getLength()){var A=o.getDepth();if(0===A)return f(e);if(0<A)return w(e,-1,A)}}}(e)}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e){var t=e.getSelection();if(t.isCollapsed()){var n={},r=e.getCurrentInlineStyle().toList().toJS();if(r)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(e){n[e]=0<=r.indexOf(e)})),n}var o=t.getStartOffset(),A=t.getEndOffset(),a=i(e);if(0<a.size){var l=function(){for(var e={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},t=0;t<a.size;t+=1){var n=0===t?o:0,r=t===a.size-1?A:a.get(t).getText().length;n===r&&0===n?(n=1,r=2):n===r&&--n;for(var i=function(n){var r=a.get(t).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(t){e[t]=e[t]&&r.get(t)===t}))},l=n;l<r;l+=1)i(l)}return{v:e}}();if("object"===x(l))return l.v}return{}}function L(e){var t,n=e.getSelection(),r=n.getStartOffset(),o=n.getEndOffset();r===o&&0===r?o=1:r===o&&--r;for(var A=a(e),i=r;i<o;i+=1){var l=A.getEntityAt(i);if(!l){t=void 0;break}if(i===r)t=l;else if(t!==l){t=void 0;break}}return t}function y(e,t){var n,r=a(e);return r.findEntityRanges((function(e){return e.get("entity")===t}),(function(e,t){n={start:e,end:t,text:r.get("text").slice(e,t)}})),n}function Q(e,t,n){D[e]["".concat(e.toLowerCase(),"-").concat(n)]=I({},"".concat(t),n)}function H(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},D.color,{},D.bgcolor,{},D.fontSize,{},D.fontFamily,{CODE:D.CODE,SUPERSCRIPT:D.SUPERSCRIPT,SUBSCRIPT:D.SUBSCRIPT})}var D={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 k(e,t,n){var o=e.getSelection(),A=Object.keys(D[t]).reduce((function(e,t){return r.Modifier.removeInlineStyle(e,o,t)}),e.getCurrentContent()),i=r.EditorState.push(e,A,"changeinline-style"),a=e.getCurrentInlineStyle();if(o.isCollapsed()&&(i=a.reduce((function(e,t){return r.RichUtils.toggleInlineStyle(e,t)}),i)),"SUPERSCRIPT"===t||"SUBSCRIPT"==t)a.has(n)||(i=r.RichUtils.toggleInlineStyle(i,n));else{var l="bgcolor"===t?"backgroundColor":t;a.has("".concat(l,"-").concat(n))||(i=r.RichUtils.toggleInlineStyle(i,"".concat(t.toLowerCase(),"-").concat(n)),Q(t,l,n))}return i}function V(e){e&&e.getCurrentContent().getBlockMap().map((function(e){return e.get("characterList")})).toList().flatten().forEach((function(e){e&&0===e.indexOf("color-")?Q("color","color",e.substr(6)):e&&0===e.indexOf("bgcolor-")?Q("bgcolor","backgroundColor",e.substr(8)):e&&0===e.indexOf("fontsize-")?Q("fontSize","fontSize",+e.substr(9)):e&&0===e.indexOf("fontfamily-")&&Q("fontFamily","fontFamily",e.substr(11))}))}function Z(e,t,n){var r=e.getInlineStyleAt(n).toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(r&&0<r.size)return r.get(0)}function j(e,t){if(e&&t&&0<t.length){var n=function(){var n=e.getSelection(),r={};if(n.isCollapsed())return t.forEach((function(t){r[t]=function(e,t){var n=e.getCurrentInlineStyle().toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(n&&0<n.size)return n.get(0)}(e,t)})),{v:r};var o=n.getStartOffset(),A=n.getEndOffset(),a=i(e);if(0<a.size){for(var l=function(e){var n=0===e?o:0,i=e===a.size-1?A:a.get(e).getText().length;n===i&&0===n?(n=1,i=2):n===i&&--n;for(var l=function(o){o===n?t.forEach((function(t){r[t]=Z(a.get(e),t,o)})):t.forEach((function(t){r[t]&&r[t]!==Z(a.get(e),t,o)&&(r[t]=void 0)}))},c=n;c<i;c+=1)l(c)},c=0;c<a.size;c+=1)l(c);return{v:r}}}();if("object"===x(n))return n.v}return{}}function N(e){var t=e.getCurrentInlineStyle(),n=e.getCurrentContent();return t.forEach((function(t){n=r.Modifier.removeInlineStyle(n,e.getSelection(),t)})),r.EditorState.push(e,n,"change-inline-style")}n.d(t,"isListBlock",(function(){return b})),n.d(t,"changeDepth",(function(){return w})),n.d(t,"handleNewLine",(function(){return v})),n.d(t,"getEntityRange",(function(){return y})),n.d(t,"getCustomStyleMap",(function(){return H})),n.d(t,"toggleCustomInlineStyle",(function(){return k})),n.d(t,"getSelectionEntity",(function(){return L})),n.d(t,"extractInlineStyle",(function(){return V})),n.d(t,"removeAllInlineStyles",(function(){return N})),n.d(t,"getSelectionInlineStyle",(function(){return M})),n.d(t,"getSelectionCustomInlineStyle",(function(){return j})),n.d(t,"getSelectedBlocksMap",(function(){return A})),n.d(t,"getSelectedBlocksList",(function(){return i})),n.d(t,"getSelectedBlock",(function(){return a})),n.d(t,"getBlockBeforeSelectedBlock",(function(){return l})),n.d(t,"getAllBlocks",(function(){return c})),n.d(t,"getSelectedBlocksType",(function(){return s})),n.d(t,"removeSelectedBlocksStyle",(function(){return f})),n.d(t,"getSelectionText",(function(){return d})),n.d(t,"addLineBreakRemovingSelection",(function(){return C})),n.d(t,"insertNewUnstyledBlock",(function(){return u})),n.d(t,"clearEditorContent",(function(){return p})),n.d(t,"setBlockData",(function(){return g})),n.d(t,"getSelectedBlocksMetadata",(function(){return h})),n.d(t,"blockRenderMap",(function(){return E}))}],r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t){e.exports=n},function(e,t,n){function r(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,A,i,a;e.exports=(o=n(5),A=n(3),a={},r.m=i=[function(e,t){e.exports=o},function(e,t){e.exports=A},function(e,t,n){e.exports=n(3)},function(e,t,n){n.r(t);var r=n(1),o=n(0),A=function(e,t,n){var r,A=e.textContent;return""===A.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:A,inlines:Array(A.length).fill(t),entities:Array(A.length).fill(n),blocks:[]}}},i=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},a=function(){return{text:"",inlines:[],entities:[],blocks:[]}},l=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new o.Map({})}]}},c=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new o.Map({})}]}},s=function(e){return{text:"\r ",inlines:[new o.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},f=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},d=new o.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"]}}),C={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function u(e){return e.style.textAlign?new o.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new o.Map({"margin-left":e.style.marginLeft}):void 0}var p=function(e){var t=void 0;if(e instanceof HTMLAnchorElement){var n={};t=e.dataset&&void 0!==e.dataset.mention?(n.url=e.href,n.text=e.innerHTML,n.value=e.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=e.getAttribute&&e.getAttribute("href")||e.href,n.title=e.innerHTML,n.targetOption=e.target,r.Entity.__create("LINK","MUTABLE",n))}return t};n.d(t,"default",(function(){return E}));var g=" ",h=new RegExp(" ","g"),m=!0;function E(e,t){var n,E,b=(n=t,(E=function(e){var t,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}(e.trim().replace(h,g)))?(m=!0,{chunk:function e(t,n,o,g,h,E){var b=t.nodeName.toLowerCase();if(E){var w=E(b,t);if(w){var v=r.Entity.__create(w.type,w.mutability,w.data||{});return{chunk:s(v)}}}if("#text"===b&&"\n"!==t.textContent)return A(t,n,h);if("br"===b)return{chunk:i()};if("img"===b&&t instanceof HTMLImageElement){var B={};B.src=t.getAttribute&&t.getAttribute("src")||t.src,B.alt=t.alt,B.height=t.style.height,B.width=t.style.width,t.style.float&&(B.alignment=t.style.float);var I=r.Entity.__create("IMAGE","MUTABLE",B);return{chunk:s(I)}}if("video"===b&&t instanceof HTMLVideoElement){var x={};x.src=t.getAttribute&&t.getAttribute("src")||t.src,x.alt=t.alt,x.height=t.style.height,x.width=t.style.width,t.style.float&&(x.alignment=t.style.float);var M=r.Entity.__create("VIDEO","MUTABLE",x);return{chunk:s(M)}}if("iframe"===b&&t instanceof HTMLIFrameElement){var L={};L.src=t.getAttribute&&t.getAttribute("src")||t.src,L.height=t.height,L.width=t.width;var y=r.Entity.__create("EMBEDDED_LINK","MUTABLE",L);return{chunk:s(y)}}var Q,H=function(e,t){var n=d.filter((function(n){return n.element===e&&(!n.wrapper||n.wrapper===t)||n.wrapper===e||n.aliasedElements&&-1<n.aliasedElements.indexOf(e)})).keySeq().toSet().toArray();if(1===n.length)return n[0]}(b,g);H&&("ul"===b||"ol"===b?(g=b,o+=1):("unordered-list-item"!==H&&"ordered-list-item"!==H&&(g="",o=-1),m?(Q=l(H,u(t)),m=!1):Q=c(H,o,u(t)))),Q=Q||a(),n=function(e,t,n){var r,o=C[e];if(o)r=n.add(o).toOrderedSet();else if(t instanceof HTMLElement){var A=t;r=(r=n).withMutations((function(e){var t=A.style.color,n=A.style.backgroundColor,r=A.style.fontSize,o=A.style.fontFamily.replace(/^"|"$/g,""),i=A.style.fontWeight,a=A.style.textDecoration,l=A.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),o&&e.add("fontfamily-".concat(o)),"bold"===i&&e.add(C.strong),"underline"===a&&e.add(C.ins),"italic"===l&&e.add(C.em)})).toOrderedSet()}return r}(b,t,n);for(var D=t.firstChild;D;){var k=e(D,n,o,g,p(D)||h,E).chunk;Q=f(Q,k),D=D.nextSibling}return{chunk:Q}}(E,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(b){var w=b.chunk,v=new o.OrderedMap({});w.entities&&w.entities.forEach((function(e){e&&(v=v.set(e,r.Entity.__get(e)))}));var B=0;return{contentBlocks:w.text.split("\r").map((function(e,t){var n=B+e.length,A=w&&w.inlines.slice(B,n),i=w&&w.entities.slice(B,n),a=new o.List(A.map((function(e,t){var n={style:e,entity:null};return i[t]&&(n.entity=i[t]),r.CharacterMetadata.create(n)})));return B=n,new r.ContentBlock({key:Object(r.genKey)(),type:w&&w.blocks[t]&&w.blocks[t].type||"unstyled",depth:w&&w.blocks[t]&&w.blocks[t].depth,data:w&&w.blocks[t]&&w.blocks[t].data||new o.Map({}),text:e,characterList:a})})),entityMap:v}}return null}}],r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t,n){function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function o(e){return Object.prototype.toString.call(e)}function A(e){return"[object Function]"===o(e)}function i(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var a={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var r=e.slice(t);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(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);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(r)?3<=t&&":"===e[t-3]||3<=t&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="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]",s="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function f(){return function(e,t){t.normalize(e)}}function d(e){var t=e.re=n(21)(e.__opts__),r=e.__tlds__.slice();function a(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(c),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(a(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(a(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(a(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(a(t.tpl_host_fuzzy_test),"i");var l=[];function s(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r,i={validate:null,link:null};if(e.__compiled__[t]=i,"[object Object]"===o(n))return"[object RegExp]"===o(n.validate)?i.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}):A(n.validate)?i.validate=n.validate:s(t,n),void(A(n.normalize)?i.normalize=n.normalize:n.normalize?s(t,n):i.normalize=f());"[object String]"!==o(n)?s(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:f()};var d,C=Object.keys(e.__compiled__).filter((function(t){return 0<t.length&&e.__compiled__[t]})).map(i).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+C+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+C+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),(d=e).__index__=-1,d.__text_cache__=""}function C(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function u(e,t){var n=new C(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function p(e,t){if(!(this instanceof p))return new p(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||a.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},a,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=s,this.__tlds_replaced__=!1,this.re={},d(this)}p.prototype.add=function(e,t){return this.__schemas__[e]=t,d(this),this},p.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},p.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,A,i,a,l;if(this.re.schema_test.test(e))for((a=this.re.schema_search).lastIndex=0;null!==(t=a.exec(e));)if(o=this.testSchemaAt(e,t[2],a.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(l=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(A=n.index+n[1].length,(this.__index__<0||A<this.__index__)&&(this.__schema__="",this.__index__=A,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=e.indexOf("@")&&null!==(r=e.match(this.re.email_fuzzy))&&(A=r.index+r[1].length,i=r.index+r[0].length,(this.__index__<0||A<this.__index__||A===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=A,this.__last_index__=i)),0<=this.__index__},p.prototype.pretest=function(e){return this.re.pretest.test(e)},p.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},p.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(u(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(u(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},p.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),d(this),this},p.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},p.prototype.onCompile=function(){},e.exports=p},function(e,t,n){e.exports=n(40)},function(e,t,n){},function(e,t,n){var r=n(11);function o(){}function A(){}A.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,A,i){if(i!==r){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 t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:A,resetWarningCache:o};return n.PropTypes=n}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=function(e){var t={};t.src_Any=n(22).source,t.src_Cc=n(23).source,t.src_Z=n(24).source,t.src_P=n(25).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.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]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t){e.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(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){n.r(t),n.d(t,"Editor",(function(){return no}));var r=n(1),o=n.n(r),A=n(0),i=n.n(A),a=n(3),l=n(4),c=n(2),s=n.n(c);function f(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}var d=f((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(e){t.callBacks.forEach((function(t){t(e)}))},this.init=function(e){var n=document.getElementById(e);n&&n.addEventListener("click",(function(){t.editorFlag=!0})),document&&(document.addEventListener("click",(function(){t.editorFlag?t.editorFlag=!1:(t.closeAllModals(),t.suggestionCallback&&t.suggestionCallback())})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&t.closeAllModals()})))},this.onEditorClick=function(){t.closeModals(),!t.suggestionFlag&&t.suggestionCallback?t.suggestionCallback():t.suggestionFlag=!1},this.closeModals=function(e){t.closeAllModals(e)},this.registerCallBack=function(e){t.callBacks.push(e)},this.deregisterCallBack=function(e){t.callBacks=t.callBacks.filter((function(t){return t!==e}))},this.setSuggestionCallback=function(e){t.suggestionCallback=e},this.removeSuggestionCallback=function(){t.suggestionCallback=void 0},this.onSuggestionClick=function(){t.suggestionFlag=!0}}));function C(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}var u,p=C((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){t.editorFocused=!0},this.onInputMouseDown=function(){t.inputFocused=!0},this.isEditorBlur=function(e){return"INPUT"!==e.target.tagName&&"LABEL"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName||t.editorFocused?!("INPUT"===e.target.tagName&&"LABEL"===e.target.tagName&&"TEXTAREA"===e.target.tagName||t.inputFocused||(t.editorFocused=!1)):!(t.inputFocused=!1)},this.isEditorFocused=function(){return!t.inputFocused||(t.inputFocused=!1)},this.isToolbarFocused=function(){return!t.editorFocused||(t.editorFocused=!1)},this.isInputFocused=function(){return t.inputFocused}})),g=[],h={onKeyDown:function(e){g.forEach((function(t){t(e)}))},registerCallBack:function(e){g.push(e)},deregisterCallBack:function(e){g=g.filter((function(t){return t!==e}))}},m=function(){u=!0},E=function(){u=!1},b=function(){return u};function w(e){var t=e.getData()&&e.getData().get("text-align");return t?"rdw-".concat(t,"-aligned-block"):""}function v(e,t){if(e)for(var n in e)!{}.hasOwnProperty.call(e,n)||t(n,e[n])}function B(e,t){var n=!1;if(e)for(var r in e)if({}.hasOwnProperty.call(e,r)&&t===r){n=!0;break}return n}function I(e){e.stopPropagation()}function x(e){return e[e.options[0]].icon}function M(e,t){if(e&&void 0===t)return e;var n={};return v(e,(function(e,r){var o;o=r,"[object Object]"===Object.prototype.toString.call(o)?n[e]=M(r,t[e]):n[e]=void 0!==t[e]?t[e]:r})),n}var L=n(6),y=n.n(L),Q=n(5);function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function V(e,t){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=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(e){return!1}}();return function(){var n,r=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===H(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9);var N=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}(A,r.Component);var e,t,n=Z(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onClick=function(){var t=e.props,n=t.disabled,r=t.onClick,o=t.value;n||r(o)},e}return e=A,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.className,A=t.activeClassName,i=t.active,a=t.disabled,l=t.title;return o.a.createElement("div",{className:s()("rdw-option-wrapper",r,(D(e={},"rdw-option-active ".concat(A),i),D(e,"rdw-option-disabled",a),e)),onClick:this.onClick,"aria-selected":i,title:l},n)}}])&&k(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t){return(S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=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(e){return!1}}();return function(){var n,r=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}N.propTypes={onClick:i.a.func.isRequired,children:i.a.any,value:i.a.string,className:i.a.string,activeClassName:i.a.string,active:i.a.bool,disabled:i.a.bool,title:i.a.string},N.defaultProps={activeClassName:""},n(12);var T=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(A,r.Component);var e,t,n=O(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={highlighted:-1},e.onChange=function(t){var n=e.props.onChange;n&&n(t),e.toggleExpansion()},e.setHighlighted=function(t){e.setState({highlighted:t})},e.toggleExpansion=function(){var t=e.props,n=t.doExpand,r=t.doCollapse;t.expanded?r():n()},e}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.expanded;e.expanded&&!t&&this.setState({highlighted:-1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.expanded,r=t.children,A=t.className,i=t.optionWrapperClassName,a=t.ariaLabel,l=t.onExpandEvent,c=t.title,f=this.state.highlighted,d=r.slice(1,r.length);return o.a.createElement("div",{className:s()("rdw-dropdown-wrapper",A),"aria-expanded":n,"aria-label":a||"rdw-dropdown"},o.a.createElement("a",{className:"rdw-dropdown-selectedtext",onClick:l,title:c},r[0],o.a.createElement("div",{className:s()({"rdw-dropdown-carettoclose":n,"rdw-dropdown-carettoopen":!n})})),n?o.a.createElement("ul",{className:s()("rdw-dropdown-optionwrapper",i),onClick:I},o.a.Children.map(d,(function(t,n){return t&&o.a.cloneElement(t,{onSelect:e.onChange,highlighted:f===n,setHighlighted:e.setHighlighted,index:n})}))):void 0)}}])&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y(e,t){return(Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function U(e){var t=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(e){return!1}}();return function(){var n,r=K(e);if(t){var o=K(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}T.propTypes={children:i.a.any,onChange:i.a.func,className:i.a.string,expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,optionWrapperClassName:i.a.string,ariaLabel:i.a.string,title:i.a.string},n(13);var W=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y(e,t)}(A,r.Component);var e,t,n=U(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onClick=function(t){var n=e.props,r=n.onSelect,o=n.onClick,A=n.value;n.disabled||(r&&r(A),o&&(t.stopPropagation(),o(A)))},e.setHighlighted=function(){var t=e.props;(0,t.setHighlighted)(t.index)},e.resetHighlighted=function(){(0,e.props.setHighlighted)(-1)},e}return e=A,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.active,A=t.disabled,i=t.highlighted,a=t.className,l=t.activeClassName,c=t.disabledClassName,f=t.highlightedClassName,d=t.title;return o.a.createElement("li",{className:s()("rdw-dropdownoption-default",a,(G(e={},"rdw-dropdownoption-active ".concat(l),r),G(e,"rdw-dropdownoption-highlighted ".concat(f),i),G(e,"rdw-dropdownoption-disabled ".concat(c),A),e)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:d},n)}}])&&X(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $(e){var t=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(e){return!1}}();return function(){var n,r=ee(e);if(t){var o=ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}W.propTypes={children:i.a.any,value:i.a.any,onClick:i.a.func,onSelect:i.a.func,setHighlighted:i.a.func,index:i.a.number,disabled:i.a.bool,active:i.a.bool,highlighted:i.a.bool,className:i.a.string,activeClassName:i.a.string,disabledClassName:i.a.string,highlightedClassName:i.a.string,title:i.a.string},W.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},n(14);var te=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(A,r.Component);var e,t,n=$(A);function A(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),n.apply(this,arguments)}return e=A,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState,r=e.onChange,A=e.translations;return o.a.createElement("div",{className:s()("rdw-inline-wrapper",t.className),"aria-label":"rdw-inline-control"},t.options.map((function(e,i){return o.a.createElement(N,{key:i,value:e,onClick:r,className:s()(t[e].className),active:!0===n[e]||"MONOSPACE"===e&&n.CODE,title:t[e].title||A["components.controls.inline.".concat(e)]},o.a.createElement("img",{alt:"",src:t[e].icon}))})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,A=e.onExpandEvent,i=e.doCollapse,a=e.currentState,l=e.onChange,c=e.translations,f=t.className,d=t.dropdownClassName,C=t.title;return o.a.createElement(T,{className:s()("rdw-inline-dropdown",f),optionWrapperClassName:s()(d),onChange:l,expanded:n,doExpand:r,doCollapse:i,onExpandEvent:A,"aria-label":"rdw-inline-control",title:C},o.a.createElement("img",{src:x(t),alt:""}),t.options.map((function(e,n){return o.a.createElement(W,{key:n,value:e,className:s()("rdw-inline-dropdownoption",t[e].className),active:!0===a[e]||"MONOSPACE"===e&&a.CODE,title:t[e].title||c["components.controls.inline.".concat(e)]},o.a.createElement("img",{src:t[e].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&J(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e,t){return(oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ae(e){var t=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(e){return!1}}();return function(){var n,r=ie(e);if(t){var o=ie(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}te.propTypes={expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,config:i.a.object,onChange:i.a.func,currentState:i.a.object,translations:i.a.object};var ae=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oe(e,t)}(A,r.Component);var e,t,n=Ae(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.toggleInlineStyle=function(e){var n="monospace"===e?"CODE":e.toUpperCase(),r=t.props,o=r.editorState,A=r.onChange,i=a.RichUtils.toggleInlineStyle(o,n);if("subscript"===e||"superscript"===e){var l="subscript"===e?"SUPERSCRIPT":"SUBSCRIPT",c=a.Modifier.removeInlineStyle(i.getCurrentContent(),i.getSelection(),l);i=a.EditorState.push(i,c,"change-inline-style")}i&&A(i)},t.changeKeys=function(e){if(e){var t={};return v(e,(function(e,n){t["CODE"===e?"monospace":e.toLowerCase()]=n})),t}},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r=t.props,o=r.editorState,i=r.modalHandler;return t.state={currentStyles:o?t.changeKeys(Object(l.getSelectionInlineStyle)(o)):{}},i.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentStyles:this.changeKeys(Object(l.getSelectionInlineStyle)(t))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,A=r.expanded,i=r.currentStyles,a=t.component||te;return o.a.createElement(a,{config:t,translations:n,currentState:i,expanded:A,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&re(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function le(e){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function se(e,t){return(se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fe(e){var t=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(e){return!1}}();return function(){var n,r=de(e);if(t){var o=de(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ae.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(15);var Ce=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&se(e,t)}(A,r.Component);var e,t,n=fe(A);function A(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).getBlockTypes=function(e){return[{label:"Normal",displayName:e["components.controls.blocktype.normal"]},{label:"H1",displayName:e["components.controls.blocktype.h1"]},{label:"H2",displayName:e["components.controls.blocktype.h2"]},{label:"H3",displayName:e["components.controls.blocktype.h3"]},{label:"H4",displayName:e["components.controls.blocktype.h4"]},{label:"H5",displayName:e["components.controls.blocktype.h5"]},{label:"H6",displayName:e["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:e["components.controls.blocktype.blockquote"]},{label:"Code",displayName:e["components.controls.blocktype.code"]}]},t.state={blockTypes:t.getBlockTypes(e.translations)},t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.translations;t!==e.translations&&this.setState({blockTypes:this.getBlockTypes(t)})}},{key:"renderFlat",value:function(e){var t=this.props,n=t.config.className,r=t.onChange,A=t.currentState.blockType;return o.a.createElement("div",{className:s()("rdw-inline-wrapper",n)},e.map((function(e,t){return o.a.createElement(N,{key:t,value:e.label,active:A===e.label,onClick:r},e.displayName)})))}},{key:"renderInDropdown",value:function(e){var t=this.props,n=t.config,r=n.className,A=n.dropdownClassName,i=n.title,a=t.currentState.blockType,l=t.expanded,c=t.doExpand,f=t.onExpandEvent,d=t.doCollapse,C=t.onChange,u=t.translations,p=this.state.blockTypes.filter((function(e){return e.label===a})),g=p&&p[0]&&p[0].displayName;return o.a.createElement("div",{className:"rdw-block-wrapper","aria-label":"rdw-block-control"},o.a.createElement(T,{className:s()("rdw-block-dropdown",r),optionWrapperClassName:s()(A),onChange:C,expanded:l,doExpand:c,doCollapse:d,onExpandEvent:f,title:i||u["components.controls.blocktype.blocktype"]},o.a.createElement("span",null,g||u["components.controls.blocktype.blocktype"]),e.map((function(e,t){return o.a.createElement(W,{active:a===e.label,value:e.label,key:t},e.displayName)}))))}},{key:"render",value:function(){var e=this.props.config,t=e.inDropdown,n=this.state.blockTypes.filter((function(t){var n=t.label;return-1<e.options.indexOf(n)}));return t?this.renderInDropdown(n):this.renderFlat(n)}}])&&ce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();Ce.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,doExpand:i.a.func,doCollapse:i.a.func,onChange:i.a.func,config:i.a.object,currentState:i.a.object,translations:i.a.object};var ue=Ce;function pe(e){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function he(e,t){return(he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function me(e){var t=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(e){return!1}}();return function(){var n,r=Ee(e);if(t){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var be=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&he(e,t)}(A,r.Component);var e,t,n=me(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.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"}],t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.blocksTypes.find((function(t){return t.label===e})).style,r=t.props,o=r.editorState,A=r.onChange,i=a.RichUtils.toggleBlockType(o,n);i&&A(i)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:!1,currentBlockType:r?Object(l.getSelectedBlocksType)(r):"unstyled"},o.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlockType:Object(l.getSelectedBlocksType)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,A=r.expanded,i=r.currentBlockType,a=t.component||ue,l=this.blocksTypes.find((function(e){return e.style===i}));return o.a.createElement(a,{config:t,translations:n,currentState:{blockType:l&&l.label},onChange:this.toggleBlockType,expanded:A,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&ge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();be.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var we=be;function ve(e){return(ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ie(e,t){return(Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xe(e){var t=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(e){return!1}}();return function(){var n,r=Me(e);if(t){var o=Me(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Me(e){return(Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(16);var Le=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ie(e,t)}(A,r.Component);var e,t,n=xe(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={defaultFontSize:void 0},e}return e=A,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-size");t=t.substring(0,t.length-2),this.setState({defaultFontSize:t})}}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,A=t.dropdownClassName,i=t.options,a=t.title,l=e.onChange,c=e.expanded,f=e.doCollapse,d=e.onExpandEvent,C=e.doExpand,u=e.translations,p=this.props.currentState.fontSize,g=this.state.defaultFontSize;return g=Number(g),p=p||i&&0<=i.indexOf(g)&&g,o.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},o.a.createElement(T,{className:s()("rdw-fontsize-dropdown",r),optionWrapperClassName:s()(A),onChange:l,expanded:c,doExpand:C,doCollapse:f,onExpandEvent:d,title:a||u["components.controls.fontsize.fontsize"]},p?o.a.createElement("span",null,p):o.a.createElement("img",{src:n,alt:""}),i.map((function(e,t){return o.a.createElement(W,{className:"rdw-fontsize-option",active:p===e,value:e,key:t},e)}))))}}])&&Be(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function ye(e){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function He(e,t){return(He=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function De(e){var t=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(e){return!1}}();return function(){var n,r=ke(e);if(t){var o=ke(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ye(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Le.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,doExpand:i.a.func,doCollapse:i.a.func,onChange:i.a.func,config:i.a.object,currentState:i.a.object,translations:i.a.object};var Ve=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&He(e,t)}(A,r.Component);var e,t,n=De(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).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.toggleFontSize=function(e){var n=t.props,r=n.editorState,o=n.onChange,A=Object(l.toggleCustomInlineStyle)(r,"fontSize",e);A&&o(A)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontSize:r?Object(l.getSelectionCustomInlineStyle)(r,["FONTSIZE"]).FONTSIZE:void 0},o.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontSize:Object(l.getSelectionCustomInlineStyle)(t,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,A=r.expanded,i=r.currentFontSize,a=t.component||Le,l=i&&Number(i.substring(9));return o.a.createElement(a,{config:t,translations:n,currentState:{fontSize:l},onChange:this.toggleFontSize,expanded:A,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Qe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function Ze(e){return(Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ne(e,t){return(Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ze(e){var t=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(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Pe(e){return(Pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ve.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(17);var Se=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ne(e,t)}(A,r.Component);var e,t,n=ze(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={defaultFontFamily:void 0},e}return e=A,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:t})}}},{key:"render",value:function(){var e=this.state.defaultFontFamily,t=this.props,n=t.config,r=n.className,A=n.dropdownClassName,i=n.options,a=n.title,l=t.translations,c=t.onChange,f=t.expanded,d=t.doCollapse,C=t.onExpandEvent,u=t.doExpand,p=this.props.currentState.fontFamily;return p=p||i&&e&&i.some((function(t){return t.toLowerCase()===e.toLowerCase()}))&&e,o.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},o.a.createElement(T,{className:s()("rdw-fontfamily-dropdown",r),optionWrapperClassName:s()("rdw-fontfamily-optionwrapper",A),onChange:c,expanded:f,doExpand:u,doCollapse:d,onExpandEvent:C,title:a||l["components.controls.fontfamily.fontfamily"]},o.a.createElement("span",{className:"rdw-fontfamily-placeholder"},p||l["components.controls.fontfamily.fontfamily"]),i.map((function(e,t){return o.a.createElement(W,{active:p===e,value:e,key:t},e)}))))}}])&&je(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();Se.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,doExpand:i.a.func,doCollapse:i.a.func,onChange:i.a.func,config:i.a.object,currentState:i.a.object,translations:i.a.object};var Oe=Se;function Fe(e){return(Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Re(e,t){return(Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ge(e){var t=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(e){return!1}}();return function(){var n,r=Xe(e);if(t){var o=Xe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Xe(e){return(Xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ye=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Re(e,t)}(A,r.Component);var e,t,n=Ge(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).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.toggleFontFamily=function(e){var n=t.props,r=n.editorState,o=n.onChange,A=Object(l.toggleCustomInlineStyle)(r,"fontFamily",e);A&&o(A)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontFamily:r?Object(l.getSelectionCustomInlineStyle)(r,["FONTFAMILY"]).FONTFAMILY:void 0},o.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontFamily:Object(l.getSelectionCustomInlineStyle)(t,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,A=r.expanded,i=r.currentFontFamily,a=t.component||Oe,l=i&&i.substring(11);return o.a.createElement(a,{translations:n,config:t,currentState:{fontFamily:l},onChange:this.toggleFontFamily,expanded:A,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function Ue(e){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function We(e,t){return(We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function qe(e){var t=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(e){return!1}}();return function(){var n,r=Je(e);if(t){var o=Je(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Je(e){return(Je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ye.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(18);var _e=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&We(e,t)}(A,r.Component);var e,t,n=qe(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).options=["unordered","ordered","indent","outdent"],e.toggleBlockType=function(t){(0,e.props.onChange)(t)},e.indent=function(){(0,e.props.onChange)("indent")},e.outdent=function(){(0,e.props.onChange)("outdent")},e}return e=A,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState.listType,r=e.translations,A=e.indentDisabled,i=e.outdentDisabled,a=t.options,l=t.unordered,c=t.ordered,f=t.indent,d=t.outdent,C=t.className;return o.a.createElement("div",{className:s()("rdw-list-wrapper",C),"aria-label":"rdw-list-control"},0<=a.indexOf("unordered")&&o.a.createElement(N,{value:"unordered",onClick:this.toggleBlockType,className:s()(l.className),active:"unordered"===n,title:l.title||r["components.controls.list.unordered"]},o.a.createElement("img",{src:l.icon,alt:""})),0<=a.indexOf("ordered")&&o.a.createElement(N,{value:"ordered",onClick:this.toggleBlockType,className:s()(c.className),active:"ordered"===n,title:c.title||r["components.controls.list.ordered"]},o.a.createElement("img",{src:c.icon,alt:""})),0<=a.indexOf("indent")&&o.a.createElement(N,{onClick:this.indent,disabled:A,className:s()(f.className),title:f.title||r["components.controls.list.indent"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=a.indexOf("outdent")&&o.a.createElement(N,{onClick:this.outdent,disabled:i,className:s()(d.className),title:d.title||r["components.controls.list.outdent"]},o.a.createElement("img",{src:d.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this,t=this.props,n=t.config,r=t.expanded,A=t.doCollapse,i=t.doExpand,a=t.onExpandEvent,l=t.onChange,c=t.currentState.listType,f=t.translations,d=n.options,C=n.className,u=n.dropdownClassName,p=n.title;return o.a.createElement(T,{className:s()("rdw-list-dropdown",C),optionWrapperClassName:s()(u),onChange:l,expanded:r,doExpand:i,doCollapse:A,onExpandEvent:a,"aria-label":"rdw-list-control",title:p||f["components.controls.list.list"]},o.a.createElement("img",{src:x(n),alt:""}),this.options.filter((function(e){return 0<=d.indexOf(e)})).map((function(t,r){return o.a.createElement(W,{key:r,value:t,disabled:e.props["".concat(t,"Disabled")],className:s()("rdw-list-dropdownOption",n[t].className),active:c===t,title:n[t].title||f["components.controls.list.".concat(t)]},o.a.createElement("img",{src:n[t].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Ke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tt(e,t){return(tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nt(e){var t=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(e){return!1}}();return function(){var n,r=rt(e);if(t){var o=rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function rt(e){return(rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}_e.propTypes={expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,config:i.a.object,onChange:i.a.func,currentState:i.a.object,translations:i.a.object,indentDisabled:i.a.bool,outdentDisabled:i.a.bool};var ot=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tt(e,t)}(A,r.Component);var e,t,n=nt(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){"unordered"===e?t.toggleBlockType("unordered-list-item"):"ordered"===e?t.toggleBlockType("ordered-list-item"):"indent"===e?t.adjustDepth(1):t.adjustDepth(-1)},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.toggleBlockType=function(e){var n=t.props,r=n.onChange,o=n.editorState,A=a.RichUtils.toggleBlockType(o,e);A&&r(A)},t.adjustDepth=function(e){var n=t.props,r=n.onChange,o=n.editorState,A=Object(l.changeDepth)(o,e,4);A&&r(A)},t.isIndentDisabled=function(){var e=t.props.editorState,n=t.state.currentBlock,r=Object(l.getBlockBeforeSelectedBlock)(e);return!r||!Object(l.isListBlock)(n)||r.get("type")!==n.get("type")||r.get("depth")<n.get("depth")},t.isOutdentDisabled=function(){var e=t.state.currentBlock;return!e||!Object(l.isListBlock)(e)||e.get("depth")<=0};var r=t.props,o=r.editorState,i=r.modalHandler;return t.state={expanded:!1,currentBlock:o?Object(l.getSelectedBlock)(o):void 0},i.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlock:Object(l.getSelectedBlock)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e,t=this.props,n=t.config,r=t.translations,A=this.state,i=A.expanded,a=A.currentBlock,l=n.component||_e;"unordered-list-item"===a.get("type")?e="unordered":"ordered-list-item"===a.get("type")&&(e="ordered");var c=this.isIndentDisabled(),s=this.isOutdentDisabled();return o.a.createElement(l,{config:n,translations:r,currentState:{listType:e},expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:c,outdentDisabled:s})}}])&&et(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function At(e){return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function it(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function at(e,t){return(at=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lt(e){var t=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(e){return!1}}();return function(){var n,r=ct(e);if(t){var o=ct(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===At(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ct(e){return(ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ot.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(19);var st=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&at(e,t)}(A,r.Component);var e,t,n=lt(A);function A(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),n.apply(this,arguments)}return e=A,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.left,A=t.center,i=t.right,a=t.justify,l=t.className,c=e.onChange,f=e.currentState.textAlignment,d=e.translations;return o.a.createElement("div",{className:s()("rdw-text-align-wrapper",l),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&o.a.createElement(N,{value:"left",className:s()(r.className),active:"left"===f,onClick:c,title:r.title||d["components.controls.textalign.left"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("center")&&o.a.createElement(N,{value:"center",className:s()(A.className),active:"center"===f,onClick:c,title:A.title||d["components.controls.textalign.center"]},o.a.createElement("img",{src:A.icon,alt:""})),0<=n.indexOf("right")&&o.a.createElement(N,{value:"right",className:s()(i.className),active:"right"===f,onClick:c,title:i.title||d["components.controls.textalign.right"]},o.a.createElement("img",{src:i.icon,alt:""})),0<=n.indexOf("justify")&&o.a.createElement(N,{value:"justify",className:s()(a.className),active:"justify"===f,onClick:c,title:a.title||d["components.controls.textalign.justify"]},o.a.createElement("img",{src:a.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,A=e.onExpandEvent,i=e.doCollapse,a=e.currentState.textAlignment,l=e.onChange,c=e.translations,f=t.options,d=t.left,C=t.center,u=t.right,p=t.justify,g=t.className,h=t.dropdownClassName,m=t.title;return o.a.createElement(T,{className:s()("rdw-text-align-dropdown",g),optionWrapperClassName:s()(h),onChange:l,expanded:n,doExpand:r,doCollapse:i,onExpandEvent:A,"aria-label":"rdw-textalign-control",title:m||c["components.controls.textalign.textalign"]},o.a.createElement("img",{src:a&&t[a]&&t[a].icon||x(t),alt:""}),0<=f.indexOf("left")&&o.a.createElement(W,{value:"left",active:"left"===a,className:s()("rdw-text-align-dropdownOption",d.className),title:d.title||c["components.controls.textalign.left"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=f.indexOf("center")&&o.a.createElement(W,{value:"center",active:"center"===a,className:s()("rdw-text-align-dropdownOption",C.className),title:C.title||c["components.controls.textalign.center"]},o.a.createElement("img",{src:C.icon,alt:""})),0<=f.indexOf("right")&&o.a.createElement(W,{value:"right",active:"right"===a,className:s()("rdw-text-align-dropdownOption",u.className),title:u.title||c["components.controls.textalign.right"]},o.a.createElement("img",{src:u.icon,alt:""})),0<=f.indexOf("justify")&&o.a.createElement(W,{value:"justify",active:"justify"===a,className:s()("rdw-text-align-dropdownOption",p.className),title:p.title||c["components.controls.textalign.justify"]},o.a.createElement("img",{src:p.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&it(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function ft(e){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ct(e,t){return(Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ut(e){var t=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(e){return!1}}();return function(){var n,r=pt(e);if(t){var o=pt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ft(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function pt(e){return(pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}st.propTypes={expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,config:i.a.object,onChange:i.a.func,currentState:i.a.object,translations:i.a.object};var gt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ct(e,t)}(A,r.Component);var e,t,n=ut(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).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.addBlockAlignmentData=function(e){var n=t.props,r=n.editorState;(0,n.onChange)(t.state.currentTextAlignment!==e?Object(l.setBlockData)(r,{"text-align":e}):Object(l.setBlockData)(r,{"text-align":void 0}))};var r=t.props.modalHandler;return t.state={currentTextAlignment:void 0},r.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t!==e.editorState&&this.setState({currentTextAlignment:Object(l.getSelectedBlocksMetadata)(t).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,A=r.expanded,i=r.currentTextAlignment,a=t.component||st;return o.a.createElement(a,{config:t,translations:n,expanded:A,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:i},onChange:this.addBlockAlignmentData})}}])&&dt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function ht(e){return(ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Et(e,t){return(Et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function bt(e){var t=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(e){return!1}}();return function(){var n,r=wt(e);if(t){var o=wt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ht(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function wt(e){return(wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}gt.propTypes={editorState:i.a.object.isRequired,onChange:i.a.func.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(20);var vt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Et(e,t)}(A,r.Component);var e,t,n=bt(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call.apply(n,[this].concat(r))).state={currentStyle:"color"},e.onChange=function(t){(0,e.props.onChange)(e.state.currentStyle,t)},e.setCurrentStyleColor=function(){e.setState({currentStyle:"color"})},e.setCurrentStyleBgcolor=function(){e.setState({currentStyle:"bgcolor"})},e.renderModal=function(){var t=e.props,n=t.config,r=n.popupClassName,A=n.colors,i=t.currentState,a=i.color,l=i.bgColor,c=t.translations,f=e.state.currentStyle,d="color"===f?a:l;return o.a.createElement("div",{className:s()("rdw-colorpicker-modal",r),onClick:I},o.a.createElement("span",{className:"rdw-colorpicker-modal-header"},o.a.createElement("span",{className:s()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"color"===f}),onClick:e.setCurrentStyleColor},c["components.controls.colorpicker.text"]),o.a.createElement("span",{className:s()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"bgcolor"===f}),onClick:e.setCurrentStyleBgcolor},c["components.controls.colorpicker.background"])),o.a.createElement("span",{className:"rdw-colorpicker-modal-options"},A.map((function(t,n){return o.a.createElement(N,{value:t,key:n,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:d===t,onClick:e.onChange},o.a.createElement("span",{style:{backgroundColor:t},className:"rdw-colorpicker-cube"}))}))))},e}return e=A,(t=[{key:"componentDidUpdate",value:function(e){this.props.expanded&&!e.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,A=t.title,i=e.expanded,a=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-colorpicker-wrapper","aria-haspopup":"true","aria-expanded":i,"aria-label":"rdw-color-picker",title:A||l["components.controls.colorpicker.colorpicker"]},o.a.createElement(N,{onClick:a,className:s()(r)},o.a.createElement("img",{src:n,alt:""})),i?this.renderModal():void 0)}}])&&mt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();vt.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,onChange:i.a.func,config:i.a.object,currentState:i.a.object,translations:i.a.object};var Bt=vt;function It(e){return(It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mt(e,t){return(Mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Lt(e){var t=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(e){return!1}}();return function(){var n,r=yt(e);if(t){var o=yt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===It(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mt(e,t)}(A,r.Component);var e,t,n=Lt(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).state={expanded:!1,currentColor:void 0,currentBgColor:void 0},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.toggleColor=function(e,n){var r=t.props,o=r.editorState,A=r.onChange,i=Object(l.toggleCustomInlineStyle)(o,e,n);i&&A(i),t.doCollapse()};var r=e.editorState,o=e.modalHandler,i={expanded:!1,currentColor:void 0,currentBgColor:void 0};return r&&(i.currentColor=Object(l.getSelectionCustomInlineStyle)(r,["COLOR"]).COLOR,i.currentBgColor=Object(l.getSelectionCustomInlineStyle)(r,["BGCOLOR"]).BGCOLOR),t.state=i,o.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentColor:Object(l.getSelectionCustomInlineStyle)(t,["COLOR"]).COLOR,currentBgColor:Object(l.getSelectionCustomInlineStyle)(t,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,A=r.currentColor,i=r.currentBgColor,a=r.expanded,l=t.component||Bt,c=A&&A.substring(6),s=i&&i.substring(8);return o.a.createElement(l,{config:t,translations:n,onChange:this.toggleColor,expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:c,bgColor:s}})}}])&&xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();Qt.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var Ht=Qt,Dt=n(7),kt=n.n(Dt);function Vt(e){return(Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jt(e,t){return(jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Nt(e){var t=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(e){return!1}}();return function(){var n,r=zt(e);if(t){var o=zt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Vt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function zt(e){return(zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(26);var Pt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jt(e,t)}(A,r.Component);var e,t,n=Nt(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:e.props.config.defaultTargetOption},e.removeLink=function(){(0,e.props.onChange)("unlink")},e.addLink=function(){var t=e.props.onChange,n=e.state;t("link",n.linkTitle,n.linkTarget,n.linkTargetOption)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.updateTargetOption=function(t){e.setState({linkTargetOption:t.target.checked?"_blank":"_self"})},e.hideModal=function(){e.setState({showModal:!1})},e.signalExpandShowModal=function(){var t=e.props,n=t.onExpandEvent,r=t.currentState,o=r.link,A=r.selectionText,i=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target||"",linkTargetOption:o&&o.targetOption||i,linkTitle:o&&o.title||A})},e.forceExpandAndShowModal=function(){var t=e.props,n=t.doExpand,r=t.currentState,o=r.link,A=r.selectionText,i=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target,linkTargetOption:o&&o.targetOption||i,linkTitle:o&&o.title||A})},e}return e=A,(t=[{key:"componentDidUpdate",value:function(e){e.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var e=this.props,t=e.config.popupClassName,n=e.doCollapse,r=e.translations,A=this.state,i=A.linkTitle,a=A.linkTarget,l=A.linkTargetOption;return o.a.createElement("div",{className:s()("rdw-link-modal",t),onClick:I},o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},r["components.controls.link.linkTitle"]),o.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:i}),o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},r["components.controls.link.linkTarget"]),o.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:a}),o.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},o.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===l,value:"_blank",onChange:this.updateTargetOption}),o.a.createElement("span",null,r["components.controls.link.linkTargetOption"])),o.a.createElement("span",{className:"rdw-link-modal-buttonsection"},o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!a||!i},r["generic.add"]),o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},r["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.link,A=t.unlink,i=t.className,a=e.currentState,l=e.expanded,c=e.translations,f=this.state.showModal;return o.a.createElement("div",{className:s()("rdw-link-wrapper",i),"aria-label":"rdw-link-control"},0<=n.indexOf("link")&&o.a.createElement(N,{value:"unordered-list-item",className:s()(r.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":f,title:r.title||c["components.controls.link.link"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("unlink")&&o.a.createElement(N,{disabled:!a.link,value:"ordered-list-item",className:s()(A.className),onClick:this.removeLink,title:A.title||c["components.controls.link.unlink"]},o.a.createElement("img",{src:A.icon,alt:""})),l&&f?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.expanded,n=e.onExpandEvent,r=e.doCollapse,A=e.doExpand,i=e.onChange,a=e.config,l=e.currentState,c=e.translations,f=a.options,d=a.link,C=a.unlink,u=a.className,p=a.dropdownClassName,g=a.title,h=this.state.showModal;return o.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":t,title:g},o.a.createElement(T,{className:s()("rdw-link-dropdown",u),optionWrapperClassName:s()(p),onChange:i,expanded:t&&!h,doExpand:A,doCollapse:r,onExpandEvent:n},o.a.createElement("img",{src:x(a),alt:""}),0<=f.indexOf("link")&&o.a.createElement(W,{onClick:this.forceExpandAndShowModal,className:s()("rdw-link-dropdownoption",d.className),title:d.title||c["components.controls.link.link"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=f.indexOf("unlink")&&o.a.createElement(W,{onClick:this.removeLink,disabled:!l.link,className:s()("rdw-link-dropdownoption",C.className),title:C.title||c["components.controls.link.unlink"]},o.a.createElement("img",{src:C.icon,alt:""}))),t&&h?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Zt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();Pt.propTypes={expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,config:i.a.object,onChange:i.a.func,currentState:i.a.object,translations:i.a.object};var St=Pt;function Ot(e){return(Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ft(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tt(e,t){return(Tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Rt(e){var t=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(e){return!1}}();return function(){var n,r=Gt(e);if(t){var o=Gt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ot(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Gt(e){return(Gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){Ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kt(e){var t=Wt.match(e.target);return Yt(Yt({},e),{},{target:t&&t[0]&&t[0].url||e.target})}var Wt=kt()(),qt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tt(e,t)}(A,r.Component);var e,t,n=Rt(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e,n,r,o){var A=t.props.config.linkCallback;if("link"===e){var i=(A||Kt)({title:n,target:r,targetOption:o});t.addLink(i.title,i.target,i.targetOption)}else t.removeLink()},t.getCurrentValues=function(){var e=t.props.editorState,n=t.state.currentEntity,r=e.getCurrentContent(),o={};if(n&&"LINK"===r.getEntity(n).get("type")){o.link={};var A=n&&Object(l.getEntityRange)(e,n);o.link.target=n&&r.getEntity(n).get("data").url,o.link.targetOption=n&&r.getEntity(n).get("data").targetOption,o.link.title=A&&A.text}return o.selectionText=Object(l.getSelectionText)(e),o},t.doExpand=function(){t.setState({expanded:!0})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doCollapse=function(){t.setState({expanded:!1})},t.removeLink=function(){var e=t.props,n=e.editorState,r=e.onChange,o=t.state.currentEntity,A=n.getSelection();if(o){var i=Object(l.getEntityRange)(n,o);A=A.getIsBackward()?A.merge({anchorOffset:i.end,focusOffset:i.start}):A.merge({anchorOffset:i.start,focusOffset:i.end}),r(a.RichUtils.toggleLink(n,A,null))}},t.addLink=function(e,n,r){var o=t.props,A=o.editorState,i=o.onChange,c=t.state.currentEntity,s=A.getSelection();if(c){var f=Object(l.getEntityRange)(A,c);s=s.getIsBackward()?s.merge({anchorOffset:f.end,focusOffset:f.start}):s.merge({anchorOffset:f.start,focusOffset:f.end})}var d=A.getCurrentContent().createEntity("LINK","MUTABLE",{url:n,targetOption:r}).getLastCreatedEntityKey(),C=a.Modifier.replaceText(A.getCurrentContent(),s,"".concat(e),A.getCurrentInlineStyle(),d),u=a.EditorState.push(A,C,"insert-characters");s=u.getSelection().merge({anchorOffset:s.get("anchorOffset")+e.length,focusOffset:s.get("anchorOffset")+e.length}),u=a.EditorState.acceptSelection(u,s),C=a.Modifier.insertText(u.getCurrentContent(),s," ",u.getCurrentInlineStyle(),void 0),i(a.EditorState.push(u,C,"insert-characters")),t.doCollapse()};var r=t.props,o=r.editorState,i=r.modalHandler;return t.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:o?Object(l.getSelectionEntity)(o):void 0},i.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentEntity:Object(l.getSelectionEntity)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,A=this.getCurrentValues(),i=A.link,a=A.selectionText,l=t.component||St;return o.a.createElement(l,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:i,selectionText:a},onChange:this.onChange})}}])&&Ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();qt.propTypes={editorState:i.a.object.isRequired,onChange:i.a.func.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var Jt=qt;function _t(e){return(_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function en(e,t){return(en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tn(e){var t=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(e){return!1}}();return function(){var n,r=nn(e);if(t){var o=nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===_t(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function nn(e){return(nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(27);var rn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&en(e,t)}(A,r.Component);var e,t,n=tn(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={embeddedLink:"",height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width},e.onChange=function(){var t=e.props.onChange,n=e.state;t(n.embeddedLink,n.height,n.width)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.expanded,r=t.config;if(!n&&e.expanded){var o=r.defaultSize,A=o.height,i=o.width;this.setState({embeddedLink:"",height:A,width:i})}}},{key:"rendeEmbeddedLinkModal",value:function(){var e=this.state,t=e.embeddedLink,n=e.height,r=e.width,A=this.props,i=A.config.popupClassName,a=A.doCollapse,l=A.translations;return o.a.createElement("div",{className:s()("rdw-embedded-modal",i),onClick:I},o.a.createElement("div",{className:"rdw-embedded-modal-header"},o.a.createElement("span",{className:"rdw-embedded-modal-header-option"},l["components.controls.embedded.embeddedlink"],o.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),o.a.createElement("div",{className:"rdw-embedded-modal-link-section"},o.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},o.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:l["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:t,name:"embeddedLink"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("div",{className:"rdw-embedded-modal-size"},o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:n,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:r,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),o.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!t||!n||!r},l["generic.add"]),o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:a},l["generic.cancel"])))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,A=t.title,i=e.expanded,a=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":i,"aria-label":"rdw-embedded-control"},o.a.createElement(N,{className:s()(r),value:"unordered-list-item",onClick:a,title:A||l["components.controls.embedded.embedded"]},o.a.createElement("img",{src:n,alt:""})),i?this.rendeEmbeddedLinkModal():void 0)}}])&&$t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();rn.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,onChange:i.a.func,config:i.a.object,translations:i.a.object,doCollapse:i.a.func};var on=rn;function An(e){return(An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function an(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ln(e,t){return(ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cn(e){var t=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(e){return!1}}();return function(){var n,r=sn(e);if(t){var o=sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===An(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function sn(e){return(sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ln(e,t)}(A,r.Component);var e,t,n=cn(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},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.addEmbeddedLink=function(t,n,r){var o=e.props,A=o.editorState,i=o.onChange,l=o.config.embedCallback,c=l?l(t):t,s=A.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:c,height:n,width:r}).getLastCreatedEntityKey();i(a.AtomicBlockUtils.insertAtomicBlock(A,s," ")),e.doCollapse()},e}return e=A,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,A=t.component||on;return o.a.createElement(A,{config:t,translations:n,onChange:this.addEmbeddedLink,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&an(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();fn.propTypes={editorState:i.a.object.isRequired,onChange:i.a.func.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var dn=fn;function Cn(e){return(Cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pn(e,t){return(pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function gn(e){var t=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(e){return!1}}();return function(){var n,r=hn(e);if(t){var o=hn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Cn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function hn(e){return(hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(28);var mn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pn(e,t)}(A,r.Component);var e,t,n=gn(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onChange=function(t){(0,e.props.onChange)(t.target.innerHTML)},e}return e=A,(t=[{key:"renderEmojiModal",value:function(){var e=this,t=this.props.config,n=t.popupClassName,r=t.emojis;return o.a.createElement("div",{className:s()("rdw-emoji-modal",n),onClick:I},r.map((function(t,n){return o.a.createElement("span",{key:n,className:"rdw-emoji-icon",alt:"",onClick:e.onChange},t)})))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,A=t.title,i=e.expanded,a=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":i,title:A||l["components.controls.emoji.emoji"]},o.a.createElement(N,{className:s()(r),value:"unordered-list-item",onClick:a},o.a.createElement("img",{src:n,alt:""})),i?this.renderEmojiModal():void 0)}}])&&un(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();mn.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,onChange:i.a.func,config:i.a.object,translations:i.a.object};var En=mn;function bn(e){return(bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vn(e,t){return(vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Bn(e){var t=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(e){return!1}}();return function(){var n,r=In(e);if(t){var o=In(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===bn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function In(e){return(In=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vn(e,t)}(A,r.Component);var e,t,n=Bn(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},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.addEmoji=function(t){var n=e.props,r=n.editorState,o=n.onChange,A=a.Modifier.replaceText(r.getCurrentContent(),r.getSelection(),t,r.getCurrentInlineStyle());o(a.EditorState.push(r,A,"insert-characters")),e.doCollapse()},e}return e=A,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,A=t.component||En;return o.a.createElement(A,{config:t,translations:n,onChange:this.addEmoji,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&wn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function Mn(){return o.a.createElement("div",{className:"rdw-spinner"},o.a.createElement("div",{className:"rdw-bounce1"}),o.a.createElement("div",{className:"rdw-bounce2"}),o.a.createElement("div",{className:"rdw-bounce3"}))}function Ln(e){return(Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qn(e,t){return(Qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Hn(e){var t=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(e){return!1}}();return function(){var n,r=Dn(e);if(t){var o=Dn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ln(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Dn(e){return(Dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}xn.propTypes={editorState:i.a.object.isRequired,onChange:i.a.func.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object},n(29),n(30);var kn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qn(e,t)}(A,r.Component);var e,t,n=Hn(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:e.props.config.uploadEnabled&&!!e.props.config.uploadCallback,showImageLoading:!1,height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width,alt:""},e.onDragEnter=function(t){e.stopPropagation(t),e.setState({dragEnter:!0})},e.onImageDrop=function(t){var n,r;t.preventDefault(),t.stopPropagation(),e.setState({dragEnter:!1}),r=t.dataTransfer.items?(n=t.dataTransfer.items,!0):(n=t.dataTransfer.files,!1);for(var o=0;o<n.length;o+=1)if((!r||"file"===n[o].kind)&&n[o].type.match("^image/")){var A=r?n[o].getAsFile():n[o];e.uploadImage(A)}},e.showImageUploadOption=function(){e.setState({uploadHighlighted:!0})},e.addImageFromState=function(){var t=e.state,n=t.imgSrc,r=t.alt,o=e.state,A=o.height,i=o.width,a=e.props.onChange;isNaN(A)||(A+="px"),isNaN(i)||(i+="px"),a(n,A,i,r)},e.showImageURLOption=function(){e.setState({uploadHighlighted:!1})},e.toggleShowImageLoading=function(){var t=!e.state.showImageLoading;e.setState({showImageLoading:t})},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.selectImage=function(t){t.target.files&&0<t.target.files.length&&e.uploadImage(t.target.files[0])},e.uploadImage=function(t){e.toggleShowImageLoading(),(0,e.props.config.uploadCallback)(t).then((function(t){var n=t.data;e.setState({showImageLoading:!1,dragEnter:!1,imgSrc:n.link||n.url}),e.fileUpload=!1})).catch((function(){e.setState({showImageLoading:!1,dragEnter:!1})}))},e.fileUploadClick=function(t){e.fileUpload=!0,t.stopPropagation()},e.stopPropagation=function(t){e.fileUpload?e.fileUpload=!1:(t.preventDefault(),t.stopPropagation())},e}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.config;e.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback,showImageLoading:!1,height:t.defaultSize.height,width:t.defaultSize.width,alt:""}):t.uploadCallback===e.config.uploadCallback&&t.uploadEnabled===e.config.uploadEnabled||this.setState({uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback})}},{key:"renderAddImageModal",value:function(){var e=this.state,t=e.imgSrc,n=e.uploadHighlighted,r=e.showImageLoading,A=e.dragEnter,i=e.height,a=e.width,l=e.alt,c=this.props,f=c.config,d=f.popupClassName,C=f.uploadCallback,u=f.uploadEnabled,p=f.urlEnabled,g=f.previewImage,h=f.inputAccept,m=f.alt,E=c.doCollapse,b=c.translations;return o.a.createElement("div",{className:s()("rdw-image-modal",d),onClick:this.stopPropagation},o.a.createElement("div",{className:"rdw-image-modal-header"},u&&C&&o.a.createElement("span",{onClick:this.showImageUploadOption,className:"rdw-image-modal-header-option"},b["components.controls.image.fileUpload"],o.a.createElement("span",{className:s()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":n})})),p&&o.a.createElement("span",{onClick:this.showImageURLOption,className:"rdw-image-modal-header-option"},b["components.controls.image.byURL"],o.a.createElement("span",{className:s()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":!n})}))),n?o.a.createElement("div",{onClick:this.fileUploadClick},o.a.createElement("div",{onDragEnter:this.onDragEnter,onDragOver:this.stopPropagation,onDrop:this.onImageDrop,className:s()("rdw-image-modal-upload-option",{"rdw-image-modal-upload-option-highlighted":A})},o.a.createElement("label",{htmlFor:"file",className:"rdw-image-modal-upload-option-label"},g&&t?o.a.createElement("img",{src:t,alt:t,className:"rdw-image-modal-upload-option-image-preview"}):t||b["components.controls.image.dropFileText"])),o.a.createElement("input",{type:"file",id:"file",accept:h,onChange:this.selectImage,className:"rdw-image-modal-upload-option-input"})):o.a.createElement("div",{className:"rdw-image-modal-url-section"},o.a.createElement("input",{className:"rdw-image-modal-url-input",placeholder:b["components.controls.image.enterlink"],name:"imgSrc",onChange:this.updateValue,onBlur:this.updateValue,value:t}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),m.present&&o.a.createElement("div",{className:"rdw-image-modal-size"},o.a.createElement("span",{className:"rdw-image-modal-alt-lbl"},"Alt Text"),o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:l,name:"alt",className:"rdw-image-modal-alt-input",placeholder:"alt"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},m.mandatory&&"*")),o.a.createElement("div",{className:"rdw-image-modal-size"},"↕ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:i,name:"height",className:"rdw-image-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")," ↔ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:a,name:"width",className:"rdw-image-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",{className:"rdw-image-modal-btn-section"},o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:this.addImageFromState,disabled:!t||!i||!a||m.mandatory&&!l},b["generic.add"]),o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:E},b["generic.cancel"])),r?o.a.createElement("div",{className:"rdw-image-modal-spinner"},o.a.createElement(Mn,null)):void 0)}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,A=t.title,i=e.expanded,a=e.onExpandEvent,l=e.translations;return o.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":i,"aria-label":"rdw-image-control"},o.a.createElement(N,{className:s()(r),value:"unordered-list-item",onClick:a,title:A||l["components.controls.image.image"]},o.a.createElement("img",{src:n,alt:""})),i?this.renderAddImageModal():void 0)}}])&&yn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();kn.propTypes={expanded:i.a.bool,onExpandEvent:i.a.func,doCollapse:i.a.func,onChange:i.a.func,config:i.a.object,translations:i.a.object};var Vn=kn;function Zn(e){return(Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nn(e,t){return(Nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function zn(e){var t=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(e){return!1}}();return function(){var n,r=Pn(e);if(t){var o=Pn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Zn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Pn(e){return(Pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Sn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nn(e,t)}(A,r.Component);var e,t,n=zn(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.addImage=function(e,n,r,o){var A=t.props,i=A.editorState,l=A.onChange,c={src:e,height:n,width:r};A.config.alt.present&&(c.alt=o);var s=i.getCurrentContent().createEntity("IMAGE","MUTABLE",c).getLastCreatedEntityKey();l(a.AtomicBlockUtils.insertAtomicBlock(i,s," ")),t.doCollapse()};var r=t.props.modalHandler;return t.state={expanded:!1},r.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,A=t.component||Vn;return o.a.createElement(A,{config:t,translations:n,onChange:this.addImage,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&jn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function On(e){var t=e.config,n=e.onChange,r=e.translations,A=t.icon,i=t.className,a=t.title;return o.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},o.a.createElement(N,{className:s()(i),onClick:n,title:a||r["components.controls.remove.remove"]},o.a.createElement("img",{src:A,alt:""})))}Sn.propTypes={editorState:i.a.object.isRequired,onChange:i.a.func.isRequired,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var Fn=Sn;n(31),On.propTypes={onChange:i.a.func,config:i.a.object,translations:i.a.object};var Tn=On;function Rn(e){return(Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xn(e,t){return(Xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Yn(e){var t=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(e){return!1}}();return function(){var n,r=Un(e);if(t){var o=Un(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Rn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Un(e){return(Un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Kn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xn(e,t)}(A,r.Component);var e,t,n=Yn(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.removeInlineStyles=function(){var t=e.props,n=t.editorState;(0,t.onChange)(e.removeAllInlineStyles(n))},e.removeAllInlineStyles=function(e){var t=e.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(n){t=a.Modifier.removeInlineStyle(t,e.getSelection(),n)})),v(Object(l.getSelectionCustomInlineStyle)(e,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),(function(n,r){r&&(t=a.Modifier.removeInlineStyle(t,e.getSelection(),r))})),a.EditorState.push(e,t,"change-inline-style")},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e}return e=A,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,A=t.component||Tn;return o.a.createElement(A,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&Gn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function Wn(e){return(Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jn(e,t){return(Jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _n(e){var t=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(e){return!1}}();return function(){var n,r=$n(e);if(t){var o=$n(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Wn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function $n(e){return($n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Kn.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object.isRequired,config:i.a.object,translations:i.a.object,modalHandler:i.a.object},n(32);var er=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jn(e,t)}(A,r.Component);var e,t,n=_n(A);function A(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onChange=function(t){(0,e.props.onChange)(t)},e}return e=A,(t=[{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,A=e.onExpandEvent,i=e.doCollapse,a=e.currentState,l=a.undoDisabled,c=a.redoDisabled,f=e.translations,d=t.options,C=t.undo,u=t.redo,p=t.className,g=t.dropdownClassName,h=t.title;return o.a.createElement(T,{className:s()("rdw-history-dropdown",p),optionWrapperClassName:s()(g),expanded:n,doExpand:r,doCollapse:i,onExpandEvent:A,"aria-label":"rdw-history-control",title:h||f["components.controls.history.history"]},o.a.createElement("img",{src:x(t),alt:""}),0<=d.indexOf("undo")&&o.a.createElement(W,{value:"undo",onClick:this.onChange,disabled:l,className:s()("rdw-history-dropdownoption",C.className),title:C.title||f["components.controls.history.undo"]},o.a.createElement("img",{src:C.icon,alt:""})),0<=d.indexOf("redo")&&o.a.createElement(W,{value:"redo",onClick:this.onChange,disabled:c,className:s()("rdw-history-dropdownoption",u.className),title:u.title||f["components.controls.history.redo"]},o.a.createElement("img",{src:u.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.undo,A=t.redo,i=t.className,a=e.currentState,l=a.undoDisabled,c=a.redoDisabled,f=e.translations;return o.a.createElement("div",{className:s()("rdw-history-wrapper",i),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&o.a.createElement(N,{value:"undo",onClick:this.onChange,className:s()(r.className),disabled:l,title:r.title||f["components.controls.history.undo"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("redo")&&o.a.createElement(N,{value:"redo",onClick:this.onChange,className:s()(A.className),disabled:c,title:A.title||f["components.controls.history.redo"]},o.a.createElement("img",{src:A.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&qn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();function tr(e){return(tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rr(e,t){return(rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function or(e){var t=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(e){return!1}}();return function(){var n,r=Ar(e);if(t){var o=Ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Ar(e){return(Ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}er.propTypes={expanded:i.a.bool,doExpand:i.a.func,doCollapse:i.a.func,onExpandEvent:i.a.func,config:i.a.object,onChange:i.a.func,currentState:i.a.object,translations:i.a.object};var ir=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rr(e,t)}(A,r.Component);var e,t,n=or(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){var n=t.props,r=n.editorState,o=n.onChange,A=a.EditorState[e](r);A&&o(A)},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r={expanded:!(t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},o=e.editorState,i=e.modalHandler;return o&&(r.undoDisabled=0===o.getUndoStack().size,r.redoDisabled=0===o.getRedoStack().size),t.state=r,i.registerCallBack(t.expandCollapse),t}return e=A,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&e.editorState!==t&&this.setState({undoDisabled:0===t.getUndoStack().size,redoDisabled:0===t.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,A=r.undoDisabled,i=r.redoDisabled,a=r.expanded,l=t.component||er;return o.a.createElement(l,{config:t,translations:n,currentState:{undoDisabled:A,redoDisabled:i},expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&nr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();ir.propTypes={onChange:i.a.func.isRequired,editorState:i.a.object,modalHandler:i.a.object,config:i.a.object,translations:i.a.object};var ar={inline:ae,blockType:we,fontSize:Ve,fontFamily:Ye,list:ot,textAlign:gt,colorPicker:Ht,link:Jt,embedded:dn,emoji:xn,image:Fn,remove:Kn,history:ir},lr=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,cr=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function sr(e){return String(e).replace(lr,"").match(cr)?e:"#"}function fr(e){return(fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cr(e,t){return(Cr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ur(e){var t=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(e){return!1}}();return function(){var n,r=pr(e);if(t){var o=pr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===fr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function pr(e){return(pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gr(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"LINK"===n.getEntity(t).getType()}),t)}function hr(e){var t,n=e.showOpenOptionOnHover;return(t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cr(e,t)}(i,r.Component);var e,t,A=ur(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=A.call.apply(A,[this].concat(n))).state={showPopOver:!1},e.openLink=function(){var t=e.props,n=t.entityKey,r=t.contentState.getEntity(n).getData().url,o=window.open(sr(r),"blank");o&&o.focus()},e.toggleShowPopOver=function(){var t=!e.state.showPopOver;e.setState({showPopOver:t})},e}return e=i,(t=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.entityKey,A=e.contentState.getEntity(r).getData(),i=A.url,a=A.targetOption,l=this.state.showPopOver;return o.a.createElement("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver},o.a.createElement("a",{href:sr(i),target:a},t),l&&n?o.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuMDcyIDBIOC45MTVhLjkyNS45MjUgMCAwIDAgMCAxLjg0OWgyLjkyNUw2Ljk2MSA2LjcyN2EuOTE4LjkxOCAwIDAgMC0uMjcuNjU0YzAgLjI0Ny4wOTUuNDguMjcuNjU0YS45MTguOTE4IDAgMCAwIC42NTQuMjcuOTE4LjkxOCAwIDAgMCAuNjUzLS4yN2w0Ljg4LTQuODh2Mi45MjZhLjkyNS45MjUgMCAwIDAgMS44NDggMFYuOTI0QS45MjUuOTI1IDAgMCAwIDE0LjA3MiAweiIvPjxwYXRoIGQ9Ik0xMC42MjMgMTMuNDExSDEuNTg1VjQuMzcyaDYuNzk4bDEuNTg0LTEuNTg0SC43OTJBLjc5Mi43OTIgMCAwIDAgMCAzLjU4djEwLjYyNGMwIC40MzcuMzU1Ljc5Mi43OTIuNzkyaDEwLjYyNGEuNzkyLjc5MiAwIDAgMCAuNzkyLS43OTJWNS4wMjlsLTEuNTg1IDEuNTg0djYuNzk4eiIvPjwvZz48L3N2Zz4=",alt:"",onClick:this.openLink,className:"rdw-link-decorator-icon"}):void 0)}}])&&dr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}()).propTypes={entityKey:i.a.string.isRequired,children:i.a.array,contentState:i.a.object},t}function mr(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}n(33),n(34);var Er=mr((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getMentionComponent=function(){function e(e){var n=e.entityKey,r=e.children,A=e.contentState.getEntity(n).getData(),i=A.url,a=A.value;return o.a.createElement("a",{href:i||a,className:s()("rdw-mention-link",t)},r)}var t=n.className;return e.propTypes={entityKey:i.a.number,children:i.a.array,contentState:i.a.object},e},this.getMentionDecorator=function(){return{strategy:n.findMentionEntities,component:n.getMentionComponent()}},this.className=t}));Er.prototype.findMentionEntities=function(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"MENTION"===n.getEntity(t).getType()}),t)};var br=Er;function wr(e){return(wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vr(e,t){return(vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Br(e){var t=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(e){return!1}}();return function(){var n,r=Ir(e);if(t){var o=Ir(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===wr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Ir(e){return(Ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mr(e,t,n){return t&&xr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(35);var yr=Mr((function e(t){var n=this;Lr(this,e),this.findSuggestionEntities=function(e,t){if(n.config.getEditorState()){var r=n.config,o=r.separator,A=r.trigger,i=r.getSuggestions,a=(0,r.getEditorState)().getSelection();if(a.get("anchorKey")===e.get("key")&&a.get("anchorKey")===a.get("focusKey")){var l=e.getText(),c=(l=l.substr(0,a.get("focusOffset")===l.length-1?l.length:a.get("focusOffset")+1)).lastIndexOf(o+A),s=o+A;if((void 0===c||c<0)&&l[0]===A&&(c=0,s=A),0<=c){var f=l.substr(c+s.length,l.length);i().some((function(e){return!!e.value&&(n.config.caseSensitive?0<=e.value.indexOf(f):0<=e.value.toLowerCase().indexOf(f&&f.toLowerCase()))}))&&t(0===c?0:c+1,l.length)}}}},this.getSuggestionComponent=function(){var e,t=this.config;return(e=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vr(e,t)}(n,r.Component);var e=Br(n);function n(){var r;Lr(this,n);for(var o=arguments.length,A=new Array(o),i=0;i<o;i++)A[i]=arguments[i];return(r=e.call.apply(e,[this].concat(A))).state={style:{left:15},activeOption:-1,showSuggestions:!0},r.onEditorKeyDown=function(e){var t=r.state.activeOption,n={};"ArrowDown"===e.key?(e.preventDefault(),t===r.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=t+1):"ArrowUp"===e.key?n.activeOption=t<=0?r.filteredSuggestions.length-1:t-1:"Escape"===e.key?(n.showSuggestions=!1,E()):"Enter"===e.key&&r.addMention(),r.setState(n)},r.onOptionMouseEnter=function(e){var t=e.target.getAttribute("data-index");r.setState({activeOption:t})},r.onOptionMouseLeave=function(){r.setState({activeOption:-1})},r.setSuggestionReference=function(e){r.suggestion=e},r.setDropdownReference=function(e){r.dropdown=e},r.closeSuggestionDropdown=function(){r.setState({showSuggestions:!1})},r.filteredSuggestions=[],r.filterSuggestions=function(e){var n=e.children[0].props.text.substr(1),o=t.getSuggestions();r.filteredSuggestions=o&&o.filter((function(e){return!n||0===n.length||(t.caseSensitive?0<=e.value.indexOf(n):0<=e.value.toLowerCase().indexOf(n&&n.toLowerCase()))}))},r.addMention=function(){var e=r.state.activeOption,n=t.getEditorState(),o=t.onChange,A=t.separator,i=t.trigger,c=r.filteredSuggestions[e];c&&function(e,t,n,r,o){var A=o.value,i=o.url,c=e.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(r).concat(A),value:A,url:i}).getLastCreatedEntityKey(),s=Object(l.getSelectedBlock)(e).getText(),f=e.getSelection().focusOffset,d=(s.lastIndexOf(n+r,f)||0)+1,C=!1;s.length===d+1&&(f=s.length)," "===s[f]&&(C=!0);var u=e.getSelection().merge({anchorOffset:d,focusOffset:f}),p=a.EditorState.acceptSelection(e,u),g=a.Modifier.replaceText(p.getCurrentContent(),u,"".concat(r).concat(A),p.getCurrentInlineStyle(),c);p=a.EditorState.push(p,g,"insert-characters"),C||(u=p.getSelection().merge({anchorOffset:d+A.length+r.length,focusOffset:d+A.length+r.length}),p=a.EditorState.acceptSelection(p,u),g=a.Modifier.insertText(p.getCurrentContent(),u," ",p.getCurrentInlineStyle(),void 0)),t(a.EditorState.push(p,g,"insert-characters"))}(n,o,A,i,c)},r}return Mr(n,[{key:"componentDidMount",value:function(){var e,n,r,o=t.getWrapperRef().getBoundingClientRect(),A=this.suggestion.getBoundingClientRect(),i=this.dropdown.getBoundingClientRect();o.width<A.left-o.left+i.width?n=15:e=15,o.bottom<i.bottom&&(r=0),this.setState({style:{left:e,right:n,bottom:r}}),h.registerCallBack(this.onEditorKeyDown),m(),t.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&(this.filterSuggestions(e),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){h.deregisterCallBack(this.onEditorKeyDown),E(),t.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var e=this,n=this.props.children,r=this.state,A=r.activeOption,i=r.showSuggestions,a=t.dropdownClassName,l=t.optionClassName;return o.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:t.modalHandler.onSuggestionClick,"aria-haspopup":"true","aria-label":"rdw-suggestion-popup"},o.a.createElement("span",null,n),i&&o.a.createElement("span",{className:s()("rdw-suggestion-dropdown",a),contentEditable:"false",suppressContentEditableWarning:!0,style:this.state.style,ref:this.setDropdownReference},this.filteredSuggestions.map((function(t,n){return o.a.createElement("span",{key:n,spellCheck:!1,onClick:e.addMention,"data-index":n,onMouseEnter:e.onOptionMouseEnter,onMouseLeave:e.onOptionMouseLeave,className:s()("rdw-suggestion-option",l,{"rdw-suggestion-option-active":n===A})},t.text)}))))}}]),n}()).propTypes={children:i.a.array},e}.bind(this),this.getSuggestionDecorator=function(){return{strategy:n.findSuggestionEntities,component:n.getSuggestionComponent()}};var A=t.separator,c=t.trigger,f=t.getSuggestions,d=t.onChange,C=t.getEditorState,u=t.getWrapperRef,p=t.caseSensitive,g=t.dropdownClassName,b=t.optionClassName,w=t.modalHandler;this.config={separator:A,trigger:c,getSuggestions:f,onChange:d,getEditorState:C,getWrapperRef:u,caseSensitive:p,dropdownClassName:g,optionClassName:b,modalHandler:w}})),Qr=function(e){return[new br(e.mentionClassName).getMentionDecorator(),new yr(e).getSuggestionDecorator()]};function Hr(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Dr(e){var t=e.block,n=e.contentState.getEntity(t.getEntityAt(0)).getData(),r=n.src,A=n.height,i=n.width;return o.a.createElement("iframe",{height:A,width:i,src:r,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}n(36);var kr=Hr((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getHashtagComponent=function(){function e(e){var n=e.children,r=n[0].props.text;return o.a.createElement("a",{href:r,className:s()("rdw-hashtag-link",t)},n)}var t=n.className;return e.propTypes={children:i.a.object},e},this.findHashtagEntities=function(e,t){for(var r=e.getText(),o=0,A=0;0<r.length&&0<=o;)if(r[0]===n.hashCharacter?(A=o=0,r=r.substr(n.hashCharacter.length)):0<=(o=r.indexOf(n.separator+n.hashCharacter))&&(r=r.substr(o+(n.separator+n.hashCharacter).length),A+=o+n.separator.length),0<=o){var i=0<=r.indexOf(n.separator)?r.indexOf(n.separator):r.length,a=r.substr(0,i);a&&0<a.length&&(t(A,A+a.length+n.hashCharacter.length),A+=n.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:n.findHashtagEntities,component:n.getHashtagComponent()}},this.className=t.className,this.hashCharacter=t.hashCharacter||"#",this.separator=t.separator||" "})),Vr=function(e){return new kr(e).getHashtagDecorator()};Dr.propTypes={block:i.a.object,contentState:i.a.object};var Zr=Dr;function jr(e){return(jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zr(e,t){return(zr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pr(e){var t=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(e){return!1}}();return function(){var n,r=Sr(e);if(t){var o=Sr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===jr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Sr(e){return(Sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(37);var Or=function(e){var t;return(t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zr(e,t)}(i,r.Component);var t,n,A=Pr(i);function i(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=A.call.apply(A,[this].concat(r))).state={hovered:!1},t.setEntityAlignmentLeft=function(){t.setEntityAlignment("left")},t.setEntityAlignmentRight=function(){t.setEntityAlignment("right")},t.setEntityAlignmentCenter=function(){t.setEntityAlignment("none")},t.setEntityAlignment=function(n){var r=t.props,o=r.block,A=r.contentState,i=o.getEntityAt(0);A.mergeEntityData(i,{alignment:n}),e.onChange(a.EditorState.push(e.getEditorState(),A,"change-block-data")),t.setState({dummy:!0})},t.toggleHovered=function(){var e=!t.state.hovered;t.setState({hovered:e})},t}return t=i,(n=[{key:"renderAlignmentOptions",value:function(e){return o.a.createElement("div",{className:s()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":"right"===e})},o.a.createElement(N,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),o.a.createElement(N,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),o.a.createElement(N,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var t=this.props,n=t.block,r=t.contentState,A=this.state.hovered,i=e.isReadOnly,a=e.isImageAlignmentEnabled,l=r.getEntity(n.getEntityAt(0)).getData(),c=l.src,f=l.alignment,d=l.height,C=l.width,u=l.alt;return o.a.createElement("span",{onMouseEnter:this.toggleHovered,onMouseLeave:this.toggleHovered,className:s()("rdw-image-alignment",{"rdw-image-left":"left"===f,"rdw-image-right":"right"===f,"rdw-image-center":!f||"none"===f})},o.a.createElement("span",{className:"rdw-image-imagewrapper"},o.a.createElement("img",{src:c,alt:u,style:{height:d,width:C}}),!i()&&A&&a()?this.renderAlignmentOptions(f):void 0))}}])&&Nr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}()).propTypes={block:i.a.object,contentState:i.a.object},t},Fr=function(e,t){return function(n){if("function"==typeof t){var r=t(n,e,e.getEditorState);if(r)return r}if("atomic"===n.getType()){var o=e.getEditorState().getCurrentContent().getEntity(n.getEntityAt(0));if(o&&"IMAGE"===o.type)return{component:Or(e),editable:!1};if(o&&"EMBEDDED_LINK"===o.type)return{component:Zr,editable:!1}}}},Tr={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+PHBhdGggZD0iTTYuMjM2IDBjMS42NTIgMCAyLjk0LjI5OCAzLjg2Ni44OTMuOTI1LjU5NSAxLjM4OCAxLjQ4NSAxLjM4OCAyLjY2OSAwIC42MDEtLjE3MyAxLjEzOS0uNTE2IDEuNjEtLjM0My40NzQtLjg0NC44My0xLjQ5OSAxLjA2OC44NDMuMTY3IDEuNDc0LjUyMyAxLjg5NSAxLjA3MS40MTkuNTUuNjMgMS4xODMuNjMgMS45MDMgMCAxLjI0NS0uNDQ0IDIuMTg3LTEuMzMgMi44MjUtLjg4Ni42NDEtMi4xNDQuOTYxLTMuNzY5Ljk2MUgwdi0yLjE2N2gxLjQ5NFYyLjE2N0gwVjBoNi4yMzZ6TTQuMzA4IDUuNDQ2aDIuMDI0Yy43NTIgMCAxLjMzLS4xNDMgMS43MzQtLjQzLjQwNS0uMjg1LjYwOC0uNzAxLjYwOC0xLjI1IDAtLjYtLjIwNC0xLjA0NC0uNjEyLTEuMzMtLjQwOC0uMjg2LTEuMDE2LS40MjctMS44MjYtLjQyN0g0LjMwOHYzLjQzN3ptMCAxLjgwNFYxMWgyLjU5M2MuNzQ3IDAgMS4zMTQtLjE1MiAxLjcwNy0uNDUyLjM5LS4zLjU4OC0uNzQ1LjU4OC0xLjMzNCAwLS42MzYtLjE2OC0xLjEyNC0uNS0xLjQ2LS4zMzYtLjMzNS0uODY0LS41MDQtMS41ODItLjUwNEg0LjMwOHoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},italic:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTcgM1YyaDR2MUg5Ljc1M2wtMyAxMEg4djFINHYtMWgxLjI0N2wzLTEwSDd6Ii8+PC9zdmc+",className:void 0,title:void 0},underline:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTYuMDQ1IDJ2Ljk5Mkw0Ljc4NSAzdjUuMTcyYzAgLjg1OS4yNDMgMS41MTIuNzI3IDEuOTU3czEuMTI0LjY2OCAxLjkxOC42NjhjLjgzNiAwIDEuNTA5LS4yMjEgMi4wMTktLjY2NC41MTEtLjQ0Mi43NjYtMS4wOTYuNzY2LTEuOTYxVjNsLTEuMjYtLjAwOFYySDEzdi45OTJMMTEuNzM5IDN2NS4xNzJjMCAxLjIzNC0uMzk4IDIuMTgxLTEuMTk1IDIuODQtLjc5Ny42NTktMS44MzUuOTg4LTMuMTE0Ljk4OC0xLjI0MiAwLTIuMjQ4LS4zMjktMy4wMTctLjk4OC0uNzY5LS42NTktMS4xNTItMS42MDUtMS4xNTItMi44NFYzTDIgMi45OTJWMmg0LjA0NXpNMiAxM2gxMXYxSDJ6Ii8+PC9zdmc+",className:void 0,title:void 0},strikethrough:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4wNCA1Ljk1NGg2LjIxNWE3LjQxMiA3LjQxMiAwIDAgMC0uNzk1LS40MzggMTEuOTA3IDExLjkwNyAwIDAgMC0xLjQ0Ny0uNTU3Yy0xLjE4OC0uMzQ4LTEuOTY2LS43MTEtMi4zMzQtMS4wODgtLjM2OC0uMzc3LS41NTItLjc3LS41NTItMS4xODEgMC0uNDk1LjE4Ny0uOTA2LjU2LTEuMjMyLjM4LS4zMzEuODg3LS40OTcgMS41MjMtLjQ5Ny42OCAwIDEuMjY2LjI1NSAxLjc1Ny43NjcuMjk1LjMxNS41ODIuODkxLjg2MSAxLjczbC4xMTcuMDE2LjcwMy4wNS4xLS4wMjRjLjAyOC0uMTUyLjA0Mi0uMjc5LjA0Mi0uMzggMC0uMzM3LS4wMzktLjg1Mi0uMTE3LTEuNTQ0YTkuMzc0IDkuMzc0IDAgMCAwLS4xNzYtLjk5NUM5Ljg4LjM3OSA5LjM4NS4yNDQgOS4wMTcuMTc2IDguMzY1LjA3IDcuODk5LjAxNiA3LjYyLjAxNmMtMS40NSAwLTIuNTQ1LjM1Ny0zLjI4NyAxLjA3MS0uNzQ3LjcyLTEuMTIgMS41ODktMS4xMiAyLjYwNyAwIC41MTEuMTMzIDEuMDQuNCAxLjU4Ni4xMjkuMjUzLjI3LjQ3OC40MjcuNjc0ek04LjI4IDguMTE0Yy41NzUuMjM2Ljk1Ny40MzYgMS4xNDcuNTk5LjQ1MS40MS42NzcuODUyLjY3NyAxLjMyNCAwIC4zODMtLjEzLjc0NS0uMzkzIDEuMDg4LS4yNS4zMzgtLjU5LjU4LTEuMDIuNzI2YTMuNDE2IDMuNDE2IDAgMCAxLTEuMTYzLjIyOGMtLjQwNyAwLS43NzUtLjA2Mi0xLjEwNC0uMTg2YTIuNjk2IDIuNjk2IDAgMCAxLS44NzgtLjQ4IDMuMTMzIDMuMTMzIDAgMCAxLS42Ny0uNzk0IDEuNTI3IDEuNTI3IDAgMCAxLS4xMDQtLjIyNyA1Ny41MjMgNTcuNTIzIDAgMCAwLS4xODgtLjQ3MyAyMS4zNzEgMjEuMzcxIDAgMCAwLS4yNTEtLjU5OWwtLjg1My4wMTd2LjM3MWwtLjAxNy4zMTNhOS45MiA5LjkyIDAgMCAwIDAgLjU3M2MuMDExLjI3LjAxNy43MDkuMDE3IDEuMzE2di4xMWMwIC4wNzkuMDIyLjE0LjA2Ny4xODUuMDgzLjA2OC4yODQuMTQ3LjYwMi4yMzdsMS4xNy4zMzdjLjQ1Mi4xMy45OTYuMTk0IDEuNjMyLjE5NC42ODYgMCAxLjI1Mi0uMDU5IDEuNjk4LS4xNzdhNC42OTQgNC42OTQgMCAwIDAgMS4yOC0uNTU3Yy40MDEtLjI1OS43MDUtLjQ4Ni45MTEtLjY4My4yNjgtLjI3Ni40NjYtLjU2OC41OTQtLjg3OGE0Ljc0IDQuNzQgMCAwIDAgLjM0My0xLjc4OGMwLS4yOTgtLjAyLS41NTctLjA1OC0uNzc2SDguMjgxek0xNC45MTQgNi41N2EuMjYuMjYgMCAwIDAtLjE5My0uMDc2SC4yNjhhLjI2LjI2IDAgMCAwLS4xOTMuMDc2LjI2NC4yNjQgMCAwIDAtLjA3NS4xOTR2LjU0YzAgLjA3OS4wMjUuMTQzLjA3NS4xOTRhLjI2LjI2IDAgMCAwIC4xOTMuMDc2SDE0LjcyYS4yNi4yNiAwIDAgMCAuMTkzLS4wNzYuMjY0LjI2NCAwIDAgMCAuMDc1LS4xOTR2LS41NGEuMjY0LjI2NCAwIDAgMC0uMDc1LS4xOTR6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},monospace:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzQ0NCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS4wMjEgMi45MDZjLjE4NiAxLjIxOS4zNzIgMS41LjM3MiAyLjcxOUMxLjM5MyA2LjM3NSAwIDcuMDMxIDAgNy4wMzF2LjkzOHMxLjM5My42NTYgMS4zOTMgMS40MDZjMCAxLjIxOS0uMTg2IDEuNS0uMzcyIDIuNzE5Qy43NDMgMTQuMDYzIDEuNzY0IDE1IDIuNjkzIDE1aDEuOTV2LTEuODc1cy0xLjY3Mi4xODgtMS42NzItLjkzOGMwLS44NDMuMTg2LS44NDMuMzcyLTIuNzE4LjA5My0uODQ0LS40NjQtMS41LTEuMDIyLTEuOTY5LjU1OC0uNDY5IDEuMTE1LTEuMDMxIDEuMDIyLTEuODc1QzMuMDY0IDMuNzUgMi45NyAzLjc1IDIuOTcgMi45MDZjMC0xLjEyNSAxLjY3Mi0xLjAzMSAxLjY3Mi0xLjAzMVYwaC0xLjk1QzEuNjcgMCAuNzQzLjkzOCAxLjAyIDIuOTA2ek0xMS45NzkgMi45MDZjLS4xODYgMS4yMTktLjM3MiAxLjUtLjM3MiAyLjcxOSAwIC43NSAxLjM5MyAxLjQwNiAxLjM5MyAxLjQwNnYuOTM4cy0xLjM5My42NTYtMS4zOTMgMS40MDZjMCAxLjIxOS4xODYgMS41LjM3MiAyLjcxOS4yNzggMS45NjktLjc0MyAyLjkwNi0xLjY3MiAyLjkwNmgtMS45NXYtMS44NzVzMS42NzIuMTg4IDEuNjcyLS45MzhjMC0uODQzLS4xODYtLjg0My0uMzcyLTIuNzE4LS4wOTMtLjg0NC40NjQtMS41IDEuMDIyLTEuOTY5LS41NTgtLjQ2OS0xLjExNS0xLjAzMS0xLjAyMi0xLjg3NS4xODYtMS44NzUuMzcyLTEuODc1LjM3Mi0yLjcxOSAwLTEuMTI1LTEuNjcyLTEuMDMxLTEuNjcyLTEuMDMxVjBoMS45NWMxLjAyMiAwIDEuOTUuOTM4IDEuNjcyIDIuOTA2eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},superscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMzA1IDEwLjE2NUwxMS44NjUgMTVIOS4wNTdsLTMuMTkyLTMuNTM2TDIuNzQ2IDE1SDBsNC41MjMtNC44MzVMLjIxOCA1LjYwM2gyLjc3TDUuOTg2IDguOTEgOS4wMSA1LjYwM2gyLjY0OWwtNC4zNTQgNC41NjJ6bTYuMjM0LTMuMjY5bDEuODc5LTEuMzA2Yy42NC0uNDE2IDEuMDYyLS44MDEgMS4yNjQtMS4xNTcuMjAxLS4zNTYuMzAyLS43MzguMzAyLTEuMTQ4IDAtLjY2OS0uMjM3LTEuMjEtLjcxLTEuNjItLjQ3NC0uNDExLTEuMDk3LS42MTctMS44NjgtLjYxNy0uNzQ0IDAtMS4zNC4yMDgtMS43ODUuNjI0LS40NDcuNDE2LS42NyAxLjA0My0uNjcgMS44ODFoMS40MzZjMC0uNS4wOTQtLjg0Ni4yODEtMS4wMzguMTg4LS4xOTEuNDQ1LS4yODcuNzcyLS4yODdzLjU4NS4wOTcuNzc3LjI5MmMuMTkuMTk1LjI4Ni40MzcuMjg2LjcyNiAwIC4yOS0uMDg5LjU1LS4yNjYuNzg1cy0uNjcuNjI4LTEuNDc5IDEuMTg0Yy0uNjkxLjQ3Ny0xLjYyNy45MjctMS45MDggMS4zNWwuMDE0IDEuNTY5SDE3VjYuODk2aC0zLjQ2MXoiLz48L3N2Zz4=",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:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS43MiAzLjQyN2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3LjAxIDEuNzIuMDFDLjc3LjAwOCAwIC43NzUgMCAxLjcxNWMwIC45NC43NzQgMS43MTEgMS43MiAxLjcxMXptMC0yLjYyNWMuNTEgMCAuOTIyLjQxMi45MjIuOTE0YS45Mi45MiAwIDAgMS0xLjg0MiAwIC45Mi45MiAwIDAgMSAuOTItLjkxNHpNMS43MiA4LjcwM2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3IDUuMjg3IDEuNzIgNS4yODdDLjc3IDUuMjg3IDAgNi4wNTIgMCA2Ljk5NXMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjJjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAwIDEtMS44NDIgMGMwLS41MDUuNDE1LS45MTQuOTItLjkxNHpNMS43MiAxMy45ODJjLjk1MSAwIDEuNzIyLS43NjggMS43MjItMS43MDggMC0uOTQzLS43NzQtMS43MDgtMS43MjEtMS43MDgtLjk0NyAwLTEuNzIxLjc2OC0xLjcyMSAxLjcwOHMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjVjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAxIDEtMS44NDIgMCAuOTIuOTIgMCAwIDEgLjkyLS45MTR6TTUuNzQ0IDIuMTE1aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OS40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDcuMzk0aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOThINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OC40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDEyLjY3aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjQuNC40IDAgMCAwIC40MDIuMzk4eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},ordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4yMDIgMS40NjZoOC4xNWMuMzM4IDAgLjYxMi0uMzIyLjYxMi0uNzIgMC0uMzk3LS4yNzQtLjcyLS42MTItLjcyaC04LjE1Yy0uMzM4IDAtLjYxMS4zMjMtLjYxMS43MiAwIC4zOTguMjczLjcyLjYxLjcyek0xMi4zNTIgNS43ODNoLTguMTVjLS4zMzggMC0uNjExLjMyMi0uNjExLjcyIDAgLjM5Ny4yNzMuNzIuNjEuNzJoOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5OC0uMjc0LS43Mi0uNjEyLS43MnpNMTIuMzUyIDExLjU0aC04LjE1Yy0uMzM4IDAtLjYxMS4zMjItLjYxMS43MiAwIC4zOTYuMjczLjcxOS42MS43MTloOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5Ny0uMjc0LS43Mi0uNjEyLS43MnpNLjc2NyAxLjI0OXYxLjgwMmMwIC4xOTUuMTM2LjM0My4zMTUuMzQzLjE3NiAwIC4zMTUtLjE1LjMxNS0uMzQzVi4zNTZjMC0uMTktLjEzMy0uMzM5LS4zMDItLjMzOS0uMTQ4IDAtLjIyMy4xMTgtLjI0Ny4xNTZhLjIyOC4yMjggMCAwIDAtLjAwMy4wMDVMLjU3OS42MjFhLjQ3NC40NzQgMCAwIDAtLjA5OC4yNzNjMCAuMTk0LjEyOC4zNTEuMjg2LjM1NXpNLjM1MiA4LjE5SDEuNTVjLjE1NyAwIC4yODUtLjE2Mi4yODUtLjM2MiAwLS4xOTgtLjEyOC0uMzU5LS4yODUtLjM1OUguNjh2LS4wMDZjMC0uMTA3LjIxLS4yODEuMzc4LS40MjIuMzM2LS4yNzguNzUzLS42MjUuNzUzLTEuMjI2IDAtLjU3LS4zNzYtMS0uODc0LTEtLjQ3NyAwLS44MzYuMzg1LS44MzYuODk3IDAgLjI5Ny4xNjQuNDAyLjMwNS40MDIuMiAwIC4zMjEtLjE3Ni4zMjEtLjM0NiAwLS4xMDYuMDIzLS4yMjguMjA0LS4yMjguMjQzIDAgLjI1LjI1NC4yNS4yODMgMCAuMjI4LS4yNTIuNDQyLS40OTUuNjQ5LS4zMDEuMjU1LS42NDIuNTQ0LS42NDIuOTkydi4zODRjMCAuMjA1LjE1OS4zNDMuMzA4LjM0M3pNMS43NyAxMC41NDNjMC0uNTkyLS4yOTYtLjkzMS0uODE0LS45MzEtLjY4IDAtLjg1OS41Ny0uODU5Ljg3MiAwIC4zNTEuMjIyLjM5LjMxOC4zOS4xODUgMCAuMzEtLjE0OC4zMS0uMzY2IDAtLjA4NC4wMjYtLjE4MS4yMjQtLjE4MS4xNDIgMCAuMi4wMjQuMi4yNjcgMCAuMjM3LS4wNDMuMjYzLS4yMTMuMjYzLS4xNjQgMC0uMjg4LjE1Mi0uMjg4LjM1NCAwIC4yLjEyNS4zNS4yOTEuMzUuMjI1IDAgLjI3LjEwOC4yNy4yODN2LjA3NWMwIC4yOTQtLjA5Ny4zNS0uMjc3LjM1LS4yNDggMC0uMjY3LS4xNS0uMjY3LS4xOTcgMC0uMTc0LS4wOTgtLjM1LS4zMTctLjM1LS4xOTIgMC0uMzA3LjE0MS0uMzA3LjM3OCAwIC40My4zMTMuODg4Ljg5NS44ODguNTY0IDAgLjkwMS0uNC45MDEtMS4wN3YtLjA3NGMwLS4yNzQtLjA3NC0uNTAyLS4yMTQtLjY2Ni4wOTYtLjE2My4xNDgtLjM4LjE0OC0uNjM1eiIvPjwvZz48L3N2Zz4=",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+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNTU2IDE0Ljg4N0gzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTggMTAuMTYySC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUzaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6TTExLjU1NiA1LjQzNUgzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTguNzA5SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTJ6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},right:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjE4IDE0Ljg4N0g2LjQ1YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOCAxMC4xNjJILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTNoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1M3pNMTQuNjE4IDUuNDM1SDYuNDVhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4LjcwOUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1MmgxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyeiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},justify:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjIgMTQuODg4SC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgMTAuMTYySC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgNS40MzZILjMyNWEuMzI2LjMyNiAwIDAgMSAwLS42NTJIMTQuNjJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42Mi43MUguMzI1YS4zMjYuMzI2IDAgMCAxIDAtLjY1M0gxNC42MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},title:void 0},colorPicker:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNDA2LjU4NWExLjk5OCAxLjk5OCAwIDAgMC0yLjgyNSAwbC0uNTQuNTRhLjc0MS43NDEgMCAxIDAtMS4wNDggMS4wNDhsLjE3NS4xNzUtNS44MjYgNS44MjUtMi4wMjIgMi4wMjNhLjkxLjkxIDAgMCAwLS4yNjYuNjAybC0uMDA1LjEwOHYuMDAybC0uMDgxIDEuODI5YS4zMDIuMzAyIDAgMCAwIC4zMDIuMzE2aC4wMTNsLjk3LS4wNDQuNTkyLS4wMjYuMjY4LS4wMTJjLjI5Ny0uMDEzLjU3OS0uMTM3Ljc5LS4zNDdsNy43Ny03Ljc3LjE0Ni4xNDRhLjc0Ljc0IDAgMCAwIDEuMDQ4IDBjLjI5LS4yOS4yOS0uNzU5IDAtMS4wNDhsLjU0LS41NGMuNzgtLjc4Ljc4LTIuMDQ0IDAtMi44MjV6TTguNzk1IDcuMzMzbC0yLjczLjUxNSA0LjQ1Mi00LjQ1MiAxLjEwOCAxLjEwNy0yLjgzIDIuODN6TTIuMDggMTMuNjczYy0xLjE0OCAwLTIuMDguMjk1LTIuMDguNjYgMCAuMzYzLjkzMi42NTggMi4wOC42NTggMS4xNSAwIDIuMDgtLjI5NCAyLjA4LS42NTkgMC0uMzY0LS45My0uNjU5LTIuMDgtLjY1OXoiLz48L2c+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+PHBhdGggZD0iTTEzLjk2Ny45NUEzLjIyNiAzLjIyNiAwIDAgMCAxMS42Ny4wMDJjLS44NyAwLTEuNjg2LjMzNy0yLjI5Ny45NDhMNy4xMDUgMy4yMThBMy4yNDcgMy4yNDcgMCAwIDAgNi4yNCA2LjI0YTMuMjI1IDMuMjI1IDAgMCAwLTMuMDIyLjg2NUwuOTUgOS4zNzNhMy4yNTMgMy4yNTMgMCAwIDAgMCA0LjU5NCAzLjIyNiAzLjIyNiAwIDAgMCAyLjI5Ny45NDhjLjg3IDAgMS42ODYtLjMzNiAyLjI5OC0uOTQ4TDcuODEyIDExLjdhMy4yNDcgMy4yNDcgMCAwIDAgLjg2NS0zLjAyMyAzLjIyNSAzLjIyNSAwIDAgMCAzLjAyMi0uODY1bDIuMjY4LTIuMjY3YTMuMjUyIDMuMjUyIDAgMCAwIDAtNC41OTV6TTcuMTA1IDEwLjk5M0w0LjgzNyAxMy4yNmEyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NSAyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LS42NTUgMi4yNTIgMi4yNTIgMCAwIDEgMC0zLjE4bDIuMjY4LTIuMjY4YTIuMjMyIDIuMjMyIDAgMCAxIDEuNTktLjY1NWMuNDMgMCAuODQxLjEyIDEuMTk1LjM0M0w0Ljc3MiA5LjQzOGEuNS41IDAgMSAwIC43MDcuNzA3bDEuOTM5LTEuOTM4Yy41NDUuODY4LjQ0MiAyLjAzLS4zMTMgMi43ODV6bTYuMTU1LTYuMTU1bC0yLjI2OCAyLjI2N2EyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NWMtLjQzMSAwLS44NDEtLjEyLTEuMTk1LS4zNDNsMS45MzgtMS45MzhhLjUuNSAwIDEgMC0uNzA3LS43MDdMNy40OTkgNi43MWEyLjI1MiAyLjI1MiAwIDAgMSAuMzEzLTIuNzg1bDIuMjY3LTIuMjY4YTIuMjMzIDIuMjMzIDAgMCAxIDEuNTktLjY1NSAyLjIzMyAyLjIzMyAwIDAgMSAyLjI0NiAyLjI0NWMwIC42MDMtLjIzMiAxLjE2OC0uNjU1IDEuNTl6IiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",className:void 0,title:void 0},unlink:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTMuOTU2IDEuMDM3YTMuNTUgMy41NSAwIDAgMC01LjAxNCAwTDYuNDM2IDMuNTQ0YS41NDUuNTQ1IDAgMSAwIC43Ny43N2wyLjUwOC0yLjUwNmEyLjQzOCAyLjQzOCAwIDAgMSAxLjczNS0uNzE1Yy42NTggMCAxLjI3NS4yNTQgMS43MzYuNzE1LjQ2LjQ2MS43MTUgMS4wNzguNzE1IDEuNzM2IDAgLjY1OC0uMjU0IDEuMjc0LS43MTUgMS43MzVMOS45MDcgOC41NThhMi40NTggMi40NTggMCAwIDEtMy40NzIgMCAuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3MSAzLjUzNCAzLjUzNCAwIDAgMCAyLjUwNyAxLjAzN2MuOTA4IDAgMS44MTYtLjM0NiAyLjUwNy0xLjAzN2wzLjI3OC0zLjI3OGEzLjUyIDMuNTIgMCAwIDAgMS4wMzUtMi41MDdjMC0uOTUtLjM2Ny0xLjg0LTEuMDM1LTIuNTA3eiIvPjxwYXRoIGQ9Ik03LjQgMTEuMDY1bC0yLjEyMiAyLjEyYTIuNDM3IDIuNDM3IDAgMCAxLTEuNzM1LjcxNiAyLjQzNyAyLjQzNyAwIDAgMS0xLjczNi0uNzE1IDIuNDU3IDIuNDU3IDAgMCAxIDAtMy40NzFsMy4wODYtMy4wODZhMi40MzggMi40MzggMCAwIDEgMS43MzUtLjcxNWMuNjU4IDAgMS4yNzUuMjU0IDEuNzM2LjcxNWEuNTQ1LjU0NSAwIDEgMCAuNzcxLS43NzEgMy41NSAzLjU1IDAgMCAwLTUuMDE0IDBMMS4wMzYgOC45NDRBMy41MiAzLjUyIDAgMCAwIDAgMTEuNDVjMCAuOTUuMzY3IDEuODQgMS4wMzUgMi41MDdhMy41MiAzLjUyIDAgMCAwIDIuNTA2IDEuMDM1Yy45NSAwIDEuODQtLjM2OCAyLjUwNy0xLjAzNWwyLjEyMi0yLjEyMWEuNTQ1LjU0NSAwIDAgMC0uNzcxLS43NzF6TTkuMjc0IDEyLjAwMmEuNTQ2LjU0NiAwIDAgMC0uNTQ2LjU0NXYxLjYzN2EuNTQ2LjU0NiAwIDAgMCAxLjA5MSAwdi0xLjYzN2EuNTQ1LjU0NSAwIDAgMC0uNTQ1LS41NDV6TTExLjIzIDExLjYxNmEuNTQ1LjU0NSAwIDEgMC0uNzcyLjc3MmwxLjE1NyAxLjE1NmEuNTQzLjU0MyAwIDAgMCAuNzcxIDAgLjU0NS41NDUgMCAwIDAgMC0uNzdsLTEuMTU2LTEuMTU4ek0xMi41MzcgOS44MkgxMC45YS41NDYuNTQ2IDAgMCAwIDAgMS4wOTFoMS42MzdhLjU0Ni41NDYgMCAwIDAgMC0xLjA5ek00LjkxIDMuNTQ3YS41NDYuNTQ2IDAgMCAwIC41NDUtLjU0NVYxLjM2NmEuNTQ2LjU0NiAwIDAgMC0xLjA5IDB2MS42MzZjMCAuMzAxLjI0NC41NDUuNTQ1LjU0NXpNMi44ODggMy45MzNhLjU0My41NDMgMCAwIDAgLjc3MSAwIC41NDUuNTQ1IDAgMCAwIDAtLjc3MUwyLjUwMiAyLjAwNWEuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3bDEuMTU3IDEuMTU4ek0xLjYyOCA1LjczaDEuNjM2YS41NDYuNTQ2IDAgMCAwIDAtMS4wOTJIMS42MjhhLjU0Ni41NDYgMCAwIDAgMCAxLjA5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},linkCallback:void 0},emoji:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHZpZXdCb3g9IjE1LjcyOSAyMi4wODIgMTcgMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI5LjcwOCAyNS4xMDRjLTMuMDIxLTMuMDIyLTcuOTM3LTMuMDIyLTEwLjk1OCAwLTMuMDIxIDMuMDItMy4wMiA3LjkzNiAwIDEwLjk1OCAzLjAyMSAzLjAyIDcuOTM3IDMuMDIgMTAuOTU4LS4wMDEgMy4wMi0zLjAyMSAzLjAyLTcuOTM2IDAtMTAuOTU3em0tLjg0NSAxMC4xMTJhNi41NiA2LjU2IDAgMCAxLTkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAtOS4yNjcgNi41NiA2LjU2IDAgMCAxIDkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAgOS4yNjd6bS03LjUyNC02LjczYS45MDYuOTA2IDAgMSAxIDEuODExIDAgLjkwNi45MDYgMCAwIDEtMS44MTEgMHptNC4xMDYgMGEuOTA2LjkwNiAwIDEgMSAxLjgxMiAwIC45MDYuOTA2IDAgMCAxLTEuODEyIDB6bTIuMTQxIDMuNzA4Yy0uNTYxIDEuMjk4LTEuODc1IDIuMTM3LTMuMzQ4IDIuMTM3LTEuNTA1IDAtMi44MjctLjg0My0zLjM2OS0yLjE0N2EuNDM4LjQzOCAwIDAgMSAuODEtLjMzNmMuNDA1Ljk3NiAxLjQxIDEuNjA3IDIuNTU5IDEuNjA3IDEuMTIzIDAgMi4xMjEtLjYzMSAyLjU0NC0xLjYwOGEuNDM4LjQzOCAwIDAgMSAuODA0LjM0N3oiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,emojis:["😀","😁","😂","😃","😉","😋","😎","😍","😗","🤗","🤔","😣","😫","😴","😌","🤓","😛","😜","😠","😇","😷","😈","👻","😺","😸","😹","😻","😼","😽","🙀","🙈","🙉","🙊","👼","👮","🕵","💂","👳","🎅","👸","👰","👲","🙍","🙇","🚶","🏃","💃","⛷","🏂","🏌","🏄","🚣","🏊","⛹","🏋","🚴","👫","💪","👈","👉","👆","🖕","👇","🖖","🤘","🖐","👌","👍","👎","✊","👊","👏","🙌","🙏","🐵","🐶","🐇","🐥","🐸","🐌","🐛","🐜","🐝","🍉","🍄","🍔","🍤","🍨","🍪","🎂","🍰","🍾","🍷","🍸","🍺","🌍","🚑","⏰","🌙","🌝","🌞","⭐","🌟","🌠","🌨","🌩","⛄","🔥","🎄","🎈","🎉","🎊","🎁","🎗","🏀","🏈","🎲","🔇","🔈","📣","🔔","🎵","🎷","💰","🖊","📅","✅","❎","💯"],title:void 0},embedded:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzA4IDYuNjE1YS40MzYuNDM2IDAgMCAwLS41NDMuMjkxbC0xLjgzIDYuMDQ1YS40MzYuNDM2IDAgMCAwIC44MzMuMjUyTDcgNy4xNmEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHpNOC45MzEgNi42MTVhLjQzNi40MzYgMCAwIDAtLjU0My4yOTFsLTEuODMgNi4wNDVhLjQzNi40MzYgMCAwIDAgLjgzNC4yNTJsMS44My02LjA0NGEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHoiLz48cGF0aCBkPSJNMTYuNTY0IDBILjQzNkEuNDM2LjQzNiAwIDAgMCAwIC40MzZ2MTYuMTI4YzAgLjI0LjE5NS40MzYuNDM2LjQzNmgxNi4xMjhjLjI0IDAgLjQzNi0uMTk1LjQzNi0uNDM2Vi40MzZBLjQzNi40MzYgMCAwIDAgMTYuNTY0IDB6TTMuNDg3Ljg3MmgxMC4wMjZ2MS43NDNIMy40ODdWLjg3MnptLTIuNjE1IDBoMS43NDN2MS43NDNILjg3MlYuODcyem0xNS4yNTYgMTUuMjU2SC44NzJWMy40ODhoMTUuMjU2djEyLjY0em0wLTEzLjUxM2gtMS43NDNWLjg3MmgxLjc0M3YxLjc0M3oiLz48Y2lyY2xlIGN4PSI5My44NjciIGN5PSIyNDUuMDY0IiByPSIxMy4xMjgiIHRyYW5zZm9ybT0ibWF0cml4KC4wMzMyIDAgMCAuMDMzMiAwIDApIi8+PGNpcmNsZSBjeD0iOTMuODY3IiBjeT0iMzYwLjU5MiIgcj0iMTMuMTI4IiB0cmFuc2Zvcm09Im1hdHJpeCguMDMzMiAwIDAgLjAzMzIgMCAwKSIvPjxwYXRoIGQ9Ik0xNC4yNTQgMTIuNjQxSDEwLjJhLjQzNi40MzYgMCAwIDAgMCAuODcyaDQuMDU0YS40MzYuNDM2IDAgMCAwIDAtLjg3MnoiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,embedCallback:void 0,defaultSize:{height:"auto",width:"auto"},title:void 0},image:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNzQxIDBILjI2Qy4xMTYgMCAwIC4xMzYgMCAuMzA0djEzLjM5MmMwIC4xNjguMTE2LjMwNC4yNTkuMzA0SDE0Ljc0Yy4xNDMgMCAuMjU5LS4xMzYuMjU5LS4zMDRWLjMwNEMxNSAuMTM2IDE0Ljg4NCAwIDE0Ljc0MSAwem0tLjI1OCAxMy4zOTFILjUxN1YuNjFoMTMuOTY2VjEzLjM5eiIvPjxwYXRoIGQ9Ik00LjEzOCA2LjczOGMuNzk0IDAgMS40NC0uNzYgMS40NC0xLjY5NXMtLjY0Ni0xLjY5NS0xLjQ0LTEuNjk1Yy0uNzk0IDAtMS40NC43Ni0xLjQ0IDEuNjk1IDAgLjkzNC42NDYgMS42OTUgMS40NCAxLjY5NXptMC0yLjc4MWMuNTA5IDAgLjkyMy40ODcuOTIzIDEuMDg2IDAgLjU5OC0uNDE0IDEuMDg2LS45MjMgMS4wODYtLjUwOSAwLS45MjMtLjQ4Ny0uOTIzLTEuMDg2IDAtLjU5OS40MTQtMS4wODYuOTIzLTEuMDg2ek0xLjgxIDEyLjE3NGMuMDYgMCAuMTIyLS4wMjUuMTcxLS4wNzZMNi4yIDcuNzI4bDIuNjY0IDMuMTM0YS4yMzIuMjMyIDAgMCAwIC4zNjYgMCAuMzQzLjM0MyAwIDAgMCAwLS40M0w3Ljk4NyA4Ljk2OWwyLjM3NC0zLjA2IDIuOTEyIDMuMTQyYy4xMDYuMTEzLjI3LjEwNS4zNjYtLjAyYS4zNDMuMzQzIDAgMCAwLS4wMTYtLjQzbC0zLjEwNC0zLjM0N2EuMjQ0LjI0NCAwIDAgMC0uMTg2LS4wOC4yNDUuMjQ1IDAgMCAwLS4xOC4xTDcuNjIyIDguNTM3IDYuMzk0IDcuMDk0YS4yMzIuMjMyIDAgMCAwLS4zNTQtLjAxM2wtNC40IDQuNTZhLjM0My4zNDMgMCAwIDAtLjAyNC40My4yNDMuMjQzIDAgMCAwIC4xOTQuMTAzeiIvPjwvZz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,urlEnabled:!0,uploadEnabled:!0,previewImage:!1,alignmentEnabled:!0,uploadCallback:void 0,inputAccept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",alt:{present:!1,mandatory:!1},defaultSize:{height:"auto",width:"auto"},title:void 0},remove:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOC4xIDE0bDYuNC03LjJjLjYtLjcuNi0xLjgtLjEtMi41bC0yLjctMi43Yy0uMy0uNC0uOC0uNi0xLjMtLjZIOC42Yy0uNSAwLTEgLjItMS40LjZMLjUgOS4yYy0uNi43LS42IDEuOS4xIDIuNWwyLjcgMi43Yy4zLjQuOC42IDEuMy42SDE2di0xSDguMXptLTEuMy0uMXMwLS4xIDAgMGwtMi43LTIuN2MtLjQtLjQtLjQtLjkgMC0xLjNMNy41IDZoLTFsLTMgMy4zYy0uNi43LS42IDEuNy4xIDIuNEw1LjkgMTRINC42Yy0uMiAwLS40LS4xLS42LS4yTDEuMiAxMWMtLjMtLjMtLjMtLjggMC0xLjFMNC43IDZoMS44TDEwIDJoMUw3LjUgNmwzLjEgMy43LTMuNSA0Yy0uMS4xLS4yLjEtLjMuMnoiLz48L3N2Zz4=",className:void 0,component:void 0,title:void 0},history:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["undo","redo"],undo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcgMTQuODc1YzIuNjcyIDAgNC44NDYtMi4xNDUgNC44NDYtNC43ODEgMC0yLjYzNy0yLjE3NC00Ljc4MS00Ljg0Ni00Ljc4MVY4LjVMMS42MTUgNC4yNSA3IDB2My4xODhjMy44NiAwIDcgMy4wOTggNyA2LjkwNlMxMC44NiAxNyA3IDE3cy03LTMuMDk4LTctNi45MDZoMi4xNTRjMCAyLjYzNiAyLjE3NCA0Ljc4MSA0Ljg0NiA0Ljc4MXoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},redo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNTA0IDEzLjk3N2E0LjQ5NyA0LjQ5NyAwIDAgMS00LjQ5Mi00LjQ5MiA0LjQ5NyA0LjQ5NyAwIDAgMSA0LjQ5Mi00LjQ5M3YyLjk5NWw0Ljk5LTMuOTkzTDYuNTA0IDB2Mi45OTVhNi40OTYgNi40OTYgMCAwIDAtNi40ODggNi40OWMwIDMuNTc4IDIuOTEgNi40OSA2LjQ4OCA2LjQ5YTYuNDk2IDYuNDk2IDAgMCAwIDYuNDg3LTYuNDloLTEuOTk2YTQuNDk3IDQuNDk3IDAgMCAxLTQuNDkxIDQuNDkyeiIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+",className:void 0,title:void 0},title:void 0}},Rr={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 Gr(e){return(Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xr(){return(Xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yr(Object(n),!0).forEach((function(t){Kr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wr(e){return function(e){if(Array.isArray(e))return qr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return qr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qr(e,t):void 0}}(e)||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 qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _r(e,t){return(_r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $r(e){var t=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(e){return!1}}();return function(){var n,r=eo(e);if(t){var o=eo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Gr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function eo(e){return(eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(38),n(39);var to=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_r(e,t)}(A,r.Component);var e,t,n=$r(A);function A(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),(t=n.call(this,e)).onEditorBlur=function(){t.setState({editorFocused:!1})},t.onEditorFocus=function(e){var n=t.props.onFocus;t.setState({editorFocused:!0});var r=t.focusHandler.isEditorFocused();n&&r&&n(e)},t.onEditorMouseDown=function(){t.focusHandler.onEditorMouseDown()},t.keyBindingFn=function(e){if("Tab"!==e.key)return"ArrowUp"!==e.key&&"ArrowDown"!==e.key||b()&&e.preventDefault(),Object(a.getDefaultKeyBinding)(e);var n=t.props.onTab;if(!n||!n(e)){var r=Object(l.changeDepth)(t.state.editorState,e.shiftKey?-1:1,4);r&&r!==t.state.editorState&&(t.onChange(r),e.preventDefault())}return null},t.onToolbarFocus=function(e){var n=t.props.onFocus;n&&t.focusHandler.isToolbarFocused()&&n(e)},t.onWrapperBlur=function(e){var n=t.props.onBlur;n&&t.focusHandler.isEditorBlur(e)&&n(e,t.getEditorState())},t.onChange=function(e){var n=t.props,r=n.readOnly,o=n.onEditorStateChange;r||"atomic"===Object(l.getSelectedBlocksType)(e)&&e.getSelection().isCollapsed||(o&&o(e,t.props.wrapperId),B(t.props,"editorState")?t.afterChange(e):t.setState({editorState:e},t.afterChange(e)))},t.setWrapperReference=function(e){t.wrapper=e},t.setEditorReference=function(e){t.props.editorRef&&t.props.editorRef(e),t.editor=e},t.getCompositeDecorator=function(e){var n=[].concat(Wr(t.props.customDecorators),[{strategy:gr,component:hr({showOpenOptionOnHover:e.link.showOpenOptionOnHover})}]);return t.props.mention&&n.push.apply(n,Wr(Qr(Ur(Ur({},t.props.mention),{},{onChange:t.onChange,getEditorState:t.getEditorState,getSuggestions:t.getSuggestions,getWrapperRef:t.getWrapperRef,modalHandler:t.modalHandler})))),t.props.hashtag&&n.push(Vr(t.props.hashtag)),new a.CompositeDecorator(n)},t.getWrapperRef=function(){return t.wrapper},t.getEditorState=function(){return t.state?t.state.editorState:null},t.getSuggestions=function(){return t.props.mention&&t.props.mention.suggestions},t.afterChange=function(e){setTimeout((function(){var n=t.props,r=n.onChange,o=n.onContentStateChange;r&&r(Object(a.convertToRaw)(e.getCurrentContent())),o&&o(Object(a.convertToRaw)(e.getCurrentContent()))}))},t.isReadOnly=function(){return t.props.readOnly},t.isImageAlignmentEnabled=function(){return t.state.toolbar.image.alignmentEnabled},t.createEditorState=function(e){var n;if(B(t.props,"editorState"))t.props.editorState&&(n=a.EditorState.set(t.props.editorState,{decorator:e}));else if(B(t.props,"defaultEditorState"))t.props.defaultEditorState&&(n=a.EditorState.set(t.props.defaultEditorState,{decorator:e}));else if(B(t.props,"contentState")){if(t.props.contentState){var r=Object(a.convertFromRaw)(t.props.contentState);n=a.EditorState.createWithContent(r,e),n=a.EditorState.moveSelectionToEnd(n)}}else if(B(t.props,"defaultContentState")||B(t.props,"initialContentState")){var o=t.props.defaultContentState||t.props.initialContentState;o&&(o=Object(a.convertFromRaw)(o),n=a.EditorState.createWithContent(o,e),n=a.EditorState.moveSelectionToEnd(n))}return n||a.EditorState.createEmpty(e)},t.filterEditorProps=function(e){return t=e,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"],r=Object.keys(t).filter((function(e){return n.indexOf(e)<0})),o={},r&&0<r.length&&r.forEach((function(e){o[e]=t[e]})),o;var t,n,r,o},t.getStyleMap=function(e){return Ur(Ur({},Object(l.getCustomStyleMap)()),e.customStyleMap)},t.changeEditorState=function(e){var n=Object(a.convertFromRaw)(e),r=t.state.editorState;return r=a.EditorState.push(r,n,"insert-characters"),a.EditorState.moveSelectionToEnd(r)},t.focusEditor=function(){setTimeout((function(){t.editor.focus()}))},t.handleKeyCommand=function(e){var n=t.state,r=n.editorState,o=n.toolbar.inline;if(o&&0<=o.options.indexOf(e)){var A=a.RichUtils.handleKeyCommand(r,e);if(A)return t.onChange(A),!0}return!1},t.handleReturn=function(e){if(b())return!0;var n=t.state.editorState,r=Object(l.handleNewLine)(n,e);return!!r&&(t.onChange(r),!0)},t.handlePastedTextFn=function(e,n){var r=t.state.editorState,o=t.props,A=o.handlePastedText,i=o.stripPastedStyles;return A?A(e,n,r,t.onChange):!i&&function(e,t,n,r){var o=Object(l.getSelectedBlock)(n);if(o&&"code"===o.type){var A=a.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),e,n.getCurrentInlineStyle());return r(a.EditorState.push(n,A,"insert-characters")),!0}if(t){var i=y()(t),c=n.getCurrentContent();return i.entityMap.forEach((function(e,t){c=c.mergeEntityData(t,e)})),c=a.Modifier.replaceWithFragment(c,n.getSelection(),new Q.List(i.contentBlocks)),r(a.EditorState.push(n,c,"insert-characters")),!0}return!1}(e,n,r,t.onChange)},t.preventDefault=function(e){"INPUT"===e.target.tagName||"LABEL"===e.target.tagName||"TEXTAREA"===e.target.tagName?t.focusHandler.onInputMouseDown():e.preventDefault()};var r=M(Tr,e.toolbar),o=e.wrapperId?e.wrapperId:Math.floor(1e4*Math.random());t.wrapperId="rdw-wrapper-".concat(o),t.modalHandler=new d,t.focusHandler=new p,t.blockRendererFn=Fr({isReadOnly:t.isReadOnly,isImageAlignmentEnabled:t.isImageAlignmentEnabled,getEditorState:t.getEditorState,onChange:t.onChange},e.customBlockRenderFunc),t.editorProps=t.filterEditorProps(e),t.customStyleMap=t.getStyleMap(e),t.compositeDecorator=t.getCompositeDecorator(r);var i=t.createEditorState(t.compositeDecorator);return Object(l.extractInlineStyle)(i),t.state={editorState:i,editorFocused:!1,toolbar:r},t}return e=A,(t=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(e){if(e!==this.props){var t={},n=this.props,r=n.editorState,o=n.contentState;if(!this.state.toolbar){var A=M(Tr,A);t.toolbar=A}if(B(this.props,"editorState")&&r!==e.editorState)t.editorState=r?a.EditorState.set(r,{decorator:this.compositeDecorator}):a.EditorState.createEmpty(this.compositeDecorator);else if(B(this.props,"contentState")&&o!==e.contentState)if(o){var i=this.changeEditorState(o);i&&(t.editorState=i)}else t.editorState=a.EditorState.createEmpty(this.compositeDecorator);e.editorState===r&&e.contentState===o||Object(l.extractInlineStyle)(t.editorState),Object.keys(t).length&&this.setState(t),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}}},{key:"render",value:function(){var e=this.state,t=e.editorState,n=e.editorFocused,r=e.toolbar,A=this.props,i=A.locale,c=A.localization,f=c.locale,d=c.translations,C=A.toolbarCustomButtons,u=A.toolbarOnFocus,p=A.toolbarClassName,g=A.toolbarHidden,m=A.editorClassName,E=A.wrapperClassName,b=A.toolbarStyle,v=A.editorStyle,B=A.wrapperStyle,I=A.uploadCallback,x=A.ariaLabel,M={modalHandler:this.modalHandler,editorState:t,onChange:this.onChange,translations:Ur(Ur({},Rr[i||f]),d)},L=n||this.focusHandler.isInputFocused()||!u;return o.a.createElement("div",{id:this.wrapperId,className:s()(E,"rdw-editor-wrapper"),style:B,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper"},!g&&o.a.createElement("div",{className:s()("rdw-editor-toolbar",p),style:Ur({visibility:L?"visible":"hidden"},b),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!n&&u).toString(),onFocus:this.onToolbarFocus},r.options.map((function(e,t){var n=ar[e],A=r[e];return"image"===e&&I&&(A.uploadCallback=I),o.a.createElement(n,Xr({key:t},M,{config:A}))})),C&&C.map((function(e,t){return o.a.cloneElement(e,Ur({key:t},M))}))),o.a.createElement("div",{ref:this.setWrapperReference,className:s()(m,"rdw-editor-main"),style:v,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:h.onKeyDown,onMouseDown:this.onEditorMouseDown},o.a.createElement(a.Editor,Xr({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:t,onChange:this.onChange,blockStyleFn:w,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:x||"rdw-editor",blockRenderMap:l.blockRenderMap},this.editorProps))))}}])&&Jr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),A}();to.propTypes={onChange:i.a.func,onEditorStateChange:i.a.func,onContentStateChange:i.a.func,initialContentState:i.a.object,defaultContentState:i.a.object,contentState:i.a.object,editorState:i.a.object,defaultEditorState:i.a.object,toolbarOnFocus:i.a.bool,spellCheck:i.a.bool,stripPastedStyles:i.a.bool,toolbar:i.a.object,toolbarCustomButtons:i.a.array,toolbarClassName:i.a.string,toolbarHidden:i.a.bool,locale:i.a.string,localization:i.a.object,editorClassName:i.a.string,wrapperClassName:i.a.string,toolbarStyle:i.a.object,editorStyle:i.a.object,wrapperStyle:i.a.object,uploadCallback:i.a.func,onFocus:i.a.func,onBlur:i.a.func,onTab:i.a.func,mention:i.a.object,hashtag:i.a.object,textAlignment:i.a.string,readOnly:i.a.bool,tabIndex:i.a.number,placeholder:i.a.string,ariaLabel:i.a.string,ariaOwneeID:i.a.string,ariaActiveDescendantID:i.a.string,ariaAutoComplete:i.a.string,ariaDescribedBy:i.a.string,ariaExpanded:i.a.string,ariaHasPopup:i.a.string,customBlockRenderFunc:i.a.func,wrapperId:i.a.number,customDecorators:i.a.array,editorRef:i.a.func,handlePastedText:i.a.func},to.defaultProps={toolbarOnFocus:!1,toolbarHidden:!1,stripPastedStyles:!1,localization:{locale:"en",translations:{}},customDecorators:[]};var no=to}],r.c=A,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=8);function r(e){if(A[e])return A[e].exports;var t=A[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,A}(t,tL(),cb())),oL.exports);A('.fontXs {\n font-family: "Poppins";\n font-size: 10px;\n}\n\n.fontSm {\n font-family: "Poppins";\n font-size: 12px;\n}\n\n.fontMd {\n font-family: "Poppins";\n font-size: 14px;\n}\n\n.fontLg {\n font-family: "Poppins";\n font-size: 16px;\n}\n\n.fontXL {\n font-family: "Poppins";\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: "Poppins";\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: "Poppins";\n font-size: 8px;\n}\n\n.font-size-10 {\n font-family: "Poppins";\n font-size: 10px;\n}\n\n.font-size-20 {\n font-family: "Poppins";\n font-size: 20px;\n}\n\n.font-size-32 {\n font-family: "Poppins";\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: "Poppins";\n font-size: 80px;\n}\n\n.public-DraftEditor-content {\n min-height: 133px;\n padding: 0 8px;\n}\n\n.rdw-link-modal {\n height: 230px;\n}\n\n.ff-heading-TextEditor-style h1 {\n font-size: 2em;\n font-weight: bolder;\n}\n.ff-heading-TextEditor-style h2 {\n font-size: 1.5em;\n font-weight: bolder;\n}\n.ff-heading-TextEditor-style h3 {\n font-size: 1.17em;\n font-weight: bolder;\n}\n.ff-heading-TextEditor-style h4 {\n font-size: 1em;\n font-weight: bolder;\n}\n.ff-heading-TextEditor-style h5 {\n font-size: 0.83em;\n font-weight: bolder;\n}\n.ff-heading-TextEditor-style h6 {\n font-size: 0.67em;\n font-weight: bolder;\n}\n.ff-heading-TextEditor-style .rdw-right-aligned-block.public-DraftStyleDefault-orderedListItem:before {\n position: relative !important;\n left: 0 !important;\n}\n.ff-heading-TextEditor-style .rdw-left-aligned-block.public-DraftStyleDefault-orderedListItem:before {\n position: relative !important;\n left: 0 !important;\n}\n.ff-heading-TextEditor-style .rdw-center-aligned-block.public-DraftStyleDefault-orderedListItem:before {\n position: relative !important;\n left: 0 !important;\n}\n.ff-heading-TextEditor-style .rdw-justify-aligned-block.public-DraftStyleDefault-orderedListItem:before {\n position: relative !important;\n left: 0 !important;\n}\n.ff-heading-TextEditor-style .rdw-right-aligned-block.public-DraftStyleDefault-unorderedListItem {\n list-style-position: inside;\n}\n.ff-heading-TextEditor-style .rdw-left-aligned-block.public-DraftStyleDefault-unorderedListItem {\n list-style-position: inside;\n}\n.ff-heading-TextEditor-style .rdw-center-aligned-block.public-DraftStyleDefault-unorderedListItem {\n list-style-position: inside;\n}\n.ff-heading-TextEditor-style .rdw-justify-aligned-block.public-DraftStyleDefault-unorderedListItem {\n list-style-position: inside;\n}\n\n.ff-toolbarClass {\n font-size: 12px;\n font-family: OpenSans-Regular, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, poppins;\n}\n\n.rdw-option-wrapper {\n border: 1px solid #f1f1f1;\n padding: 5px;\n min-width: 25px;\n height: 20px;\n border-radius: 2px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n background: white;\n text-transform: capitalize;\n}\n\n.rdw-option-wrapper:hover {\n box-shadow: 1px 1px 0px #bfbdbd;\n}\n\n.rdw-option-wrapper:active {\n box-shadow: 1px 1px 0px #bfbdbd inset;\n}\n\n.rdw-option-active {\n box-shadow: 1px 1px 0px #bfbdbd inset;\n}\n\n.rdw-option-disabled {\n opacity: 0.3;\n cursor: default;\n}\n\n.rdw-dropdown-wrapper {\n height: 30px;\n background: white;\n cursor: pointer;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n margin: 0 3px;\n text-transform: capitalize;\n background: white;\n}\n\n.rdw-dropdown-wrapper:focus {\n outline: none;\n}\n\n.rdw-dropdown-wrapper:hover {\n box-shadow: 1px 1px 0px #bfbdbd;\n background-color: #ffffff;\n}\n\n.rdw-dropdown-wrapper:active {\n box-shadow: 1px 1px 0px #bfbdbd inset;\n}\n\n.rdw-dropdown-carettoopen {\n height: 0px;\n width: 0px;\n position: absolute;\n top: 35%;\n right: 10%;\n border-top: 6px solid black;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n}\n\n.rdw-dropdown-carettoclose {\n height: 0px;\n width: 0px;\n position: absolute;\n top: 35%;\n right: 10%;\n border-bottom: 6px solid black;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n}\n\n.rdw-dropdown-selectedtext {\n display: flex;\n position: relative;\n height: 100%;\n align-items: center;\n padding: 0 5px;\n}\n\n.rdw-dropdown-optionwrapper {\n z-index: 100;\n position: relative;\n border: 1px solid #f1f1f1;\n width: 98%;\n background: white;\n border-radius: 2px;\n margin: 0;\n padding: 0;\n max-height: 250px;\n overflow-y: scroll;\n}\n\n.rdw-dropdown-optionwrapper:hover {\n box-shadow: 1px 1px 0px #bfbdbd;\n background-color: #ffffff;\n}\n\n.rdw-dropdownoption-default {\n min-height: 25px;\n display: flex;\n align-items: center;\n padding: 0 5px;\n}\n\n.rdw-dropdownoption-highlighted {\n background: #f1f1f1;\n}\n\n.rdw-dropdownoption-active {\n background: #f5f5f5;\n}\n\n.rdw-dropdownoption-disabled {\n opacity: 0.3;\n cursor: default;\n}\n\n.rdw-inline-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap;\n}\n\n.rdw-inline-dropdown {\n width: 50px;\n}\n\n.rdw-inline-dropdownoption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n\n.rdw-block-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap;\n}\n\n.rdw-block-dropdown {\n width: 110px;\n}\n\n.rdw-fontsize-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap;\n}\n\n.rdw-fontsize-dropdown {\n min-width: 40px;\n}\n\n.rdw-fontsize-option {\n display: flex;\n justify-content: center;\n}\n\n.rdw-fontfamily-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap;\n}\n\n.rdw-fontfamily-dropdown {\n width: 115px;\n}\n\n.rdw-fontfamily-placeholder {\n white-space: nowrap;\n max-width: 90px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.rdw-fontfamily-optionwrapper {\n width: 140px;\n}\n\n.rdw-list-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap;\n}\n\n.rdw-list-dropdown {\n width: 50px;\n z-index: 90;\n}\n\n.rdw-list-dropdownOption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n\n.rdw-text-align-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap;\n}\n\n.rdw-text-align-dropdown {\n width: 50px;\n z-index: 90;\n}\n\n.rdw-text-align-dropdownOption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n\n.rdw-right-aligned-block {\n text-align: right;\n}\n\n.rdw-left-aligned-block {\n text-align: left !important;\n}\n\n.rdw-center-aligned-block {\n text-align: center !important;\n}\n\n.rdw-justify-aligned-block {\n text-align: justify !important;\n}\n\n.rdw-right-aligned-block > div {\n display: inline-block;\n}\n\n.rdw-left-aligned-block > div {\n display: inline-block;\n}\n\n.rdw-center-aligned-block > div {\n display: inline-block;\n}\n\n.rdw-justify-aligned-block > div {\n display: inline-block;\n}\n\n.rdw-colorpicker-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap;\n}\n\n.rdw-colorpicker-modal {\n position: absolute;\n top: 35px;\n left: 5px;\n display: flex;\n flex-direction: column;\n width: 175px;\n height: 175px;\n border: 1px solid #f1f1f1;\n padding: 15px;\n border-radius: 2px;\n z-index: 100;\n background: white;\n box-shadow: 3px 3px 5px #bfbdbd;\n}\n\n.rdw-colorpicker-modal-header {\n display: flex;\n padding-bottom: 5px;\n}\n\n.rdw-colorpicker-modal-style-label {\n font-size: 15px;\n width: 50%;\n text-align: center;\n cursor: pointer;\n padding: 0 10px 5px;\n}\n\n.rdw-colorpicker-modal-style-label-active {\n border-bottom: 2px solid #0a66b7;\n}\n\n.rdw-colorpicker-modal-options {\n margin: 5px auto;\n display: flex;\n width: 100%;\n height: 100%;\n flex-wrap: wrap;\n overflow: scroll;\n}\n\n.rdw-colorpicker-cube {\n width: 22px;\n height: 22px;\n border: 1px solid #f1f1f1;\n}\n\n.rdw-colorpicker-option {\n margin: 3px;\n padding: 0;\n min-height: 20px;\n border: none;\n width: 22px;\n height: 22px;\n min-width: 22px;\n box-shadow: 1px 2px 1px #bfbdbd inset;\n}\n\n.rdw-colorpicker-option:hover {\n box-shadow: 1px 2px 1px #bfbdbd;\n}\n\n.rdw-colorpicker-option:active {\n box-shadow: -1px -2px 1px #bfbdbd;\n}\n\n.rdw-colorpicker-option-active {\n box-shadow: 0px 0px 2px 2px #bfbdbd;\n}\n\n.rdw-link-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap;\n}\n\n.rdw-link-dropdown {\n width: 50px;\n}\n\n.rdw-link-dropdownOption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n\n.rdw-link-dropdownPlaceholder {\n margin-left: 8px;\n}\n\n.rdw-link-modal {\n position: absolute;\n top: 35px;\n left: 5px;\n display: flex;\n flex-direction: column;\n width: 235px;\n height: 205px;\n border: 1px solid #f1f1f1;\n padding: 15px;\n border-radius: 2px;\n z-index: 100;\n background: white;\n box-shadow: 3px 3px 5px #bfbdbd;\n}\n\n.rdw-link-modal-label {\n font-size: 15px;\n}\n\n.rdw-link-modal-input {\n margin-top: 5px;\n border-radius: 2px;\n border: 1px solid #f1f1f1;\n height: 25px;\n margin-bottom: 15px;\n padding: 0 5px;\n}\n\n.rdw-link-modal-input:focus {\n outline: none;\n}\n\n.rdw-link-modal-buttonsection {\n margin: 0 auto;\n}\n\n.rdw-link-modal-target-option {\n margin-bottom: 20px;\n}\n\n.rdw-link-modal-target-option > span {\n margin-left: 5px;\n}\n\n.rdw-link-modal-btn {\n margin-left: 10px;\n width: 75px;\n height: 30px;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n cursor: pointer;\n background: white;\n text-transform: capitalize;\n}\n\n.rdw-link-modal-btn:hover {\n box-shadow: 1px 1px 0px #bfbdbd;\n}\n\n.rdw-link-modal-btn:active {\n box-shadow: 1px 1px 0px #bfbdbd inset;\n}\n\n.rdw-link-modal-btn:focus {\n outline: none !important;\n}\n\n.rdw-link-modal-btn:disabled {\n background: #ece9e9;\n}\n\n.rdw-link-dropdownoption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n\n.rdw-history-dropdown {\n width: 50px;\n}\n\n.rdw-embedded-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap;\n}\n\n.rdw-embedded-modal {\n position: absolute;\n top: 35px;\n left: 5px;\n display: flex;\n flex-direction: column;\n width: 235px;\n height: 180px;\n border: 1px solid #f1f1f1;\n padding: 15px;\n border-radius: 2px;\n z-index: 100;\n background: white;\n justify-content: space-between;\n box-shadow: 3px 3px 5px #bfbdbd;\n}\n\n.rdw-embedded-modal-header {\n font-size: 15px;\n display: flex;\n}\n\n.rdw-embedded-modal-header-option {\n width: 50%;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n\n.rdw-embedded-modal-header-label {\n width: 95px;\n border: 1px solid #f1f1f1;\n margin-top: 5px;\n background: #6eb8d4;\n border-bottom: 2px solid #0a66b7;\n}\n\n.rdw-embedded-modal-link-section {\n display: flex;\n flex-direction: column;\n}\n\n.rdw-embedded-modal-link-input {\n width: 88%;\n height: 35px;\n margin: 10px 0;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n font-size: 15px;\n padding: 0 5px;\n}\n\n.rdw-embedded-modal-link-input-wrapper {\n display: flex;\n align-items: center;\n}\n\n.rdw-embedded-modal-link-input:focus {\n outline: none;\n}\n\n.rdw-embedded-modal-btn-section {\n display: flex;\n justify-content: center;\n}\n\n.rdw-embedded-modal-btn {\n margin: 0 3px;\n width: 75px;\n height: 30px;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n cursor: pointer;\n background: white;\n text-transform: capitalize;\n}\n\n.rdw-embedded-modal-btn:hover {\n box-shadow: 1px 1px 0px #bfbdbd;\n}\n\n.rdw-embedded-modal-btn:active {\n box-shadow: 1px 1px 0px #bfbdbd inset;\n}\n\n.rdw-embedded-modal-btn:focus {\n outline: none !important;\n}\n\n.rdw-embedded-modal-btn:disabled {\n background: #ece9e9;\n}\n\n.rdw-embedded-modal-size {\n align-items: center;\n display: flex;\n margin: 8px 0;\n justify-content: space-between;\n}\n\n.rdw-embedded-modal-size-input {\n width: 80%;\n height: 20px;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n font-size: 12px;\n}\n\n.rdw-embedded-modal-size-input:focus {\n outline: none;\n}\n\n.rdw-emoji-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap;\n}\n\n.rdw-emoji-modal {\n overflow: auto;\n position: absolute;\n top: 35px;\n left: 5px;\n display: flex;\n flex-wrap: wrap;\n width: 235px;\n height: 180px;\n border: 1px solid #f1f1f1;\n padding: 15px;\n border-radius: 2px;\n z-index: 100;\n background: white;\n box-shadow: 3px 3px 5px #bfbdbd;\n}\n\n.rdw-emoji-icon {\n margin: 2.5px;\n height: 24px;\n width: 24px;\n cursor: pointer;\n font-size: 22px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.rdw-spinner {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n}\n\n.rdw-spinner > div {\n width: 12px;\n height: 12px;\n background-color: #333;\n border-radius: 100%;\n display: inline-block;\n -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;\n animation: sk-bouncedelay 1.4s infinite ease-in-out both;\n}\n\n.rdw-spinner .rdw-bounce1 {\n -webkit-animation-delay: -0.32s;\n animation-delay: -0.32s;\n}\n\n.rdw-spinner .rdw-bounce2 {\n -webkit-animation-delay: -0.16s;\n animation-delay: -0.16s;\n}\n\n@-webkit-keyframes sk-bouncedelay {\n 0%, 80%, 100% {\n -webkit-transform: scale(0);\n }\n 40% {\n -webkit-transform: scale(1);\n }\n}\n@keyframes sk-bouncedelay {\n 0%, 80%, 100% {\n -webkit-transform: scale(0);\n transform: scale(0);\n }\n 40% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n}\n.rdw-image-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap;\n}\n\n.rdw-image-modal {\n position: absolute;\n top: 35px;\n left: 5px;\n display: flex;\n flex-direction: column;\n width: 235px;\n border: 1px solid #f1f1f1;\n padding: 15px;\n border-radius: 2px;\n z-index: 100;\n background: white;\n box-shadow: 3px 3px 5px #bfbdbd;\n}\n\n.rdw-image-modal-header {\n font-size: 15px;\n margin: 10px 0;\n display: flex;\n}\n\n.rdw-image-modal-header-option {\n width: 50%;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n\n.rdw-image-modal-header-label {\n width: 80px;\n background: #f1f1f1;\n border: 1px solid #f1f1f1;\n margin-top: 5px;\n}\n\n.rdw-image-modal-header-label-highlighted {\n background: #6eb8d4;\n border-bottom: 2px solid #0a66b7;\n}\n\n.rdw-image-modal-upload-option {\n width: 100%;\n color: gray;\n cursor: pointer;\n display: flex;\n border: none;\n font-size: 15px;\n align-items: center;\n justify-content: center;\n background-color: #f1f1f1;\n outline: 2px dashed gray;\n outline-offset: -10px;\n margin: 10px 0;\n padding: 9px 0;\n}\n\n.rdw-image-modal-upload-option-highlighted {\n outline: 2px dashed #0a66b7;\n}\n\n.rdw-image-modal-upload-option-label {\n cursor: pointer;\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 15px;\n}\n\n.rdw-image-modal-upload-option-label span {\n padding: 0 20px;\n}\n\n.rdw-image-modal-upload-option-image-preview {\n max-width: 100%;\n max-height: 200px;\n}\n\n.rdw-image-modal-upload-option-input {\n width: 0.1px;\n height: 0.1px;\n opacity: 0;\n overflow: hidden;\n position: absolute;\n z-index: -1;\n}\n\n.rdw-image-modal-url-section {\n display: flex;\n align-items: center;\n}\n\n.rdw-image-modal-url-input {\n width: 90%;\n height: 35px;\n margin: 15px 0 12px;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n font-size: 15px;\n padding: 0 5px;\n}\n\n.rdw-image-modal-btn-section {\n margin: 10px auto 0;\n}\n\n.rdw-image-modal-url-input:focus {\n outline: none;\n}\n\n.rdw-image-modal-btn {\n margin: 0 5px;\n width: 75px;\n height: 30px;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n cursor: pointer;\n background: white;\n text-transform: capitalize;\n}\n\n.rdw-image-modal-btn:hover {\n box-shadow: 1px 1px 0px #bfbdbd;\n}\n\n.rdw-image-modal-btn:active {\n box-shadow: 1px 1px 0px #bfbdbd inset;\n}\n\n.rdw-image-modal-btn:focus {\n outline: none !important;\n}\n\n.rdw-image-modal-btn:disabled {\n background: #ece9e9;\n}\n\n.rdw-image-modal-spinner {\n position: absolute;\n top: -3px;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0.5;\n}\n\n.rdw-image-modal-alt-input {\n width: 70%;\n height: 20px;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n font-size: 12px;\n margin-left: 5px;\n}\n\n.rdw-image-modal-alt-input:focus {\n outline: none;\n}\n\n.rdw-image-modal-alt-lbl {\n font-size: 12px;\n}\n\n.rdw-image-modal-size {\n align-items: center;\n display: flex;\n margin: 8px 0;\n justify-content: space-between;\n}\n\n.rdw-image-modal-size-input {\n width: 40%;\n height: 20px;\n border: 1px solid #f1f1f1;\n border-radius: 2px;\n font-size: 12px;\n}\n\n.rdw-image-modal-size-input:focus {\n outline: none;\n}\n\n.rdw-image-mandatory-sign {\n color: red;\n margin-left: 3px;\n margin-right: 3px;\n}\n\n.rdw-remove-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap;\n}\n\n.rdw-history-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap;\n}\n\n.rdw-history-dropdownoption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n\n.rdw-history-dropdown {\n width: 50px;\n}\n\n.rdw-link-decorator-wrapper {\n position: relative;\n}\n\n.rdw-link-decorator-icon {\n position: absolute;\n left: 40%;\n top: 0;\n cursor: pointer;\n background-color: white;\n}\n\n.rdw-mention-link {\n text-decoration: none;\n color: #1236ff;\n background-color: #f0fbff;\n padding: 1px 2px;\n border-radius: 2px;\n}\n\n.rdw-suggestion-wrapper {\n position: relative;\n}\n\n.rdw-suggestion-dropdown {\n position: absolute;\n display: flex;\n flex-direction: column;\n border: 1px solid #f1f1f1;\n min-width: 100px;\n max-height: 150px;\n overflow: auto;\n background: white;\n z-index: 100;\n}\n\n.rdw-suggestion-option {\n padding: 7px 5px;\n border-bottom: 1px solid #f1f1f1;\n}\n\n.rdw-suggestion-option-active {\n background-color: #f1f1f1;\n}\n\n.rdw-hashtag-link {\n text-decoration: none;\n color: #1236ff;\n background-color: #f0fbff;\n padding: 1px 2px;\n border-radius: 2px;\n}\n\n.rdw-image-alignment-options-popup {\n position: absolute;\n background: white;\n display: flex;\n padding: 5px 2px;\n border-radius: 2px;\n border: 1px solid #f1f1f1;\n width: 105px;\n cursor: pointer;\n z-index: 100;\n}\n\n.rdw-alignment-option-left {\n justify-content: flex-start;\n}\n\n.rdw-image-alignment-option {\n height: 15px;\n width: 15px;\n min-width: 15px;\n}\n\n.rdw-image-alignment {\n position: relative;\n}\n\n.rdw-image-imagewrapper {\n position: relative;\n}\n\n.rdw-image-center {\n display: flex;\n justify-content: center;\n}\n\n.rdw-image-left {\n display: flex;\n}\n\n.rdw-image-right {\n display: flex;\n justify-content: flex-end;\n}\n\n.rdw-image-alignment-options-popup-right {\n right: 0;\n}\n\n.rdw-editor-main {\n height: 100%;\n overflow: auto;\n box-sizing: border-box;\n}\n\n.rdw-editor-toolbar {\n padding: 6px 5px 0;\n border-radius: 2px;\n border: 1px solid #f1f1f1;\n display: flex;\n justify-content: flex-start;\n background: white;\n flex-wrap: wrap;\n font-size: 15px;\n margin-bottom: 5px;\n user-select: none;\n}\n\n.public-DraftStyleDefault-block {\n margin: 1em 0;\n}\n\n.rdw-editor-wrapper:focus {\n outline: none;\n}\n\n.rdw-editor-wrapper {\n box-sizing: content-box;\n}\n\n.rdw-editor-main blockquote {\n border-left: 5px solid #f1f1f1;\n padding-left: 5px;\n}\n\n.rdw-editor-main pre {\n background: #f1f1f1;\n border-radius: 3px;\n padding: 1px 10px;\n}\n\n.DraftEditor-editorContainer,\n.DraftEditor-root,\n.public-DraftEditor-content {\n height: inherit;\n text-align: initial;\n}\n\n.public-DraftEditor-content[contenteditable=true] {\n -webkit-user-modify: read-write-plaintext-only;\n}\n\n.DraftEditor-root {\n position: relative;\n}\n\n.DraftEditor-editorContainer {\n background-color: rgba(255, 255, 255, 0);\n border-left: 0.1px solid transparent;\n position: relative;\n z-index: 1;\n}\n\n.public-DraftEditor-block {\n position: relative;\n}\n\n.DraftEditor-alignLeft .public-DraftStyleDefault-block {\n text-align: left;\n}\n\n.DraftEditor-alignLeft .public-DraftEditorPlaceholder-root {\n left: 0;\n text-align: left;\n}\n\n.DraftEditor-alignCenter .public-DraftStyleDefault-block {\n text-align: center;\n}\n\n.DraftEditor-alignCenter .public-DraftEditorPlaceholder-root {\n margin: 0 auto;\n text-align: center;\n width: 100%;\n}\n\n.DraftEditor-alignRight .public-DraftStyleDefault-block {\n text-align: right;\n}\n\n.DraftEditor-alignRight .public-DraftEditorPlaceholder-root {\n right: 0;\n text-align: right;\n}\n\n.public-DraftEditorPlaceholder-root {\n color: #9197a3;\n position: absolute;\n z-index: 0;\n}\n\n.public-DraftEditorPlaceholder-hasFocus {\n color: #bdc1c9;\n}\n\n.DraftEditorPlaceholder-hidden {\n display: none;\n}\n\n.public-DraftStyleDefault-block {\n position: relative;\n white-space: pre-wrap;\n}\n\n.public-DraftStyleDefault-ltr {\n direction: ltr;\n text-align: left;\n}\n\n.public-DraftStyleDefault-rtl {\n direction: rtl;\n text-align: right;\n}\n\n.public-DraftStyleDefault-listLTR {\n direction: ltr;\n}\n\n.public-DraftStyleDefault-listRTL {\n direction: rtl;\n}\n\n.public-DraftStyleDefault-ol,\n.public-DraftStyleDefault-ul {\n margin: 16px 0;\n padding: 0;\n}\n\n.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listLTR {\n margin-left: 1.5em;\n}\n\n.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listRTL {\n margin-right: 1.5em;\n}\n\n.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listLTR {\n margin-left: 3em;\n}\n\n.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listRTL {\n margin-right: 3em;\n}\n\n.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listLTR {\n margin-left: 4.5em;\n}\n\n.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listRTL {\n margin-right: 4.5em;\n}\n\n.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listLTR {\n margin-left: 6em;\n}\n\n.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listRTL {\n margin-right: 6em;\n}\n\n.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listLTR {\n margin-left: 7.5em;\n}\n\n.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listRTL {\n margin-right: 7.5em;\n}\n\n.public-DraftStyleDefault-unorderedListItem {\n list-style-type: square;\n position: relative;\n}\n\n.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth0 {\n list-style-type: disc;\n}\n\n.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth1 {\n list-style-type: circle;\n}\n\n.public-DraftStyleDefault-orderedListItem {\n list-style-type: none;\n position: relative;\n}\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listLTR:before {\n left: -36px;\n position: absolute;\n text-align: right;\n width: 30px;\n}\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listRTL:before {\n position: absolute;\n right: -36px;\n text-align: left;\n width: 30px;\n}\n\n.public-DraftStyleDefault-orderedListItem:before {\n content: counter(ol0) ". ";\n counter-increment: ol0;\n}\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth1:before {\n content: counter(ol1) ". ";\n counter-increment: ol1;\n}\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth2:before {\n content: counter(ol2) ". ";\n counter-increment: ol2;\n}\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth3:before {\n content: counter(ol3) ". ";\n counter-increment: ol3;\n}\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth4:before {\n content: counter(ol4) ". ";\n counter-increment: ol4;\n}\n\n.public-DraftStyleDefault-depth0.public-DraftStyleDefault-reset {\n counter-reset: ol0;\n}\n\n.public-DraftStyleDefault-depth1.public-DraftStyleDefault-reset {\n counter-reset: ol1;\n}\n\n.public-DraftStyleDefault-depth2.public-DraftStyleDefault-reset {\n counter-reset: ol2;\n}\n\n.public-DraftStyleDefault-depth3.public-DraftStyleDefault-reset {\n counter-reset: ol3;\n}\n\n.public-DraftStyleDefault-depth4.public-DraftStyleDefault-reset {\n counter-reset: ol4;\n}\n\n.required-asterisk {\n color: var(--input-error-text-color);\n}\n\n.ff-texteditor-label-asterisk-container {\n display: flex;\n align-items: center;\n gap: 2px;\n}\n\n.ff-textEditor-error-msg {\n color: var(--input-error-text-color);\n}');A(".no_data_message {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n}");A(".ff-card {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n transition: all 0.3s ease;\n}\n.ff-card .ff-card-header {\n overflow: hidden;\n border-top-left-radius: inherit;\n border-top-right-radius: inherit;\n}\n.ff-card .ff-card-footer {\n overflow: hidden;\n border-bottom-left-radius: inherit;\n border-bottom-right-radius: inherit;\n}\n.ff-card .ff-card-header,\n.ff-card .ff-card-content,\n.ff-card .ff-card-footer {\n width: 100%;\n}\n\n.row {\n color: var(--base-bg-color);\n text-align: center;\n margin: 30px auto;\n}");exports.AADHAAR_REGEX=/^\d{12}$/,exports.ALPHABET_ONLY_REGEX=/^[A-Za-z]+$/,exports.ALPHANUMERIC_REGEX=/^[A-Za-z0-9]+$/,exports.ALPHANUMERIC_WITH_ROUND_BRACES_REGEX=/^[a-zA-Z0-9-_() ]*$/,exports.Accordion=L,exports.AddContentButton=({iconName:t="",onButtonClick:n,buttonLabel:r="Label",buttonText:o="To Add Group",disableButton:A=!1,stepCount:i=1,iconWidth:a=120,iconHeight:l=120})=>e.jsxs("div",{className:"add-content-button "+(A?"disabled":""),children:[!x(t)&&e.jsx("div",{className:"icon-container",children:e.jsx(E,{name:t,width:a,height:l})}),e.jsxs("div",{className:"typography-label-button",children:[e.jsxs(b,{fontSize:"12px",fontWeight:"regular",lineHeight:"18px",children:["step ",i," :"]}),e.jsx(b,{fontSize:"12px",fontWeight:"semi-bold",lineHeight:"18px",children:"Click"}),e.jsx(Gc,{label:r,onClick:n,iconName:"plus_user_icon",isDisable:A}),e.jsx(b,{fontSize:"12px",fontWeight:"semi-bold",lineHeight:"18px",children:o})]})]}),exports.AddResourceButton=({id:r="AddModule",variant:o="primary",directionalArrow:A=[{direction:"right",menuOptions:[{label:"Sub Module",value:"sub_module",icon:"",disable:!1}]}],zIndex:i=99,menuOptionZIndex:a=100,treeRowRef:l,onMenuOptionClick:c})=>{const[s,f]=t.useState(!1),[d,C]=t.useState({left:0,top:0}),[u,p]=t.useState(""),g=t.useRef(null),h=x(m=A)?[{direction:null,menuOptions:[{label:"Sub Module",value:"sub_module",icon:"",disable:!1}]}]:m;var m;const b=G(g,s),w=()=>{u||f(!0);const{positionX:e,positionY:t}=b(g);C({left:e,top:t});const n=g.current?.parentNode;if(null!==l&&n){const e=l?.current?.querySelector(".table-tree-row-action");e?.classList.add("table-row-add-button")}},v=()=>{f(!1),p("");const e=g.current?.parentNode;if(null!==l&&e){const e=l?.current?.querySelector(".table-tree-row-action");e?.classList.remove("table-row-add-button")}};return e.jsxs("div",{className:"ff-add-button-container "+(s&&!u?`ff-hovered-add-button--${o}`:""),id:r,onMouseEnter:w,onMouseLeave:v,ref:g,children:[e.jsx("span",{className:"ff-add-button",children:e.jsx(E,{name:"plus_icon",width:16,height:16,className:s?`ff-hovered-add-icon--${o}`:`ff-add-icon--${o}`})}),s&&n.createPortal(e.jsx("div",{id:"portal-123",className:`ff-arrow-buttons-container ff-${h.map((e=>e.direction)).sort().join("-")}`,onMouseEnter:w,onMouseLeave:v,style:{left:d.left,top:d.top,zIndex:i},children:A.map((({direction:t,menuOptions:n},r)=>e.jsx(sr,{direction:t,onArrowClick:()=>(e=>{u===e?(p(""),f(!1)):(p(e),f(!0))})(t),menuOptions:n,isActive:u===t,variant:o,treeRowRef:l,onMenuOptionClick:c,menuOptionZIndex:a},r)))}),document.body)]})},exports.AiToggle=({onChange:t,disabled:n,checked:r=!1,id:o="toggle",path:A})=>e.jsxs("div",{className:"ff--ai-switch-container",children:[e.jsx("input",{className:"ff--ai-switch-checkbox",id:`ff-toggle-${o}`,type:"checkbox",disabled:!!n,onChange:e=>{t&&t(e)},checked:r}),e.jsx("label",{className:d("ff--ai-switch-label",{"ff--ai-switch-label--disabled":n}),htmlFor:`ff-toggle-${o}`,children:e.jsx("span",{className:"ff--ai-switch-content",children:e.jsxs("span",{className:"ff--ai-switch-content",children:[e.jsx(b,{className:d("ff--ai-switch-typography",{left:r,right:!r}),as:"div",fontWeight:"bold",fontSize:18,color:r?"var(--base-bg-color)":"var(--ff-ai-toggle-text-color)",children:"AI"}),e.jsx("img",{className:"ff--ai-switch-image",src:A,alt:"AI image"})]})})})]}),exports.AllProjectsDropdown=Uc,exports.AppHeader=({logoIconName:n="fireflink_icon",width:r,borderRadius:o,leftContent:A,rightContent:i,projectsList:a,appHeaderMenuItems:l,appHeaderHiddenMenuItems:c,selectedMenu:s,selectedSubMenu:f,selectedQuickMenu:C,selectedProject:u={label:"",value:"",iconName:""},onMenuClick:p=()=>{},onSubMenuClick:g=()=>{},onQuickMenuClick:h=()=>{},onProjectMenuClick:m=()=>{},onProjectDropdownLabelClick:w=()=>{},onMoreMenuOptionClick:v=()=>{},disabled:B=!1})=>{const I=t.useRef(null),L=t.useRef(null),[y,Q]=t.useState(a);t.useEffect((()=>{a!==y&&Q(a)}),[a,y]);return e.jsx("div",{className:d("ff-app-header-main",{"ff-app-header-disabled":B}),children:e.jsxs("div",{className:"ff-app-header",style:{borderStartStartRadius:o,borderStartEndRadius:o},children:[e.jsxs("div",{className:"ff-app-header-left-container",children:[e.jsx("div",{className:"ff-app-header-logo-icon",children:e.jsx(E,{color:"",name:n,height:24,width:21})}),A&&e.jsx("div",{className:"ff-app-header-left-content",children:A})]}),!x(l)&&e.jsxs("div",{className:"ff-app-header-nav-bar",style:{width:r},children:[y&&!x(y)&&e.jsx("div",{children:e.jsx(Uc,{onClick:e=>{B||m(e)},options:y,selectedOption:u,onMenuClick:()=>{B||w()},selected:"All Projects"===s,placeholder:"Search Projects",disabled:B})}),e.jsx("div",{className:"ff-app-header-nav-bar-items fontSm",children:l.map((t=>!c?.find((e=>e.label===t.label))&&!t.hide&&!("No Access"===t.access)&&"All Projects"!==t.label&&e.jsxs("div",{className:d("ff-app-header-nav-bar-item",{"ff-app-header-nav-bar-item--selected":t.label===s,"ff-app-header-nav-bar-item--disabled":B}),children:[e.jsx(b,{as:"div",className:"ff-app-header-nav-bar-item-label",lineHeight:"18px",onClick:()=>(e=>{B||p(e)})(t),children:t.label}),t.label===s&&t?.subMenuItems&&e.jsxs(e.Fragment,{children:[t.subMenuItems.map((t=>e.jsx(e.Fragment,{children:!t.hide&&e.jsx("div",{className:"ff-app-header-submenu-container",children:e.jsx(b,{as:"div",className:d("ff-app-header-nav-bar-submenu-item",{"ff-app-header-nav-bar-submenu-item--selected":t.label===f,"ff-app-header-nav-bar-submenu-item--disabled":B}),lineHeight:"18px",onClick:()=>(e=>{B||g(e)})(t),children:t.label})},t.label)}))),t.subMenuItems.map((t=>e.jsx(e.Fragment,{children:!t.hide&&e.jsx("div",{className:"ff-app-header-submenu-container",children:t.label===f&&t?.quickMenuItems&&t?.quickMenuItems.length>0&&(()=>{const n=t.quickMenuItems.slice(0,8),r=t.quickMenuItems.slice(8),o=r.map((e=>({...e,value:e.path,icon:e.iconName})));return e.jsxs("div",{className:d("ff-app-header-quickmenu-container",t.quickMenuItems?.length?"visible":""),children:[e.jsx("div",{children:e.jsx(E,{name:"vertical_separator"})}),n.map((t=>e.jsx(e.Fragment,{children:!t.hide&&e.jsx("div",{onClick:()=>(e=>{B||h(e)})(t),className:d("ff-app-header-nav-bar-quickmenu-item",{"ff-app-header-nav-bar-quickmenu-item--selected":t.path===C}),children:e.jsx(M,{title:t?.label,children:e.jsx(E,{name:t.iconName,height:16,width:16,hoverEffect:!0})})},t.iconName)}))),r&&!x(r)&&e.jsx("div",{ref:L,children:e.jsx(te,{iconName:"more",options:o,onOptionClick:h,dropdownPlacement:"down",zIndex:1001,tooltipTitle:"More",variant:"light",targetRef:L})})]})})()},t.label)})))]})]},t.label)))}),c&&!x(c)&&e.jsx("div",{className:"more-menu",ref:I,children:e.jsx(te,{iconName:"more",options:c,onOptionClick:e=>{B||v(e)},variant:"dark",dropdownPlacement:"down",zIndex:1001,tooltipTitle:"More",optionCardVariant:"default",targetRef:I,disabled:B})})]}),i&&e.jsx("div",{className:"ff-app-header-right-content",children:i})]})})},exports.AttachImage=({imageSrc:t,onExpandClick:n,onDeleteClick:r,onDownloadClick:o,height:A="75px",width:i="79px"})=>e.jsx("div",{className:"ff-attach-image-container",style:{height:A,width:i},children:e.jsxs("div",{className:"ff-image-wrapper",style:{height:A,width:i},children:[e.jsx("img",{src:t,alt:"Attached"}),e.jsxs("div",{className:"ff-hover-icons",children:[e.jsxs("div",{className:"ff-top-icons",children:[e.jsx("div",{className:"ff-icon-container",children:e.jsx(M,{title:"Download File",placement:"bottom",children:e.jsx(E,{name:"download_file_icon",height:10,width:10,onClick:o,color:"var(--icons-default-color)"})})}),e.jsx("div",{className:"ff-icon-container",children:e.jsx(M,{title:"Delete",placement:"bottom",children:e.jsx(E,{name:"delete",height:10,width:10,color:"var(--ff-delete-button-attachment)",onClick:r})})})]}),e.jsx("div",{className:"ff-expand-icon-container",children:e.jsx(M,{title:"Maximize",placement:"bottom",children:e.jsx(E,{name:"expand_icon",height:16,width:16,onClick:n})})})]})]})}),exports.AttachmentButton=nf,exports.Avatar=({variant:t="small",iconName:n,iconColor:r="var(--avatar-icon-color)",customAvatarSize:o,customIconSize:A,backgroundColor:i,label:a,labelFontSize:l})=>{const c=a?.slice(0,2);return e.jsx("div",{className:`ff-avatar ff-avatar--${t}`,style:{height:`${o}px`,width:`${o}px`,backgroundColor:i},children:a?e.jsx("span",{className:"ff-avatar-label",style:{fontSize:l||"14px",color:r},children:c}):e.jsx(E,{name:n,height:A,width:A,color:r})})},exports.BASE64_REGEX=/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/,exports.BINARY_NUMBER_REGEX=/^[01]+$/,exports.BarChart=({data:n,barWidth:r,height:o,barGap:A=20,colors:i=[],xAxisLabel:a,isTruncateText:l=!0,yAxisLabel:c,padding:s=20,yAxisDivisions:f=5,barBorderRadius:d=0,legend:C=!0,showXAxisLabels:u=!0,icons:p=[],iconSize:g,legendPosition:h="bottom",legendGap:m=5,extendBarChartRightWidth:w=0,isYAxisValuePercentage:v=!1,selectedBar:B,setSelectedBar:I,onSelectedBar:x=e=>{},totalLabel:M="Total Execution",customToolTip:L=!1,isOnclick:y=!1,isDashboardVersions:Q,type:D=""})=>{const k=t.useRef(null),[V,Z]=t.useState(null),j=n.map((e=>{if("string"==typeof e.value){let t=0;return t="memory"===D?Fp(e.value):parseFloat(e.value),{...e,normalizedValue:t}}return{...e,normalizedValue:e.value}}));let N=0;"memory"===D&&(N=n.reduce(((e,t)=>"string"==typeof t.value?e+Op(t.value):e+1024*Number(t.value)*1024*1024),0));const z=N/1048576,P=z<1024?`${Math.round(z)} mb`:`${(z/1024).toFixed(1)} gb`;let S=Math.max(...j.map((e=>e.normalizedValue)));S="memory"===D?Math.max(S,1):Math.max(S,f);const O=40,F=j.length*r+(j.length-1)*A+80+10+w,T=Date.now(),R=e=>i?.[e%i.length]?.[0]?`url(#gradient-${T}-${D}-${e%i.length})`:"grey",G=(e,t,n,r,o)=>{const A=k.current;if(A)if(A.style.display="block",L)A.innerHTML=`<div>\n <div><Typography fontWeight='semi-bold'>${e}</Typography></div>\n <div><Typography>${n||""}</Typography></div>\n <div><Typography>${M} : ${t} ${r?"("+r+"%)":""}</Typography></div>\n </div>`;else if(Q){const e=o?o.join(", "):"";A.innerHTML=`\n <div>\n <div><Typography>${M} : ${t}</Typography></div>\n ${e?`<div><Typography>Versions : ${e}</Typography></div>`:""}\n </div>`}else A.innerHTML="memory"===D?`<strong>${e}</strong>: ${t} / ${P}`:`<strong>${e}</strong>: ${t} ${v?"%":""}`},X=(e,t=!1)=>{const n=k.current;if(n){const r=n.parentElement?.getBoundingClientRect(),o=window.scrollX,A=window.scrollY,i=t?e.clientX-(r?.left||0)+o-n.offsetWidth-10:e.clientX-(r?.left||0)+o+10,a=e.clientY-(r?.top||0)+A-20;n.style.left=`${i}px`,n.style.top=`${a}px`}},Y=()=>{const e=k.current;e&&(e.style.display="none")};return e.jsxs("div",{className:"ff-bar-chart-container",style:{width:F},children:[e.jsx("div",{ref:k,className:"ff-bar-chart-tooltip"}),C&&"top"===h&&e.jsx("div",{className:"ff-legend-container",children:e.jsx("div",{className:"ff-bar-chart-legend",style:{gap:`${m}px`},children:j.map(((t,n)=>e.jsxs("div",{className:"ff-bar-chart-legend-item",onMouseEnter:()=>Z(n),onMouseLeave:()=>Z(null),children:[p[n]&&"string"==typeof p[n]?e.jsx(E,{name:String(p[n]),width:g,height:g}):e.jsx("span",{className:"ff-bar-chart-legend-item-circle",style:{backgroundColor:i[n%i.length]?.[0]||"grey"}}),e.jsx(b,{as:"div",fontSize:10,fontWeight:"regular",className:"ff-legend-label",children:t.label})]},t.label)))})}),e.jsx("div",{children:e.jsxs("svg",{width:F,height:o+O+5+(u?20:0)+(a?20:0),children:[Array.isArray(i)&&i.length>0&&(U=i,U.map(((t,n)=>e.jsx("defs",{children:e.jsx("linearGradient",{id:`gradient-${T}-${D}-${n}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:t.map(((r,o)=>e.jsx("stop",{offset:o/(t.length-1)*100+"%",stopColor:r},`${n}-${o}`)))})},n)))),Array.from({length:f+1}).map(((t,n)=>{const r=o-n/f*o+O+4,A=n*S/f,i="memory"===D?A.toFixed(1):v?`${A.toFixed(0).padStart(2,"0")}%`:A.toFixed(0).padStart(2,"0");return e.jsx("text",{x:40,y:r,fill:"black",textAnchor:"middle",className:"ff-bar-chart-labels",children:i},n)})),j.map(((t,n)=>{const i=t.normalizedValue/S*o,a=0===t.normalizedValue?2:i,c=n*(r+A)+40+s,f=o-a+O,C=g||20,h=c+r/2-C/2,m=f-C,b=B===t.label,w=V===n;return e.jsxs("g",{children:[p[n]&&"string"==typeof p[n]&&e.jsx("g",{onMouseEnter:()=>G(t.label,"memory"===D?t.value:t.normalizedValue,t.id,t.percent,t.versions),onMouseMove:e=>X(e,n===j.length-1),onMouseLeave:Y,children:e.jsx(E,{name:String(p[n]),x:String(h),y:String(m),width:C,height:C,chartIcon:!0})}),e.jsx("rect",{x:c,y:f,width:r,height:a,fill:R(n),rx:d,ry:d,style:{strokeWidth:b?3:0,opacity:null===V||w?1:.3,cursor:y?"pointer":"default",transition:"opacity 0.5s ease"},onMouseEnter:()=>G(t.label,"memory"===D?t.value:t.normalizedValue,t.id,t.percent,t.versions),onMouseMove:e=>X(e,n===j.length-1),onMouseLeave:Y,onClick:()=>{return e=t.label,void(I&&(I(e),y&&x(e)));var e}}),b&&y&&e.jsx("rect",{x:c,y:f,width:r,height:a,fill:"var(--select-chart-highlight-color)",rx:d,ry:d,onMouseEnter:()=>G(t.label,"memory"===D?t.value:t.normalizedValue,t.id,t.percent,t.versions),onMouseMove:e=>X(e,n===j.length-1),onMouseLeave:Y}),u&&e.jsx("text",{x:0===n?c:n===j.length-1?c+r:c+r/2,y:o+O+15,className:"ff-bar-chart-labels",fill:b?"var(--brand-color)":"black",fontWeight:b?"bold":"normal",textAnchor:0===n?"start":"middle",children:l?H(t.label,10):t.label})]},n)})),e.jsx("line",{x1:60,y1:o+O,x2:F,y2:o+O,stroke:"#D9D9D9",strokeWidth:"1"}),a&&e.jsx("text",{x:F/2,y:o+O+(u?40:20),fontSize:"12",fill:"black",textAnchor:"middle",className:"ff-bar-chart-labels",children:a}),c&&e.jsx("text",{x:-(o/2+35),y:10,transform:"rotate(-90)",fill:"black",textAnchor:"middle",alignmentBaseline:"middle",className:"ff-bar-chart-labels",children:c})]})}),C&&"bottom"===h&&e.jsx("div",{className:"ff-legend-container",children:e.jsx("div",{className:"ff-bar-chart-legend",style:{gap:`${m}px`},children:n.map(((t,n)=>e.jsxs("div",{className:"ff-bar-chart-legend-item",onMouseEnter:()=>Z(n),onMouseLeave:()=>Z(null),children:[p[n]&&"string"==typeof p[n]?e.jsx(E,{name:String(p[n]),width:g,height:g}):e.jsx("span",{className:"ff-bar-chart-legend-item-circle",style:{backgroundColor:i[n%i.length]?.[0]||"grey"}}),e.jsx("div",{children:e.jsx(b,{as:"div",fontSize:10,fontWeight:"regular",className:"ff-legend-label",children:t.label})})]},t.label)))})})]});var U},exports.Box=({cardProperties:t={width:"200px",height:"200px",background:"white",borderRadius:"16px",boxShadow:"1px 4px 8px var(--plugins-header-bg-color)",padding:"16px",margin:"0",border:"none",className:"",style:{},onClick:()=>{}},headerContent:n,midContent:r,footerContent:o})=>{const{width:A,height:i,background:a,borderRadius:l,boxShadow:c,padding:s,margin:f,border:d,className:C="",style:u={}}=t;return e.jsxs("section",{className:`ff-card ${C}`,style:{width:A,height:i,background:a,borderRadius:l,boxShadow:c,padding:s,margin:f,border:d,...u},onClick:t.onClick,children:[n?.isHeader&&e.jsx("div",{className:"ff-card-header",children:n.content}),r?.isMidContent&&e.jsx("div",{className:"ff-card-content",children:r.content}),o?.isFooter&&e.jsx("div",{className:"ff-card-footer",children:o.content})]})},exports.BrowserTabs=({tabsData:n,activeTabId:r,onTabClick:o,onTabClose:A,onTabAdd:i,maxTabWidth:a=132,showCloseOnActive:l=!0})=>{const c=t.useRef(null),[s,f]=t.useState();return t.useEffect((()=>{const e=()=>{if(c.current){const e=(c.current.getBoundingClientRect().width-a)/n.length;f(Math.min(a,e))}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[n.length,a]),e.jsx("div",{className:"ff-browser-tabs-container",ref:c,children:e.jsxs("div",{className:"ff-browser-tab-row",children:[e.jsx("div",{className:"ff-tab-button-container",children:n.map(((t,i)=>{const c=r===t.id,f=s&&s<80;return e.jsxs("div",{className:d("ff-tab-wrapper",{active:c}),children:[e.jsx(M,{title:f?t.label:"",children:e.jsx("button",{onClick:()=>o(t.id),className:d("ff-tab-button",{shrink:s&&s<=80}),style:{width:s?`${s}px`:"auto",padding:void 0===s||s<60?"0px":s<80?"0px 2px":s<132?"0px 8px":`0px ${s/17}px`},children:e.jsxs("div",{className:"ff-tab-content",children:[s&&s>=20&&(!c||s>=80)&&e.jsx(e.Fragment,{children:t.tabIconSrc?e.jsx("img",{src:t.tabIconSrc,alt:t.label,className:"ff-tab-icon"}):t.tabIcon&&e.jsx(E,{name:t.tabIcon,hoverEffect:!1,color:"inherit"})}),s&&s>40&&e.jsx("div",{className:"ff-tab-label-container",children:e.jsx(b,{children:t.label,lineHeight:"18px",fontWeight:c?"semi-bold":"regular",color:c?"var(--tabs-label-active-color)":"var(--tabs-label-default-color)",className:"ff-tab-label"})}),(s&&s>=80||c)&&l&&e.jsx(M,{title:"Close ",children:e.jsx(E,{name:"close",className:"ff-close-icon",hoverEffect:!1,height:10,width:10,onClick:e=>{e.stopPropagation(),A&&A(t.id)}})})]})})}),s&&s<a&&!(c||i===n.length-1||r===n[0]?.id&&0===i||r===n[i+1]?.id)&&e.jsx("span",{className:"ff-tab-separator "+(s>80?"wide-browser-tab":"narrow-browser-tab")})]},t.id)}))}),e.jsx(M,{title:"Add",children:e.jsx("div",{className:"ff-tab-plus-icon",onClick:i,children:e.jsx(E,{name:"add_file",color:"#71347B",width:10,height:10})})})]})})},exports.Button=w,exports.CAMEL_CASE_REGEX=/(?:^\w|[A-Z]|\b\w|\s+)/g,exports.CERTIFICATES_NAME_REGEX=/^[^:;/\\@()=?{}[\]<>,.]*$/,exports.CREDIT_CARD_REGEX=/^\d{4}-?\d{4}-?\d{4}-?\d{4}$/,exports.CURRENCY_GENERIC_REGEX=/^[\u0024-\u20B9]?\d+(,\d{3})*(\.\d{1,2})?$/,exports.ChatModal=({iconName:r,iconPosition:{top:o,left:A,bottom:i,right:a},hoverIconPosition:{top:l,left:c,bottom:s,right:f},modalPosition:{top:C,left:u,bottom:p,right:g},modalWidth:h,modalHeight:m,headerContent:w="Header Content",footerContent:v="Footer Content",iconWidth:B,iconHeight:I,modalHeading:x="Ask Fia",children:L,onClearChat:y})=>{const[Q,H]=t.useState(!1),[D,k]=t.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{top:void 0!==o?`${o}px`:void 0,left:void 0!==A?`${A}px`:void 0,bottom:void 0!==i?`${i}px`:void 0,right:void 0!==a?`${a}px`:void 0},className:"ff-dynamic-icon-container",children:[e.jsx(E,{className:"ff-dynamic-icon",name:r,onClick:()=>{k((e=>!e)),setTimeout((()=>H((e=>!e))),10)},height:I,width:B}),e.jsx("div",{style:{top:void 0!==l?`${l}px`:void 0,left:void 0!==c?`${c}px`:void 0,bottom:void 0!==s?`${s}px`:void 0,right:void 0!==f?`${f}px`:void 0},className:"ff-chat-icon-hover",children:e.jsx(E,{name:"ask_fia_icon",height:32,width:82})})]}),D&&n.createPortal(e.jsx("div",{className:d("ff-dynamic-modal",{open:Q}),style:{top:void 0!==C?`${C}px`:void 0,left:void 0!==u?`${u}px`:void 0,bottom:void 0!==p?`${p}px`:void 0,right:void 0!==g?`${g}px`:void 0,position:"fixed",height:m,width:h},children:e.jsxs("div",{className:"ff-dynamic-modal-content",children:[w&&e.jsx("div",{className:"ff-dynamic-modal-header",children:e.jsxs("div",{className:"header-container",children:[e.jsxs("div",{className:"header-left",children:[e.jsx(E,{height:16,width:16,name:"fia_icon"}),e.jsx(b,{fontWeight:"medium",children:x})]}),e.jsxs("div",{className:"header-right",children:[e.jsx("span",{className:"action",children:e.jsx(M,{title:"Clear chat",placement:"top",children:e.jsx(E,{height:16,width:16,name:"delete",color:"var(--tooltip-text-color)",onClick:y})})}),e.jsx("span",{className:"action",children:e.jsx(M,{title:"Close",placement:"top",children:e.jsx(E,{height:16,width:16,name:"close",color:"var(--tooltip-text-color)",onClick:()=>(H(!1),void setTimeout((()=>k(!1)),300))})})})]})]})}),e.jsx("div",{className:"ff-dynamic-modal-body",children:L}),v&&e.jsx("div",{className:"ff-dynamic-modal-footer",children:v})]})}),document.body)]})},exports.Checkbox=Q,exports.Chip=({label:n="",fullText:r="",variant:o="primary",labelWidth:A=36,fullTextWidth:i=86,onClick:a=()=>{}})=>{const[l,c]=t.useState(!1),s=l&&r?r:n,f=l?{maxWidth:`${i}px`,transition:"transform 0.3s ease-in-out,max-width 0.5s ease-in-out",overflow:"hidden"}:{maxWidth:`${A}px`,transition:"transform 0.3s ease-in-out,max-width 0.5s ease-in-out",overflow:"hidden"};return e.jsx("div",{className:"ff-chip-wrapper",children:e.jsx("button",{onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onClick:a,className:d(`ff-default-chip-style ff-default-chip-style--${o}`,{"ff-default-chip-style--fullText":!!r}),style:f,children:s&&e.jsx(b,{as:"p",fontSize:10,fontWeight:"semi-bold",color:"var(----text-color)",className:"ff-chip-paragraph",children:s})})})},exports.ChipWithCount=({labelsList:t=[]})=>{const n=e.jsx("div",{className:"ff-chip-tooltip",children:t.map(((t,n)=>n>0?e.jsx(b,{as:"div",children:t,className:"ff-chip-tooltip-label"},n):null))});return e.jsx(e.Fragment,{children:!x(t)&&e.jsxs("div",{className:"ff-chip-with-count-container",children:[e.jsx(M,{title:t[0],children:e.jsx(b,{as:"div",children:H(t[0]||"",10),className:"ff-chip-label",fontWeight:"medium"})}),t.length>1&&e.jsx(M,{title:e.jsx(b,{as:"div",children:n}),children:e.jsx(b,{as:"div",children:"+"+(t.length-1),className:"ff-chip-count",fontWeight:"medium"})})]})})},exports.ChooseFile=({variant:t="primary",size:n="small",onClick:r,label:o="Choose File",disabled:A=!1,type:i="button",className:a="",style:l={},iconName:c,isChooseFile:s=!1,buttonWidth:f="auto",buttonHeight:d="auto",selectedFile:C={},handleCloseIcon:u})=>e.jsx("div",{children:e.jsx(w,{variant:t,label:o,type:i,onClick:r,buttonWidth:f,buttonHeight:d,isChooseFile:s,size:n,disabled:A,className:a,iconName:c,style:l,iconPosition:"right",selectedFile:C,handleCloseIcon:u})}),exports.Col=({children:t,size:n=12,className:r=""})=>{const o=`ff-col-${n}`;return e.jsx("div",{className:d(o,r),children:t})},exports.Comments=({commentsData:n,handleAddComment:r,handleEditComment:o,handleDeleteComment:A,onCommentsDataChange:i,currentUser:a,isDisable:l=!1})=>{const[c,s]=t.useState(""),[f,d]=t.useState([]),C=(e,t)=>{for(const n of e){if(n.id===t)return n;const e=C(n.comments,t);if(e)return e}return null};t.useEffect((()=>{n&&d(n)}),[n]);const{insertNode:u,editNode:p,deleteNode:g}=(()=>{const e=(t,n,r)=>t.map((t=>t.id===n?{...t,comments:[...t.comments,{id:Js(),description:r.description,comments:[],createdBy:t.createdBy,modifiedBy:t.modifiedBy,createdByUname:t.createdByUname,modifiedByUname:t.modifiedByUname,createdOn:(new Date).toLocaleString(),modifiedOn:(new Date).toLocaleString(),commentParentId:n}]}:{...t,comments:e(t.comments,n,r)})),t=(e,n,r)=>e.map((e=>({...e,description:e.id===n?r:e.description,comments:t(e.comments,n,r)}))),n=(e,t)=>e.filter((e=>e.id!==t)).map((e=>({...e,comments:n(e.comments,t)})));return{insertNode:e,editNode:t,deleteNode:n}})(),h=(e,t)=>{if(!t.trim())return;const n={id:Js(),description:t,commentParentId:e,emailId:[],comments:[],createdBy:a?.createdBy,modifiedBy:a?.modifiedBy,createdByUname:a?.createdByUname,modifiedByUname:a?.modifiedByUname,createdOn:(new Date).toISOString(),modifiedOn:(new Date).toISOString()};d((t=>u(t,e,n))),r&&r(n,C(f,e))},m=t.useCallback(((e,t)=>{const n=p(f,e,t);d(n);const r=C(n,e);o&&o(e,t,r)}),[f,p,o]),w=t.useCallback((e=>{const t=g(f,e);d(t),A&&A(e)}),[f,g,A]);t.useEffect((()=>{i&&i(f)}),[f,i]);return e.jsxs("div",{className:"ff-comments-container-box",children:[e.jsxs("div",{className:"first-comment",children:[e.jsx(b,{fontWeight:"semi-bold",className:"ff-comment-heading",children:"Comments"}),e.jsxs("div",{className:"input-wrapper",children:[e.jsx("textarea",{className:"inputContainer__input first_input",rows:1,autoFocus:!0,value:c,onChange:e=>s(e.target.value),placeholder:"Add Comments",disabled:l}),e.jsx("span",{className:"reply-comment",children:e.jsx(M,{title:"reply",children:e.jsx(E,{name:"comment_reply",onClick:()=>{if(!c.trim())return;const e={id:Js(),description:c,comments:[],createdBy:a?.createdBy,modifiedBy:a?.modifiedBy,createdByUname:a?.createdByUname,modifiedByUname:a?.modifiedByUname,createdOn:(new Date).toISOString(),modifiedOn:(new Date).toISOString(),commentParentId:""};d((t=>[...t,e])),r&&r(e,null),s("")},hoverEffect:!0,disabled:l})})})]})]}),f.length>0&&f.map((t=>e.jsx(im,{handleInsertNode:h,handleEditNode:m,handleDeleteNode:w,comment:t,depth:0,isDisable:l},t.id)))]})},exports.ConditionalDropdown=cm,exports.ConnectingBranch=({data:n,getChildNodeComponent:r,getParentNodeComponent:o,getParentNodeComponentActionItems:A,childNodeCurveHeight:i=1.28,isReadOnlyMode:a=!1})=>{const l=t.useRef(null),[c,s]=t.useState(0),[f,d]=t.useState([]),C=t.useRef([]);t.useEffect((()=>{l.current&&s(l.current.offsetHeight)}),[n]);t.useEffect((()=>{(()=>{const e=C.current.map(((e,t)=>0===t?0:c*i));d(e)})()}),[c,n]);const u=e=>1+(e.machineInstances?.length+1||0);let p=1;const g=n?.machines?.selectedMachines.reduce(((e,t)=>a?e+(e=>!e?.machineInstances||x(e.machineInstances)?1:e.machineInstances.length)(t):e+u(t)),0),h=Math.round(g/2);let m=1===h&&a&&2===g||1===h&&!a&&2===g;return e.jsx("div",{className:"connecting-branch-container",children:e.jsx(om.ArcherContainer,{strokeColor:"var(--brand-color)",strokeWidth:1,startMarker:!0,endMarker:!1,noCurves:!0,children:e.jsxs("div",{className:"ff-connecting-branch-grid-container",children:[e.jsx(om.ArcherElement,{id:"rootNode",children:e.jsx("div",{className:"ff-grid-item ff-dynamic-item",style:{gridRow:h,top:m?"44px":""},children:e.jsx("div",{className:"ff-script-count-container",children:e.jsxs("div",{className:"ff-script-count-box",children:[e.jsx(b,{children:n?.machines?.totalNoScript}),e.jsx(b,{children:"Scripts"})]})})})}),n?.machines?.selectedMachines.map(((n,i)=>{const s=p,d=u(n);p+=d;const g=((e,t,n)=>{if(1===e.length&&a)return 0;const r=e.reduce(((t,n,r)=>t+(r===e.length-1&&a?0:n.runLevelExecutionDataSets?.length||0)),0);return r*(t+n)})(n?.machineInstances,c,16);return e.jsx(t.Fragment,{children:e.jsxs("div",{className:"ff-selectedMachines",style:{gridRow:`${s} / span ${d}`},children:[e.jsx("div",{className:"ff-selectedMachines-input",children:e.jsxs("div",{className:"ff-input-box-container "+(n?.machineInstances.length?"":"ff-input-box-aligned"),children:[e.jsx(om.ArcherElement,{id:`parentnode${i}`,relations:[{targetId:"rootNode",targetAnchor:"left",sourceAnchor:"left"}],children:o({isMultiSelect:!1,parentNodeData:n,parentNodeIndex:i})},Js()),A({parentNodeData:n,parentNodeIndex:i})]})}),e.jsx(Am,{parentNodeIndex:i,parentNodeData:n,verticalLineHeight:g,datasetHeight:c,curveHeights:f,itemRefs:C,datasetRef:l,getChildNodeComponent:r,isReadOnlyMode:a})]})},Js())})),!a&&e.jsx("div",{className:"ff-select-machine-input",style:{gridRow:`${p}`},children:e.jsx(om.ArcherElement,{id:"lastNode",relations:[{targetId:"rootNode",targetAnchor:"left",sourceAnchor:"left"}],children:e.jsx("div",{children:o({isMultiSelect:!0})})})})]})})})},exports.Container=({children:t,fluid:n=!1,gap:r="0px",className:o=""})=>{const A=n?"ff-container-fluid":"ff-container";return e.jsx("div",{className:d(A,o),style:{gap:r},children:t})},exports.CreateVariableSlider=({isOpen:t,variableTypesList:n=[],onClose:r,onNameChange:o,onValueChange:A,variableName:i,value:a,onVariableTypeChange:l,selectedVariableType:c,hideValue:s=!1,onHideChange:f,handleSubmit:d,mode:C="create",disabled:u})=>e.jsx(I,{onClose:r,isOpen:t,title:"create"===C?"Create Variable":"Edit Variable",width:"284px",height:"272px",top:"30%",right:8,isFooterRequired:!0,overlay:!0,footerContent:e.jsx((()=>e.jsxs("div",{className:"ff-create-slider-footer",children:[e.jsx(w,{onClick:r,label:"Cancel",variant:"tertiary"}),e.jsx(w,{variant:"primary",label:"create"===C?"Create":"Edit",type:"submit",onClick:d,disabled:x(i)})]})),{}),children:e.jsxs("div",{className:"ff-create-variable-slider",children:[e.jsx(z,{label:"Variable Name",required:!0,type:"text",name:"variable name",value:i||"",onChange:e=>o(e.target.value)}),e.jsx(X,{label:"Variable Type",required:!0,onChange:e=>l(e),selectedOption:c,optionsList:n,optionZIndex:99999}),e.jsx(z,{label:"Variable Value",type:s?"password":"text",name:"value",value:"create"===C?i:a||"",onChange:e=>A(e.target.value)}),e.jsxs("div",{className:"ff-hide-value-content",children:[e.jsx(Q,{onChange:e=>f(e.target.checked),name:"hide value",label:"Hide Value",checked:s,disabled:u}),e.jsx(M,{title:"Once the value is hidden, it cannot be undone",children:e.jsx(E,{name:"info",width:12,height:12})})]})]})}),exports.DATE_REGEX=/^\d{4}-\d{2}-\d{2}$/,exports.DECIMAL_NUMBER_REGEX=/^-?\d+(\.\d+)?$/,exports.DRIVING_LICENSE_REGEX=/^[A-Z]{2}-\d{2}-\d{4}-\d{7}$/,exports.DYNAMIC_VALUE_PATTERN_REGEX=/\{Dynamic Val[0-9]+\}/g,exports.DYNAMIC_VALUE_TYPE_REGEX=/{([^}]+)}/g,exports.DYNAMIC_VALUE_WITH_VALID_BRACKETS_REGEX=/\{Dynamic Val[A-Za-z0-9\s]+\}/g,exports.DYNAMIC_VALUE__PLACEHOLDER_REGEX=/Dynamic Val[0-9]+/g,exports.DashboardDonutChart=({radius:n=60,tableWidth:r,tableHeight:o=120,lineWidth:A=15,statusValues:i=[],gapAngle:a=0,legendDetailsType:l="",isLegendDetails:c=!0,legendType:s="numberLegend",showOnlyLabel:f=!1,apiDataLabel:C,unit:u,showUnit:p=!0,labelFontSize:g=24,subLabelFontSize:h=14,legendPosition:m="bottom",chartGap:w=0,legendGap:v=5,legendValueFontSize:B=22,legendKeyFontSize:I=12,legendWithVersionFontSize:x=12,versionErrorText:L,labelYoffSet:y=-5,subLabelYoffSet:Q=20,capsuleStyle:H={},legendTruncate:D=1/0,isLegendToolTip:k=!1,containerHeight:V="",onSelectedStatus:Z=e=>{},selectedStatusKey:j="",setSelectedStatusKey:N=e=>{},isOnClick:z=!1})=>{const[P,S]=t.useState(null),[O,F]=t.useState(null),[T,R]=t.useState({x:0,y:0}),[G,X]=t.useState(!1),[Y,U]=t.useState(null);t.useEffect((()=>{j||U(null)}),[j]),t.useEffect((()=>{i.forEach((e=>{e.version&&console.log(`Version for ${e.key}:`,e.version)}))}),[i]);const K="memoryLegend"===s?i.map((e=>{if("string"==typeof e.value){const{normalizedValue:t,unit:n,value:r}=function(e){const t=e.match(/^(\d+(?:\.\d+)?)\s*(B|KB|MB|GB)$/i);if(!t)throw new Error(`Invalid storage value format: ${e}`);const[,n,r]=t;if(!n||!r)throw new Error(`Invalid storage value format: ${e}`);return{normalizedValue:parseFloat(n)*(oe[r.toUpperCase()]||1),unit:r.toUpperCase(),value:parseFloat(n)}}(e.value);return{...e,normalizedValue:t,unit:n,labelValue:r}}return{...e,normalizedValue:e.value,labelValue:e.value,unit:"B"}})):i.map((e=>{if("string"==typeof e.value){const t=parseFloat(e.value),n=isNaN(t)?0:t;return{...e,normalizedValue:n,unit:"",labelValue:Number.isInteger(n)?n:n.toFixed(2)}}return{...e,normalizedValue:e.value,unit:"",labelValue:Number.isInteger(e.value)?e.value:e.value?.toFixed(2)}})),W=K?.map(((e,t)=>({...e,value:e.normalizedValue??e.value,originalIndex:t}))),q=W?.reduce(((e,{value:t})=>e+Wc(t)),0)||0,J=W?.filter((({value:e})=>Wc(e)>0))||[],_=function(e){const t=["GB","MB","KB","B"];for(const n of t){const t=oe[n];if(void 0===t)throw new Error(`Missing factor for unit: ${n}`);if(e>=t||"B"===n){const r=e/t;return`${r%1==0?`${r.toFixed(0)}`:`${r.toFixed(2)}`} ${n}`}}return`${e} B`}(q),$=2*Math.PI*.01,ee=t.useMemo((()=>{if(0===J.length)return[];const e=2*Math.PI,t=a*J.length;let n=e-t;J.forEach((({value:t})=>{const r=Wc(t)/q,o=Math.max(r*e,$);n-=o}));let r=Math.PI/2;return J.map((t=>{const o=Wc(t.value)/q,A=Math.max(o*e,$),i=r,l=r+(A+n*(o/q));r=l+a;let c=null;if(t.version&&Array.isArray(t.version)&&0!==t.version.length||!L){if(t.version&&Array.isArray(t.version)&&t.version.length>0){const e=qc(t);if(e.length>0){const t=e.length,n=(l-i)/t;c=e.map(((e,t)=>({randomColor:e.color,value:e.ver,startAngle:i+t*n,endAngle:i+(t+1)*n})))}}}else c=[{randomColor:"var(--tooltip-bg-color)",value:L,startAngle:i,endAngle:l,opacity:.2}];return{item:t,startAngle:i,endAngle:l,subArcs:c}}))}),[J,q,a,$,L]),te=e=>{S(e),X(!0)},ne=()=>{S(null),X(!1)},re=e=>{R({x:e.clientX+10,y:e.clientY+10})},Ae=(e,t)=>{z&&j!==e?(U(t),N(e),Z(e)):(U(null),N(""),Z(""))},ie=2*n+A+6,ae=2*n-A-6;function le(e,t,n){const r=e.split(" "),o=[];let A="";return r.forEach((e=>{const r=A?`${A} ${e}`:e;(function(e,t){const n=document.createElement("canvas").getContext("2d");if(!n)throw new Error("Unable to get canvas context");return n.font=`${t}px Poppins`,n.measureText(e).width})(r,n)<=t?A=r:(A&&o.push(A),A=e)})),A&&o.push(A),o}const ce=e=>{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.style.fontSize=`${h}px`,t.style.visibility="hidden";const n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.appendChild(t),document.body.appendChild(n),t.textContent=e;let r=t.getComputedTextLength();if(r<=ae)return document.body.removeChild(n),e;let o=e;for(;r>ae&&o.length>0;)o=o.slice(0,-1),t.textContent=`${o}...`,r=t.getComputedTextLength();return document.body.removeChild(n),`${o}...`};return e.jsxs("div",{className:d("ff-dashboard-donut-chart-section",{"ff-dashboard-donut-chart-section-table-legend":"tableLegend"===s,"legend-position-bottom":"bottom"===m,"legend-position-left":"left"===m,"ff-overflow-visible":!0}),style:{gap:`${w}px`},children:[e.jsxs("div",{className:"ff-dashboard-donut-chart-svg-container",children:[e.jsx("svg",{width:ie,height:ie,viewBox:`0 0 ${ie} ${ie}`,className:"ff-svg-overflow-visible",children:e.jsxs("g",{transform:`translate(${n+A/2+3}, ${n+A/2+3})`,children:[0===q||0===J.length?e.jsx("circle",{cx:0,cy:0,r:n,fill:"none",stroke:"var(--tooltip-bg-color)",strokeWidth:A,strokeOpacity:.8,opacity:.2}):ee.map(((t,r)=>(t=>{if(t.subArcs)return e.jsx("g",{className:"donut-segment version-segment",children:t.subArcs.map(((r,o)=>{const i=r.endAngle-r.startAngle,a=Math.abs(i-2*Math.PI)<.01,l=null!==O?O.parentIndex===t.item.originalIndex&&O.subIndex===o:null===P||P===t.item.originalIndex;if(a)return e.jsxs("g",{className:"sub-arc-group",onMouseEnter:e=>{F({parentIndex:t.item.originalIndex,subIndex:o}),R({x:e.clientX+10,y:e.clientY+10}),X(!0)},onMouseLeave:()=>{F(null),X(!1)},onMouseMove:e=>R({x:e.clientX+10,y:e.clientY+10}),children:[e.jsx("circle",{cx:"0",cy:"0",r:n,fill:"none",stroke:r.randomColor,strokeWidth:A,strokeOpacity:L?.2:l?1:0,style:{transition:"stroke-opacity 0.5s ease"}}),e.jsx("g",{className:"sub-arc-border-wrapper",style:{opacity:O&&O.parentIndex===t.item.originalIndex&&O.subIndex===o?1:0,transition:"opacity 0.5s ease",overflow:"visible"},children:e.jsx("circle",{cx:"0",cy:"0",r:n+A/2+2+1,fill:"none",stroke:r.randomColor,strokeWidth:2,style:{transition:"stroke 0.5s ease"}})})]},o);{const i=Jc(0,0,n,r.startAngle,r.endAngle),a=_c(n+A/2+2,n+A/2+2+2,r.startAngle,r.endAngle),c=O&&O.parentIndex===t.item.originalIndex&&O.subIndex===o?1:0,s=j===t?.item?.key;return e.jsxs("g",{className:"sub-arc-group",onMouseEnter:e=>{F({parentIndex:t.item.originalIndex,subIndex:o}),R({x:e.clientX+10,y:e.clientY+10}),X(!0)},onMouseLeave:()=>{F(null),X(!1)},onMouseMove:e=>R({x:e.clientX+10,y:e.clientY+10}),children:[e.jsx("path",{d:i,fill:"none",stroke:r.randomColor,strokeWidth:A,style:{strokeOpacity:l?1:.2,transition:"stroke-opacity 0.5s ease"}}),s&&z&&e.jsx("path",{d:i,fill:"none",stroke:"var(--dotted-border-color)",strokeWidth:A,strokeOpacity:.4,pointerEvents:"none"}),e.jsx("g",{className:"sub-arc-border-wrapper",style:{opacity:c,transition:"opacity 0.5s ease",overflow:"visible"},children:e.jsx("path",{d:a,fill:r.randomColor,pointerEvents:"none"})})]},o)}}))},t.item.originalIndex);{const r=t.endAngle-t.startAngle,o=Math.abs(r-2*Math.PI)<.01,i=null!==P?P===t.item.originalIndex:null===O||O.parentIndex===t.item.originalIndex,a=t.item.color||$c[t.item.originalIndex%$c.length],l=P===t.item.originalIndex?1:0,c=j===t?.item?.key;if(o)return e.jsxs("g",{className:"donut-segment",children:[e.jsx("circle",{cx:"0",cy:"0",r:n,fill:"none",stroke:a,strokeWidth:A,onMouseEnter:()=>te(t.item.originalIndex),onMouseLeave:ne,onMouseMove:re,onClick:()=>Ae(t.item.key,t.item.originalIndex),style:{cursor:z?"pointer":"default",strokeOpacity:i?1:.2,transition:"stroke-opacity 0.5s ease"}}),c&&z&&e.jsx("circle",{cx:"0",cy:"0",r:n,fill:"none",strokeWidth:A,stroke:"var(--dotted-border-color)",strokeOpacity:.4,pointerEvents:"none"}),e.jsx("g",{className:"donut-border-wrapper",style:{opacity:l,transition:"opacity 0.5s ease",overflow:"visible"},children:e.jsx("circle",{cx:"0",cy:"0",r:n+A/2+2+1,fill:"none",stroke:a,strokeWidth:2,style:{transition:"stroke 0.5s ease"}})})]},t.item.originalIndex);{const r=Jc(0,0,n,t.startAngle,t.endAngle);return e.jsxs("g",{className:"donut-segment",children:[e.jsx("path",{d:r,fill:"none",stroke:a,strokeWidth:A,onMouseEnter:()=>te(t.item.originalIndex),onMouseLeave:ne,onMouseMove:re,onClick:()=>Ae(t.item.key,t.item.originalIndex),style:{cursor:z?"pointer":"default",strokeOpacity:i?1:.2,transition:"stroke-opacity 0.5s ease"}}),c&&z&&e.jsx("path",{d:r,fill:"none",stroke:"var(--dotted-border-color)",strokeWidth:A,strokeOpacity:.4,pointerEvents:"none"}),e.jsx("g",{className:"donut-border-wrapper",style:{opacity:l,transition:"opacity 0.5s ease",overflow:"visible"},children:e.jsx("path",{d:_c(n+A/2+2,n+A/2+2+2,t.startAngle,t.endAngle),fill:a,pointerEvents:"none"})})]},t.item.originalIndex)}}})(t))),f&&e.jsx("text",{x:"0",y:"5",className:"ff-svg-label-text",textAnchor:"middle",fill:$c[3],style:{fontSize:`${g}px`},children:le(l,ae,g).map(((t,n,r)=>e.jsx("tspan",{x:"0",dy:0===n?r.length>1?-8:0:24,children:t},n)))}),!f&&e.jsxs(e.Fragment,{children:[e.jsx("text",{x:"0",y:y,textAnchor:"middle",fill:$c[3],style:{fontSize:`${g}px`},children:le("tableLegend"===s&&null!==P&&W.find((e=>e.originalIndex===P))?`${((W.find((e=>e.originalIndex===P))?.value||0)/q*100).toFixed(1)}%`:"memoryLegend"===s?`${_}`:z&&null!==P&&W.find((e=>e.originalIndex===P))?.value?`${W.find((e=>e.originalIndex===P))?.value}`:`${Number.isInteger(q)?q:q?.toFixed(2)} ${p&&u?u.toUpperCase():""}`,ae,g).map(((t,n)=>e.jsx("tspan",{x:"0",dy:0===n?0:g,children:null!==Y&&W.find((e=>e.originalIndex===Y))?0===n?W.find((e=>e.originalIndex===Y))?.value:null:C||t},n)))}),e.jsx("text",{x:"0",y:Q,textAnchor:"middle",fill:"var(--text-color)",style:{fontSize:`${h}px`},children:le("tableLegend"===s&&null!==P&&W.find((e=>e.originalIndex===P))?W.find((e=>e.originalIndex===P))?.key||"":z&&null!==P&&W.find((e=>e.originalIndex===P))?.key?`${W.find((e=>e.originalIndex===P))?.key}`:l,ae,h).map(((t,n)=>e.jsx("tspan",{x:"0",dy:0===n?0:h,fill:null!==Y&&W.find((e=>e.originalIndex===Y))?.color||null!==P&&z&&W.find((e=>e.originalIndex===P))?.color||"",children:null!==Y&&W.find((e=>e.originalIndex===Y))?0===n?ce(W.find((e=>e.originalIndex===Y))?.key||""):null:ce(t)},n)))})]})]})}),G&&(()=>{if(null!==O){const t=ee.find((e=>e.item.originalIndex===O.parentIndex)),n=t?.subArcs?.[O.subIndex]?.value??"";return e.jsx("div",{className:"ff-donut-chart-tooltip",style:{left:T.x,top:T.y},children:e.jsx(b,{children:`${t?.item?.key}: ${n}`})})}if(null!==P){const t=W.find((e=>e.originalIndex===P));return e.jsxs("div",{className:"ff-donut-chart-tooltip",style:{left:T.x,top:T.y},children:[e.jsx(b,{children:`${t?.key} : `}),e.jsx(b,{children:"memoryLegend"===s?`${t?.labelValue} ${t?.unit}`:t?.value}),t?.version&&e.jsx(b,{children:`Version: ${t.version.join(", ")}`})]})}return null})()]}),c&&((t,n,A)=>{const i=t.length,a=i>6?"ff-count-more":`ff-count-${i}`,l="left"===A||"right"===A,c=(t,n,r)=>k?e.jsx(M,{placement:"bottom",title:n,children:t},r):t;switch(n){case"numberLegend":return e.jsx("div",{className:d("ff-legend-container","ff-number-legend",a,{"ff-side-legend":l}),style:{"--donut-legend-gap":`${v}px`},children:t?.map((t=>e.jsxs("div",{className:"ff-legend-item ff-d-flex",onMouseEnter:()=>{Wc(t.value)>0&&S(t.originalIndex)},onMouseLeave:()=>S(null),children:[e.jsxs("div",{className:"ff-legend-item",children:[e.jsxs(b,{fontSize:B,fontWeight:"semi-bold",className:"ff-legend-value",color:t.color?t.color:$c[t.originalIndex%$c.length],children:[t.osIcon&&t.osIcon.length>0?e.jsx(E,{name:t.osIcon}):String(t.labelValue||"00").padStart(2,"0")+" ",p&&u?.toUpperCase()]}),e.jsx(b,{fontSize:I,className:"ff-legend-key",textAlign:"center",children:t.key.length>D?`${t.key.slice(0,D)}...`:t.key})]}),t.version&&t.version.length>0?e.jsx("div",{className:"ff-legend-version-container",children:e.jsx("div",{className:"ff-legend-version-grid",children:qc(t).map(((n,r)=>e.jsxs("div",{onMouseEnter:()=>F({parentIndex:t.originalIndex,subIndex:r}),onMouseLeave:()=>F(null),className:"ff-legend-version-item",children:[e.jsx("div",{className:"ff-legend-version-circle",style:{backgroundColor:n.color}}),e.jsx(b,{fontSize:x,children:n.major})]},r)))})}):L?e.jsx(b,{textAlign:"center",className:"ff-legend-version-error",fontSize:14,children:L}):null]},t.originalIndex)))});case"pillLegend":return e.jsx("div",{className:"ff-legend-container ff-pill-legend",style:{"--donut-legend-gap":`${v}px`,height:Number(V)-(ie+w)},children:t?.map((t=>{const n=e.jsxs("div",{className:"ff-legend-item",children:[e.jsx("span",{className:"ff-legend-capsule",style:{backgroundColor:t?.color?t.color:$c[t.originalIndex%$c.length],...H},children:e.jsx(b,{className:"ff-legend-capsule-content",fontSize:B,children:0===t?.labelValue?"00":t?.labelValue})}),e.jsx(b,{fontSize:I,className:"ff-legend-key",children:t?.key.length>D?`${t?.key.slice(0,D)}...`:t?.key})]},t.originalIndex);return c(n,t.key,t.originalIndex)}))});case"memoryLegend":return e.jsx("div",{className:d("ff-legend-container","ff-memory-legend",a,{"ff-side-legend":l}),style:{"--donut-legend-gap":`${v}px`},children:t?.map((t=>{const n=e.jsxs("div",{className:"ff-legend-item",onMouseEnter:()=>{Wc(t.value)>0&&S(t.originalIndex)},onMouseLeave:()=>S(null),children:[e.jsxs(b,{fontSize:B,fontWeight:"semi-bold",className:"ff-legend-value",color:t.color?t.color:$c[t.originalIndex%$c.length],children:[t.labelValue," ",t.unit]}),e.jsx(b,{fontSize:I,className:"ff-legend-key",textAlign:"center",children:t.key.length>D?`${t.key.slice(0,D)}...`:t.key})]},t.originalIndex);return c(n,t.key,t.originalIndex)}))});case"tableLegend":return e.jsx("div",{className:"ff-legend-table-wrapper",style:{height:o},children:e.jsxs("table",{className:"ff-legend-table",children:[e.jsx("thead",{className:"ff-legend-table-thead",children:e.jsxs("tr",{children:[e.jsx("th",{className:"ff-table-header",style:{width:r,textAlign:"left"},children:"Name"}),e.jsx("th",{className:"ff-table-header",style:{textAlign:"left",paddingLeft:"10px"},children:"%"}),e.jsx("th",{className:"ff-table-header",style:{textAlign:"left"},children:"Count"})]})}),e.jsx("tbody",{children:t?.map((t=>e.jsxs("tr",{className:"ff-legend-item",onMouseEnter:()=>{Wc(t.value)>0&&S(t.originalIndex)},onMouseLeave:()=>S(null),children:[e.jsxs("td",{className:"ff-legend-name",children:[e.jsxs("span",{className:"ff-legend-capsule",style:{backgroundColor:t.color?t.color:$c[t.originalIndex%$c.length]},children:[e.jsx(b,{fontSize:10,children:0===t?.value?"00":t.value})," "]}),e.jsx(b,{fontSize:10,children:t.key})]}),e.jsx("td",{className:"ff-legend-percentage",children:t.percentage?t.percentage:"string"==typeof t.value?(parseFloat(t.value)/q*100).toFixed(1):0===q?0:(t.value/q*100).toFixed(1)}),e.jsx("td",{className:"ff-legend-count",children:t.value})]},t.originalIndex)))})]})});default:return null}})(W,s,m)]})},exports.DatePicker=Rc,exports.DonutChart=({radius:n=60,lineWidth:r=15,resultStats:o=[],gapAngle:A=.06,legendDetailsType:i="",isLegendDetails:a=!0,totalCount:l})=>{const[c,s]=t.useState(null),{colorMapping:f,hoverMapping:d}={colorMapping:{passed:"var(--status-success-text-color)",failed:"var(--status-rejected-text-color)",warning:"var(--status-warning-text-color)",skipped:"var(--status-skipped-text-color)",default:"var(--brand-color)"},hoverMapping:{passed:"var(--status-success-bg-color)",failed:"var(--status-rejected-bg-color)",warning:"var(--status-warning-bg-color)",skipped:"var(--status-skipped-bg-color)",default:"var(--status-percentage-growth-bg-color)"}},C=o?.filter((({count:e})=>e>0)),u=A*C.length;let p=2*Math.PI-u,g=-Math.PI/2;const h=2*Math.PI*.01;C.forEach((({count:e})=>{const t=e/l,n=Math.max(t*(2*Math.PI),h);p-=n}));const m=e=>s(e),E=()=>s(null),b=2*(n+r)+8;return e.jsxs("div",{className:"ff-donut-chart-section",children:[e.jsx("div",{className:"ff-donut-chart-svg-container",children:e.jsx("svg",{width:b,height:b,viewBox:`0 0 ${b} ${b}`,children:e.jsxs("g",{transform:`translate(${n+r+4}, ${n+r+4})`,children:[C?.map(((t,o)=>{const i=t.count/l;let a=Math.max(i*(2*Math.PI),h);a+=p*i;return((t,o,i)=>{const a=t?.status?.toLowerCase(),l=1===C.length,s=l?fr(0,0,n,0,2*Math.PI):fr(0,0,n,g,o),d=n+r-1,u=l?fr(0,0,d,0,2*Math.PI):fr(0,0,d,g,o);return g=o+A,e.jsxs("g",{children:[e.jsx("path",{d:s,fill:"none",stroke:f[a],strokeWidth:r,onMouseEnter:()=>m(a),onMouseLeave:E,strokeOpacity:null===c||c===a?.8:.3}),c===a&&e.jsx("path",{d:u,fill:"none",stroke:f[a],strokeWidth:4,strokeOpacity:.3})]},i)})(t,g+a,o)})),e.jsx("text",{x:"0",y:"-18",textAnchor:"middle",fill:f.default,children:c?c?.toUpperCase():"TOTAL"}),e.jsx("text",{x:"0",y:"5",textAnchor:"middle",fill:f.skipped,children:c?`${o?.find((e=>e?.status?.toLowerCase()===c))?.count} ${i}`:`${l} ${i}`}),e.jsx("rect",{x:-17,y:14,width:34,height:18,fill:c?d[c?.toLowerCase()]:d.default,rx:"5",ry:"5"}),e.jsx("text",{x:"0",y:"26",textAnchor:"middle",fill:c?f[c?.toLowerCase()]:f.default,children:c?`${(o?.find((e=>e?.status?.toLowerCase()===c))?.percentage||0)?.toFixed(2)}%`:"100%"})]})})}),a&&e.jsx("div",{className:"ff-status-container",children:["passed","failed","warning","skipped"]?.map((t=>(t=>{const n=o?.find((e=>e.status?.toLowerCase()===t?.toLowerCase()));return e.jsxs("div",{className:"ff-status-item "+(null===c||c===t?"ff-highlighted":"ff-fade"),onMouseEnter:()=>m(t),onMouseLeave:E,children:[e.jsxs("div",{className:"ff-status-label",children:[e.jsx("div",{className:"ff-status-color",style:{backgroundColor:f[t]}}),e.jsx("div",{className:"ff-status-text",children:t?.charAt(0)?.toUpperCase()+t?.slice(1)?.toLowerCase()})]}),e.jsxs("div",{className:"ff-status-details",children:[e.jsxs("div",{className:"ff-status-details-script-count",children:[n?.count||0,e.jsx("span",{children:i})]}),e.jsxs("div",{className:"ff-status-details-script-percentage",children:["(",n?.percentage?.toFixed(2)||0,"%)"]})]})]},t)})(t)))})]})},exports.DownloadClient=({onClose:n,top:r="100px",left:o="0px",className:A,description:i="Download and Install the fireflink client to run the script",onClick:a=()=>{},optionZIndex:l=10000001})=>{t.useEffect((()=>{const e=e=>{"Escape"===e.key&&n?.()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[n]);return e.jsxs("div",{className:`ff-download-client-wrapper ${A}`,style:{top:r,left:o,zIndex:l},children:[e.jsxs("div",{className:"ff-download-client-header-wrapper",children:[e.jsx("div",{className:"ff-download-client-hollow-triangle"}),e.jsx(b,{fontWeight:"semi-bold",lineHeight:"32px",className:"ff-download-client-header-text",children:"Download client"}),e.jsx(E,{name:"close",color:"var(--brand-color)",className:"ff-download-client-close-icon",height:12,width:12})]}),e.jsxs("div",{className:"ff-download-client-content-text",children:[e.jsx(b,{as:"div",color:"var(--download-client-content-text-color)",fontWeight:"semi-bold",textAlign:"center",lineHeight:"26px",children:i}),e.jsx(b,{as:"div",className:"ff-download-client-description-text",textAlign:"center",fontWeight:"medium",lineHeight:"26px",children:"Choose OS to Download"}),e.jsx("div",{className:"ff-download-client-os-wrapper",children:["windows","mac_icon","linux"].map((t=>e.jsx("div",{className:"ff-os-version-wrapper",onClick:()=>{a("mac_icon"===t?"mac":t)},children:e.jsx(E,{name:t,height:36,width:36})})))})]})]})},exports.DragAndDrop=Yc,exports.Drawer=I,exports.Dropzone=hr,exports.ELEMENTS_TRAILING_SPACE_REGEX=/^\S.*\S$/,exports.ELEMENTS_WHITE_SPACE_REGEX=/.*\S.*/,exports.EMAIL_REGEX=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,exports.EditLabel=ri,exports.EditTextField=({label:n,text:r,highlightText:o,customError:A,customErrorCondition:i=!1,confirmIcon:a,cancelIcon:l,editIcon:c,dropdownData:s=[],isOpen:f=!1,confirmAction:d,onClick:C,nameTooltipTitle:u})=>{const[p,g]=t.useState(f??!1),[h,m]=t.useState(r),[w,v]=t.useState(!0),[B,I]=t.useState(s[0]?.value??""),[x,L]=t.useState(""),[y,Q]=t.useState(!1),H=!(!x||!p),D=t.useRef(null),k=t.useRef(null),V=()=>{const e=((e,t,n,r)=>e===t?"No changes were made.":e?e.length<3?"Please enter at least 3 characters.":r?n??"":"":"Text is required")(h,r,A,i);e&&p?L(e):(g(!1),L(""),d&&d(h,B))},Z=()=>{m(r),I(s[0]?.value??""),g(!1),L(""),Q(!1)};function j(e){"Enter"===e&&V(),"Escape"===e&&Z()}return Ci([{key:"Enter",action:()=>j("Enter")},{key:"Escape",action:()=>j("Escape")}]),e.jsxs("div",{className:"ff-label-edit-text-field",ref:D,children:[p?e.jsxs("div",{className:"ff-label-text-field",children:[e.jsx("div",{className:"ff-label-text-field-without-dropdown",children:e.jsx(z,{name:"input",label:n||"",disabled:!1,error:H,placeholder:"Enter your name",value:h,onChange:e=>{m(e.target.value),Q(!0),L(""),v(!1)},className:"\n \n "+(y?"modified":""),type:"text"})}),e.jsxs("div",{className:"ff-icon-container",children:[a&&e.jsx(M,{title:"confirm",placement:"bottom",children:e.jsx(E,{color:a?.color??"var(--default-confirm-icon-color)",height:a?.height??20,disabled:w,width:a?.width??20,name:a?.name??"default-confirm-icon",className:`${a?.className??"default-confirm-class"} ${w?"disabled-confirm-icon":"confirm-icon"}`,onClick:V})}),l&&e.jsx(M,{title:"cancel",placement:"bottom",children:e.jsx(E,{color:l?.color??"var(--label-edit-cancel-icon)",height:l?.height??12,width:l?.width??20,name:l?.name??"default-cancel-icon",className:l?.className??"cancel-icon",onClick:Z,ref:k})})]})]}):e.jsxs("div",{className:"display-text-container",children:[u?e.jsx(M,{title:u,children:e.jsx("span",{className:"display-text",onClick:C,children:e.jsx(ci,{text:h,highlight:o})})}):e.jsx("span",{className:"display-text",onClick:C,children:e.jsx(ci,{text:h,highlight:o})}),e.jsx(M,{title:rf(c?.name??"Edit"),children:e.jsx(E,{color:c?.color??"var(--label-edit-cancel-icon)",height:c?.height??20,width:c?.width??20,name:c?.name??"edit",className:c?.className??"edit-icon",onClick:()=>{g(!0),L("")}})})]}),x&&p&&e.jsx(b,{as:"p",fontSize:8,className:"error-text",children:x})]})},exports.Editor=em,exports.ErrorBoundary=Vu,exports.Excel=({excelData:n,contextOption:r,toolbar:o="show",sheetBar:A="show",rowCount:i=26,colCount:a=26,sheetHeight:l="100%",editable:c=!0,contextHeightPositioning:s=0,contextWidthPositioning:f=0,onSave:C=()=>Promise.resolve(),onSaveInfoChange:u,attachmentAction:p={addAttachment:()=>Promise.resolve({responseCode:0,responseObject:[]}),viewAttachment:()=>Promise.resolve(),deleteAttachment:()=>Promise.resolve()},onSaveDelay:g=3e3,columnContextEnable:h=!0,rowContextEnable:m=!0})=>{const[w,v]=t.useState([]),[B,I]=t.useState(""),[L,y]=t.useState({open:!1,position:{x:0,y:0},options:[{label:"",value:"",iconName:"",action:()=>{},disable:!1}]}),[Q,H]=t.useState({name:"defaultSheet",index:0}),[D,k]=t.useState({defaultSheet:[[iC]]}),[V,Z]=t.useState([[iC]]),[j,N]=t.useState({x:0,y:0}),z=t.useRef(""),P=t.useRef(null),S=t.useRef(null);t.useEffect((()=>{const e=n;if(e){const t=e.map((e=>e.sheetName));v(t),x(t.length)||(z.current=t[0]||"",H({name:t[0]||"",index:0}));const n={};e.forEach((e=>{const t=e.sheetName,r=e.data,o=Math.max(i,r.length+2),A=Math.max(a,Math.max(...r.map((e=>e.length)))+2);let l=Array.from({length:o},(()=>Array(A).fill({value:"",style:iC.style,readOnly:!1,inputType:void 0})));r.forEach(((e,t)=>{e.forEach(((e,n)=>{var r;t<o&&n<A&&(l[t]||(l[t]=[]),l[t][n]={value:(r=e.value,null==r?null:r),style:x(e?.style)?iC.style:vu(e?.style),readOnly:!!e?.readOnly&&e?.readOnly,inputType:e?.inputType??void 0,contextDisable:e.contextDisable})}))}));const c=new Set([...e?.rows?.readOnly?e.rows.readOnly.map((e=>`r${e}`)):[],...e?.columns?.readOnly?e.columns.readOnly.map((e=>`c${e}`)):[],...e?.cells?.readOnly?e.cells.readOnly.map((([e,t])=>`${e},${t}`)):[]]);l.forEach(((t,n)=>{t.forEach(((t,r)=>{l[n]||(l[n]=[]);const o=c.has(`r${n+1}`)||c.has(`c${r+1}`)||c.has(`${n+1},${r+1}`),A=((t,n,r)=>r?.inputType?r.inputType:e?.rows?.inputType?.[t+1]||e?.columns?.inputType?.[n+1]||e?.cells?.inputType?.[`${t+1},${n+1}`]||{type:"text"})(n,r,t||iC);l[n][r]={...t,value:t?.value??"",readOnly:t?.readOnly?t.readOnly:o,inputType:A,contextDisable:t?.contextDisable}}))})),n[t]=l})),k(n);const r=Object.keys(n)[0];r&&void 0!==n[r]&&Z(n[r])}}),[n]),t.useEffect((()=>{u&&u(B),"File saved"===B&&setTimeout((()=>{I("")}),2e3)}),[B]),t.useEffect((()=>{I("Saving..."),O(T())}),[D]);const O=t.useCallback(yu((e=>{C(e),I("File saved")}),g),[C]),F=t.useCallback((e=>{e.ctrlKey&&"s"===e.key&&(e.preventDefault(),e.stopPropagation(),O(T()))}),[C]);t.useEffect((()=>(document.addEventListener("keydown",F),()=>{document.removeEventListener("keydown",F)})),[F]);const T=()=>w.map((e=>{const t=D[e]?.map((e=>{const t=e.reduce(((e,t,n)=>""!==String(t?.value??"").trim()?n:e),-1),n=e.map(((e,n)=>e&&e.style&&n<=t?{value:e.value,style:Iu(e.style),readOnly:e.readOnly,inputType:e.inputType,contextDisable:e.contextDisable}:null)).filter((e=>null!==e));return n.length>0?n:[]}))||[],n=t.filter(((e,n)=>{const r=t.slice(n+1).some((e=>e.length>0));return e.length>0||r}));return{sheetName:e,data:x(n.length)?[[]]:n}})),[R,G]=t.useState(null),X=()=>{const e=((e,t)=>{let n=`${e}1`,r=2;for(;t.includes(n);)n=`${e}${r}`,r++;return n})("Sheet",w),t=Array.from({length:i},(()=>Array.from({length:a},(()=>iC))));v((t=>[...t,e])),H({index:w?.length,name:e}),k({...D,[e]:t}),Z(t),z.current=e};t.useEffect((()=>{const e=D[Q.name];Z(void 0!==e?e:[])}),[Q.name]);const Y=(e,t,n)=>{const r=e.target;if(!r)return void G(null);const o=r.textContent?.trim();if(!o)return di.warning("Sheet name cannot be empty."),r.textContent=Q.name,void G(null);if(o.length>30)return di.warning("The sheet name cannot be greater than 30 characters"),r.textContent=Q.name,void G(null);if(w.includes(o)&&w[t]!==o)return di.warning("Sheet name already exists"),r.textContent=Q.name,void G(null);w.splice(t,1,o);let A=function(e,t,n,r){if(!(t in e))throw new Error(`Key "${t}" not found in object`);return delete e[t],e[n]=r,e}(D,n,o,V);z.current=o,H((e=>({...e,name:o}))),k(A),G(null)};const U=(e,t)=>{if(e===Q.name||t===Q.index)return;H({index:t,name:e}),v((n=>{const r=[...n];return r[t]=e,r}));const n=D[e];Z(n||[[iC]]),z.current=e},K=t.useCallback((e=>{L.open&&(e.preventDefault(),e.stopPropagation(),y({open:!1,position:{x:0,y:0},options:[{label:"",value:"",iconName:"",action:()=>{},disable:!1}]}))}),[L.open]);t.useEffect((()=>(document.addEventListener("click",K),()=>{document.removeEventListener("click",K)})),[K]);const W=(e,t,n)=>{e.preventDefault();const r=[{label:"Add Sheet",value:"Add Sheet",iconName:"plus_icon",action:()=>{X()},disable:!1},{label:"Delete Sheet",value:"Delete Sheet",iconName:"delete",action:()=>{((e,t)=>{if(w.length>1){let n=w.slice();n.splice(t,1);const r={...D};delete r[e];const o=Math.min(t,n.length-1);v(n),k(r),H({index:o,name:n[o]?n[o]:""})}else di.warning("Cannot delete the last sheet.")})(t,n)},disable:!1}];y((e=>({...e,open:!0,options:r})))};return e.jsx(e.Fragment,{children:w.length>0&&e.jsxs("div",{ref:P,className:"ff-excel",onContextMenu:e=>{e.preventDefault();const t=S.current?.parentElement?.getBoundingClientRect(),n=window.scrollX,r=window.scrollY;let o=e.clientX-(t?.left||0)+n+10,A=e.clientY-(t?.top||0)+r-5;if(e.target.classList.contains("ff-excel-tab-list"))return void N({x:o,y:A-65});const i=window.innerWidth,a=window.innerHeight;o+300>i&&(o=i-300-100),A+200>a&&(A=a-200-100),N({x:o+f,y:A+s})},onClick:e=>{e.stopPropagation(),L.open&&y({open:!1,position:{x:0,y:0},options:[{label:"",value:"",iconName:"",action:()=>{},disable:!1}]})},children:[e.jsx("div",{ref:S,className:"ff-excel-sheet",children:e.jsx(Mu,{editable:c,attachmentAction:p,toolbar:o,sheetHeight:l,setContextMenu:y,contextOption:r,data:V,columnContextEnable:h,rowContextEnable:m,onEvaluatedDataChange:e=>{k((t=>({...t,[z.current]:e})))},workRef:P})}),"show"===A&&e.jsxs("div",{className:"ff-excel-sheet-bar",children:[e.jsx("div",{className:"ff-excel-add-sheet-set",children:e.jsx(M,{title:"Add Sheet",placement:"top",children:e.jsx(E,{disabled:!c,className:"ff-excel-add-sheet-icon",hoverEffect:!0,onClick:X,name:"plus_icon",height:20,width:20})})}),e.jsx("div",{className:"ff-excel-tab-container",children:w.map(((t,n)=>e.jsx(b,{lineHeight:"16px",children:e.jsx("div",{onContextMenu:e=>{U(t,n),W(e,t,n)},className:d("ff-excel-tab-list",{active:t===Q.name}),onClick:()=>{U(t,n)},suppressContentEditableWarning:R===n,onDoubleClick:e=>{G(n),null===R&&setTimeout((()=>(e=>{const t=document.createRange(),n=window.getSelection();t.selectNodeContents(e),t.collapse(!1),n?.removeAllRanges(),n?.addRange(t)})(e.target)),0)},contentEditable:R===n,onBlur:e=>{Y(e,n,t)},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),Y(e,n,t))},children:t})},t)))})]}),L.open&&e.jsx(Lu,{contextMenu:L,position:j,editable:c}),e.jsx(fi,{})]})})},exports.ExpandableMenu=({label:n="",icon:r=e.jsx(E,{name:"arrow_right",height:5,width:8,color:"var(--icons-default-color)"}),variant:o="primary",size:A="medium",disable:i=!1,subMenus:a=[],selectedMenu:l="",onSubMenuClick:c=()=>{},menuExpandStatus:s})=>{const[f,C]=t.useState(s||!1),[u,p]=t.useState(!1),g=t.useCallback((()=>{f||p(!0)}),[f]),h=t.useCallback((()=>{f||p(!1)}),[f]),m=f||u;return e.jsxs("div",{className:d("ff-expandable-chip-menu",`ff-expandable-chip-menu--${o}`,{"ff-expandable-chip-menu--disabled":i,expanded:m}),onMouseEnter:g,onMouseLeave:h,children:[e.jsxs("div",{className:`ff-label-chip ff-label-chip--${o} ff-expandable-chip-menu--${A}`,onClick:()=>{C((e=>!e)),p(!1)},children:[e.jsx(b,{children:n}),e.jsx("span",{className:"arrow-icon",children:r})]}),m&&!x(a)&&e.jsx("div",{className:d("ff-sub-chips",{expanded:m}),children:a.map(((t,n)=>e.jsx("div",{className:d("ff-sub-chip",`ff-sub-chip--${o}`,`ff-sub-chip--${A}`,{selected:l===t}),onClick:()=>(e=>{i||(c(e),C(!0))})(t),children:t},n)))})]})},exports.FILE_EXTENSION_REGEX=/\.(jpg|png|gif|bmp)$/i,exports.FILE_NAME_REGEX=/\.([^.@]+)$/,exports.FieldSet=({legendName:t,height:n,width:r,children:o})=>e.jsx("div",{className:"ff_fieldSet_container",children:e.jsxs("fieldset",{className:"ff_fieldSet",style:{height:n,width:r},children:[e.jsx("legend",{className:"ff_legend_container",children:e.jsx(b,{color:"var(--license_header_text_color)",fontSize:8,lineHeight:"12px",children:t})}),e.jsx("div",{className:"ff_children_container",children:o})]})}),exports.FileDropzone=({icon:n=e.jsx(E,{name:"dropzone_icon",height:80,width:80,hoverEffect:!1}),primaryLabel:r="Drag & drop your file to upload",secondaryLabel:o="Or",buttonLabel:A="Choose File to upload",accept:i=[],multiple:a=!1,maxFiles:l,maxSize:c,onMaxFilesError:s,maxSizeErrorMessage:f="",invalidFileMessage:C="",fileExistMessage:u="",validateMIMEType:p=!1,width:g=640,height:h=188,getAcceptedFiles:m=()=>{},getRejectedFiles:b=()=>{},isWebServiceFileDropZone:w=!1,selectedRadioOption:v,radioOptions:B,handleOptionChange:I,selectedFile:M,setSelectedFile:L,handleFileChange:y,handleRemoveFile:Q,isApiResponseError:H=!1,isDisable:D=!1,setShowDrawer:k,setFileContent:V,fileContent:Z="",isUploadIcon:j=!1,onUploadFile:N})=>{const z=t.useRef(null),{getRootProps:P,getInputProps:S,acceptedFiles:O,rejectedFiles:F,isDragActive:T,handleRemoveClick:R,handleReplaceClick:G}=Cr({accept:i,multiple:a,maxFiles:l,maxSize:c,onMaxFilesError:s,maxSizeErrorMessage:f,invalidFileMessage:C,fileExistMessage:u,validateMIMEType:p,isApiResponseError:H});m(O),b(F);const X=t.useMemo((()=>O.map((t=>e.jsx(mr,{file:t,onRemoveClick:R,onReplaceClick:G,onUploadFile:N,isUploadIcon:j},t.name)))),[O,R,G,j,N]);t.useEffect((()=>{"Local File"===v?.value&&z.current&&z.current.click()}),[v]),t.useEffect((()=>{!x(O)&&L&&L(O[0]||null)}),[O,L]);const Y=t.useMemo((()=>F.map((t=>e.jsx(mr,{file:t.file,error:t.errors[0]?.message,onRemoveClick:R,onReplaceClick:G,onUploadFile:N,isUploadIcon:j},t.file.name)))),[F,R,G,j,N]);return e.jsxs("div",{className:d("ff-file-dropzone-wrapper"),style:{width:`${g}px`},children:[e.jsx(hr,{icon:n,primaryLabel:r,secondaryLabel:o,buttonLabel:A,getRootProps:P,getInputProps:S,isDragActive:T,height:`${h}px`,isWebServiceFileDropZone:w,selectedRadioOption:v,radioOptions:B??[{label:"Default Label",value:"default_value"}],handleOptionChange:I,selectedFile:M,handleFileChange:y,handleRemoveFile:Q,setSelectedFile:L,isDisable:D,setShowDrawer:k,setFileContent:V,fileContent:Z}),w&&e.jsx("input",{ref:z,type:"file",className:"ff-input-ref",onChange:y,accept:i.join(",")}),w?null:e.jsxs("div",{className:"ff-file-details-wrapper",style:{width:`${g}px`},children:[!x(O)&&e.jsx("div",{className:"ff-file-details",children:X}),!x(F)&&e.jsx("div",{className:"ff-file-details",children:Y})]})]})},exports.FilePreview=mr,exports.Form=_A,exports.FormatString=function(e,t=[]){return e.toUpperCase()===e&&(e=e.toLowerCase()),e.includes("_")?function(e){return e.toLowerCase().replace(/_/g," ").replace(/^./,(e=>e.toUpperCase()))}(e):am(e,t)},exports.GSTIN_REGEX=/^\d{2}[A-Z]{5}\d{4}[A-Z]{1}[A-Z\d]{1}[Z]{1}[A-Z\d]{1}$/,exports.HEXADECIMAL_NUMBER_REGEX=/^[0-9A-Fa-f]+$/,exports.HEX_COLOR_REGEX=/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})$/,exports.HSL_COLOR_REGEX=/^hsl\((\d{1,3}),\s*(\d{1,3})%,\s*(\d{1,3})%\)$/,exports.HTML_ATTRIBUTE_REGEX=/\b[a-zA-Z-]+(="[^"]*"|='[^']*'|=[^\s>]*)?/g,exports.HTML_TAG_REGEX=/<\/?[\w\s=\"'\/\.:;#-]*>/g,exports.HighlightText=ci,exports.HistoryCard=({variant:t,title:n,tabTitle:r,comment:o,profileShortName:A})=>e.jsxs("div",{className:"ff-history-card",children:[e.jsx("div",{className:d("header",`header--${t}`),children:e.jsx(b,{fontWeight:"semi-bold",children:r})}),e.jsxs("div",{className:"body",children:[e.jsx("div",{className:"title",children:e.jsxs("div",{className:"profile",children:[e.jsx(b,{className:d("avatar",`avatar--${t}`),children:A}),e.jsx(b,{children:n})]})}),e.jsxs("div",{className:"comment-container",children:[e.jsx(b,{fontWeight:"semi-bold",className:"heading",children:"Comments:"}),e.jsx(b,{color:"var(--details-page-value-color)",className:"comment",children:o})]})]})]}),exports.INDIAN_CURRENCY_REGEX=/^\u20B9?\s?\d{1,3}(,\d{3})*(\.\d{1,2})?$/,exports.INDIAN_PASSPORT_REGEX=/^[A-Z]{1}-?\d{7}$/,exports.INDIAN_PHONE_REGEX=/^[6-9]\d{9}$/,exports.INDIAN_PIN_CODE_REGEX=/^\d{6}$/,exports.INTERNATIONAL_PHONE_REGEX=/^\+?[1-9]\d{1,14}$/,exports.IPV4_REGEX=/^((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]?)$/,exports.IPV6_REGEX=/^(?:[a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}$/,exports.Icon=E,exports.IconButton=Gc,exports.IconRadialChart=({radius:n=15,lineWidth:r=5,label:o,percentageValue:A,icon:i,fontSize:a=10,labelColor:l="",arcColor:c="var(--brand-color)",backgroundArcColor:s="var(--ff-select-scroll-thumb-color)",isSelectedArch:f=!1,onSelect:d})=>{const[C,u]=t.useState({x:0,y:0}),[p,g]=t.useState(!1);let h=-Math.PI/2;const m=2*(n+r),{backgroundArcPath:w,foregroundArcPath:v}=((e,t,n)=>{const r=t,o=r+Math.max(0,Math.min(e,100))/100*2*Math.PI;return{backgroundArcPath:Qu({x:0,y:0,radius:n,startAngle:0,endAngle:2*Math.PI}),foregroundArcPath:Qu({x:0,y:0,radius:n,startAngle:r,endAngle:o})}})(A,h,n),B=()=>{g(!0)},I=()=>{u({x:0,y:0}),g(!1)},x=e=>{u({x:e.clientX+10,y:e.clientY+10})};return e.jsxs("div",{className:"ff-icon-radial-chart-container",style:{"--fontSize":`${a}px`},onClick:d,children:[e.jsx("svg",{width:m,height:m,viewBox:`0 0 ${m} ${m}`,role:"img",children:e.jsxs("g",{transform:`translate(${n+r}, ${n+r})`,children:[e.jsx("path",{d:w,fill:"none",stroke:s,strokeWidth:r,onMouseEnter:B,onMouseLeave:I,onMouseMove:x}),e.jsx("path",{d:v,fill:"none",stroke:c,strokeWidth:r,onMouseEnter:B,onMouseLeave:I,onMouseMove:x}),f&&e.jsx("path",{d:v,fill:"none",stroke:"var(--dotted-border-color)",strokeOpacity:"0.4",strokeWidth:r,onMouseEnter:B,onMouseLeave:I,onMouseMove:x}),i?e.jsx("foreignObject",{x:"-10",y:"-10",width:"20",height:"20",children:e.jsx(E,{className:"ff-radial-chart-icon-padding",name:i,height:20,width:20})}):e.jsx("text",{x:"0",y:"0",fill:l||c,textAnchor:"middle",dominantBaseline:"central",children:`${Math.round(A)}%`})]})}),p&&e.jsxs("div",{className:"ff-icon-radial-chart-tooltip",style:{left:C.x,top:C.y},children:[e.jsx(b,{children:`${o} : `}),e.jsxs(b,{children:[A,"%"]})]})]})},exports.IconRadioGroup=({items:n,onButtonClick:r,selectedValue:o=null,onChange:A,className:i=""})=>{const[a,l]=t.useState(o);t.useEffect((()=>{o!==a&&l(o)}),[o,a]);return e.jsxs("div",{className:d("ff-icon-radio-group",i),children:[n.map((t=>e.jsx("div",{className:d("ff-icon-radio-button",{selected:a===t.iconName,disabled:t.disabled}),onClick:()=>(e=>{if(e.disabled)return;const t=e.iconName;l(t),A&&A(t),r(e)})(t),children:e.jsx(M,{title:t.iconLabel,children:e.jsx("div",{className:d("icon-container",{selected:a===t.iconName}),children:e.jsx(E,{name:t.iconName,hoverEffect:!1,color:a===t.iconName?"var(--drawer-footer-bg)":"var(--brand-color)"})})})},t.iconName))),e.jsx("div",{className:"line-connector"})]})},exports.Input=z,exports.InputWithDropdown=$A,exports.LINKEDIN_PROFILE_REGEX=/^https?:\/\/(www\.)?linkedin\.com\/in\/([a-zA-Z0-9-]{5,30})$/,exports.LabelEditTextField=({label:n,placeholder:r,text:o,showText:A=!0,highlightText:i,customError:a,confirmIcon:l,customErrorCondition:c,cancelIcon:s,variant:f="textField",onInputChange:d,dropdownData:C=[],className:u,height:p,isOpen:g=!1,confirmAction:h,onClick:m,tooltip:w,onDoubleClick:B,disableEditing:I=!1})=>{const[x,L]=t.useState(g??!1),[y,Q]=t.useState(o??""),[H,D]=t.useState(C[0]?.value??""),[k,V]=t.useState(""),[Z,j]=t.useState(!0),[N,P]=t.useState(!1),S=!(!k||!x),O=t.useRef(null),F=t.useRef(null),[T,R]=t.useState(null),G=v("Escape");t.useEffect((()=>()=>{T&&clearTimeout(T)}),[T]);const Y=()=>{let e="";0===y.length||0===y.trim().length?e="Please type any text.":y.length<3?e="Please enter at least 3 characters.":c&&(e=a??"Invalid input."),e?V(e):(L(!1),V(""),h&&h(y,H))},U=()=>{Q(o??""),D(C[0]?.value??""),L(!1),V(""),P(!1)},K=e=>{const t=e.target.value;Q(t),j(!1),0===t.length||0===t.trim().length?V("Please type any text."):t.length<3?V("Please enter at least 3 characters."):V(c?a??"Invalid input.":""),P(t!==o),d&&d(t)},W=e=>{if(O.current&&!O.current.contains(e.target)&&F.current!==e.target){const e=((e,t)=>e===t?"No changes were made.":e?e.length<3?"Please enter at least 3 characters.":"":"Text is required")(y,o??"");e&&x?V(e):(L(!1),V(""))}};return t.useEffect((()=>(document.addEventListener("click",W),()=>{document.removeEventListener("click",W)})),[y]),G(U),Ci([{key:"Enter",action:()=>{Y()}}]),e.jsxs("div",{className:"ff-label-edit-text-field",ref:O,children:[x?e.jsxs("div",{className:"ff-label-text-field",children:["textFieldWithDropdown"===f?e.jsxs("div",{className:"ff-label-text-field-with-dropdown "+(x?"open":""),style:{height:p},children:[e.jsx(z,{name:"input",type:"text",label:n||"",disabled:!1,error:S,placeholder:r||"",value:y,onChange:K,className:`${u} \n \n ${N?"modified":""}`}),e.jsx(X,{label:"",optionsList:C,selectedOption:{value:H,label:H},onChange:e=>D(e.value)})]}):e.jsx("div",{className:"ff-label-text-field-without-dropdown",children:e.jsx(z,{name:"input",type:"text",label:n||"",disabled:!1,error:S,placeholder:r||"",value:y,onChange:K,className:`${u} \n \n ${N?"modified":""}`})}),e.jsxs("div",{className:"ff-icon-container",children:[l&&e.jsx(M,{title:"Confirm",placement:"bottom",children:e.jsx(E,{color:"var(--label-edit-confirm-icon)",height:20,width:20,name:l.name,disabled:Z,className:""+(Z?"disabled-confirm-icon":"confirm-icon"),onClick:Y})}),s&&e.jsx(M,{title:"Cancel",placement:"bottom",children:e.jsx(E,{color:"var(--label-edit-cancel-icon)",height:12,width:20,name:s.name,className:"cancel-icon",onClick:U,ref:F})})]})]}):e.jsx(M,{title:w?.tooltipTitle?w?.tooltipTitle:"",placement:"bottom",children:A&&e.jsx("span",{className:"display-text",onDoubleClick:()=>{I||(T&&(clearTimeout(T),R(null)),B&&B(),L(!0),V(""))},role:"button",onClick:()=>{if(I)return;T&&(clearTimeout(T),R(null));const e=window.setTimeout((()=>{m&&m(),R(null)}),1e3);R(e)},children:e.jsx(ci,{text:y,highlight:i})})}),k&&x&&e.jsx(b,{as:"p",fontSize:8,className:"error-text",children:k})]})},exports.LazyLoad=so,exports.LineChart=({data:n=[],width:r,height:o,lineChartWidth:A,yAxisLabel:i,xAxisLabel:a,yAxisValueColor:l,xAxisColor:c,yAxisColor:s,yAxisLabelColor:f,textSize:d,fontWeight:C,numberSize:u,chartName:p,shouldCenterSinglePoint:g,xAxisLabelGap:h=16})=>{const m=40,E=r-80,w=o-80;if(!(n&&n.length>0&&n?.some((e=>Array.isArray(e?.data)&&e?.data?.length>0)))){const t=[];for(let e=6;e>=0;e--){const n=new Date;n.setDate(n.getDate()-e);const r=n?.toLocaleDateString("en-US",{day:"numeric",month:"short"});t.push(r)}const n=1024,A=6,p=7;return e.jsxs("div",{className:"ff-line-chart-text",style:{width:r+20+h,gap:h},children:[e.jsx("div",{className:"ff-line-chart-yAxisLabel-warpper",style:{height:o},children:e.jsx(b,{className:"ff-line-chart-yAxisLabel",fontSize:d,fontWeight:"semi-bold",children:i})}),e.jsx("div",{className:"ff-line-chart-svg",children:e.jsx("svg",{height:o,width:r,className:"ff-line-chart-svg",children:e.jsxs("g",{transform:"translate(40, 40)",children:[e.jsx("line",{x1:0,y1:w,x2:E,y2:w,stroke:c,strokeWidth:1}),e.jsx("text",{x:E/2.1,y:w+m/1.2,textAnchor:"middle",fill:f,className:"ff-line-chart-x-axis-label",style:{fontSize:d,fontWeight:C},children:a}),t.map(((t,n)=>{const r=E/(p-1);return e.jsx("text",{x:n*r,y:w+15,textAnchor:0===n?"start":n===p-1?"end":"middle",fill:s,className:"ff--line-chart-x-line-data",style:{fontSize:u},children:t},t)})),Array.from({length:A}).map(((t,r)=>{const o=r*n/(A-1),i=o/1024,a=w-o*w/n;return e.jsx("text",{x:-10,y:a,textAnchor:"end",fill:l,className:"ff-line-chart-y-axis-text",style:{fontSize:u},children:i?.toFixed(1)},`y-${r}`)}))]})})})]})}function v(e){if(!isNaN(e))return parseFloat(e);const t=K,n=e.match(t);if(!n)throw new Error("Invalid input format. Use '<value> <unit>' format (e.g., '10.9580078125 KB') or just a number.");const r=parseFloat(n[1]);switch(n[2]?n[2].toUpperCase():null){case"GB":return parseFloat((1024*r).toFixed(2));case"MB":return parseFloat(r.toFixed(2));case"KB":return parseFloat((r/1024).toFixed(2));default:throw new Error("Invalid unit. Supported units are GB, MB, and KB.")}}const B=n?.[0]?.data?.[0]?.hasOwnProperty("date")&&n?.[0]?.data?.[0]?.hasOwnProperty("totalMemory"),I="date",x=B?"totalMemory":"value",M=e=>{const t=n?.[0]?.data?.length;if(1===t)return g?E/2:E;const r=n[0].data.findIndex((t=>t[I]===e));return-1===r?0:r/(t-1)*E},L=Math.max(...n?.flatMap((e=>e?.data?.map((e=>v(e[x]))))),5),y=e=>{if("memory"===p){const t=Math.max(...n?.flatMap((e=>e?.data?.map((e=>v(e[x]))))));return w-e*w/(t>1024?t:1024)}return w-e*w/(0===L?1024:L)},Q=e=>{if(1===e?.length){const t=e?.[0],n=M(t[I]),r=y(v(t[x]));return`M 0 ${y(0)} L ${n} ${r}`}return e?.reduce(((t,n,r)=>{const o=M(n[I]),A=y(v(n[x]));if(0===r)return`M ${o} ${A}`;const i=e[r-1],a=i?M(i[I]):0;return`${t} C ${a+(o-a)/2} ${i?y(v(i[x])):0}, ${o-(o-a)/2} ${A}, ${o} ${A}`}),"")},H=n[0].data,[D,k]=t.useState({cursorX:null,hoverValues:{},dotPositions:{},tooltip:{visible:!1,left:0,top:0},currentXValue:null});return e.jsxs("div",{className:"ff-line-chart-text",style:{width:r+20+h,gap:h},children:[e.jsx("div",{className:"ff-line-chart-yAxisLabel-warpper",style:{height:o},children:e.jsx(b,{className:"ff-line-chart-yAxisLabel",fontSize:d,fontWeight:"semi-bold",children:i})}),e.jsxs("div",{className:"ff-line-chart-svg",children:[e.jsx("svg",{height:o,width:r,onMouseMove:e=>{const t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left-m;let o={hoverValues:{},dotPositions:{}},A=null;n.forEach(((e,t)=>{const n=e.data.reduce(((e,t)=>{const n=Math.abs(r-M(t[I]));return n<e.distance?{point:t,distance:n}:e}),{point:null,distance:1/0}).point;n&&(A=n[I],o.hoverValues[t]=((e,t=2)=>{let n="";if("string"==typeof e){const t=e.match(Y),r=e.match(U);t&&(e=parseFloat(t[0])),r&&(n=r[0])}const r=Math.pow(10,t);return`${Math.ceil(e*r)/r} ${n}`.trim()})(n[x]),o.dotPositions[t]={x:M(n[I]),y:y(v(n[x]))})})),k({cursorX:r,hoverValues:o.hoverValues,dotPositions:o.dotPositions,currentXValue:A,tooltip:A?{visible:!0,left:e.clientX+10,top:e.clientY-20}:{visible:!1,left:0,top:0}})},onMouseLeave:()=>k({cursorX:null,hoverValues:{},dotPositions:{},tooltip:{visible:!1,left:0,top:0},currentXValue:null}),className:"ff-line-chart-svg",children:e.jsxs("g",{transform:"translate(40, 40)",children:[e.jsx("line",{x1:0,y1:0,x2:0,y2:w,strokeWidth:2}),e.jsx("line",{x1:0,y1:w,x2:E,y2:w,stroke:c,strokeWidth:1}),e.jsx("text",{x:E/2.1,y:w+m/1.2,textAnchor:"middle",fill:f,className:"ff-line-chart-x-axis-label",style:{fontSize:d,fontWeight:C},children:a}),n.map(((t,n)=>{return!1!==t.show?e.jsxs("g",{children:[e.jsx("path",{d:Q(t.data),fill:"none",stroke:t.color,strokeWidth:A,opacity:(r=t.data,r.every((e=>0===v(e[x])))?.5:1)}),D.dotPositions[n]&&e.jsxs(e.Fragment,{children:[e.jsx("line",{x1:D.dotPositions[n].x,y1:0,x2:D.dotPositions[n].x,y2:w,stroke:"gray",strokeWidth:.5,strokeDasharray:"4"}),e.jsx("circle",{cx:D.dotPositions[n].x,cy:D.dotPositions[n].y,r:5,fill:"white",stroke:t.color,strokeWidth:A,style:{transition:"cx 0.1s, cy 0.1s"}}),e.jsx("line",{x1:0,y1:D.dotPositions[n].y,x2:E,y2:D.dotPositions[n].y,stroke:"gray",strokeWidth:.5,strokeDasharray:"4"})]})]},n):null;var r})),(()=>{if(1===H.length){const t=H?.[0];return e.jsx("text",{x:g?E/2:E,y:w+15,textAnchor:g?"middle":"end",fill:s,className:"ff--line-chart-x-line-data",style:{fontSize:u},children:null!=t[I]?String(t[I]):""},String(t[I]))}if(H.length<7)return H.map((t=>e.jsx("text",{x:M(t[I]),y:w+15,textAnchor:"middle",fill:s,className:"ff--line-chart-x-line-data",style:{fontSize:u},children:null!=t[I]?String(t[I]):""},String(t[I]))));{const t=E/6;return Array.from({length:7}).map(((n,r)=>{const o=Math.floor(r*(H?.length-1)/6),A=H[o];return e.jsx("text",{x:r*t,y:w+15,textAnchor:0===r?"start":6===r?"end":"middle",fill:s,className:"ff--line-chart-x-line-data",style:{fontSize:u},children:null!=A?.[I]?String(A?.[I]):""},String(A?.[I]))}))}})(),(()=>{if("memory"===p){const t=Math.max(L,1024);return Array.from({length:6}).map(((n,r)=>{const o=r*t/5,A=o/1024;return e.jsx("text",{x:-10,y:y(o),textAnchor:"end",fill:l,className:"ff-line-chart-y-axis-text",style:{fontSize:u},children:A.toFixed(1)},`y-${r}`)}))}return Array.from({length:6}).map(((t,n)=>{const r=n*L/5;return e.jsx("text",{x:-10,y:y(r),textAnchor:"end",fill:l,className:"ff-line-chart-y-axis-text",style:{fontSize:u},children:r.toFixed(0)},`y-${n}`)}))})()]})}),D.tooltip.visible&&e.jsxs("div",{className:"ff-line-chart-tooltip",style:{left:D.tooltip.left,top:D.tooltip.top},children:[e.jsx("div",{className:"ff-line-chart-date",children:D.currentXValue}),Object.entries(D.hoverValues).map((([t,r])=>!1!==n[Number(t)]?.show&&e.jsxs("div",{className:"ff-line-chart-inner-tooltip",children:["default"!==n[Number(t)]?.name&&e.jsx("div",{className:"ff-line-chart-status-dot",style:{backgroundColor:n[Number(t)]?.color}}),n[Number(t)]?.name,": ",r]},t)))]})]})]})},exports.Link=ku,exports.MAC_ADDRESS_REGEX=/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/,exports.MEMORY_VALIDATION_REGEX=K,exports.MachineInputField=qs,exports.MenuOption=te,exports.MessageBox=({content:t,isVisible:n,maxWidth:r=300,onClick:o,isClickable:A=!0,arrowPosition:i="left"})=>e.jsx("div",{onClick:o,style:{width:`${r}px`,"--triangle-position":r-4+"px"},className:d("ff-chat-msg-box",{visible:n,hidden:!n,pointer:A,default:!A,"chat-arrow-left":"left"===i,"chat-arrow-right":"left"!==i}),children:e.jsx("div",{className:d("content",`arrow-${i}`),children:e.jsx(b,{children:t})})}),exports.MiniModal=ei,exports.MobileSkin=({children:n,orientation:r="",navBarIcons:o,mobileHeight:A=448,mobileWidth:i=220,UtilityBar:a})=>{const l="portrait"===r,c=l?A:i,s=l?i:A;return e.jsxs("div",{className:"ff-mobileskin-wrapper "+(l?"portrait":"landscape"),children:[e.jsx("div",{className:"ff-mobileskin-container",style:{height:c+16,width:s+16},children:e.jsx("div",{className:"ff-mobile-container",style:{width:s,height:c},children:e.jsx("div",{className:"ff-mobile-image-container",children:t.isValidElement(n)?n:e.jsx("img",{src:n,alt:"Mobile content",style:{width:l?"100%":2.1*i+"px",height:l?"100%":.5*A+"px"}})})})}),a&&e.jsx("div",{className:"ff-nav-bar",children:o?.map(((t,n)=>e.jsx("div",{className:`ff-nav-bar-icon ${t?.className||""} ${n===o.length-1?"last-icon":""}`,children:e.jsx(M,{title:t?.title,children:e.jsx(E,{...t})})},n)))})]})},exports.Modal=Xc,exports.ModuleChip=({label:t="",isActive:n=!0,onClick:r=()=>{},isFilterChip:o=!1})=>{const A=o?"filter":"module";return e.jsx("div",{className:d("ff-module-chip",{"ff-filter-chip":o,[`ff-${A}-chip--active`]:n,[`ff-${A}-chip--hover`]:!n}),onClick:r,children:e.jsx(b,{lineHeight:"18px",className:"module-typography",children:t})})},exports.MultiRadialChart=({radius:n,lineWidth:r,lineCap:o,barValues:A,labelHeading:i,legendType:a="numberLegend",isLegendDetails:l=!0,chartToLegendGap:c="16px",legendGap:s="8px",labelFontSize:f=12,subLabelFontSize:d=8,gapBetweenArch:C=10,capsuleStyle:u={padding:"4px"}})=>{const[p,g]=t.useState({visible:!1,x:0,y:0,content:""}),[h,m]=t.useState(null),E=A.map((e=>{if("string"==typeof e.value){const t=parseFloat(e.value),n=isNaN(t)?0:t;return{...e,normalizedValue:n,labelValue:Number.isInteger(n)?n:n.toFixed(2)}}return{...e,normalizedValue:e.value,labelValue:Number.isInteger(e.value)?e.value:e.value?.toFixed(2)}})),w=E.reduce(((e,t)=>e+t.normalizedValue),0),v=n,B=r+C,I=2*(v+B*(E.length-1)+r),x=[...E].reverse(),M=i.trim().split(" "),L=(e,t)=>{const{clientX:n,clientY:r}=e,o=e.currentTarget.getBoundingClientRect();g({visible:!0,x:n-o.left,y:r-o.top,content:t})},y=e=>{const{clientX:t,clientY:n}=e,r=e.currentTarget.getBoundingClientRect();g((e=>({...e,x:t-r.left,y:n-r.top})))},Q=()=>{g({visible:!1,x:0,y:0,content:""})},H=(e,t)=>e.length>t?e.slice(0,t)+"...":e;return e.jsxs("div",{className:"ff-multi-radial-chart-container "+("numberLegend"===a?"ff-multi-radial-chart-number":"ff-multi-radial-chart-pill"),style:{gap:c},children:[e.jsxs("div",{className:"relative",style:{width:I,height:I},children:[e.jsx("svg",{width:I,height:I,viewBox:`0 0 ${I} ${I}`,className:"absolute top-0 left-0",children:e.jsxs("g",{transform:`translate(${I/2+1}, ${I/2+1})`,children:[x.map(((t,n)=>{const A=E.length-1-n,i=2*(t.normalizedValue/w)*Math.PI;let a=-Math.PI/2,l=a+i;t.normalizedValue===w&&(a=0,l=2*Math.PI);const c=v+B*A,s=Tp(0,0,c,0,2*Math.PI),f={opacity:null!==h?t.barLabel===h?1:.2:1,transition:"opacity 0.3s ease"};if(0===t.normalizedValue){const n=c*Math.cos(-Math.PI/2),o=c*Math.sin(-Math.PI/2);return e.jsxs("g",{children:[e.jsx("path",{d:s,fill:"none",stroke:t.arcBackgroundColor,strokeWidth:r,className:"transition-all duration-300",style:f}),e.jsx("circle",{cx:n,cy:o,r:r+1,fill:t.arcColor,onMouseEnter:e=>L(e,`${t.barLabel||"Data"}: ${t.value}`),onMouseMove:y,onMouseLeave:Q,style:f})]},A)}const d=Tp(0,0,c,a,l);return e.jsxs("g",{children:[e.jsx("path",{d:s,fill:"none",stroke:t.arcBackgroundColor,strokeWidth:r,className:"transition-all duration-300",style:f}),e.jsx("path",{d:d,fill:"none",stroke:t.arcColor,strokeWidth:r,strokeLinecap:"square"===o?"butt":"round",onMouseEnter:e=>L(e,`${t.barLabel||"Data"}: ${t.value}`),onMouseMove:y,onMouseLeave:Q,style:{pointerEvents:"stroke",...f}})]},A)})),e.jsx("text",{x:"0",y:`-${r+C+2}`,fill:(()=>{if(!p.visible)return"";const e=p.content.split(":")[0]?.trim();if(void 0===e)return"";const t=E.find((t=>t.barLabel===e));return t?.arcColor||""})(),textAnchor:"middle",dominantBaseline:"central",children:p.visible?e.jsxs(e.Fragment,{children:[e.jsx("tspan",{x:"0",dy:""+(r+C-5),className:"ff-center-text-tooltip",children:H(p.content.split(":")[1]?.trim()||"",5)}),e.jsx("tspan",{x:"0",dy:`${r+C+5}`,className:"ff-center-text-tooltip",children:H(p.content.split(":")[0]??"",8)})]}):e.jsx(e.Fragment,{children:M.map(((t,n)=>{if(0===n){const[r,...o]=t.split(" ");return e.jsxs("tspan",{children:[e.jsx("tspan",{x:"0",dy:"0",style:{fontSize:`${f}px`},className:"ff-center-first-text",children:r}),e.jsx("tspan",{x:"0",dy:18,style:{fontSize:`${d}px`},className:"ff-center-text",children:o.join(" ")})]},n)}return e.jsx("tspan",{x:"0",dy:0===n?0:18,className:"ff-center-text",style:{fontSize:`${d}px`},children:t},n)}))})})]})}),p.visible&&e.jsx("div",{className:"ff-multi-radial-tooltip",style:{top:p.y+10,left:p.x+100,zIndex:1e3},children:p.content})]}),l&&((t,n)=>{switch(n){case"numberLegend":return e.jsx("div",{className:"ff-legend-container ff-number-legend",style:{gap:s},children:t.map(((t,n)=>e.jsxs("div",{className:"ff-legend-item",onMouseEnter:()=>m(t.barLabel||t.label),onMouseLeave:()=>m(null),children:[e.jsx(b,{fontSize:20,fontWeight:"semi-bold",className:"ff-legend-value",color:t.arcColor,children:t.key.padStart(2,"0")}),e.jsx(b,{fontSize:10,className:"ff-legend-key",color:"var(--text-color)",children:t.label})]},n)))});case"pillLegend":return e.jsx("div",{className:"ff-legend-container ff-pill-legend",style:{gap:s},children:t.slice().reverse().map(((t,n)=>e.jsxs("div",{className:"ff-legend-item",onMouseEnter:()=>m(t.barLabel||t.label),onMouseLeave:()=>m(null),children:[e.jsx("span",{className:"ff-legend-capsule",style:{backgroundColor:t.arcColor},children:e.jsx(b,{fontSize:10,color:"var(--tooltip-text-color)",style:u,children:t.value})}),e.jsx(b,{className:"ff-legend-key",children:t.label})]},n)))});default:return null}})(E.map((e=>({...e,label:e?.barLabel,key:e.labelValue?.toString()}))),a)]})},exports.MultiSelect=({options:r=[],type:o="text",selectedOptions:A=[],onChange:i=()=>{},acceptNewOption:a=!1,zIndex:l=100,label:c="",onSearch:s=()=>{},required:f=!1,disabled:C=!1,errorMessage:u="Fill this field",displayCount:p=!1,isAllSelected:g,onToggleAllSelect:h,displayAllSelectedAsText:m,isAllSelect:w,placeholderForSearching:v="Search",variant:B="default",onLabelPlusIconClick:I=async()=>{},className:L="",onSelectButtonClick:y=()=>{},labelAccessor:Q="label",valueAccessor:H="value",withSelectButton:V="machines"===B,loadMoreOptions:N=()=>{},onEnter:z=()=>{},maxVisibleChips:P=2,onBlur:S=()=>{},maxDropdownHeight:O=160})=>{const[F,T]=t.useState(!1),[R,G]=t.useState(r),[X,Y]=t.useState(""),[U,K]=t.useState(!1),[W,q]=t.useState(""),[J,_]=t.useState(!1),[$,ee]=t.useState(p),[te,ne]=t.useState({top:0,left:0,width:0,fromBottom:0,selectHeight:0}),[re,oe]=t.useState("white"),Ae=t.useRef(null),ie=t.useRef(null),ae=t.useRef(null),le=t.useRef(null);let ce=U&&0===A.length;const se=A.length-P,fe=(e,t)=>{Ae.current?.focus();const n=R.map((n=>k(n,H)===k(e,H)?{...n,isChecked:t}:n));G(n);const r=n.filter((e=>e.isChecked)).map((({isChecked:e,...t})=>t));if(U||K(!0),x(e))return T(!1),void y?.(r);i&&i(r)},de=(e,t)=>{t.stopPropagation(),fe(e,!1)},Ce=async()=>{try{await I(X),Y(""),_(!1)}catch(e){}};t.useEffect((()=>{if(le.current){const e=le.current.parentElement?.parentElement;if(e){const t=(e=>{let t=e;for(;t;){const e=window.getComputedStyle(t);if("rgba(0, 0, 0, 0)"!==e.backgroundColor)return e.backgroundColor;t=t.parentElement}return""})(e);t&&oe(t)}}}),[le.current]);const ue=()=>{if(ie.current&&le.current){const e=ie.current.getBoundingClientRect(),t=le.current.getBoundingClientRect();ne({top:e.bottom+window.scrollY,left:e.left+window.scrollX,width:e.width,fromBottom:document.documentElement.clientHeight-(e.bottom-4),selectHeight:t.height})}};t.useEffect((()=>{const e=ie.current?.getBoundingClientRect();ne((t=>({...t,width:e?.width})))}),[J]),t.useEffect((()=>{F&&ue()}),[F,R]);const pe=e=>{const t=function(){const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);const t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();document.body.scrollHeight>window.innerHeight&&(document.body.style.paddingRight=e?"":`${t}px`),document.body.style.overflow=e?"":"hidden"};t.useEffect((()=>(F&&pe(!F),ae?.current&&Ae?.current?.focus(),()=>{pe(!0)})),[F]),t.useEffect((()=>{!F&&U&&S()}),[F,U]),t.useEffect((()=>{if(!x(r)){let e=r;x(A)||(e=r.map((e=>({...e,isChecked:A.some((t=>k(t,H)===k(e,H)))})))),G(e)}}),[r,A]),t.useEffect((()=>{const e=e=>{V&&ie.current&&le.current&&ae.current&&!ae.current.contains(e?.target)&&!le.current.contains(e?.target)&&(q(""),T(!1),U||K(!0)),!(ie.current&&Ae.current&&le.current&&ae.current)||Ae.current.contains(e?.target)||ae.current.contains(e?.target)||le.current.contains(e?.target)||e?.target&&e.target.closest(".ff-label-plus-icon")||(q(""),T(!1),U||K(!0))};return window.addEventListener("resize",ue),window.addEventListener("click",e,!0),()=>{window.removeEventListener("resize",ue),window.removeEventListener("click",e),document.body.style.overflow="auto"}}),[]);const ge=m&&A.length===R.length;return e.jsxs("div",{className:`ff-multiselect-container-with-icon ${L}`,children:[e.jsxs("div",{ref:le,className:d("ff-multiselect-wrapper",{"ff-multiselect-wrapper--with-options":A?.length,"ff-multiselect-wrapper--opened-dropdown":F,"ff-multiselect-wrapper--error":ce&&f||W,"ff-multiselect-wrapper--disabled":C}),children:[e.jsxs("div",{className:"ff-multiselect",onClick:()=>{F?V&&ae.current&&T(!1):T(!0)},children:[e.jsxs("div",{className:"ff-multiselect__main",children:[e.jsx(b,{style:{backgroundColor:re},className:d({"active-default-label":F||!V&&A?.length||ce&&f,"default-label":!F&&!A?.length}),required:f,children:c}),e.jsxs("div",{className:"ff-multiselect-chip-container",children:[!V&&(m&&A.length===R.length&&"name"!==Q?e.jsx(j,{zIndex:l,label:"All",onChipCloseClick:e=>{e.stopPropagation();const t=R.map((e=>({...e,isChecked:!1})));G(t),i&&i([])},disableChip:!1},"all"):$?e.jsx(e.Fragment,{children:A.slice(0,P).map((t=>e.jsx(j,{zIndex:l,label:D(t,Q)||"",onChipCloseClick:e=>de(t,e),disableChip:t?.isDisabled||!1},D(t,Q))))}):A.map((t=>e.jsx(j,{zIndex:l,label:D(t,Q)||"",onChipCloseClick:e=>de(t,e),disableChip:t?.isDisabled||!1},D(t,Q))))),!ge&&e.jsx("div",{className:"ff-multiselect-input-container",children:e.jsx("input",{value:X,type:o,autoComplete:"off",placeholder:v,ref:Ae,onChange:e=>{F||T(!0);const t=e.target.value;if(Y(t),s?.(t),t.length>2){const e=R.find((e=>D(e,H)?.toLowerCase()===t.toLowerCase()));_(!e)}else _(!1)},onKeyDown:e=>{if(a&&"Enter"===e.key){if(q(""),"email"===o){if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(X))return T(!1),void q("Please enter a valid email address.")}z?.(X),Y(""),T(!1)}},id:"input-ele",className:"ff-select-input",style:{display:F||A.length&&!V?"inherit":"none"}})})]})]}),se>0&&$&&e.jsx("div",{className:"ff-multiselect-more-chip",onClick:()=>{T(!1),ee(!1)},children:e.jsxs(b,{fontSize:12,fontWeight:"semi-bold",lineHeight:"16px",color:"var(--brand-color)",children:["+",se]})}),e.jsx("div",{onClick:e=>{(e=>{e.stopPropagation(),Ae.current?.focus(),T((e=>!e)),!U&&F&&K(!0)})(e)},className:"ff-multiselect__toggle",children:e.jsx(E,{name:"arrow_down",className:d({"ff-select-arrow--opened-dropdown":F,"ff-select-arrow":!F}),color:F?"var(--brand-color)":"var(--default-icon-color)",height:8,width:12})})]}),e.jsxs("div",{ref:ie,children:[(W||ce&&f&&u)&&e.jsx(b,{children:W||u,fontSize:10,className:"error-text"}),F&&n.createPortal(e.jsx(Z,{ref:ae,searchedKeyword:X,checkedOptions:A,handleOptionChange:fe,options:R,dropdownPosition:te,zIndex:l,withSelectButton:V,labelAccessor:Q,valueAccessor:H,loadMoreOptions:N,isAllSelected:g,onToggleAllSelect:h,isAllSelect:w,maxDropdownHeight:O,variant:B,handleIconClick:Ce}),document.body)]})]}),"labels"===B&&J&&e.jsx(M,{title:"Add Label",placement:"top",zIndex:l+1,children:e.jsx(E,{name:"label_plus",onClick:Ce,className:"ff-label-plus-icon"})})]})},exports.NLPInput=({label:r="",leftIcon:o,rightIcon:A,rightIconColor:i,showLabel:a=!0,onHelpIconClick:l=()=>{},aiIconClick:c=()=>{},webServiceClick:s=()=>{},containerWidth:f="",optionsList:C=[],selectedOption:u={displayName:"",projectId:"",nlpType:"",platform:""},onChange:p=()=>{},errorMsg:g="",className:h="",optionZIndex:m=100,disabled:w=!1,borderRadius:v=!0,showBorder:B=!0,required:I=!1,value:M="",onSelect:L=()=>{},chipOptionList:y,selectedChips:Q,loadMoreOptions:H=()=>{},isWebservice:D=!0})=>{const k={isInputFocused:!1,isIconClick:!1,showOptions:!1,option:x(u)&&"string"==typeof u?.displayName?u.displayName:"",dropdownPosition:{positionX:0,positionY:0,width:0,fromBottom:0}},[V,Z]=t.useReducer(Ws,k),[j,N]=t.useState(u);t.useEffect((()=>{const e="string"==typeof u.displayName?u.displayName:String(u.displayName??"");e!==j.displayName&&N({...u,displayName:e})}),[u]),t.useEffect((()=>{M&&U("FOCUS_INPUT")}),[M]);const z=t.useRef(null),P=t.useRef(null),S=t.useRef(null),{isInputFocused:O,isIconClick:F,showOptions:T,dropdownPosition:R,option:X}=V,Y=G(z,T),U=e=>{w||Z("SHOW_ERROR"===e||"BLUR_INPUT"===e?{type:e,payload:{option:"string"==typeof u.displayName?u.displayName:String(u.displayName??"")}}:{type:e})},K=()=>{if(!T||!z?.current||w)return;const{positionX:e,positionY:t,width:n,fromBottom:r}=Y(z);Z({type:"UPDATE_DROPDOWN_POSITION",payload:{positionX:e,positionY:t,width:n,fromBottom:r}})},W=e=>{const t=window.innerWidth-document.body.clientWidth;document.body.style.paddingRight=e?"":`${t}px`,document.body.style.overflow=e?"":"hidden"};t.useEffect((()=>{if(w)return;T&&W(!T),K();const e=()=>K();return window.addEventListener("resize",e),window.addEventListener("scroll",e),()=>{W(!0),window.removeEventListener("resize",e),window.removeEventListener("scroll",e)}}),[T]),t.useEffect((()=>{g&&U("SHOW_ERROR")}),[]),t.useEffect((()=>{U("FOCUS_INPUT")}),[]);const q=!O&&Boolean(X);return e.jsxs("section",{className:"main-section",children:[e.jsxs("div",{className:d(`ff-nlp-input-wrapper ${h}`),children:[e.jsxs("div",{className:"ff-nlp-input",children:[e.jsx("input",{type:"text",className:d("ff-nlp-input-container",{"ff-nlp-input-container--default":!O,"ff-nlp-input-container--active":q,"ff-nlp-input-container--no-label":!a,"ff-nlp-input-container--error":g&&!O&&!Boolean(X),"ff-nlp-input-container--border-radius":!v,"ff-nlp-input-container--disable":w,"ff-nlp-input-container--no-border":!B}),style:{zIndex:m,paddingLeft:"10px"},onFocus:()=>U("FOCUS_INPUT"),onChange:e=>{w||p(e)},value:M,disabled:w,autoComplete:"off",spellCheck:"false",ref:P}),e.jsxs("div",{className:"ff-nlp-icon-container",children:[e.jsx(E,{name:o||"ai_search",className:"ff-nlp-help_icon",width:16,height:16,onClick:c}),e.jsx(b,{className:"icon-label",fontSize:10,children:"Search With Ai"})]}),a&&e.jsxs("div",{className:d("ff-nlp-input-label","ff-nlp-input-label--default",{"ff-nlp-input-label--active":M||Boolean(X),"ff-nlp-input-label--error":g}),children:[I&&e.jsx(b,{color:"var(--$error-light)",className:"ff-nlp-input-label--required",children:"*"}),r]}),e.jsxs("div",{className:"help-icon-container",children:[e.jsx(E,{name:A||"",height:16,width:16,onClick:l,className:d("ff-nlp-input-arrow",{"ff-nlp-input-arrow--down":!F,"ff-nlp-input-arrow--no-label":!a}),color:i}),e.jsx(b,{className:"help-icon-label",fontSize:10,children:"Help"})]}),e.jsx("fieldset",{className:d("ff-nlp-input-fieldset",{"ff-nlp-input-fieldset--no-label":!a,"ff-nlp-input-fieldset--default":!O,"ff-nlp-input-fieldset--active":O,"ff-nlp-input-fieldset--option":q,"ff-nlp-input-fieldset--error":g,"ff-nlp-input-fieldset--border-radius":!v,"ff-nlp-input-fieldset--no-border":!B}),children:a&&e.jsx("legend",{className:d("ff-nlp-input-legend",{"ff-nlp-input-legend--default":!O,"ff-nlp-input-legend--active":O,"ff-nlp-input-legend--option":q,"ff-nlp-input-legend--error":g}),children:e.jsx("span",{children:" "})})})]}),g&&e.jsx(b,{className:"ff-nlp-input-wrapper-error-text",fontSize:8,color:"var(--error-light)",children:g}),e.jsx("div",{ref:z,children:T&&n.createPortal(e.jsx(Us,{onSelectBlur:()=>{w||U(g?"SHOW_ERROR":"BLUR_INPUT")},onSelectOptionSelector:e=>{L(e)},dropdownPosition:R,options:C,optionZIndex:m,inputRef:P,webServiceClick:s,containerWidth:f,loadMoreOptions:H,chipRef:S,isWebservice:D}),document.body)})]}),e.jsx("div",{className:"chips-accordion-content",children:y&&y.length>0&&e.jsx(Ks,{chipOptionList:y,selectedChips:Q,optionZIndex:m,ref:S})})]})},exports.NLP_DESCRIPTION_REGEX=/^[a-zA-Z0-9_$\s]*$/,exports.NUMBERS_ONLY_REGEX=/^\d+$/,exports.NUMBER_REGEX=Y,exports.NoDataContent=({iconName:t,iconWidth:n=120,iconHeight:r=115,text:o,textFontSize:A="24px"})=>e.jsxs("div",{className:"no_data_message",children:[e.jsx(E,{name:t,width:n,height:r}),e.jsx(b,{fontSize:A,lineHeight:"36px",fontWeight:"bold",children:o})]}),exports.OverviewModal=({isOpen:t,isMaximized:r,width:o="800px",height:A="432px",header:i,children:a,zIndex:l=999,icons:c,downloadFileIcon:s=!1,showheader:f=!0,top:C="0",overlay:u=!0,downloadHandler:p})=>{if(!t)return null;const g=e.jsx("div",{className:d("ff-overviewmodal-overlay"),style:{background:u?"var(--default-icon-color)":void 0,zIndex:l},children:e.jsxs("div",{className:d("ff-overviewmodal-container",{"ff-overviewmaximized-container":r}),style:{"--modal-width":o,"--modal-height":A,"--modal-top":C},children:[f&&e.jsxs("div",{className:d("ff-overviewmodal-header"),children:[i,e.jsxs("div",{className:d("ff-overviewmodal-icons"),children:[s&&e.jsx(E,{width:16,height:16,name:"download_file",onClick:p}),c]})]}),e.jsx("div",{className:d("ff-overviewmodal-body"),children:a})]})});return n.createPortal(g,document.body)},exports.PAN_CARD_REGEX=/^[A-Z]{5}\d{4}[A-Z]{1}$/,exports.PARAMETER_ALPHANUMERIC_REGEX=/^[-_A-Za-z0-9 ]*$|^[-_A-Za-z0-9 ][A-Za-z0-9 ]*[-_A-Za-z-_]$/,exports.PASSWORD_COMPLEX_REGEX=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,exports.PASSWORD_SIMPLE_REGEX=/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/,exports.PHONE_REGEX=/^\+?[\d\s\-()]{7,15}$/,exports.POSTAL_CODE_REGEX=/^[A-Za-z\d\s\-]{3,10}$/,exports.Paper=({children:t,className:n="",rounded:r=!1})=>{const o=d({ff_rounded_lg:r},n);return e.jsx("div",{className:o,children:t})},exports.PhoneInputField=({country:n,value:r,onChange:o,width:A="100%",placeholder:i="Enter phone number",onFocus:a,onBlur:l,id:c,dropdownStyle:s={},enableAreaCodeStretch:f=!1,disabled:d=!1,isValid:C=!0})=>{const[u,p]=t.useState(r),[g,h]=t.useState(!1),[m,E]=t.useState(C);t.useEffect((()=>{if(r){let e=r;e.startsWith("+")||(e=`+${e}`),p(e)}}),[r]);const w=e=>{const t=um[n];if(!t)return!1;let r=e;return r.startsWith("+")||(r=`+${r}`),t.test(r)};return e.jsxs("div",{id:c,children:[e.jsx(Cm,{specialLabel:"",countryCodeEditable:!1,country:n,value:u,onChange:e=>{const t=e.replace(/[^0-9+]/g,"");p(t),o(t);const n=w(t);E(n)},inputStyle:{width:A,height:"32px",border:g?"1px solid var(--brand-color)":m?"1px solid var(--default-color)":"1px solid var(--error_light)",borderRadius:"4px",fontSize:"14px",transition:"border-color 0.3s ease"},enableSearch:!0,placeholder:i,onFocus:e=>{h(!0),a&&a(e)},onBlur:e=>{h(!1),l&&l(e);const t=w(u);E(t)},dropdownStyle:s,enableAreaCodeStretch:f,disabled:d}),!m&&!g&&e.jsx(b,{color:"var(--error_light)",className:"error",children:"Invalid phone number format"})]})},exports.PieChart=({radius:n=15,colors:r=[],data:o=[],chartBorder:A=!1})=>{const[i,a]=t.useState(null),[l,c]=t.useState({x:0,y:0}),[s,f]=t.useState(null),d=o.map((e=>{let t;if("string"==typeof e.value){const n=parseFloat(e.value);t=isNaN(n)?0:n}else t=e.value;return{...e,value:t,labelValue:Number.isInteger(t)?e.value:t.toFixed(2)}})),C=d.reduce(((e,t)=>e+t.value),0),u=1===d.filter((e=>e.value>0)).length;let p=-Math.PI/2;const g=2*(n+5),h=A&&d.length>0?[{label:d[0]?.label||"",value:d.slice(1).reduce(((e,t)=>e+t.value),0)},...d.slice(1)]:d,m=e=>{const{clientX:t,clientY:n}=e;c({x:t,y:n})},E=(e,t,n,r=!1)=>{r?f(n):a({label:e.label,value:e.value,color:t})},w=()=>{a(null),f(null)},v=e=>({transform:s===e?"scale(1.1)":"scale(1)",transition:"transform 0.3s ease, opacity 0.3s ease",opacity:null===s||s===e?1:.5}),B=d.map(((t,n)=>e.jsxs("div",{className:"ff-pie-chart-legend-item",onMouseEnter:()=>E(t,r[n%r.length]||"",n,!0),onMouseLeave:w,children:[e.jsx(b,{as:"div",fontSize:24,fontWeight:"semi-bold",lineHeight:"36px",color:r[n%r.length]||"",children:t.labelValue}),e.jsx(b,{as:"div",fontSize:10,fontWeight:"regular",lineHeight:"18px",className:"ff-pie-chart-legend-value",children:t.label})]},t.label)));if(0===C){const t=`M ${n} 0 A ${n} ${n} 0 1 1 ${-n} 0 A ${n} ${n} 0 1 1 ${n} 0 Z`;return e.jsxs("div",{className:"ff-pie-chart-container",onMouseMove:m,children:[e.jsx("div",{className:""+(A?"ff-pie-chart-border":""),style:{width:g,height:g},children:e.jsx("svg",{width:g,height:g,viewBox:`0 0 ${g} ${g}`,children:e.jsx("g",{transform:`translate(${n+5}, ${n+5})`,children:e.jsx("path",{d:t,fill:"var(--tooltip-bg-color)",stroke:"white",strokeWidth:.5,opacity:.2})})})}),i&&e.jsxs("div",{className:"ff-pie-chart-tooltip",style:{top:l.y,left:l.x},children:[i.label," : ",i.value]}),e.jsx("div",{className:"ff-pie-chart-legend",children:B})]})}return e.jsxs("div",{className:"ff-pie-chart-container",onMouseMove:m,children:[e.jsx("div",{className:""+(A?"ff-pie-chart-border":""),style:{width:g,height:g},children:e.jsx("svg",{width:g,height:g,viewBox:`0 0 ${g} ${g}`,children:e.jsx("g",{transform:`translate(${n+5}, ${n+5})`,children:h.map(((t,o)=>{if(t.value>0){const A=r[o%r.length]||"",{endAngle:i,backgroundArcPath:a}=Kc(t.value,C,p,n);return p=i,u?e.jsxs("g",{onMouseEnter:()=>E(t,A,o),onMouseLeave:w,style:v(o),children:[e.jsx("path",{d:a,fill:A,stroke:"white",strokeWidth:.5}),e.jsx("line",{x1:0,y1:n,x2:0,y2:0,stroke:"white",strokeWidth:2})]},t.label):e.jsxs("g",{children:[e.jsx("path",{d:a,fill:A,stroke:"white",strokeWidth:.5,onMouseEnter:()=>E(t,A,o),onMouseLeave:w,style:v(o)}),e.jsx("text",{x:n/2*Math.cos((p+i)/2),y:n/2*Math.sin((p+i)/2),fill:"white",textAnchor:"middle",dominantBaseline:"central"})]},t.label)}return null}))})})}),i&&e.jsxs("div",{className:"ff-pie-chart-tooltip",style:{top:l.y,left:l.x},children:[i.label," : ",i.value]}),e.jsx("div",{className:"ff-pie-chart-legend",children:B})]})},exports.PopUpModal=({isOpen:t,onClose:n,onContinue:r,titleMessage:o="Warning!",subTitleMessage:A="Unsaved Changes.",iconName:i,modalMessage:a="Your web service data will be lost. Are you sure you want to exit?",firstButtonLabel:l="Cancel",secondButtonLabel:c="Continue",buttonVariant:s="warning",border:f="1px solid var(--warning-modal-border-color)",popupWidth:d="420",popupHeight:C="226",colorForTitleMessage:u="var(--status-button-bg-warning)",footerContent:p,firstButtonDisabled:g=!1,secondButtonDisabled:h=!1})=>e.jsx(Xc,{overlayClassName:"custom-overlay",isOpen:t,onClose:n,isHeaderDisplayed:!1,children:e.jsxs("div",{className:"warning_modal_container",children:[e.jsxs("div",{className:"warning_modal_content",children:[e.jsx(E,{name:i,className:"warning_modal_icon",width:94,height:94}),e.jsxs("div",{className:"warning_modal_message",children:[e.jsxs(b,{fontSize:20,fontWeight:"semi-bold",className:"warning_modal_title_wrapper",children:[" ",e.jsxs(b,{color:`${u}`,fontSize:20,fontWeight:"semi-bold",children:[" ",o," "]})," ",A]}),e.jsxs("div",{className:"warning_modal_message_wrapper",children:[e.jsx(b,{fontSize:16,children:a}),e.jsx(b,{as:"div",children:p})]})]})]}),e.jsxs("div",{className:"warning_modal_footer_button",children:[e.jsx(w,{variant:"secondary",label:l,onClick:n,disabled:g}),e.jsx(w,{variant:s||"warning",label:c,onClick:r,disabled:h})]})]}),ariaHideApp:!0,isFooterDisplayed:!1,customWidth:`${d}px`,customHeight:`${C}px`,boxShadow:"0px 1px 4px 0px var(--toaster-boxshadow)",border:f}),exports.PrePostTable=({data:n=[],columns:r=[],headerType:o,withCheckbox:A=!1,onSelect:i,allSelected:a,partialSelected:l=!1,withFixedHeader:c=!0,borderWithRadius:s=!1,headerCheckboxDisabled:f=!1,noDataContent:C,height:u="100%",className:p="",tableHeadClass:g="",tableBodyRowClass:h="",headerTextColor:m,tableDataTextColor:E,draggable:w=!1,onDragEnd:v,loadMore:B=()=>{},editMode:I="",editComponent:x,NlpComponent:M,AddNlp:L,handleDragStart:y,handelViewComponent:H,handleAccordion:D,loading:k})=>{const V=t.useRef(null),[Z,j]=t.useState(null),[N,z]=t.useState(null),P=e=>{z((t=>t===e?.stepId?null:e?.stepId))},S=e=>{P(e);const t=H(e,P);t?j((()=>t)):P(null)},[O,F]=t.useState(new Map),T=e=>O.has(e),R=e=>{T(e?.stepId)||D?.(e),k||F((t=>{const n=new Map(t);return n.has(e?.stepId)?n.delete(e?.stepId):n.set(e?.stepId,!0),n}))};t.useEffect((()=>{const e=document.getElementById("ff-table-scroll-container"),t=document.getElementById("ff-table-first-node"),r=document.getElementById("ff-table-last-node");if(e&&t&&r&&n?.length)return V.current=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t="ff-table-last-node"===e.target.id?"below":"above";B(t)}}))}),{root:e,rootMargin:"8px",threshold:.1}),V.current.observe(t),V.current.observe(r),()=>{V.current?.disconnect()}}),[n,B]);const G=(e,t,n)=>{let{onClick:r,accessor:o}=e;r&&ne(r)&&r(o,t,n)},X=(e,t)=>{i&&i(e,t)};return e.jsx(vn,{collisionDetection:$e,onDragStart:()=>{y?.(),O.clear()},onDragEnd:e=>{const{active:t,over:r}=e;if(!r||t.id===r.id)return;const o=n.findIndex((e=>e._id===t.id||e.stepId===t.id)),A=n.findIndex((e=>e._id===r.id||e.stepId===r.id));-1!==o&&-1!==A&&v&&v(o,A)},children:e.jsx(Jn,{disabled:!w,items:n?.map((e=>e.stepId||e._id)),strategy:Kn,children:e.jsxs("div",{style:{height:u,position:"relative"},id:"ff-table-scroll-container",className:d(p,{"pre-fixed-header-table":c,"pre-border-borderRadius":s}),children:[e.jsxs("table",{className:d("ff-table-pre-post"),cellSpacing:0,children:[e.jsx("thead",{className:d({"pre-table-thead":c},g),children:e.jsx("tr",{children:r.map(((t,n)=>e.jsx("th",{className:d(`${o&&`${o}-bg`}`,`${m&&`${m}-color`}`),style:{width:t?.width},children:e.jsxs(b,{as:"div",fontWeight:"semi-bold",className:"ff-label-checkbox-container",lineHeight:"18px",color:"var(--drawer-title-color)",children:[0===n&&A&&e.jsx("span",{className:"ff-table-checkbox",children:e.jsx(Q,{onChange:e=>{X(e,{allSelected:e.target.checked})},checked:void 0!==a&&a,partial:!!l,disabled:f})}),t.header]})},t.header)))})}),e.jsxs("tbody",{className:"pre-table-tbody",children:[e.jsx("tr",{id:"ff-table-first-node"}),mm(n,L??{})?.map(((o,i)=>{const a=I===o.stepId;return a||o.isNew?e.jsxs("tr",{className:"pre-edit-row",children:[a&&t.isValidElement(x)&&e.jsx("td",{colSpan:r.length,children:t.cloneElement(x,{rowData:o,rowIndex:i+1})}),o.isNew&&!a&&t.isValidElement(M)&&e.jsx("td",{colSpan:r.length,children:t.cloneElement(M,{rowIndex:i,stepId:o.stepId})})]},o.stepId||i):e.jsx(bm,{row:o,indexNumber:i,columns:r,tableBodyRowClass:h,handleOnclick:G,tableDataTextColor:E,withCheckbox:A,onSelectClick:X,draggable:w,dataLength:n?.length,viewModeId:N,ViewComponent:Z,handleClick:S,handleStepGroupExpand:R,isStepGroupExpanded:T})})),e.jsx("tr",{id:"ff-table-last-node"})]})]}),n?.length<=0&&e.jsx("div",{className:"ff-no-data-content",style:{height:`calc(${u} - 50px)`},children:C})]})})})},exports.ProgressBar=({progressPercentage:t,color:n="var(--brand-color)",trackColor:r="#f0f0f0",height:o=10,label:A,labelFontSize:i=12,labelTextColor:a="var(--ff-card-status-text-color)",showPercentage:l=!1,percentageFontSize:c=10,percentageTextColor:s="var(--tooltip-text-color)"})=>{const f=Math.max(0,Math.min(t,100)),d={width:`${f}%`,backgroundColor:n,height:`${o}px`},C={backgroundColor:r,height:`${o}px`};return e.jsxs("div",{className:"ff-progress-bar-container "+(A?"ff-has-label":""),children:[e.jsx("div",{className:"ff-progress-bar-track",style:C,children:e.jsx("div",{className:"ff-progress-bar",style:d,children:l&&e.jsx(b,{className:"ff-progress-bar-percentage",fontSize:c,color:s,children:`${f}%`})})}),A&&e.jsx(b,{as:"div",className:"ff-progress-bar-label",fontSize:i,color:a,children:A})]})},exports.Prompt=Du,exports.PromptContainer=({id:t=0,serialNumber:n,activeId:r,setActiveId:o,children:A,onIconClick:i,numberChildren:a,onClick:l,onNextClick:c,onPreviousClick:s})=>{const f=(e,t)=>{e.stopPropagation(),t()};return e.jsxs("div",{className:"ff-prompt-container-Block "+(r===t?"active":"inactive"),onClick:()=>{o(t),l()},children:[e.jsx("div",{className:"ff--prompt-header",children:e.jsx(b,{as:"div",className:"ff-prompt-number-bg-color",color:"var(--table-column-text-color)",children:n})}),e.jsx("div",{className:"ff-prompt-content",children:A}),e.jsxs("div",{className:"ff-prompt-icons",children:[e.jsx("div",{className:"ff-prompt-icons-leftside",children:[{action:"delete",title:"Delete",color:"var(--ff-delete-button-attachment)"},{action:"edit",title:"Edit",color:"var(--label-edit-text-label-color)"},{action:"regenerate",title:"Regenerate",color:"var(--label-edit-text-label-color)"}].map((t=>e.jsx(M,{title:t.title,placement:"bottom",children:e.jsx(E,{name:t.action,color:t.color,hoverEffect:!0,onClick:e=>((e,t)=>{e.stopPropagation(),i(t)})(e,t.action)})})))}),e.jsxs("div",{className:"ff-prompt-icons-rightside",children:[e.jsx(E,{className:"ff-prompt-icons-style",name:"arrow_left_accordian",color:"var(--table-column-text-color)",width:12,height:12,onClick:e=>f(e,s)}),a,e.jsx(E,{className:"ff-prompt-icons-style",name:"arrow_right_icon",color:"var(--table-column-text-color)",width:12,height:12,onClick:e=>f(e,c)})]})]})]})},exports.RGB_COLOR_REGEX=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,exports.ROMAN_NUMERALS_REGEX=/^(?=[MDCLXVI])M*(C[MD]|D?C{0,3})(X[CL]|L?X{0,3})(I[XV]|V?I{0,3})$/,exports.RadialChart=({radius:n=15,lineWidth:r=5,statusValues:o=[],onClick:A=()=>{},fontSize:i=6})=>{const{colorMapping:a,backgroundColorMapping:l}=t.useMemo((()=>({colorMapping:{passed:"var(--status-success-text-color)",failed:"var(--status-rejected-text-color)",warning:"var(--status-warning-text-color)",skipped:"var(--status-skipped-text-color)"},backgroundColorMapping:{passed:"var(--status-success-bg-color)",failed:"var(--status-rejected-bg-color)",warning:"var(--status-warning-bg-color)",skipped:"var(--status-skipped-bg-color)"}})),[]),c=o.reduce(((e,t)=>e+t.value),0);let s=-Math.PI/2;const f=2*(n+r);return e.jsx("div",{className:"ff-radial-chart-container",style:{"--fontSize":`${i}px`},children:o.map((t=>{const o=t.status.toLowerCase(),{endAngle:i,backgroundArcPath:d,foregroundArcPath:C,percentage:u}=((e,t,n,r)=>{if(0===t)return{endAngle:n,backgroundArcPath:P({x:0,y:0,radius:r,startAngle:0,endAngle:2*Math.PI}),foregroundArcPath:"",percentage:0};const o=e/t;let A=n,i=A+2*o*Math.PI;return e===t&&(A=0,i=2*Math.PI),{endAngle:i,backgroundArcPath:P({x:0,y:0,radius:r,startAngle:0,endAngle:2*Math.PI}),foregroundArcPath:P({x:0,y:0,radius:r,startAngle:A,endAngle:i}),percentage:o}})(t.value,c,s,n);return s=i,e.jsx(M,{title:`${t.status}: ${Math.round(100*u)}%`,zIndex:1e3,children:e.jsx("svg",{width:f,height:f,viewBox:`0 0 ${f} ${f}`,onClick:()=>A(t),role:"img","aria-label":`${t.status}: ${Math.round(100*u)}%`,children:e.jsxs("g",{transform:`translate(${n+r}, ${n+r})`,children:[e.jsx("path",{d:d,fill:"none",stroke:l[o],strokeWidth:r}),e.jsx("path",{d:C,fill:"none",stroke:a[o],strokeWidth:r}),e.jsx("text",{x:"0",y:"0",fill:a[o],textAnchor:"middle",dominantBaseline:"central",children:`${Math.round(100*u)}%`})]})},t.status)})}))})},exports.RadioButton=ur,exports.RadioGroup=pr,exports.Recaptcha=Xs,exports.Row=({children:t,gap:n="0px",className:r=""})=>e.jsx("div",{className:d("ff-row",r),style:{gap:n},children:t}),exports.SCRIPT_REGEX=/SCR\d+/,exports.SSN_REGEX=/^\d{3}-\d{2}-\d{4}$/,exports.STEP_GROUP_NAME_REGEX=/^[a-zA-Z0-9()\-_ ]+$/,exports.ScriptSwitchButton=({selected:t="text",handleClick:n,tabList:r})=>{const o=r?.includes("Automation"),A=r?.includes("Manual");return e.jsxs("div",{className:"ff-script-switch-container",children:[e.jsx(M,{title:o?"Automation":"Add Automation",zIndex:1e3,children:e.jsx("div",{className:"ff-script-switch-button "+("Automation"===t?"active":""),onClick:()=>n(o?"Automation":"Add Automation"),children:e.jsx(E,{name:o?"automation_testcase":"add_testcase",color:"Automation"===t?"var(--primary-button-text-color)":"var(--description-text)"})})}),e.jsx(M,{title:A?"Manual":"Add Manual",zIndex:1e3,children:e.jsx("div",{className:"ff-script-switch-button "+("Manual"===t?"active":""),onClick:()=>n(A?"Manual":"Add Manual"),children:e.jsx(E,{name:A?"manual_testcase":"add_testcase",color:"Manual"===t?"var(--primary-button-text-color)":"var(--description-text)"})})})]})},exports.Search=ui,exports.Select=X,exports.SequentialConnectingBranch=({machineInstances:n=[],machineColumnWidth:r=180,machineColumnCount:o=1,selectedMachine:A={},machineOptionsList:i=[],onHandleSelect:a=()=>{},onAddBrowserInstance:l=()=>{},onAddRunBrowserInstance:c=()=>{},onDeleteBrowserInstance:s=()=>{},onUpdateDataSetList:f=()=>{},onDeleteMachineInstance:C=()=>{},dataSetValues:u={testDataSetId:"",globalVariableSetId:"",peVariableSetId:"",globalVariableSetName:"",peVariableSetName:"",testDataSetName:""},onUpdateAddBrowserInstance:p=()=>{},addInstanceLabel:g="Add Environment",placeholder:h="Choose Machine",scriptType:m="Automation",projectType:v="Web",readOnly:B=!1,zIndex:I=99999,maxRunCount:L=35})=>{const[y,Q]=t.useState({}),H=t.useRef(null),D=Math.max(o,1),k=Math.max(r,180),[V,Z]=t.useState([]),j=x(n);let N=x(A.value?.clientId);"Manual"===m&&(N=x(A.value));t.useEffect((()=>{Q(A)}),[A]),t.useEffect((()=>{Z(B?n:[...n,{}])}),[n]);const z="manual"!==m.toLowerCase(),P=(S=u,O="Id",Object.fromEntries(Object.entries(S).filter((([e])=>!e.includes(O)))));var S,O;return e.jsxs("div",{className:"ff-sequential-connecting-branch-wrapper",children:[e.jsxs("div",{className:"ff-connecting-select-branch-wrapper",children:[e.jsxs("div",{className:"ff-select-branch-wrapper",children:[e.jsx(X,{onChange:a,optionsList:i,label:h,required:!1,showLabel:!0,className:"ff-sequential-select-branch",width:"240px",selectedOption:y,valueAccessor:"name",optionsRequired:!B,disableInput:B,optionZIndex:I}),!N&&e.jsxs("div",{className:d({"ff-select-branch-arrow":j,"ff-select-branch-arrow-down":!j}),children:[e.jsx("div",{className:"ff-select-branch-point"}),e.jsxs("div",{className:"ff-select-branch-arrow",children:[e.jsx("div",{className:"ff-branch-arrow-wrapper",children:j&&e.jsx("div",{className:"ff-branch-arrow"})}),j&&e.jsx(e.Fragment,{children:e.jsx(w,{variant:"tertiary",label:"+ Environment",size:"small",className:"branch-button",ref:H,onClick:()=>l("ff-sequential-branch-button"),id:"ff-sequential-branch-button"})})]})]})]}),!N&&e.jsxs("div",{className:"ff-select-scope-datalist",children:[e.jsx("div",{className:"ff-scope-wrapper",children:e.jsx(b,{as:"span",color:((e="")=>e.toLowerCase().includes("inactive")?"var(--ff-machine-inactive-status-color)":e.toLowerCase().includes("running")?"var(--ff-machine-running-status-color)":e.toLowerCase().includes("active")?"var(--ff-machine-active-status-color)":"var(--ff-machine-active-status-color))")(A.value?.status),className:"ff-scope-text",children:A.value?.status})}),e.jsxs("div",{className:"ff-datalist-wrapper",children:[z&&e.jsxs("div",{id:"ff-sequential-machine-datalist",onClick:()=>{B||f("ff-sequential-machine-datalist",u)},children:[e.jsx(M,{placement:"bottom",title:e.jsx("div",{children:e.jsx(_s,{datSetToolTip:P})}),children:e.jsx(E,{name:"datalist_icon",className:"ff-dataset-icon",hoverEffect:!0})}),e.jsx(b,{as:"span",color:"var(--ff-connecting-branch-color)",className:"ff-datalist-text",children:"Data Set List"})]}),!B&&e.jsx(E,{name:"delete",className:"ff-run-delete-icon",color:"var(--ff-connecting-branch-delete-color)",onClick:C,hoverEffect:!0})]})]})]}),e.jsx("div",{className:"ff-sequential-branches-wrapper",children:!j&&e.jsx(tf,{machineBranchInstances:V,machineColumnCount:D,machineColumnWidth:k,onAddBrowser:l,onDeleteBrowser:s,onAddRunBrowser:c,onUpdateDataSetList:f,onUpdateAddBrowserInstance:p,addInstanceLabel:g,scriptType:m,projectType:v,readOnly:B,maxRunCount:L})})]})},exports.StateDropdown=({value:t,isReviewer:n=!1,isApprovePage:r=!1,handleStateValueClick:o,handleDropdownOptionsClick:A,disabled:i=!1,isOnlyReviewer:a=!1,showBorder:l=!0,zIndex:c=100})=>{const s=t.toUpperCase(),f=n&&!r&&"REVIEW"===s,d=a&&!r?[{label:"New",value:"New"},{label:"Approve",value:"Approve"}]:n||r?n&&!r?[{label:"REJECTED"===s?"Rejected":"New",value:"REJECTED"===s?"Rejected":"New"},{label:"Review",value:"Review"},{label:"Approve",value:"Approve"}]:n&&r?[{label:"Review",value:"Review"},{label:"Approve",value:"Approve"},{label:"Reject",value:"Reject"}]:f?[{label:"Review",value:"Review"},{label:"Approve",value:"Approve"}]:[{label:"New",value:"New"},{label:"Review",value:"Review"}]:[{label:"REJECTED"===s?"Rejected":"New",value:"REJECTED"===s?"Rejected":"New"},{label:"Review",value:"Review"}],C={label:t,value:t},u=("NEW"===s&&!r||r&&"REVIEW"===s||f||"REJECTED"===s&&!r)&&!i?e.jsx(X,{label:t,onChange:e=>A(e),optionsList:d,selectedOption:C,showLabel:!1,showBorder:l,disableInput:!0,selectedOptionColor:"var(--brand-color)",optionZIndex:c}):e.jsx(b,{children:t,className:"ff-state-value",onClick:()=>{"review"!==t.toLowerCase()||i||r||n||o()},cursor:i?"text":"pointer"});return e.jsx(e.Fragment,{children:u})},exports.StatusButton=({status:t="passed",label:n="",onClick:r=()=>{},className:o="",style:A={},disabled:i=!1,...a})=>{const l="partially-executed"===t||"not-executed"===t;return e.jsx(M,{title:l?n:"",placement:"bottom",children:e.jsx("button",{className:d("ff-status-button",`ff-status-button--${t}`,o),style:A,onClick:r,disabled:i,...a,children:e.jsx(b,{as:"div",fontWeight:"semi-bold",lineHeight:"16px",textAlign:"center",className:"ff-status-button__text",children:n})})})},exports.StatusCard=({icon:n,status:r,count:o,text:A,style:i={width:"196.4px"},resetToggle:a,onSelectedStatus:l=e=>{}})=>{const[c,s]=t.useState(!1),f=["total defects","defect density","open defects","closed defects","quality score"],d=f.includes(r.toLowerCase()),C=f.includes(r.toLowerCase());t.useEffect((()=>{s(!a)}),[a]);return e.jsxs("div",{className:`ff-card-container ${r.toLowerCase()} ${c?"toggled":""}`,style:i,onClick:()=>(e=>{f.includes(e.toLowerCase())||(s(!0),l(e))})(r),children:[e.jsxs("div",{className:"ff-status-bar",children:[e.jsx("div",{children:e.jsx(E,{name:n,height:20,width:20,hoverEffect:!1})}),!f.includes(r.toLowerCase())&&e.jsx(b,{fontWeight:"semi-bold",fontSize:"10px",textAlign:"center",lineHeight:"15px",className:"ff-status-text",as:"div",children:r.charAt(0).toUpperCase()+r.slice(1).toLowerCase()})]}),e.jsx("div",{className:"ff-content "+(C?"red-background":""),children:d?e.jsxs(e.Fragment,{children:[e.jsx(b,{fontWeight:"semi-bold",fontSize:"10px",className:"ff-text",lineHeight:"15px",color:"var(--ff-chip-text-color)",children:A}),e.jsx(b,{fontWeight:"semi-bold",fontSize:"24px",className:"ff-number",lineHeight:"36px",children:"defect density"===r.toLowerCase()?e.jsxs(e.Fragment,{children:[o.toString().padStart(2,"0"),e.jsx(b,{fontSize:"15px",fontWeight:"semi-bold",children:"/ Modules"})]}):"quality score"===r.toLowerCase()?`${parseFloat(o.toString()).toFixed(2)}%`:o.toString().padStart(2,"0")})]}):e.jsxs(e.Fragment,{children:[e.jsx(b,{fontWeight:"semi-bold",fontSize:"24px",className:"ff-number",lineHeight:"24px",color:c?"var(--base-bg-color)":"",children:o.toString().padStart(2,"0")}),e.jsx(b,{className:"ff-text",lineHeight:"18px",color:c?"var(--base-bg-color)":"var(--ff-chip-text-color)",children:A})]})})]})},exports.StepLandingTable=({tableMeta:n=[],tableData:r=[],noDataContent:o,height:A="100%",withFixedHeader:i=!1,headerType:a,handleDragStart:l,onDragEnd:c,editMode:s,editComponent:f,NlpComponent:C,AddNlp:u,handleAccordion:p,handelViewComponent:g,onSelectClick:h,loading:m=!1,isViewPrivilegeMode:w=!1})=>{const[v,B]=t.useState(null),[I,x]=t.useState(null),[M,L]=t.useState({});t.useEffect((()=>{L((e=>{const t={};return r.forEach((n=>{t[n.title]=n.title in e?e[n.title]??!1:"Steps"===n.title})),t}))}),[r]);const y=t.useMemo((()=>e=>M[e]??!1),[M]),H=e=>{x((t=>t===e?.stepId?null:e?.stepId))},D=e=>{H(e);const t=g(e,H);t?B((()=>t)):H(null)},[k,V]=t.useState(Object.fromEntries(r.map((e=>[e.title,new Set]))));t.useEffect((()=>{var e;e=k,Object.values(e).some((e=>e.size>0))?h(k):h(null)}),[k]);const Z=(e,t,n)=>{V((r=>{const o=new Set(r[e]);return n?o.add(t.stepId):o.delete(t.stepId),{...r,[e]:o}}))},j=(e,t)=>t>0&&k[e]?.size===t,N=(e,t)=>{const n=k[e]?.size||0;return n>0&&n<t},[z,P]=t.useState(new Map),S=e=>z.has(e),O=e=>{S(e?.stepId)||p?.(e),m||P((t=>{const n=new Map(t);return n.has(e?.stepId)?n.delete(e?.stepId):n.set(e?.stepId,!0),n}))};return e.jsxs("div",{className:d("ff-accordion-table-container-steps",{"ff-accordion-fixed-header-table":i}),children:[e.jsx("table",{cellSpacing:0,className:d("ff-accordion-table",{"ff-accordion-fixed-header":i}),children:e.jsx("thead",{className:"table-thead",children:e.jsx("tr",{className:"ff-table-row",children:n.map(((t,n)=>e.jsx("th",{style:{width:t.width},className:d("ff-table-header",a&&`ff-accordion-table--${a}-bg`),children:e.jsx(b,{as:"div",fontWeight:"semi-bold",lineHeight:"18px",color:"var(--drawer-title-color)",children:t.header})},`${t.header}-${n}`)))})})}),e.jsx("div",{className:"ff-accordion-table-body",style:{height:A},children:r.map((t=>{const{title:A,data:i,actionCell:d}=t,p=i.length,g=y(A),h=(k[A]?.size??0)>0&&p>0&&d;return e.jsxs("div",{className:"column-table-accordion",children:[e.jsx("div",{className:"ff-display-flex",children:e.jsxs("div",{className:"accordion-header",children:[e.jsx("div",{children:e.jsx(Q,{onChange:e=>((e,t)=>{const n=r.find((t=>t.title===e))?.data.map((e=>e.stepId));n&&V((r=>({...r,[e]:t?new Set(n):new Set})))})(A,e.target.checked),checked:j(A,p),partial:N(A,p),disabled:0===p})}),e.jsx("div",{className:"header-title",children:e.jsx(b,{as:"div",fontWeight:"semi-bold",color:"var(--nlp-option-color)",cursor:"default",lineHeight:"18px",children:A})}),e.jsx("div",{className:"accordion-arrow "+(g?"expanded":""),onClick:()=>(e=>{L((t=>({...t,[e]:!t[e]})))})(A),children:e.jsx(E,{name:"arrow_right",color:g?"var(--brand-color)":"var(--default-color)",width:16,height:16,className:"steps-arrow-svg"})}),h&&e.jsx("div",{children:d(t)})]})}),g&&(m=t,"Steps"===m.title?e.jsx(Im,{draggable:!w,columns:n,onDragEnd:c,data:m.data,headerType:a,withCheckbox:!0,editMode:s,editComponent:f,noDataContent:o,NlpComponent:C,AddNlp:u,tableType:m.title,handleDragStart:()=>{z.clear(),l&&l()},onSelect:Z,selectedRows:k,viewModeId:I,ViewComponent:v,handleClick:D,handleStepGroupExpand:O,isStepGroupExpanded:S}):e.jsx(Im,{editMode:s,withCheckbox:!0,editComponent:f,columns:n,data:m.data,headerType:a,noDataContent:void 0,tableType:m.title,onSelect:Z,selectedRows:k,viewModeId:I,ViewComponent:v,handleClick:D,handleStepGroupExpand:O,isStepGroupExpanded:S}))]},A);var m}))})]})},exports.SwitchButton=({selected:t,handleClick:n,tabList:r})=>e.jsx("div",{className:"ff-switch-container",children:r.map((r=>e.jsx(M,{title:r.tooltip,zIndex:1e3,children:e.jsx("div",{className:"ff-switch-button "+(t===r.name?"active":""),onClick:()=>n(r.name),children:e.jsx(E,{name:r.icon,color:t===r.name?"var(--primary-button-text-color)":"var(--description-text)"})})},r.name)))}),exports.TIME_REGEX=/^\d{2}:\d{2}:\d{2}$/,exports.TWITTER_HANDLE_REGEX=/^@?([a-zA-Z0-9_]{1,15})$/,exports.Table=({data:n=[],columns:r=[],headerType:o,withCheckbox:A=!1,onSelect:i,allSelected:a,partialSelected:l=!1,withFixedHeader:c=!0,borderWithRadius:s=!1,headerCheckboxDisabled:f=!1,noDataContent:C,height:u="100%",className:p="",tableHeadClass:g="",tableBodyRowClass:h="",headerTextColor:m,tableDataTextColor:w,headerIconName:v="",headerIconOnClick:B=()=>{},draggable:I=!1,onDragEnd:x,loadMore:M=()=>{},editMode:L="",editComponent:y,getAccordionStatus:H=()=>{},accordionContent:D,columnSticky:k=!1,onScrollEnd:V=()=>{}})=>{const Z=t.useRef(null),j=t.useRef(null),[N,z]=t.useState(!1);t.useEffect((()=>{const e=document.getElementById("ff-table-scroll-container"),t=document.getElementById("ff-table-first-node"),r=document.getElementById("ff-table-last-node");if(e&&t&&r&&n?.length)return Z.current=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t="ff-table-last-node"===e.target.id?"below":"above";M(t)}}))}),{root:e,rootMargin:"8px",threshold:.1}),Z.current.observe(t),Z.current.observe(r),()=>{Z.current?.disconnect()}}),[n,M]),t.useEffect((()=>{const e=()=>{if(!j.current)return;const{scrollTop:e,scrollHeight:t,clientHeight:n}=j.current;e+n>=t-5?N||(z(!0),V(!0)):z(!1)},t=j.current;return t&&t.addEventListener("scroll",e),()=>{t&&t.removeEventListener("scroll",e)}}),[V,N]);const P=(e,t)=>{let{onClick:n,accessor:r}=e;n&&ne(n)&&n(r,t)},S=(e,t)=>{i&&i(e,t)};return e.jsx(vn,{collisionDetection:$e,onDragEnd:e=>{const{active:t,over:r}=e;if(!r||t.id===r.id)return;const o=n.findIndex((e=>e._id===t.id||e.id===t.id)),A=n.findIndex((e=>e._id===r.id||e.id===r.id));-1!==o&&-1!==A&&x&&x(o,A)},children:e.jsx(Jn,{disabled:!I,items:n?.map((e=>e._id||e.id)),strategy:Kn,children:e.jsxs("div",{style:{height:u,position:"relative",overflowX:"auto",whiteSpace:"nowrap",scrollbarWidth:I?"none":"auto"},id:"ff-table-scroll-container",className:d(p,{"ff-fixed-header-table":c,"border-borderRadius":s}),ref:j,children:[e.jsxs("table",{className:d("ff-table"),cellSpacing:0,children:[e.jsx("thead",{className:d({"ff-fixed-header":c},g),children:e.jsx("tr",{children:r.map(((t,n)=>e.jsxs("th",{className:d(`${o&&`${o}-bg`}`,`${m&&`${m}-color`}`,{"sticky-column":k&&(0===n||1===n)}),style:{width:t?.width,left:!k||0!==n&&1!==n?"auto":53*n+"px"},children:[e.jsx("div",{className:"ff-table-icon",children:e.jsx(E,{height:14,width:14,name:v,onClick:B})}),e.jsxs(b,{as:"div",fontWeight:"semi-bold",className:"ff-label-checkbox-container",children:[0===n&&A&&e.jsx("span",{className:"ff-table-checkbox",children:e.jsx(Q,{onChange:e=>{S(e,{allSelected:e.target.checked})},checked:void 0!==a&&a,partial:!!l,disabled:f})}),t.header]})]},t.header)))})}),e.jsxs("tbody",{className:"ff-fixed-header-table",children:[e.jsx("tr",{id:"ff-table-first-node"}),n?.length>0&&n?.map(((n,o)=>{const i=H(n?.id||n?._id||n?.scriptId);return e.jsx(e.Fragment,{children:L===n._id||L===n.id?e.jsx("tr",{className:d(h,"edit-row",{"disabled-row":n.disabled}),children:e.jsx("td",{colSpan:r.length,style:{padding:"0px"},children:L&&t.isValidElement(y)&&t.cloneElement(y,{rowData:n,rowIndex:o+1})})},n?._id||o):e.jsx(cr,{row:n,serialNumber:o+1,columns:r,tableBodyRowClass:h,handleOnclick:P,tableDataTextColor:w,withCheckbox:A,onSelectClick:S,draggable:I,columnSticky:k,isAccordionOpen:i,accordionContent:D})})})),e.jsx("tr",{id:"ff-table-last-node"})]})]}),n?.length<=0&&e.jsx("div",{className:"no-data-content",style:{height:`calc(${u} - 50px)`},children:C})]})})})},exports.TableTree=({treeData:n,columnsData:r,selected:o=[],select:A=null,onChange:i,onClick:a,onExpand:l,loadMore:c=()=>{},tableBorder:s,height:f="calc(100vh - 134px)",newNode:d,onAddConfirm:C=e=>{},onAddCancel:u=()=>{},handleEditFieldError:p,loading:g=!1,rootNode:h,getContentLength:m,pagination:E=!0,selectedNode:b,tableHeaderBgColor:w="var(--border-color)"})=>{const[v,B]=t.useState(null),[I,x]=t.useState(null),M=t.useRef(null),L=t.useRef(null),[y,Q]=t.useState(null),H=t.useRef([]),D=t.useCallback((()=>{const e=L.current;!g&&e&&setTimeout((()=>{const t=e.scrollTop,r=H.current;if(r.length>0&&"above"===I){const o=Array.from(e.querySelectorAll(".ff-table-tree-row"));let A=0;if(m)A=m;else for(let e=0;e<n.length&&r[0]!==n[e];e++)A++;const i=n.slice(0,A-(t>5?0:1)).reduce(((e,t,n)=>e+(o[n]?.getBoundingClientRect().height||0)),0);"above"===I&&(e.scrollTop=y+i)}H.current=n}),0)}),[g,I,n]);t.useEffect((()=>{const e=document.getElementById("ff-table-tree-scroll-container"),t=document.getElementById("ff-table-tree-last-node"),r=document.getElementById("ff-table-tree-first-node");if(!(e&&t&&r&&n?.length&&E))return;const o=!!n[n.length-1]?.lastResource,A=!!n[0]?.lastResource;M.current?.disconnect();return M.current=new IntersectionObserver((e=>{e.forEach((e=>{const t="ff-table-tree-last-node"===e.target.id?"below":"above";e.isIntersecting&&("below"!==t||I||o?"above"!==t||I||A||g||"above"===I||(x("above"),Q(L.current?.scrollTop??null),c("above")):g||"below"===I||(x("below"),c("below")))}))}),{root:e,rootMargin:"30px",threshold:1}),o||M.current.observe(t),A||M.current.observe(r),0===H.current.length&&(H.current=n),()=>{M.current?.disconnect()}}),[n,c,I]),t.useEffect((()=>{!g&&I&&("above"===I&&E?D():H.current=n,x(null))}),[g]),t.useEffect((()=>{!g&&v&&B(null)}),[g]);const k=t.useCallback((e=>{v||(B(e.key),l?.(e))}),[l,v]),V=t.useCallback(((e,t)=>{v||i?.(e,t)}),[i,v]),Z=t.useCallback(((e,t)=>{v||a?.(e,t)}),[a,v]);return e.jsx("div",{className:"tree-table-wrap",children:e.jsx("div",{className:"table-scrollable "+(n.length?"":"table-empty"),ref:L,id:"ff-table-tree-scroll-container",style:{"--table-height":n.length?f:"auto",border:s},children:e.jsxs("table",{className:"tree-table",children:[e.jsx(ti,{columnsData:r,rootNode:h,onCheckBoxChange:V,selected:o,selectedNode:b,tableHeaderBgColor:w}),e.jsx(li,{flattenedTreeData:n,rootNode:h?.node,columnsData:r,selected:o,select:A,onRowClick:Z,onToggleExpand:k,onCheckBoxChange:V,newNode:d,onAddConfirm:C,onAddCancel:u,handleEditFieldError:p,expanding:v,selectedNode:b})]})})})},exports.TableWithAccordion=({tableMeta:n=[],tableData:r=[],accordionType:o="row",noDataContent:A,height:i="100%",withFixedHeader:a=!1,headerType:l,TableAccordionStateIconWidth:c=4,TableAccordionStateIconHeight:s=8})=>{const[f,C]=t.useState(-1),u=(e,t)=>{let n=e[t.accessor];return t.cell?t.cell({value:n,row:e,column:t.accessor}):t.accessor||n&&"object"!=typeof n?n:"--"},p=t=>{const r=t.map(((t,r)=>e.jsx("table",{className:"ff-accordion-table",cellSpacing:0,children:e.jsx("tbody",{className:"ff-table-body",children:e.jsx("tr",{className:"ff-table-row",children:n.map(((n,r)=>e.jsx("td",{className:"ff-table-cell",style:{width:n.width},children:"column"===o&&0===r?"":e.jsx(b,{children:u(t,n)})},n.accessor+r)))},t.id||r)})},`accordion-table-${r}`)));return r};return e.jsxs("div",{style:{height:i},className:d("ff-accordion-table-container",{"ff-accordion-fixed-header-table":a}),children:[e.jsx("table",{cellSpacing:0,className:d("ff-accordion-table",{"ff-accordion-fixed-header":a}),children:e.jsx("thead",{children:e.jsx("tr",{className:"ff-table-row",children:n.map((t=>e.jsx("th",{style:{width:t.width},className:d("ff-table-header",l&&`ff-accordion-table--${l}-bg`),children:e.jsx("div",{children:e.jsx(b,{fontWeight:"medium",fontSize:12,children:t.header})})},`header-${t.header}`)))})})}),"row"===o&&r.map(((t,n)=>e.jsx(L,{headerTitle:t.title,color:"var(--text-color)",accordionContent:p(t.data),disable:t.disable,disableInfoMessage:t.disableInfoMessage,accordionStateIconName:"arrows_down_icon",AccordionStateIconWidth:c,AccordionStateIconHeight:s},`accordion-row-${n}`))),"column"===o&&r.map(((t,n)=>e.jsxs("div",{className:"column-table-accordion",children:[e.jsx("div",{className:"ff-display-flex",children:e.jsx(M,{title:t?.disableInfoMessage,children:e.jsxs("div",{className:`accordion-header ${t.disable&&"ff-disabled"}`,children:[e.jsx("div",{className:"header-title",children:e.jsx("span",{children:e.jsx(b,{fontWeight:"regular",children:t.title})})}),e.jsx("div",{className:"accordion-arrow",onClick:()=>{!t.disable&&(e=>{C(e===f?-1:e)})(n)},children:e.jsx(E,{name:f===n?"arrows_down_icon":"arrows_right_icon",color:"var(--table-with-accordion-icon-color)",width:c,height:s,hoverEffect:!1})})]})})}),f===n&&e.jsx("div",{children:p(t.data)})]},`column-accordion-${n}`))),r.length<=0&&e.jsx("div",{className:"no-data-content",style:{height:`calc(${i} - 50px)`},children:A})]})},exports.Tabs=({variant:t="default",tabsData:n,activeTabId:r,onTabClick:o,noBorder:A=!1,noPadding:i=!1,titleSize:a="12px"})=>e.jsxs("div",{className:"ff-tabs-container",children:[e.jsx("div",{className:d(`ff-tab-row--${t}`,{"ff-tab-row--no-border":A,"ff-tab-row--no-padding":i}),children:n.map((n=>e.jsxs("button",{onClick:()=>!n.disabled&&o(n.id),disabled:n.disabled,className:d(`ff-tab-button--${t}`,{disabled:n.disabled,active:r===n.id}),children:[e.jsxs("div",{className:"label-count-section",children:[e.jsx(b,{children:n.label,fontSize:a,lineHeight:"18px",fontWeight:r===n.id?"semi-bold":"regular",color:r===n.id?"var(--tabs-label-active-color)":"var(--tabs-label-default-color)",className:d("ff-tab-label",{"ff-tab-label--active":r===n.id})}),"default"===t&&n.count&&e.jsx("span",{className:d("tab-count",{"tab-count--active":r===n.id}),children:n.count})]}),e.jsx("div",{className:d("ff-tab-bar",{"ff-tab-bar--active":r===n.id})}),e.jsx("span",{className:"ff-defaultStatus "+("success"===n.status?"ff-successStatus":"error"===n.status?"ff-dangerStatus":"")})]},n.id)))}),e.jsx("div",{className:"ff-tab-content",children:n.find((e=>e.id===r))?.component})]}),exports.TextArea=({capacity:t=200,name:n,label:r,value:o="",variant:A="primary",error:i,helperText:a="",disabled:l=!1,required:c=!1,placeholder:s="Enter text",className:f="",onChange:C,onBlur:u,onFocus:p,onPaste:g,rows:h=4,cols:m=40,resize:E=!1,errorText:w,...v})=>{const B=d("ff-textarea-label ff-textarea-label--"+A,{"ff-textarea-label--danger":i}),I=d(`ff-textarea ff-textarea--${A}`,f,{"ff-textarea--danger":i,"ff-textarea--resize":!E}),x=d("ff-textarea-container",{"ff-textarea-container--disabled":l,"ff-textarea-container--float":Boolean(o)}),M=i&&c||!o,L=M?e.jsx("span",{className:"ff-textarea-error-text",children:e.jsx(b,{fontSize:10,children:w})}):null;return e.jsxs("div",{className:x,children:[e.jsx("label",{htmlFor:n,className:d("ff-textarea-label-container",{"ff-textarea-label-container--danger":i}),children:e.jsxs("span",{className:B,children:[c&&e.jsx("span",{className:"required-asterisk",children:"*"}),r]})}),e.jsx("textarea",{name:n,value:o,id:n,className:I,placeholder:s+"...",disabled:l,onChange:e=>{const n=e.target.value;J(n)<=t&&C?.(e)},onBlur:u,onFocus:p,onKeyDown:e=>{if("Enter"===e.key){const t=e.currentTarget,n=t.selectionStart;""===(t.value.substring(0,n).split("\n").pop()||"").trim()&&e.preventDefault()}v.onKeyDown?.(e)},onPaste:e=>{e.preventDefault();const n=e.clipboardData.getData("text/plain").split("\n").filter((e=>""!==e.trim())).join("\n"),r=e.currentTarget,o=r.selectionStart,A=r.selectionEnd,i=r.value.slice(0,o),a=r.value.slice(A),l=J(i+a);let c=t-l,s="";for(const e of n)"\n"===e?s+=e:c>0&&(s+=e,c--);const f=i+s+a,d={...e,target:{...r,value:f}};C?.(d),g?.(e)},required:c,rows:h,cols:m,...v}),e.jsxs("div",{className:M?"ff-textarea-error-alignment":"msg-character-count",children:[L,t>0&&e.jsxs("div",{className:"ff-textarea-character-count",children:[e.jsxs(b,{fontSize:8,children:[J(o),"/"]}),e.jsx(b,{fontSize:8,children:t})]})]})]})},exports.TextEditor=({convertedContent:n,setConvertedContent:r,readOnly:o,toolbarHidden:A,toolbarOptions:i,label:a,required:l=!1,onBlur:c,mode:s,helperText:f,analyticsClasses:d=!1})=>{const[C,u]=t.useState(null),[p,g]=t.useState(!1),[h,m]=t.useState(!1);t.useEffect((()=>{let e=null;const t=n?JSON.parse(n):{};if(!x(n))if(t)e=rL.EditorState.createWithContent(rL.convertFromRaw(JSON.parse(n)));else if("view"===s){const t=rL.ContentState.createFromText("--");e=rL.EditorState.createWithContent(t)}else e=rL.EditorState.createEmpty();u(e)}),[n,s]),t.useEffect((()=>{let e=null;if(0===n.length){if("view"===s){const t=rL.ContentState.createFromText("--");e=rL.EditorState.createWithContent(t)}else e=rL.EditorState.createEmpty();u(e)}}),[n]);const E=AL.Editor;return e.jsxs("div",{children:[e.jsxs("div",{className:"ff-texteditor-label-asterisk-container",children:[l&&e.jsx(b,{className:"required-asterisk",children:"* "}),a&&e.jsx(b,{lineHeight:"10px",fontWeight:"medium",fontSize:"12px",children:a})]}),e.jsx(E,{editorState:C,onEditorStateChange:e=>{u(e);const t=rL.convertToRaw(e.getCurrentContent());""!==t?.blocks[0]?.text&&m(!1)},wrapperClassName:"wrapperClass",editorClassName:"ff-heading-TextEditor-style "+(d?"fontSm":"fontMd"),editorStyle:"view"!==s?p?{border:"1px solid var(--text-editor-in-focus-border-color)",borderRadius:"5px"}:{border:"1px solid var(--text-editor-out-focus-border-color) ",borderRadius:"5px"}:{border:"none"},onFocus:()=>{g(!0)},onBlur:e=>{const t=rL.convertToRaw(C.getCurrentContent());r(JSON.stringify(t)),""===t?.blocks[0]?.text&&m(!0),c&&c(e)},readOnly:o,toolbarHidden:A,toolbarClassName:"ff-toolbarClass",handlePastedText:()=>!1,toolbar:{options:Array.isArray(i)&&i?.length>0?i:["inline","blockType","fontSize","fontFamily","list","textAlign","colorPicker","link","emoji","image","remove","history"],fontFamily:{options:["Arial","Georgia","Impact","OpenSans-Regular","Tahoma","Times New Roman","Verdana","poppins"]}}}),l&&h&&e.jsx(b,{fontSize:10,className:"ff-textEditor-error-msg",as:"span",children:f})]})},exports.ThemeProvider=({children:n,theme:r})=>{const[o,A]=t.useState(r||"ff-light-theme");return t.useEffect((()=>(document.body.className=o,()=>{document.body.className=""})),[o]),e.jsx(B.Provider,{value:{currentTheme:o,setCurrentTheme:A,applyTheme:e=>A(e)},children:n})},exports.Toaster=N,exports.Toastify=fi,exports.Toggle=({onChange:t,variant:n="primary",disabled:r,checked:o=!1,id:A="toggle",size:i="large",icon:a})=>{const l={large:10,medium:8,small:6}[i],c={name:"wrong_mark",width:l,height:l},s={checked:{...{name:"check_mark",width:l,height:l},...a?.checked},unchecked:{...c,...a?.unchecked}};return e.jsxs("div",{className:"ff--switch-container",children:[e.jsx("input",{className:"ff--switch-checkbox",id:`ff-toggle-${A}`,type:"checkbox",disabled:!!r,onChange:e=>{t&&t(e)},checked:o}),e.jsx("label",{className:d(`ff--switch-label default--${i} ff--switch-label--${n}`,{"ff--switch-label--disabled":r}),htmlFor:`ff-toggle-${A}`,children:e.jsx("span",{className:d(`ff--switch-button ff--switch-button--${i}`,{checked:o}),children:o?e.jsx(E,{name:s.checked.name,width:s.checked.width,height:s.checked.height,className:`ff-checked-icon--${n}`}):e.jsx(E,{name:s.unchecked.name,width:s.unchecked.width,height:s.unchecked.height,className:`ff-unchecked-icon--${n}`})})})]})},exports.ToggleSwitch=({selected:t="text",firstButton:n="File",secondButton:r="File",handleClick:o})=>e.jsxs("div",{className:"toggle-container",children:[e.jsx("button",{className:"toggle-button "+(t===n?"active":""),onClick:()=>o(n),children:n}),e.jsx("button",{className:"toggle-button "+(t===r?"active":""),onClick:()=>o(r),children:r})]}),exports.Tooltip=M,exports.Typography=b,exports.UNIT_REGEX=U,exports.URL_REGEX=/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([\/\w.-]*)*\/?$/,exports.USERNAME_REGEX=/^[a-zA-Z0-9_]{3,16}$/,exports.USERNAME_SPECIAL_REGEX=/^[a-zA-Z0-9._-]{3,16}$/,exports.US_ZIP_CODE_REGEX=/^\d{5}(-\d{4})?$/,exports.UUID_REGEX=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,exports.VEHICLE_REGISTRATION_REGEX=/^[A-Z]{2}\d{2}[A-Z]{0,2}\d{4}$/,exports.VariableDropdown=Hu,exports.VariableInput=({type:n="url",name:r="",label:o,disabled:A=!1,required:i=!1,placeholder:a="",value:l="",error:c,className:s="",onChange:f,onKeyDown:C,onBlur:u,onFocus:p,list:g=[],...h})=>{const[m,E]=t.useState(""),[w,v]=t.useState(0),[B,I]=t.useState(!0),[x,M]=t.useState([]),[L,y]=t.useState(!1),Q=t.useRef(null),H=t.useRef([]),D=t.useRef([]);t.useEffect((()=>{l&&E(l)}),[l]);const k=()=>{const e=(e=>{const t=/\$\{(\w+)\}/g,n=[];let r,o=0;for(;null!==(r=t.exec(e));){const[t,A]=r,i=g?.includes(A??"");r.index>o&&n.push({text:e.slice(o,r.index),textType:"normal"}),n.push({text:t,textType:i?"variable":"nonVariable"}),o=r.index+t.length}return o<e.length&&n.push({text:e.slice(o),textType:"normal"}),n})(m),t=Q.current;t&&(t.innerHTML=e.map((e=>`<Typography class="${d({ff_var_red:"nonVariable"===e.textType,ff_var_green:"variable"===e.textType,ff_var_def_textType:"nonVariable"!==e.textType&&"variable"!==e.textType})}">${e.text}</Typography>`)).join(""),V(t))},V=e=>{const t=window.getSelection(),n=document.createRange(),r=Z(e);if(r.length>0){const e=r[r.length-1],t=B?1:-1,o=Math.max(0,Math.min(w+t,e.length||0));e&&n.setStart(e,o),n.collapse(!0)}else n.selectNodeContents(e),n.collapse(!1);t?.removeAllRanges(),t?.addRange(n),e.focus()},Z=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);let r;for(;r=n.nextNode();)t.push(r);return t},j=()=>{const e=window.getSelection();if(e&&e.rangeCount>0){return e.getRangeAt(0).startOffset}return 0},N=()=>{H.current.length>1&&(D.current.push(H.current.pop()),E(H.current[H.current.length-1]??""),I(!1))},z=()=>{if(D.current.length>0){const e=D.current.pop();E(e),H.current.push(e),I(!0)}},P=e=>{const t=window.getSelection(),n=t?.getRangeAt(0);if(n){n.deleteContents();const r=document.createTextNode(e);n.insertNode(r);const o=document.createElement("br");n.insertNode(o),n.setStartAfter(o),n.collapse(!0),t?.removeAllRanges(),t?.addRange(n),Q.current?.focus(),E(Q.current?.innerText||"")}};t.useEffect((()=>{k()}),[m]);const S=d("ff_content_editable",{ff_placeholder:!m,ff_disabled:A,ff_required:i,ff_invalid_input:c});return e.jsxs("div",{className:"ff_variable_input_container",children:[o&&e.jsxs("label",{htmlFor:r,className:d("ff_label_container",{ff_labelDanger:c}),children:[i&&e.jsx(b,{className:"ff_required_asterisk",children:"*"}),e.jsx(b,{className:d("ff_input_label",{ff_no_hover:l,ff_disabled_label:A,ff_danger_label:c}),children:o})]}),e.jsx("div",{id:r,contentEditable:!A,ref:Q,onInput:e=>{const t=e.currentTarget.innerText.split("\n").join("");if(E(t),H.current.push(t),D.current=[],i&&!t.trim()?e.currentTarget.classList.add("ff_required_empty"):e.currentTarget.classList.remove("ff_required_empty"),"url"===n){new RegExp("^(https?://)?([\\w.-]+)\\.([a-zA-Z]{2,})(/([\\w.-]+|\\$\\{[\\w.-]+\\}))*/?$").test(t)?(e.currentTarget.classList.remove("ff_invalid_input"),e.currentTarget.classList.remove("ff_required_empty")):e.currentTarget.classList.add("ff_invalid_input")}else e.currentTarget.classList.add("ff_invalid_input");f&&f(t);const r=/\$\{(\w*)$/.exec(t);if(r){const e=r[1],t=g?.filter((t=>t.startsWith(e??"")));M(t),y(!0)}else y(!1)},onKeyDown:e=>{const t=j();v(t),I(!0);const n=Q.current&&Q.current.textContent||"";if(("Backspace"===e.key||"Delete"===e.key)&&(I(!1),!n.trim()))return e.preventDefault(),void(Q.current&&(Q.current.textContent="",Q.current.blur()));"Enter"===e.key?(e.preventDefault(),P("\n")):e.ctrlKey&&"z"===e.key?(e.preventDefault(),N()):e.ctrlKey&&"y"===e.key&&(e.preventDefault(),z()),C&&C(e)},onFocus:e=>{e.currentTarget.style.outline="none",p&&p(e)},onBlur:e=>{e.currentTarget.style.outline="none",u&&u(e),i&&!m.trim()?e.currentTarget.classList.add("ff_required_empty"):e.currentTarget.classList.remove("ff_required_empty")},className:S,suppressContentEditableWarning:!0,"aria-required":i?"true":"false","data-name":r,"data-type":n,"data-placeholder":a,spellCheck:!1,...h}),L&&e.jsx("ul",{className:"ff_suggestions",children:x.map((t=>e.jsx("li",{onClick:()=>(e=>{const t=m.replace(/\$\{\w*$/,`\${${e}`);E(t),y(!1)})(t),className:"ff_suggestion_item",children:t},t)))})]})},exports.VariableSuggestionInputDropDown=hm,exports.WHITESPACE_REGEX=/^\s+|\s+$/g,exports.addPrePostStepGroup=pm,exports.addStepGroup=(e,t,n,r)=>e.map((e=>e.title===t?{...e,data:pm(e.data,n,r)}:e)),exports.capitalize=rf,exports.checkEmpty=x,exports.clearStore=()=>{try{localStorage.clear()}catch(e){throw console.error("Failed to clear data:",e),new Error("Failed to clear data")}},exports.compareArrays=(e,t)=>!(!Array.isArray(e)||!Array.isArray(t))&&(e.length===t.length&&e.every(((e,n)=>{const r=t[n];return Zu(e,r)}))),exports.compareObjects=Zu,exports.convertFormDataToObject=e=>{const t={};return e.forEach(((e,n)=>{t[n]?t[n]=Array.isArray(t[n])?[...t[n],e]:[t[n],e]:t[n]=e})),t},exports.convertToBytes=Op,exports.convertToGB=Fp,exports.debounce=yu,exports.deleteStoreValue=e=>{if(!e)throw new Error("Key must be provided");try{localStorage.removeItem(e)}catch(e){throw console.error("Failed to delete data:",e),new Error("Failed to delete data")}},exports.ffid=Js,exports.findAndInsert=function(e,t,n,r,o,A="children"){return function e(i){for(let a=0;a<i.length;a++){const l=i[a];if(l&&l[t]===n){const e=[...i];return"replace"===o?e[a]=r:e.splice("above"===o?a:a+1,0,r),{updatedArray:e}}if(l&&l[A]&&Array.isArray(l[A])){const t=e(l[A]);if(t)return{updatedArray:i.map(((e,n)=>n===a?{...e,[A]:t.updatedArray}:e))}}}return null}(e)},exports.formatDate=e=>`${e.getDate().toString().padStart(2,"0")}/${(e.getMonth()+1).toString().padStart(2,"0")}/${e.getFullYear()}`,exports.getEncryptedData=(e,t)=>{const n=new Sp;n.setPublicKey(t);return n.encrypt(e)},exports.getExtension=e=>{if("string"==typeof e&&e.includes(".")){const t=e.split(".").pop();return t!==e?t:""}return e instanceof File?e.name.split(".").pop():""},exports.getExtensionWithPeriod=dr,exports.getSequentialPayload=e=>e.flatMap((e=>e.runLevelExecutionDataSets.map(((t,n)=>{const{runLevelExecutionDataSets:r,...o}=e;return{...o,...t,runCount:n+1}})))),exports.getStoreValue=e=>{if(!e)throw new Error("Key must be provided");try{const t=localStorage.getItem(e);return t?(e=>{try{const t=decodeURIComponent(escape(atob(e)));try{return JSON.parse(t)}catch{return t}}catch(e){throw console.error("Error decoding data:",e),new Error("Decoding failed")}})(t):null}catch(e){throw console.error("Failed to retrieve data:",e),new Error("Failed to retrieve data")}},exports.getTreeDetails=(e,t,n,r)=>{let o,A;const i=()=>{if(r){const e=((e,t)=>e.findIndex((e=>e.key===t)))(t,r);if(-1===e)throw new Error(`Key "${r}" not found in oldData.`);return e}return 0};switch(e){case"above":o=[...n,...t].slice(0,100);break;case"below":o=[...t,...n].slice(-100);break;case"expand":case"expandAll":case"collapse":const r=i();if(void 0===r)throw new Error("Both sourceId and index are required for 'expand' or 'collapse' actions.");o=[...t.slice(0,r),...n].slice(-40);break;case"addAbove":const a=i();if(void 0===a)throw new Error("Both sourceId and index are required for 'addAbove' action.");o=[...t.slice(0,a),...n,...t.slice(a)];break;case"addBelow":const l=i();if(void 0===l)throw new Error("Both sourceId and index are required for 'addBelow' action.");o=[...t.slice(0,l+1),...n,...t.slice(l+1)];break;case"start":if(x(n))throw new Error("Tree data list is empty, cannot determine root.");A=n[0],o=n.slice(1);break;default:throw new Error(`Invalid action: ${e}`)}if(x(o)&&"start"!==e)throw new Error("Tree data list is empty.");const a=o[0]||A,l=o[o.length-1]||{lastResource:!0,key:""};return{treeDataList:o,next:!l?.lastResource,previous:!a?.lastResource,startId:a?.key,endId:l?.key,root:A}},exports.handleTreeNodeExpandCollapse=(e,t,n,r)=>{if(!t)throw new Error("Key is required");const o=new Map,A=new Map,i=new Set;let a=[...e];n&&!x(n)&&(a=[n,...e]),a.forEach((e=>{o.set(e.key,e),e.parentId&&(A.has(e.parentId)||A.set(e.parentId,[]),A.get(e.parentId).push(e))}));const l=o.get(t);if(l)if(l.expanded=r,r){(A.get(t)||[]).forEach((e=>e.hide=!1))}else!function e(t,n){if(i.has(t))throw new Error(`Cycle detected at node: ${t}`);i.add(t),(A.get(t)||[]).forEach((t=>{t.hide=n,e(t.key,!0)})),i.delete(t)}(t,!0);return x(n)?{data:a}:{rootNode:a[0],data:a.slice(1)}},exports.handleTreeNodeSect=(e,t,n,r)=>{if(!t)throw new Error("Key is required");const o=new Map,A=new Map,i=new Set;let a=[...e];n&&!x(n)&&(a=[n,...e]),a.forEach((e=>{o.set(e.key,e),e.parentId&&(A.has(e.parentId)||A.set(e.parentId,[]),A.get(e.parentId).push(e))}));const l=o.get(t);return l&&(l.selectedStatus=r?"completely":"none",function e(t,n){if(i.has(t))throw new Error(`Cycle detected at node: ${t}`);i.add(t),(A.get(t)||[]).forEach((t=>{t.selectedStatus=n,e(t.key,n)})),i.delete(t)}(t,l.selectedStatus),function e(t){if(i.has(t))throw new Error(`Cycle detected at node: ${t}`);i.add(t);const n=o.get(t);if(n&&n.parentId){const t=o.get(n.parentId);t&&(t.selectedStatus=function(e){const t=o.get(e);if(!t)return"none";const n=(t.resourceCount??0)+(t.subContainerCount??0);if(0===n)return t.selectedStatus??"none";const r=A.get(e)||[];let i=0,a=!1;for(const e of r)"completely"===e.selectedStatus?i++:"partially"===e.selectedStatus&&(a=!0);return i===n?"completely":a||i>0?"partially":"none"}(t.key),e(t.key))}i.delete(t)}(t)),x(n)?{data:a}:{rootNode:a[0],data:a.slice(1)}},exports.hasDuplicateFile=(e,t)=>{const n=new Set;for(const r of e){const e=t?r[t]:JSON.stringify(r);if(n.has(e))return!0;n.add(e)}return!1},exports.isEmptyObject=$s,exports.rearrangeDragItem=(e,t,n)=>{const r=[...e],o=r[t];return r.splice(t,1),r.splice(n,0,o),r},exports.saveFileFromBlob=(e,t)=>{if(!(e&&e instanceof Blob))throw console.error("Invalid Blob object"),new Error("Invalid Blob object");const n=window.navigator;if(n.msSaveOrOpenBlob){const r=n.msSaveOrOpenBlob;r&&r(e,t)}else{const n=document.createElement("a");document.body.appendChild(n);const r=window.URL.createObjectURL(e);n.href=r,n.download=t,n.click(),setTimeout((()=>{window.URL.revokeObjectURL(r),document.body.removeChild(n)}),0)}},exports.setStoreValue=(e,t)=>{if(!e||void 0===t)throw new Error("Key and value must be provided");try{const n=(e=>{try{const t="object"==typeof e?JSON.stringify(e):e;return btoa(unescape(encodeURIComponent(t)))}catch(e){throw console.error("Error encoding data:",e),new Error("Encoding failed")}})(t||{});localStorage.setItem(e,n)}catch(e){throw console.error("Failed to save data:",e),new Error("Failed to save data")}},exports.throttle=(e,t)=>{let n,r=null;const o=function(...o){const A=this;null===r||Date.now()-r>=t?(e.apply(A,o),r=Date.now()):(n&&clearTimeout(n),n=setTimeout((()=>{e.apply(A,o),r=Date.now()}),t-(Date.now()-r)))};return o.cancel=()=>{n&&clearTimeout(n),n=null,r=null},o},exports.toast=di,exports.truncateText=H,exports.useClickOutside=O,exports.useFileDropzone=Cr,exports.useKeyboardActions=Ci,exports.useTheme=()=>{const e=t.useContext(B);if(void 0===e)throw new Error("useTheme must be used within a ThemeProvider");return e};
|
53
53
|
//# sourceMappingURL=index.cjs.map
|