/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. * Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */ (window.canvas_bundle_jsonpfunction=window.canvas_bundle_jsonpfunction||[]).push([[7],{101:function(e,t,r){"use strict";r.d(t,"a",(function(){return j}));var n=r(60),a=r.n(n),o=r(16),i=r(18),s=r(113),l=r.n(s),c=r(96),u=r(17);const f=({value:e,children:t})=>{let r={};return l()(e).isValid()&&(r={background:e}),Object(u.jsx)("div",{className:"canvasColorDot"},Object(u.jsx)("div",{className:"canvasColorDot__background canvasCheckered"}),Object(u.jsx)("div",{className:"canvasColorDot__foreground",style:r},t))};var h=r(3);const g=({hasButtons:e=!1,onAddColor:t,onChange:r,onRemoveColor:n,value:a=""})=>{const o=l()(a).isValid();let s=null;return e&&(s=Object(u.jsx)(i.EuiFlexItem,{grow:!1},Object(u.jsx)(i.EuiButtonIcon,{"aria-label":h.i18n.translate("xpack.canvas.colorManager.addAriaLabel",{defaultMessage:"Add Color"}),iconType:"plusInCircle",isDisabled:!o||!t,onClick:()=>t&&t(a)}),Object(u.jsx)(i.EuiButtonIcon,{"aria-label":h.i18n.translate("xpack.canvas.colorManager.removeAriaLabel",{defaultMessage:"Remove Color"}),iconType:"minusInCircle",isDisabled:!o||!n,onClick:()=>n&&n(a)}))),Object(u.jsx)(i.EuiFlexGroup,{gutterSize:"xs",alignItems:"center"},Object(u.jsx)(i.EuiFlexItem,{grow:!1},Object(u.jsx)(f,{value:o?a:void 0})),Object(u.jsx)(i.EuiFlexItem,{style:{display:"inline-block"}},Object(u.jsx)(i.EuiFieldText,{value:a,isInvalid:!o&&a.length>0,placeholder:h.i18n.translate("xpack.canvas.colorManager.codePlaceholder",{defaultMessage:"Color code"}),onChange:e=>r(e.target.value)})),s)};var d=r(381),b=r.n(d);function p(e,t="#FFF",r="#333"){try{return b.a.contrast(e,"#000")<7?t:r}catch(e){return r}}var v=r(19);const m=function({items:e=[],itemsPerRow:t=6,children:r}){const n=e.reduce(((e,n)=>{let a=Object(v.last)(e);return a&&a.length>=t&&e.push([]),a=Object(v.last)(e),a&&a.push(r(n)),e}),[[]]);return Object(u.jsx)(o.Fragment,null,n.map(((e,t)=>Object(u.jsx)("div",{key:`item-grid-row-${t}`,className:"item-grid-row"},e))))},_=Object(o.memo)(m),x=({colors:e=[],colorsPerRow:t=6,onChange:r,value:n=""})=>0===e.length?null:(e=e.filter((e=>l()(e).isValid())),Object(u.jsx)("div",{className:"canvasColorPalette"},Object(u.jsx)(_,{items:e,itemsPerRow:t},(e=>{const t=l.a.equals(e,n),a=t?Object(u.jsx)(i.EuiIcon,{type:"check",className:"selected-color",color:p(n)}):null;return Object(u.jsx)(i.EuiLink,{style:{fontSize:0},key:e,onClick:()=>!t&&r(e),className:"canvasColorPalette__dot","aria-label":l()(e).toName()||e},Object(u.jsx)(f,{value:e},a))})))),y=({colors:e=[],hasButtons:t=!1,onAddColor:r,onChange:n,onRemoveColor:a,value:o=""})=>{const i=l()(o).isValid();e=e.filter((e=>l()(e).isValid()));let s=!1,c=!1;if(i){const t=e.filter((e=>l.a.equals(o,e)));s=t.length>0,c=0===t.length}return Object(u.jsx)("div",null,Object(u.jsx)(x,{onChange:n,value:o,colors:e}),Object(u.jsx)(g,{onChange:n,value:o,onAddColor:c?r:void 0,onRemoveColor:s?a:void 0,hasButtons:t}))},j=e=>{const{value:t,anchorPosition:r,ariaLabel:n,...o}=e;return Object(u.jsx)(c.a,{id:"color-picker-popover",panelClassName:"canvas canvasColorPickerPopover__popover",button:e=>Object(u.jsx)(i.EuiLink,{"aria-label":`${n} ${l()(t).toName()||t}`,style:{fontSize:0},onClick:e},Object(u.jsx)(f,{value:t})),anchorPosition:r},(()=>Object(u.jsx)(y,a()({value:t},o))))}},113:function(e,t,r){var n;!function(a){var o=/^\s+/,i=/\s+$/,s=0,l=a.round,c=a.min,u=a.max,f=a.random;function h(e,t){if(t=t||{},(e=e||"")instanceof h)return e;if(!(this instanceof h))return new h(e,t);var r=function(e){var t,r,n,s={r:0,g:0,b:0},l=1,f=null,h=null,g=null,d=!1,b=!1;return"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(i,"").toLowerCase();var t,r=!1;if(R[e])e=R[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=B.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=B.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=B.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=B.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=B.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=B.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=B.hex8.exec(e))?{r:N(t[1]),g:N(t[2]),b:N(t[3]),a:L(t[4]),format:r?"name":"hex8"}:(t=B.hex6.exec(e))?{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:r?"name":"hex"}:(t=B.hex4.exec(e))?{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:L(t[4]+""+t[4]),format:r?"name":"hex8"}:!!(t=B.hex3.exec(e))&&{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),format:r?"name":"hex"}}(e)),"object"==typeof e&&(V(e.r)&&V(e.g)&&V(e.b)?(t=e.r,r=e.g,n=e.b,s={r:255*H(t,255),g:255*H(r,255),b:255*H(n,255)},d=!0,b="%"===String(e.r).substr(-1)?"prgb":"rgb"):V(e.h)&&V(e.s)&&V(e.v)?(f=q(e.s),h=q(e.v),s=function(e,t,r){e=6*H(e,360),t=H(t,100),r=H(r,100);var n=a.floor(e),o=e-n,i=r*(1-t),s=r*(1-o*t),l=r*(1-(1-o)*t),c=n%6;return{r:255*[r,s,i,i,l,r][c],g:255*[l,r,r,s,i,i][c],b:255*[i,i,l,r,r,s][c]}}(e.h,f,h),d=!0,b="hsv"):V(e.h)&&V(e.s)&&V(e.l)&&(f=q(e.s),g=q(e.l),s=function(e,t,r){var n,a,o;function i(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=H(e,360),t=H(t,100),r=H(r,100),0===t)n=a=o=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=i(l,s,e+1/3),a=i(l,s,e),o=i(l,s,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(e.h,f,g),d=!0,b="hsl"),e.hasOwnProperty("a")&&(l=e.a)),l=E(l),{ok:d,format:e.format||b,r:c(255,u(s.r,0)),g:c(255,u(s.g,0)),b:c(255,u(s.b,0)),a:l}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=l(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=r.ok,this._tc_id=s++}function g(e,t,r){e=H(e,255),t=H(t,255),r=H(r,255);var n,a,o=u(e,t,r),i=c(e,t,r),s=(o+i)/2;if(o==i)n=a=0;else{var l=o-i;switch(a=s>.5?l/(2-o-i):l/(o+i),o){case e:n=(t-r)/l+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(h(n));return o}function P(e,t){t=t||6;for(var r=h(e).toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(h({h:n,s:a,v:o})),o=(o+s)%1;return i}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=E(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=g(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=g(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var o=[M(l(e).toString(16)),M(l(t).toString(16)),M(l(r).toString(16)),M(T(n))];return a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*H(this._r,255))+"%",g:l(100*H(this._g,255))+"%",b:l(100*H(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*H(this._r,255))+"%, "+l(100*H(this._g,255))+"%, "+l(100*H(this._b,255))+"%)":"rgba("+l(100*H(this._r,255))+"%, "+l(100*H(this._g,255))+"%, "+l(100*H(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(F[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+p(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=h(e);r="#"+p(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(j,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},h.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:q(e[n]));e=r}return h(e,t)},h.equals=function(e,t){return!(!e||!t)&&h(e).toRgbString()==h(t).toRgbString()},h.random=function(){return h.fromRatio({r:f(),g:f(),b:f()})},h.mix=function(e,t,r){r=0===r?0:r||50;var n=h(e).toRgb(),a=h(t).toRgb(),o=r/100;return h({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},h.readability=function(e,t){var r=h(e),n=h(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},h.isReadable=function(e,t,r){var n,a,o,i,s,l=h.readability(e,t);switch(a=!1,(o=r,"AA"!==(i=((o=o||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(s=(o.size||"small").toLowerCase())&&"large"!==s&&(s="small"),n={level:i,size:s}).level+n.size){case"AAsmall":case"AAAlarge":a=l>=4.5;break;case"AAlarge":a=l>=3;break;case"AAAsmall":a=l>=7}return a},h.mostReadable=function(e,t,r){var n,a,o,i,s=null,l=0;a=(r=r||{}).includeFallbackColors,o=r.level,i=r.size;for(var c=0;cl&&(l=n,s=h(t[c]));return h.isReadable(e,s,{level:o,size:i})||!a?s:(r.includeFallbackColors=!1,h.mostReadable(e,["#fff","#000"],r))};var R=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},F=h.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(R);function E(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function H(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,u(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function I(e){return c(1,u(0,e))}function N(e){return parseInt(e,16)}function M(e){return 1==e.length?"0"+e:""+e}function q(e){return e<=1&&(e=100*e+"%"),e}function T(e){return a.round(255*parseFloat(e)).toString(16)}function L(e){return N(e)/255}var z,D,$,B=(D="[\\s|\\(]+("+(z="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",$="[\\s|\\(]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",{CSS_UNIT:new RegExp(z),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function V(e){return!!B.CSS_UNIT.exec(e)}e.exports?e.exports=h:void 0===(n=function(){return h}.call(t,r,t,e))||(e.exports=n)}(Math)},125:function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n=r(16),a=r.n(n),o=r(70),i=r(75),s=r.n(i),l=r(19),c=r(17);const u=e=>{const{children:t,...r}=e;return Object(c.jsx)(a.a.Fragment,null,t(r))};u.propTypes={children:s.a.func.isRequired,error:s.a.object,errorInfo:s.a.object,resetErrorState:s.a.func.isRequired};const f=Object(o.compose)(Object(o.withState)("error","setError",null),Object(o.withState)("errorInfo","setErrorInfo",null),Object(o.withHandlers)({resetErrorState:({setError:e,setErrorInfo:t})=>()=>{e(null),t(null)}}),Object(o.lifecycle)({componentDidCatch(e,t){this.props.setError(e),this.props.setErrorInfo(t)}}),Object(o.mapProps)((e=>Object(l.omit)(e,["setError","setErrorInfo"]))))(u)},163:function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return s}));var n=r(60),a=r.n(n),o=(r(16),r(18)),i=r(17);let s;!function(e){e.error="error",e.warning="warning",e.info="info"}(s||(s={}));const l=({icon:e=s.info,...t})=>{const r={[s.error]:{type:"error",color:"danger"},[s.warning]:{type:"warning",color:"warning"},[s.info]:{type:"iInCircle",color:"default"}};return Object(i.jsx)(o.EuiIconTip,a()({},t,{type:r[e].type,color:r[e].color}))}},381:function(e,t,r){e.exports=r(12)(68)},75:function(e,t,r){e.exports=r(12)(8)},96:function(e,t,r){"use strict";r.d(t,"a",(function(){return popover_Popover}));var n=r(60),a=r.n(n),o=r(1),i=r.n(o),s=r(16),l=r(18),c=r(17);class popover_Popover extends s.Component{constructor(...e){super(...e),i()(this,"state",{isPopoverOpen:!!this.props.isOpen}),i()(this,"handleClick",(()=>{this.setState((e=>({isPopoverOpen:!e.isPopoverOpen})))})),i()(this,"closePopover",(()=>{this.setState({isPopoverOpen:!1})}))}componentDidMount(){this.props.isOpen&&this.setState({isPopoverOpen:!0})}render(){const{button:e,children:t,tooltip:r,tooltipPosition:n,...o}=this.props,i=document.querySelector(".kbnAppWrapper"),s=l.EuiPopover;return Object(c.jsx)(s,a()({},o,{button:(t=>!this.state.isPopoverOpen&&r&&r.length?Object(c.jsx)(l.EuiToolTip,{position:n,content:r},e(t)):e(t))(this.handleClick),isOpen:this.state.isPopoverOpen,closePopover:this.closePopover,container:i,hasArrow:!1,offset:10}),t({closePopover:this.closePopover}))}}i()(popover_Popover,"defaultProps",{isOpen:!1,ownFocus:!0,tooltip:"",tooltipPosition:"top"})}}]);