/*!
 * Copyright © 2018 Splunk Inc.
 * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
 * in part without a valid written license from Splunk Inc. is PROHIBITED.
 */(()=>{"use strict";var e={397:(e,t,r)=>{r.r(t),r.d(t,{default:()=>T});var a=r(9497),l=r.n(a),n=r(23),o=r.n(n),i=r(232),s=r.n(i),u=r(4793),c=r(3563),d=r(7408),f=r.n(d),p=r(4082),h=r.n(p),m=r(8987),g=r(6649),b=r(2621),v=r.n(b);const y=require("@splunk/visualizations-shared/colorConstants");var _=r(3283),C=r(4008),O=r.n(C);const x=s().div`
    max-height: ${c.variables.inputHeight};
    width: 100%;
    min-width: 0;
`,P=s()(h())`
    max-height: ${c.variables.inputHeight};
`,w=({color:e,defaultColor:t,prevColor:r})=>{const a="string"==typeof e?e.trim():e;return(0,_.isColor)(a)||null===a?a:(0,_.isColor)(t)?t:(0,_.isColor)(r)||null===r?r:"transparent"},E=({id:e,showTextInput:t,color:r,palette:n,handleColorChange:o,labelledBy:i,textWidth:s,value:u,name:c,handleTextColorChange:d,handleKeyPress:p,handleBlur:h,isDisabled:b})=>{const y=(0,a.useMemo)((()=>(0,m.createDOMID)("color-code")),[]);return l().createElement(l().Fragment,null,l().createElement("div",null,l().createElement(f(),{key:"color-editor",append:t,value:w({color:r}),palette:n,onChange:o,"data-test":`color-picker-${c}`,disabled:b,hideInput:!0,labelledBy:i})),t&&l().createElement(x,{"data-test":"text-container",textWidth:s},l().createElement(v(),{id:y},(0,g._)("Color code input")),l().createElement(P,{key:u,"data-test":c,prepend:!0,value:null===r?"N/A":r,onChange:d,onKeyDown:p,onBlur:h,disabled:b,style:{height:"32px"},labelledBy:`${i} ${y}`,inputId:e})))};E.propTypes={id:o().string,showTextInput:o().bool,color:o().string,palette:o().arrayOf(o().string),handleColorChange:o().func,labelledBy:o().string,textWidth:o().oneOfType([o().string,o().number]),value:o().string,name:o().string.isRequired,handleTextColorChange:o().func,handleKeyPress:o().func,handleBlur:o().func,isDisabled:o().bool};const j={default:"transparent"},M={},D=({name:e="color",value:t="transparent",label:r="",labelPosition:n="top",labelWidth:o,palette:i=y.COLOR_EDITOR_PALETTE,onChange:s=u.noop,itemSchema:c=j,isDisabled:d=!1,textWidth:f="auto",hideLabel:p=!1,showTextInput:h=!0,style:m=M})=>{const[g,b]=(0,a.useState)(t);(0,a.useEffect)((()=>{b(t)}),[t]);const v=(0,a.useMemo)((()=>(0,u.debounce)(s,250)),[s]),_=(0,a.useCallback)((({value:r})=>{const a=w({color:r,defaultColor:c.default,prevColor:t});b(a),t!==a&&v(null,e,a)}),[v,c.default,e,t]),C=(0,a.useCallback)(((e,{value:t})=>{const r="n/a"===(0,u.toLower)(t).trim()?null:t;b(r)}),[]),x=(0,a.useCallback)((r=>{if("Escape"!==r.key){if("Enter"===r.key&&t!==g){const a=w({color:g,defaultColor:c.default,prevColor:t});b(a),a!==t&&s(r,e,a)}}else b(t)}),[e,g,t,s,c.default]),P=(0,a.useCallback)((r=>{if(g!==t){const a=w({color:g,defaultColor:c.default,prevColor:t});b(a),a!==t&&s(r,e,a)}}),[e,g,t,s,c.default]);return l().createElement(O(),{label:r,labelPosition:n,labelWidth:o,style:m,hideLabel:p,controlsLayout:"fillJoin"},l().createElement(E,{showTextInput:h,color:g,palette:i,handleColorChange:_,name:e,isDisabled:d,textWidth:f,value:t,handleTextColorChange:C,handleKeyPress:x,handleBlur:P}))};D.propTypes={name:o().string.isRequired,value:o().string,itemSchema:o().object,label:o().string.isRequired,hideLabel:o().bool,showTextInput:o().bool,style:o().object,labelPosition:o().oneOf(["top","left"]),labelWidth:o().number,palette:o().arrayOf(o().string),onChange:o().func.isRequired,isDisabled:o().bool,textWidth:o().oneOfType([o().string,o().number])};const T=D},3263:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var a=r(2649),l=r.n(a),n=r(9497),o=r.n(n),i=r(23),s=r.n(i),u=r(5411),c=r.n(u),d=r(6379),f=r.n(d),p=r(2166),h=r(1027),m=r(5862),g=r(4008),b=r.n(g);const v=({onChange:e,name:t,itemSchema:r,values:a,value:i,labelPosition:s="top",labelWidth:u,label:d,isDisabled:g=!1})=>{const v=(0,h.getOptions)(r,a),y=(0,p.hasTokens)(i)||g,_=(0,n.useCallback)(((r,{value:a})=>e(r,t,a)),[e,t]),C=d&&""!==d?void 0:{marginTop:"-8px"};return o().createElement(b(),{label:d,labelPosition:s,labelWidth:u,style:C},o().createElement(c(),{"data-test":t,onChange:_,value:i,style:m.editorStyle,disabled:y},v.map((e=>{const t=e.label||e.value,r={};return e.icon?r.startAdornment=o().createElement(f(),{content:t},o().createElement(e.icon,{hideDefaultTooltip:!0})):r.label=t,o().createElement(c().Option,l()({key:e.value,value:e.value,disabled:y},r))}))))};v.propTypes={onChange:s().func.isRequired,name:s().string.isRequired,itemSchema:s().object,values:s().arrayOf(s().shape({label:s().string,value:s().oneOfType([s().string,s().bool]).isRequired})),value:s().oneOfType([s().string,s().bool]),label:s().string.isRequired,labelPosition:s().oneOf(["left","top"]),labelWidth:s().number,isDisabled:s().bool};const y=v},4182:(e,t,r)=>{r.r(t),r.d(t,{default:()=>m});var a=r(9497),l=r.n(a),n=r(23),o=r.n(n),i=r(2373),s=r.n(i),u=r(2166),c=r(1027),d=r(5862),f=r(4008),p=r.n(f);const h=({onChange:e,name:t,itemSchema:r,values:n,value:o,labelPosition:i="top",labelWidth:f,label:h,tooltip:m,isDisabled:g=!1,isAdvanced:b,hideLabel:v,help:y})=>{const _=(0,c.getOptions)(r,n),C=(0,u.hasTokens)(o)||g,O=(0,a.useCallback)(((r,{value:a})=>e(r,t,a)),[e,t]);return l().createElement(p(),{label:h,labelPosition:i,labelWidth:f,tooltip:m,help:y,isAdvanced:b,hideLabel:v},l().createElement(s(),{"data-test":t,onChange:O,value:o,disabled:C,style:d.editorStyle},_.map((e=>l().createElement(s().Option,{key:e.value,value:e.value,label:e.label||e.value,icon:e.icon?l().createElement(e.icon,null):null,description:e.description})))))};h.propTypes={onChange:o().func.isRequired,name:o().string.isRequired,itemSchema:o().object,values:o().arrayOf(o().shape({label:o().string,value:o().oneOfType([o().string,o().number]).isRequired,description:o().string})),value:o().oneOfType([o().string,o().number]),label:o().string.isRequired,labelPosition:o().oneOf(["left","top"]),labelWidth:o().number,tooltip:o().string,isDisabled:o().bool,isAdvanced:o().bool,hideLabel:o().bool,help:o().string};const m=h},1027:(e,t,r)=>{r.r(t),r.d(t,{convertEmptyDataColorsForChoropleth:()=>C,getFilteredRowsByShowEditor:()=>v,getFormatterConfig:()=>m,getOptions:()=>u,getStaticItemSchema:()=>h,getToggleOffValueForDataColors:()=>_,handleOptionsChange:()=>c,isDynamicOptionSchema:()=>f,isMultipleRulesSchema:()=>d,isNestedOption:()=>p,isSupportedDataSelector:()=>g,isSupportedFormatter:()=>b,setOption:()=>O});var a=r(6195),l=r.n(a),n=r(4793);const o=require("@splunk/visualizations-shared/schemaUtils");function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){l()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const u=(e,t)=>{if(Array.isArray(t))return t;if(e&&Array.isArray(e.enum))return e.enum.map((e=>({value:e})));throw Error(`No valid values provided to editor: ${JSON.stringify(e)}`)};function c(e,t,r={debounce:!1}){const{visualization:a}=this.props;null==t?this.props.onVisualizationChange(s(s({},a),{},{options:(0,n.omit)(a.options,[e])}),r):this.props.onVisualizationChange(s(s({},a),{},{options:s(s({},a.options),{},{[e]:t})}),r)}const d=e=>!!e.anyOf&&e.anyOf.length>0,f=e=>"string"===e.type&&e.pattern===o.DYNAMIC_OPTIONS_DSL_PATTERN,p=e=>null!==/^\w+\[\d+\]\.(.+)$/.exec(e),h=e=>{if(!d(e))return e;const t=e.anyOf.find((e=>!f(e)));return s(s({},(0,n.omit)(e,"anyOf")),t)},m=({contextConfig:e,formatters:t,formatterFromDSL:r,selectedDataSelector:a})=>{var l;if(!e){var n;const e=null==t?void 0:t.find((e=>e.value===r));return(null==e||null===(n=e.defaults)||void 0===n?void 0:n[a])||[]}if(!r)return e;if(((e,t)=>!(!e||!t)&&("gradient"===t?"object"==typeof e&&!Array.isArray(e)&&"colors"in e:"rangeValue"!==t&&"matchValue"!==t||Array.isArray(e)))(e,r))return e;const o=null==t?void 0:t.find((e=>e.value===r));return(null==o||null===(l=o.defaults)||void 0===l?void 0:l[a])||[]},g=({selectedDataSelector:e,dataSelectors:t})=>!(!e||null==t||!t.length)&&t.some((t=>t.value===e)),b=({selectedFormatterType:e,formattersFromEditor:t,supportedFormatters:r})=>!!(e&&null!=r&&r[e]&&null!=t&&t.length)&&t.some((t=>t.value===e)),v=({row:e,options:t,encoding:r,featureFlags:a})=>{if(!e||!Array.isArray(e))return[];return e.filter((e=>void 0===e.showEditor||"function"==typeof e.showEditor&&e.showEditor({options:t,encoding:r,featureFlags:a})))},y=e=>{const t=(0,n.cloneDeep)(e);return(0,n.forIn)(t,((e,r)=>{(null!=e&&Array.isArray(e)||(0,n.isPlainObject)(e))&&(t[r]=y(t[r])),Array.isArray(e)&&(t[r]=e.map((e=>null===e?void 0:e))),null==e&&delete t[r]})),t},_=({name:e,options:t,dataSelectors:r=[]})=>{if(null==e||!e.includes("dataColors"))return"";const a=r.includes("areaValues");return(()=>{if("dataColors"===e)return"choropleth"===(null==t?void 0:t.type)||"choropleth"===(null==t?void 0:t.layerType);const r=/^layers\[(\d+)\]\.dataColors$/.exec(e);if(r){var a;const e=parseInt(r[1],10),l=null==t||null===(a=t.layers)||void 0===a?void 0:a[e];return"choropleth"===(null==l?void 0:l.type)||"choropleth"===(null==l?void 0:l.layerType)}return!1})()&&a?"> areaValues | gradient()":""},C=({option:e,value:t,options:r,dataSelectors:a=[]})=>null!=e&&e.includes("dataColors")?""!==t?t:_({name:e,options:r,dataSelectors:a}):t,O=(e,t,r,a,l,o)=>{var i,u,c,d;const f=s({},r);let p=e,h=t;if(""===h&&null!==(i=p)&&void 0!==i&&i.includes("dataColors")&&(h=C({option:p,value:h,options:r.options,dataSelectors:o})),null==h&&a[p])return f.options=(0,n.omit)(r.options,p),f;const m=null!==(u=null==l?void 0:l[p])&&void 0!==u?u:null===(c=a[p])||void 0===c?void 0:c.default;return void 0!==m&&h===m?(f.options=(0,n.omit)(r.options,p),f):(f.options=(0,n.cloneDeep)(r.options),null!==(d=f.options)&&void 0!==d||(f.options={}),null==t&&(0,n.isPlainObject)(e)&&(0,n.isPlainObject)(e.options)&&([p]=Object.keys(e.options),[h]=Object.values(e.options)),a[p]&&"array"!==a[p].type?(f.options[p]=h,f):(null===h&&(h=void 0),(0,n.set)(f.options,p,h),f.options=y(f.options),f))}},2166:(e,t,r)=>{r.d(t,{hasTokens:()=>l});const a=new RegExp(/\$/.source+/(\w+:)?/.source+/([^$|:]+?)(\|[|\w]+)?/.source+/\$/.source),l=e=>"string"==typeof e&&a.test(e)},2468:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=r(6649),u=o(r(9250)),c=o(r(7020)),d=o(r(1551)),f=o(r(1151)),{useRef:p,useState:h,useCallback:m}=i;t.default=({label:e,labelPosition:t="left",labelWidth:r,onResetToDefault:a})=>{const[l,n]=h(!1),o=p(null),g=m((()=>n(!0)),[]),b=m((()=>n(!1)),[]);return i.createElement(u.default,{label:(0,s._)(e),labelPosition:t,labelWidth:r},i.createElement(c.default,{"data-test":"customized-in-source-button",onClick:g,appearance:"default",ref:o,label:(0,s._)("Customized in source")}),i.createElement(d.default,{"data-test":"customized-in-source-popover",open:l,anchor:o.current,onRequestClose:b,defaultPlacement:"horizontal"},i.createElement(f.default,{onResetToDefault:a})))}},152:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicColorEditor=t.prepareUpdate=void 0;const i=n(r(9497)),s=r(7124),u=o(r(9250)),c=o(r(7020)),d=o(r(1551)),f=o(r(232)),p=r(6649),h=r(5089),m=r(4793),g=r(1413),b=o(r(5411)),v=r(2369),y=o(r(2468)),_=r(5862),C=r(1027),{useRef:O,useState:x,useEffect:P}=i,w=f.default.div`
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 8px;
`,E=f.default.div`
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 8px;
`,j=f.default.div.attrs((()=>({"data-test":"DynamicColorFlyoutContent"})))`
    box-sizing: border-box;
    padding: ${(0,s.toPx)(_.FLYOUT_PADDING)};
    width: ${(0,s.toPx)(_.FLYOUT_WIDTH)};
`,M=(0,f.default)(c.default)`
    padding: '4px';
`;t.prepareUpdate=({name:e,selectedDataSelector:t,selectedFormatterType:r,currentFormatterConfig:a})=>{const l=`${e}EditorConfig`,n=l.replace(/^\w+\[\d+\]\.(.+)$/,"$1");return{options:{[e]:(0,g.buildDSLFromDataSelectorAndFormatter)(t,r,l)},context:{[n]:a}}};t.DynamicColorEditor=({name:e,value:r,label:a="",labelPosition:l="left",labelWidth:n,context:o,onChange:s=(()=>{}),flyoutTitle:c=(0,p._)("Dynamic coloring"),formatters:f=[],dataSelectors:_=[],defaultPalettesConfig:D=h.defaultPalettesConfig,isDisabled:T=!1,showStaticTextColor:S=!1,colorMode:R,handleColorModeChange:k})=>{const[I,A]=x(!1),F=O(null),{type:V,paramKey:$}=(0,g.getLastFormatterFromDSL)(r)||{type:"unknown",paramKey:"unknown"},L=(0,g.getDataSelectorsFromDSL)(r)[0],[B,q]=x(V);P((()=>{q(V)}),[V]);const[W,U]=x(L);P((()=>{U(L)}),[L]);const z=(0,C.getFormatterConfig)({contextConfig:o[$],formatters:f,formatterFromDSL:V,selectedDataSelector:W}),[N,G]=x(z);P((()=>{G(z)}),[o,f,$,V,L]);const H=r=>{const a=(0,m.find)(f,(e=>e.isDefault))||(0,m.find)(f,(e=>"rangeValue"===e.value))||f[0];if((0,m.isEmpty)(a))return;const l=a.value,n=Object.keys(a.defaults)[0],o=a.defaults[n];U(n),q(l),G(o),s(r,(0,t.prepareUpdate)({name:e,selectedDataSelector:n,selectedFormatterType:l,currentFormatterConfig:o}))},K=i.useCallback((()=>{A((e=>!e))}),[]);if(!(0,C.isSupportedDataSelector)({selectedDataSelector:W,dataSelectors:_})||!(0,C.isSupportedFormatter)({selectedFormatterType:B,formattersFromEditor:f,supportedFormatters:v.supportedFormatters}))return i.createElement(y.default,{label:a,labelPosition:l,labelWidth:n,onResetToDefault:H});const Y=v.supportedFormatters[B].preview;return i.createElement(i.Fragment,null,i.createElement(u.default,{"data-test":"DynamicColorEditorGroup",label:a,labelPosition:l,labelWidth:n},i.createElement(M,{inline:!1,"data-test":"DynamicColorEditorButton",appearance:"default",ref:F,onClick:K,disabled:T},i.createElement(Y,{"data-test":"FormatterConfigPreview",config:N}))),i.createElement(d.default,{"data-test":"DynamicColorEditorFlyout",open:I,anchor:F.current,defaultPlacement:"horizontal",style:{padding:"10px"},onRequestClose:()=>A(!1),takeFocus:!0},i.createElement(j,null,!R&&i.createElement(w,null,c),R&&i.createElement(u.default,{"data-test":"TableDynamicColorEditorGroup",label:c,labelPosition:l,labelWidth:n},i.createElement(b.default,{value:R,onChange:k},[{label:(0,p._)("Off"),value:"off"},{label:(0,p._)("Text"),value:"text"},{label:(0,p._)("Background"),value:"background"}].map((({label:e,value:t})=>i.createElement(b.default.Option,{key:t,value:t,label:(0,p._)(e)}))))),R&&i.createElement(E,null,(0,p._)("Method")),i.createElement(v.FormatterEditor,{selectedDataSelector:W,selectedFormatterType:B,currentFormatterConfig:N,onDataSelectorChange:(r,a,l)=>{U(l);const n=(0,m.find)(f,(e=>e.defaults[l]));q(n.value);const o=n.defaults[l];G(o),s(r,(0,t.prepareUpdate)({name:e,selectedDataSelector:l,selectedFormatterType:n.value,currentFormatterConfig:o}))},onFormatterTypeChange:(r,a,l)=>{q(l);const n=(0,m.find)(f,["value",l]).defaults[W];G(n),s(r,(0,t.prepareUpdate)({name:e,selectedDataSelector:W,selectedFormatterType:l,currentFormatterConfig:n}))},onFormatterConfigChange:(r,a,l)=>{G(l),s(r,(0,t.prepareUpdate)({name:e,selectedDataSelector:W,selectedFormatterType:B,currentFormatterConfig:l}))},formatters:f,dataSelectors:_,defaultPalettesConfig:D,showStaticTextColor:S}))))}},1546:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkGraphDynamicColorEditor=void 0;const i=n(r(9497)),s=r(6649),u=o(r(7143)),c=r(152),d=o(r(4182)),f=o(r(397));t.NetworkGraphDynamicColorEditor=({name:e,value:t,contextName:r,label:a="",labelWidth:l,context:n,flyoutTitle:o=(0,s._)("Dynamic coloring"),formatters:p=[],dataSelectors:h=[],defaultPalettesConfig:m,tooltip:g,options:b={},onChange:v=(()=>{})})=>{var y;const _=null===(y=h[0])||void 0===y?void 0:y.value,C=i.useCallback((e=>!e||e.trim().startsWith("#")?"static":"dynamic"),[]),[O,x]=i.useState(C(t));i.useEffect((()=>{const e=C(t);x(e)}),[C,t]);const P=i.useCallback(((t,a,l)=>{var o,i,s;x(l);const u=Object.assign({},b),c=Object.assign({},n);if("dynamic"===l){const a=(null===(o=p[0])||void 0===o?void 0:o.value)||"gradient",l=(null===(s=null===(i=p[0])||void 0===i?void 0:i.defaults)||void 0===s?void 0:s[_])||{},n=`> ${_} | ${a}(${r})`;u[e]=n,c[r]=l,v(t,{options:u,context:c})}else"static"===l&&(u[e]=void 0,c[r]=void 0,v(t,{options:u,context:c}))}),[b,n,p,_,r,e,v]),w=i.useCallback(((t,a)=>{var l;const o=a.options[e],i=null===(l=a.context)||void 0===l?void 0:l[r],s=Object.assign(Object.assign({},b),{[e]:o}),u=Object.assign(Object.assign({},n),{[r]:i});v(t,{options:s,context:u})}),[b,e,n,v,r]),E=i.useCallback(((e,t,a)=>{const l=Object.assign(Object.assign({},b),{[t]:a}),o=Object.assign({},n);o[r]=void 0,v(e,{options:l,context:o})}),[n,v,b,r]);return i.createElement(u.default,{"data-test":"dynamic-color-toggle",gutter:15},i.createElement(u.default.Row,{"data-test":"network-graph-dynamic-color-row",alignItems:"start"},i.createElement(u.default.Column,{span:6},i.createElement(d.default,{name:e,label:(0,s._)(a),labelPosition:"top",value:O,onChange:P,itemSchema:{type:"string"},values:[{label:(0,s._)("Static coloring"),value:"static"},{label:(0,s._)("Dynamic coloring"),value:"dynamic"}],help:g})),"dynamic"===O&&i.createElement(u.default.Column,{span:6},i.createElement(c.DynamicColorEditor,{name:e,label:" ",labelPosition:"top",labelWidth:l,value:t,context:n,onChange:w,flyoutTitle:o,formatters:p,dataSelectors:h,defaultPalettesConfig:m})),"static"===O&&i.createElement(u.default.Column,{span:6},i.createElement(f.default,{name:e,label:" ",labelPosition:"top",labelWidth:l,value:t,onChange:E}))))}},1705:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPreview=void 0;const i=n(r(9497)),s=o(r(232)),u=r(3283),c=r(8987),d=s.default.div.attrs((e=>({"data-test":"ColorPreviewWrapper",isReversed:e.isReversed})))`
    display: flex;
    flex-direction: row;
    height: 100%;
`,f=s.default.div.attrs((()=>({"data-test":"ColorPreviewItem"})))`
    flex-grow: ${({widthGrow:e})=>e?1:0};
    width: ${({maxColorCount:e})=>`calc(100% / ${e})`};
    margin-right: 1px;
    background-color: ${({color:e})=>e};
    &:last-of-type {
        margin-right: 0;
    }
`;t.ColorPreview=({colors:e=[],maxColorCount:t=7,expandToFillHorizontalSpace:r=!0,isReversed:a=!1})=>{const l=a?[...e].reverse():[...e];return i.createElement(d,{isReversed:a},l.map(((e,a)=>(0,u.isColor)(e)&&i.createElement(f,{key:(0,c.createDOMID)(),color:e,widthGrow:r,maxColorCount:t}))))}},2369:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormatterEditor=t.supportedFormatters=t.GradientEditorWrapper=t.MatchValueEditorWrapper=t.RangeValueEditorWrapper=t.getSortedRanges=t.sharedPalettesConfigPropType=void 0;const i=n(r(9497)),s=n(r(23)),u=r(6649),c=r(8963),d=r(1788),f=r(1561),p=o(r(8842)),h=o(r(3263)),m=o(r(530)),g=o(r(107)),b=o(r(7304)),v=o(r(2468));t.sharedPalettesConfigPropType=s.exact({paletteTheme:s.string,paletteEntry:s.exact({type:s.string,index:s.number})});t.getSortedRanges=(e=[])=>{const t=[...Array.isArray(e)?e:[]];return t.sort(((e,t)=>null==e.to?1:null==t.to?-1:+e.to-+t.to)),t};const y={paletteTheme:"DARK_COLORS",paletteEntry:{type:"sequential",index:0}};t.RangeValueEditorWrapper=({defaultPalettesConfig:e,value:t,onChange:r,selectedDataSelector:a})=>i.createElement(m.default,{"data-test":"RangeValueEditor",defaultPalettesConfig:e,value:t,onChange:(e,t,a)=>r(e,t,a),selectedDataSelector:a}),t.RangeValueEditorWrapper.propTypes={defaultPalettesConfig:t.sharedPalettesConfigPropType,value:s.arrayOf(s.shape({from:s.number,to:s.number,value:s.string})),onChange:s.func,selectedDataSelector:s.string};t.MatchValueEditorWrapper=({defaultPalettesConfig:e,value:t,onChange:r,selectedDataSelector:a})=>i.createElement(g.default,{"data-test":"MatchValueEditor",defaultPalettesConfig:e,value:t,onChange:(e,t,a)=>r(e,t,a),selectedDataSelector:a}),t.MatchValueEditorWrapper.propTypes={defaultPalettesConfig:t.sharedPalettesConfigPropType,value:s.arrayOf(s.shape({match:s.oneOfType([s.string,s.number]),value:s.string})),onChange:s.func,selectedDataSelector:s.string};t.GradientEditorWrapper=({defaultPalettesConfig:e=y,value:t,onChange:r,showStaticTextColor:a,selectedDataSelector:l})=>{var n,o,s;return(null===(n=null==t?void 0:t.stops)||void 0===n?void 0:n.length)>0||(null!==(s=null===(o=null==t?void 0:t.colors)||void 0===o?void 0:o.length)&&void 0!==s?s:0)>7?i.createElement(v.default,{label:"Data colors",labelPosition:"top",onResetToDefault:()=>{const t=(0,c.createGradientConfigFromPalettes)(e);r(void 0,void 0,t)}}):i.createElement(b.default,{"data-test":"GradientEditor",name:"gradient",defaultPalettesConfig:e,value:t,onChange:(e,t,a)=>r(e,t,a),showStaticTextColor:a,selectedDataSelector:l})},t.GradientEditorWrapper.propTypes={defaultPalettesConfig:t.sharedPalettesConfigPropType,value:s.exact({colors:s.arrayOf(s.string).isRequired,textColor:s.string}).isRequired,onChange:s.func,showStaticTextColor:s.bool,selectedDataSelector:s.string},t.supportedFormatters={gradient:{preview:p.default,editor:t.GradientEditorWrapper},rangeValue:{preview:d.RangeValuePreview,editor:t.RangeValueEditorWrapper},matchValue:{preview:f.MatchValuePreview,editor:t.MatchValueEditorWrapper}};const _=Object.keys(t.supportedFormatters),C=s.oneOfType([s.arrayOf(s.shape({from:s.number,to:s.number,value:s.string})),s.arrayOf(s.shape({match:s.oneOfType([s.string,s.number]),value:s.string})),s.exact({colors:s.arrayOf(s.string).isRequired,stops:s.arrayOf(s.number),textColor:s.string}),s.object,s.oneOf([null])]),O={selectedDataSelector:s.string,selectedFormatterType:s.oneOf(_),currentFormatterConfig:C,formatters:s.arrayOf(s.shape({label:s.string,value:s.string,defaults:s.object,isDefault:s.bool})),dataSelectors:s.arrayOf(s.shape({label:s.string,value:s.string})),onDataSelectorChange:s.func,onFormatterTypeChange:s.func,onFormatterConfigChange:s.func,defaultPalettesConfig:t.sharedPalettesConfigPropType,showStaticTextColor:s.bool};t.FormatterEditor=({selectedDataSelector:e,selectedFormatterType:r,currentFormatterConfig:a,formatters:l=[],dataSelectors:n=[],onDataSelectorChange:o,onFormatterTypeChange:s,onFormatterConfigChange:c,defaultPalettesConfig:d,showStaticTextColor:f=!1})=>{var p;const m=n.length>1,g=m?(0,u._)("Method"):"",b=l.filter((t=>{var r;return null===(r=t.defaults)||void 0===r?void 0:r[e]})),v=b.length>1,y=null===(p=t.supportedFormatters[r])||void 0===p?void 0:p.editor;return i.createElement(i.Fragment,null,m&&i.createElement(h.default,{name:"dataSelector",label:(0,u._)("Based on"),"data-test":"FormatterEditorDataSelector",values:n,value:e,onChange:o}),v&&i.createElement(h.default,{name:"formatterSelector",label:g,"data-test":"FormatterEditorFormatterSelector",values:b,value:r,onChange:s}),i.createElement(y,{"data-test":"FormatterEditorConfigEditor",name:"formatterConfig",value:a,onChange:c,defaultPalettesConfig:d,selectedDataSelector:e,showStaticTextColor:"gradient"===r&&f}))},t.FormatterEditor.propTypes=O},5439:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=n(r(23)),u=r(6649),c=o(r(232)),d=o(r(7020)),f=o(r(6062)),p=c.default.div`
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
`,h=c.default.div`
    display: flex;
    flex-direction: column;
    justify-content: center;
`,m=c.default.div`
    display: flex;
`,g={marginRight:"12px"},b=i.createElement(f.default,null),v=({disableAddStops:e=!1,handleAddStop:t,handleReverse:r})=>i.createElement(p,null,i.createElement(m,null,i.createElement(d.default,{"data-test":"reverse-stops-button",icon:b,style:g,onClick:r})),i.createElement(h,null,i.createElement(d.default,{"data-test":"add-stop-button",appearance:"secondary",label:`+ ${(0,u._)("Add stop")}`,disabled:e,onClick:t})));v.propTypes={disableAddStops:s.bool,handleAddStop:s.func,handleReverse:s.func},t.default=v},6023:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(9497)),i=n(r(7408));t.default=({color:e,colorIndex:t,palette:r,onChange:a})=>{const l=o.useCallback((({value:e})=>{null!=e&&""!==e&&"n/a"!==e.toLowerCase()&&"null"!==e.toLowerCase()&&a({colorIndex:t,value:e})}),[t,a]);return o.createElement(i.default,{"data-test":`gradient-color-${e}`,value:e,palette:r||[...i.defaultPalette,"transparent"],onChange:l,hideInput:!0})}},8842:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=n(r(23)),u=o(r(6212)),c=o(r(1494));function d(e){let t=e.replace("#","");3===t.length&&(t=t.split("").map((e=>e+e)).join(""));return.299*(parseInt(t.substring(0,2),16)/255)+.587*(parseInt(t.substring(2,4),16)/255)+.114*(parseInt(t.substring(4,6),16)/255)}const f=({config:e})=>{const{colors:t=[]}=e||{},r=`linear-gradient(90deg, ${t.join(", ")})`,a=t&&t.length>0?t[0]:"#fff",l=t&&t.length>1?t[t.length-1]:a,n=d(a)>.5?"#000":"#fff",o=d(l)>.5?"#000":"#fff";return i.createElement(c.default,null,i.createElement(u.default,{colorDown:n,colorUp:o}),i.createElement("div",{"data-test":"gradient-color-preview",style:{width:"100%",height:18,borderRadius:4,background:r}}))};f.propTypes={config:s.any.isRequired},t.default=f},94:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=n(r(23)),u=o(r(232)),c=o(r(4566)),d=o(r(4082)),f=r(6649),p=o(r(9250)),h=o(r(7408)),m=(0,u.default)(p.default)`
    margin-bottom: 16px;
    width: 100%;
`,g=u.default.div`
    display: flex;
    align-items: stretch;
    width: 100%;
    position: relative;
    flex: 1 1 0%;
`,b=u.default.div`
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    position: relative;
`,v=u.default.div`
    display: flex;
    align-items: stretch;
    height: 32px;
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    border-radius: 4px 0 0 4px;
    overflow: hidden;
`,y=u.default.div`
    width: 32px;
    height: 32px;
    border: 1px solid ${c.default.borderColor};
    border-right: none;
    background: linear-gradient(135deg, #fff 50%, #000 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    border-radius: 4px 0 0 4px;
    overflow: hidden;
`,_=(0,u.default)(d.default).attrs((({name:e})=>({"data-test":e})))`
    max-height: ${c.default.inputHeight};
    width: 100%;
    min-width: 0;
    flex: 1 1 0%;
    border-radius: 0 4px 4px 0;
    border: 1px solid ${c.default.borderColor};
    border-left: none;
    background: transparent;
    color: ${c.default.contentColorActive};
    font-size: 14px;
    padding: 0 12px;
    height: 32px;
    outline: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
`,C=u.default.button`
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: stretch;
    height: 32px;
`,O=u.default.button`
    background: none;
    border: none;
    color: ${c.default.contentColorActive};
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    /* Remove margin-left and margin-right to avoid shifting layout */
    padding: 0;
`,x=u.default.div`
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 32px;
    font-size: 14px;
    color: ${c.default.contentColorActive};
    background: transparent;
    border: 1px solid ${c.default.borderColor};
    border-left: none;
    border-radius: 0 4px 4px 0;
    min-width: 0;
    flex: 1 1 0%;
    box-sizing: border-box;
`,P="auto",w="#ffffff",E=({textColor:e,onTextColorChange:t})=>{const[r,a]=i.useState(!e||e===P),[l,n]=i.useState(r?"":e||""),o=i.useRef(null);i.useEffect((()=>{a(!e||e===P),n(e&&e!==P?e:"")}),[e]);const s=i.useCallback((e=>{const r=(null==e?void 0:e.value)||"";r===P?(a(!0),n(""),t(P)):(a(!1),n(r),t(r))}),[t]),u=i.useCallback((e=>{const r=e.target.value;n(r),a(!1),t(r)}),[t]),c=i.useCallback((t=>{"Escape"===t.key&&n(e||"")}),[e]),d=i.useCallback((()=>{n(""),a(!0),t(P)}),[t]);return i.useEffect((()=>{!r&&o.current&&o.current.focus()}),[r]),i.createElement(m,{label:(0,f._)("Static text color"),tooltip:(0,f._)("Auto will choose black or white for text color to get more contrast"),style:{width:"100%"}},i.createElement(g,null,r?i.createElement(b,null,i.createElement(v,null,i.createElement(C,{type:"button","aria-label":(0,f._)("Choose text color"),onClick:()=>{a(!1),n(w),t(w)},tabIndex:0},i.createElement(y,null))),i.createElement(x,{"data-test":"gradient-text-color-auto"},(0,f._)("Auto"))):i.createElement(b,null,i.createElement(v,null,i.createElement(h.default,{key:"gradient-text-color-editor",value:l||"",onChange:s,hideInput:!0,append:!0})),i.createElement(_,{name:"gradient-text-color-input",value:l,onChange:u,onKeyDown:c}),i.createElement(O,{type:"button","aria-label":(0,f._)("Clear text color"),onClick:d,tabIndex:0},"×"))))};E.propTypes={textColor:s.string.isRequired,onTextColorChange:s.func.isRequired},t.default=E},4293:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=n(r(23)),u=o(r(232)),c=r(6649),d=r(3563),f=r(8963),p=o(r(5439)),h=o(r(6023)),m=o(r(94)),g=o(r(9106)),b=u.default.div`
    padding-top: 10px;
`,v=u.default.div`
    display: flex;
    flex-direction: column-reverse;
`,y=u.default.div.attrs((()=>({"data-test":"gradient-entry-row"})))`
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
    justify-content: space-between;
`,_=u.default.div`
    display: flex;
    align-items: center;
`,C=u.default.div`
    margin-left: 8px;
    color: ${d.variables.contentColorMuted};
`,O=e=>{const{value:t,onChange:r,showStaticTextColor:a,isReversed:l,swatchColors:n,setIsReversed:o,selectedColors:s,isSwatchCustomized:u,disableAddStops:d}=e,O=null==t?void 0:t.textColor,[x,P]=i.useState(!1),[w,E]=i.useState(s.map((()=>!0)));i.useEffect((()=>{if("boolean"==typeof d)return void P(d);const e=!u&&s.length>=(null==n?void 0:n.length);P(e)}),[l,s,u,null==n?void 0:n.length,d]);const j=i.useCallback((e=>{r({colors:s,textColor:e})}),[s,r]),M=i.useCallback((e=>{const t=[...s].filter(((t,r)=>r!==e));if(r({colors:t}),u){const t=w.filter(((t,r)=>r!==e));E(t)}}),[s,r,u,w]),D=i.useCallback((()=>{if(1===s.length){const e=[s[0],"#000000"];return void r({colors:e})}if(!u){if(s.length>=(null==n?void 0:n.length))return void P(!0);const e=(0,f.addPaletteGradientStop)(n,s,l);if(e){r({colors:e}),e.length>=(null==n?void 0:n.length)&&P(!0)}return}const e=(0,f.addCustomGradientStop)(s,w,E);r({colors:e})}),[u,s,w,r,n,l]),T=i.useCallback((()=>{const e=[...s].reverse();if(r({colors:e}),null==o||o(!l),u){const e=[...w].reverse();E(e)}}),[s,r,o,l,u,w]),S=i.useCallback((e=>{const{colorIndex:t,value:a}=e,l=[...s];if(l[t]=a,r({colors:l}),u){const e=[...w];e[t]=!0,E(e)}}),[w,u,r,s]);return i.createElement(b,{"data-test":"gradient-configurer"},i.createElement(p.default,{"data-test":"add-reverse-stops",disableAddStops:x,handleAddStop:D,handleReverse:T}),i.createElement(v,{"data-test":"gradients-wrapper"},s.map(((e,t)=>{let r="";0===t?r=(0,c._)("Lowest value"):t===s.length-1&&(r=(0,c._)("Highest value"));const a=s.length>2&&0!==t&&t!==s.length-1;return i.createElement(y,{key:`gradient-color-${e.replace("#","")}`,"data-test":`gradient-entry-row-${t}`},i.createElement(_,{"data-test":`gradient-left-${t}`},i.createElement(h.default,{"data-test":`gradient-color-${e}`,color:e,colorIndex:t,palette:u?void 0:n,onChange:S}),i.createElement(C,{"data-test":`gradient-label-${t}`},r)),a&&i.createElement(g.default,{"data-test":`gradient-remove-button-${t}`,colorIndex:t,onRemove:()=>M(t)}))}))),a&&i.createElement(y,{"data-test":"gradient-text-color-entry"},i.createElement(m.default,{"data-test":"gradient-text-color",textColor:O,onTextColorChange:j})))};O.propTypes={value:s.any,onChange:s.func,showStaticTextColor:s.bool},t.default=O},9106:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=n(r(23)),u=o(r(232)),c=o(r(7020)),d=o(r(8855)),f=r(3563),p=u.default.div`
    width: 32px;
    height: 32px;
    align-self: flex-end;
`,h=(0,u.default)(c.default)`
    color: ${f.variables.contentColorActive} !important;
    &:hover {
        background-color: ${f.variables.interactiveColorOverlayDrag} !important;
    }
`,m=({colorIndex:e,onRemove:t})=>{const r=i.useCallback((()=>t(e)),[e,t]);return i.createElement(p,null,i.createElement(h,{"data-test":"gradient-remove-button",icon:i.createElement(d.default,null),appearance:"subtle",onClick:r}))};m.propTypes={onRemove:s.func},t.default=m},8963:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.findMatchingPaletteGradient=t.addPaletteGradientStop=t.addCustomGradientStop=t.interpolateColor=t.createGradientConfigFromPalettes=t.createDefaultPalettesConfig=t.defaultLightGradientConfig=t.defaultDarkGradientConfig=void 0;const l=a(r(5089));t.defaultDarkGradientConfig={colors:[l.default.DARK_COLORS.sequential.swatches[1][0],l.default.DARK_COLORS.sequential.swatches[1][l.default.DARK_COLORS.sequential.swatches[1].length-1]]},t.defaultLightGradientConfig={colors:[l.default.LIGHT_COLORS.sequential.swatches[1][0],l.default.LIGHT_COLORS.sequential.swatches[1][l.default.LIGHT_COLORS.sequential.swatches[1].length-1]]};t.createDefaultPalettesConfig=e=>{var t,r,a;return{paletteTheme:(null==e?void 0:e.paletteTheme)||"DARK_COLORS",paletteEntry:{type:(null===(t=null==e?void 0:e.paletteEntry)||void 0===t?void 0:t.type)||"sequential",index:null!==(a=null===(r=null==e?void 0:e.paletteEntry)||void 0===r?void 0:r.index)&&void 0!==a?a:1}}};t.createGradientConfigFromPalettes=(e,r,a)=>{var n,o,i;const s=(0,t.createDefaultPalettesConfig)(e),{paletteTheme:u,paletteEntry:c}=s,d=(null===(i=null===(o=null===(n=l.default[u])||void 0===n?void 0:n[c.type])||void 0===o?void 0:o.swatches)||void 0===i?void 0:i[c.index])||t.defaultDarkGradientConfig.colors,f=d.length>=2?[d[0],d[d.length-1]]:d;return r?{colors:f,textColor:a||"auto"}:{colors:f}};t.interpolateColor=(e,t,r)=>{const a=e.replace("#",""),l=t.replace("#",""),n=parseInt(a.substring(0,2),16),o=parseInt(a.substring(2,4),16),i=parseInt(a.substring(4,6),16),s=parseInt(l.substring(0,2),16),u=parseInt(l.substring(2,4),16),c=parseInt(l.substring(4,6),16),d=Math.round(n+r*(s-n)),f=Math.round(o+r*(u-o)),p=Math.round(i+r*(c-i)),h=e=>e.toString(16).padStart(2,"0");return`#${h(d)}${h(f)}${h(p)}`};t.addCustomGradientStop=(e,r,a)=>{var l,n;if(e.length<2)return e;const o=r.map(((e,t)=>e?t:-1)).filter((e=>-1!==e));if(o.length<2){const n=e[e.length-1],o=e[e.length-2],i=(0,t.interpolateColor)(o,n,.5),s=[...e.slice(0,e.length-1),i,n];return a([...r.slice(0,r.length-1),!1,null!==(l=r[r.length-1])&&void 0!==l&&l]),s}let i=[...e],s=[...r];for(let a=0;a<o.length-1;a+=1){const l=o[a],n=o[a+1];if(n-l>1){const a=e[l],o=e[n],s=[];for(let e=l+1;e<n;e+=1)r[e]||s.push(e);if(s.length>0)for(let e=0;e<s.length;e+=1){const r=s[e],u=(r-l)/(n-l);i[r]=(0,t.interpolateColor)(a,o,u)}}}const u=i[i.length-1],c=i[i.length-2],d=(0,t.interpolateColor)(c,u,.5);return i=[...i.slice(0,i.length-1),d,u],s=[...s.slice(0,s.length-1),!1,null!==(n=s[s.length-1])&&void 0!==n&&n],a(s),i};t.addPaletteGradientStop=(e,t,r)=>{const a=t.length-1;if(a>5)return t;const l=r?[...e].reverse():e,n=l[Math.max(1,Math.min(a,l.length-2))];return[...t.slice(0,a),n,...t.slice(a)]};t.findMatchingPaletteGradient=(e,t)=>{if(!Array.isArray(e)||e.length<2||!t||"object"!=typeof t||!t.DARK_COLORS||!t.LIGHT_COLORS)return null;const r=[];if(["DARK_COLORS","LIGHT_COLORS"].forEach((a=>{const l=t[a];if(!l)return;Object.entries(l).filter((([e])=>"_meta"!==e)).flatMap((([e,t])=>{const{swatches:r}=t;return r.map(((t,r)=>({type:e,swatch:t,index:r})))})).forEach((({type:t,swatch:l,index:n})=>{e.length>l.length||(l.length>=2&&l[0].trim().toLowerCase()===e[0].trim().toLowerCase()&&l[l.length-1].trim().toLowerCase()===e[e.length-1].trim().toLowerCase()?r.push({paletteTheme:a,paletteEntry:{type:t,index:n},isReversed:!1,swatch:l}):l.length>=2&&l[0].trim().toLowerCase()===e[e.length-1].trim().toLowerCase()&&l[l.length-1].trim().toLowerCase()===e[0].trim().toLowerCase()&&r.push({paletteTheme:a,paletteEntry:{type:t,index:n},isReversed:!0,swatch:l}))}))})),e.length>2&&r.length>0){const t=r.find((({swatch:t,isReversed:r})=>{if(t.length<e.length)return!1;const a=r?[...t].reverse():t;if(e[0].trim().toLowerCase()!==a[0].trim().toLowerCase()||e[e.length-1].trim().toLowerCase()!==a[a.length-1].trim().toLowerCase())return!1;const l=e.slice(1,e.length-1).map((e=>e.trim().toLowerCase())),n=a.slice(1,e.length-1).map((e=>e.trim().toLowerCase()));return l.every((e=>n.includes(e)))}));if(t)return{paletteTheme:t.paletteTheme,paletteEntry:t.paletteEntry,isReversed:t.isReversed}}if(r.length>0){const e=r[0];return{paletteTheme:e.paletteTheme,paletteEntry:e.paletteEntry,isReversed:e.isReversed}}return null}},7304:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GradientEditor=void 0;const i=n(r(9497)),s=n(r(23)),u=o(r(5089)),c=o(r(5852)),d=r(8963),f=r(8548),p=o(r(4293));t.GradientEditor=({defaultPalettesConfig:e={paletteTheme:"DARK_COLORS",paletteEntry:{type:"sequential",index:1}},onChange:t,palettes:r=u.default,showStaticTextColor:a=!1,selectedDataSelector:l,value:n={colors:["#252214","#b846bb"],textColor:"auto"}})=>{var o,s;const{colors:h,textColor:m}=n;let g,b=null,v=null;if(h&&h.length>1){const e=(0,d.findMatchingPaletteGradient)(h,r);e&&(b=e.paletteTheme,v=e.paletteEntry,g=e.isReversed)}!b&&(null==e?void 0:e.paletteTheme)&&(b=e.paletteTheme),!v&&(null==e?void 0:e.paletteEntry)&&(v=e.paletteEntry);const[y,_]=i.useState((()=>({paletteTheme:b,paletteEntry:v}))),C=null!==(o=null==y?void 0:y.paletteTheme)&&void 0!==o?o:e.paletteTheme,O=null!==(s=null==y?void 0:y.paletteEntry)&&void 0!==s?s:e.paletteEntry,x=C&&O?(0,f.getSwatchColorsFromPalette)({palettes:r,paletteInfo:O,paletteTheme:C}):[],P=(0,f.hasCustomColors)({currentSwatchColors:x,selectedColors:h}),w=P&&h.length>7?h.slice(0,7):h,E=P&&w.length>=7||!P&&w.length>=x.length,[j,M]=i.useState(g||!1),D=i.useCallback((e=>{const r={colors:(null==e?void 0:e.colors)||h};a&&(r.textColor=e.textColor||m),t(null,null,r)}),[h,a,t,m]),T=i.useCallback((e=>{if(!O)return;let t=(0,f.getSwatchColorsFromPalette)({palettes:r,paletteInfo:O,paletteTheme:e});j&&(t=[...t].reverse());let a=[];if(P&&h.length>7)a=t.slice();else{const e=h.length;if(1===e)a=[t[t.length-1]];else if(2===e)a=[t[0],t[t.length-1]];else if(e>2){a=[t[0]];for(let r=1;r<e-1;r+=1)a.push(t[r]);a.push(t[t.length-1])}}_((t=>Object.assign(Object.assign({},t),{paletteTheme:e}))),D({colors:a})}),[O,r,j,D,P,h]),S=i.useCallback((e=>{if(!e)return _({paletteTheme:null,paletteEntry:null}),void M(!1);const t=C&&e?(0,f.getSwatchColorsFromPalette)({palettes:r,paletteInfo:e,paletteTheme:C}):[],l=h.length;let n=[];if(P&&h.length>7)n=t.slice();else if(1===l)n=[t[t.length-1]];else if(2===l)n=[t[0],t[t.length-1]];else if(l>2){n=[t[0]];for(let e=1;e<l-1;e+=1)n.push(t[e]);n.push(t[t.length-1])}_({paletteTheme:C,paletteEntry:e}),M(!1);const o={colors:n};a&&(o.textColor=m),D(o)}),[C,r,a,D,m,P,h]);return i.useEffect((()=>{_((0,d.findMatchingPaletteGradient)(h,r))}),[l]),i.createElement(i.Fragment,null,i.createElement(c.default,{isSwatchCustomized:P,isReversed:j,onChangePaletteTheme:T,onPaletteChange:S,palettes:r,selectedPaletteInfo:O,selectedPaletteTheme:C}),i.createElement(p.default,{isSwatchCustomized:P,isReversed:j,setIsReversed:M,onChange:D,value:n,swatchColors:x,selectedColors:w,name:"GradientValueConfigurer",showStaticTextColor:a,disableAddStops:E}))},t.GradientEditor.propTypes={value:s.any,onChange:s.func,palettes:s.shape({_meta:s.any.isRequired}),showStaticTextColor:s.bool},t.default=t.GradientEditor},3396:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=n(r(23)),u=r(6649),c=o(r(232)),d=o(r(7020)),f=o(r(6062)),p=c.default.div`
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
`,h=c.default.div`
    display: flex;
    flex-direction: column;
    justify-content: center;
`,m=c.default.div`
    display: flex;
`,g={marginRight:"12px"},b=i.createElement(f.default,null),v=({disableAddMatches:e=!1,handleAddMatch:t,handleReverse:r})=>i.createElement(p,null,i.createElement(m,null,i.createElement(d.default,{"data-test":"reverse-matches-button",icon:b,style:g,onClick:r})),i.createElement(h,null,i.createElement(d.default,{"data-test":"add-match-button",appearance:"secondary",label:`+ ${(0,u._)("Add match")}`,disabled:e,onClick:t})));v.propTypes={disableAddMatches:s.bool,handleAddMatch:s.func,handleReverse:s.func},t.default=v},347:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=o(r(7408));t.default=({color:e,colorIndex:t,onChange:r,palette:a})=>{const l=i.useCallback((({value:e})=>{let a=e;null!=a&&""!==a||(a="transparent"),r({colorIndex:t,value:a})}),[t,r]);return i.createElement(s.default,{"data-test":`match-color-${e}`,value:e,palette:a,onChange:l,hideInput:!0})}},1727:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=n(r(23)),u=o(r(232)),c=r(6649),d=r(8548),f=o(r(3396)),p=o(r(347)),h=o(r(8753)),m=r(3719),g=o(r(2265)),b=u.default.div`
    padding-top: 10px;
`,v=u.default.div`
    display: flex;
    flex-direction: column-reverse;
`,y=u.default.div.attrs((()=>({"data-test":"match-entry-row"})))`
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
`,_=({customizedColors:e,isReversed:t,onChange:r,precedence:a,swatchColors:l,matchValues:n,setIsReversed:o,selectedColors:s})=>{const u=i.useCallback((({colorIndex:e,value:t})=>{const a=[...s];a[e]=t,r({colors:a,matchValues:n})}),[r,n,s]),_=i.useCallback((()=>{const o=[...n,""],i=e?[...s,"#000000"]:(0,d.getNewColors)({isReversed:t,numColors:o.length,precedence:a,swatchColors:l});r({colors:i,matchValues:o})}),[r,n,e,s,t,a,l]),C=i.useCallback((()=>{const e=[...s];e.reverse(),o(!t),r({colors:e,matchValues:n})}),[r,n,t,s,o]),O=i.useCallback(((e,t)=>{const a=(0,m.isNumeric)(e)?Number(e):e;if(n.includes(a))return{error:(0,c._)("Value already exists")};const l=[...n];return l[t]=a,r({colors:s,matchValues:l}),{error:null}}),[r,s,n]),x=i.useCallback(((e,t)=>{if(n.length>1){const a=[...n];a.splice(t,1);const l=[...s];l.splice(e,1),r({colors:l,matchValues:a})}}),[r,n,s]);return i.createElement(b,null,i.createElement(f.default,{disableAddMatches:s.length>6,handleAddMatch:_,handleReverse:C}),i.createElement(v,null,s.map(((e,t)=>{const r=n[t],a=`${e}-${r}-${t}`;return i.createElement(y,{key:a},i.createElement(p.default,{color:e,colorIndex:t,palette:l,onChange:u}),i.createElement(h.default,{initialValue:r,matchValues:n,matchIndex:t,updateMatch:O}),i.createElement(g.default,{colorIndex:t,matchIndex:t,disabled:n.length<2,onRemove:x}))}))))};_.propTypes={customizedColors:s.bool,isReversed:s.bool,precedence:s.arrayOf(s.arrayOf(s.number)),swatchColors:s.arrayOf(s.string),matchValues:s.arrayOf(s.oneOfType([s.string,s.number])),setIsReversed:s.func,selectedColors:s.arrayOf(s.string)},t.default=_},8753:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.handleUpdateMatch=void 0;const i=n(r(9497)),s=n(r(23)),u=o(r(232)),c=o(r(4082)),d=o(r(4566)),f=u.default.div`
    display: flex;
    flex-grow: 1;
    margin-left: ${d.default.spacingMedium};
`,p=u.default.div`
    flex-grow: 1;
`,h=u.default.div.attrs((()=>({"data-test":"match-value-error"})))`
    color: ${d.default.contentColorNegative};
    padding-top: 5px;
    font-size: 12px;
    display: block;
`;t.handleUpdateMatch=({matchIndex:e,setError:t,shouldUpdate:r,updateMatch:a,value:l})=>{if(r){const r=a(l,e);r&&r.error&&t(r.error)}};const m=({initialValue:e,matchIndex:r,matchValues:a,updateMatch:l})=>{const[n,o]=i.useState(null),[s,u]=i.useState(!1),[d,m]=i.useState(null),g=i.useCallback((()=>{u(!0)}),[]),b=i.useCallback(((e,{value:a})=>{o(a),(0,t.handleUpdateMatch)({matchIndex:r,setError:m,shouldUpdate:!s,updateMatch:l,value:a})}),[s,r,l]),v=i.useCallback((()=>{u(!1),(0,t.handleUpdateMatch)({matchIndex:r,setError:m,shouldUpdate:null!=n&&n!==e,updateMatch:l,value:n})}),[r,n,e,l]),y=i.useCallback((a=>(0,t.handleUpdateMatch)({matchIndex:r,setError:m,shouldUpdate:"Enter"===a.key&&null!==n&&n!==e,updateMatch:l,value:n})),[r,n,e,l]);return i.useEffect((()=>{d&&!a.map((e=>`${e}`)).includes(n)&&(m(null),(0,t.handleUpdateMatch)({matchIndex:r,setError:m,shouldUpdate:!0,updateMatch:l,value:n}))}),[n,d,r,a,l]),i.createElement(f,null,i.createElement(p,null,i.createElement(c.default,{"data-test":"match-text-editor",canClear:!1,error:!!d,onChange:b,onFocus:g,onBlur:v,onKeyUp:y,value:`${null!=n?n:e}`}),d&&i.createElement(h,null,d)))};m.propTypes={initialValue:s.oneOfType([s.string,s.number]),matchValues:s.arrayOf(s.oneOfType([s.string,s.number])),updateMatch:s.func},t.default=m},2265:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=n(r(23)),u=o(r(232)),c=o(r(7020)),d=o(r(8855)),f=r(3563),p=u.default.div`
    display: flex;
    flex: 1;
    justify-content: flex-end;
`,h=(0,u.default)(c.default)`
    color: ${e=>e.disabled?f.variables.contentColorDisabled:f.variables.contentColorActive} !important;
    &:hover {
        background-color: ${e=>!e.disabled&&f.variables.interactiveColorOverlayDrag} !important;
    }
`,m=({colorIndex:e,disabled:t=!1,onRemove:r,matchIndex:a})=>{const l=i.useCallback((()=>r(e,a)),[e,r,a]);return i.createElement(p,null,i.createElement("div",null,i.createElement(h,{"data-test":"match-remove-button",disabled:t,icon:i.createElement(d.default,null),appearance:"subtle",onClick:l})))};m.propTypes={disabled:s.bool,onRemove:s.func},t.default=m},3719:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNumeric=t.getMatches=void 0;const a=r(4793);t.getMatches=(e=[])=>(0,a.isEmpty)(e)?[{match:"",value:"#ff0000"}]:e;t.isNumeric=e=>!isNaN(Number(e))&&!isNaN(parseFloat(e))},107:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.matchValuesToContextConfig=t.MATCH_VALUE_WILDCARD_INFO_TEXT=void 0;const i=n(r(9497)),s=n(r(23)),u=o(r(232)),c=r(6649),d=r(3563),f=o(r(5089)),p=o(r(5852)),h=o(r(1727)),m=r(8548),g=r(3719);t.MATCH_VALUE_WILDCARD_INFO_TEXT=(0,c._)("Enter a value to match. Wildcards '*' can be used.");const b=u.default.div`
    margin: 6px 0px;
    color: ${d.variables.contentColorMuted};
`;t.matchValuesToContextConfig=({colors:e,matchValues:t})=>e.map(((e,r)=>({match:t[r],value:e})));const v=({defaultPalettesConfig:e,onChange:r=(()=>{}),palettes:a=f.default,selectedDataSelector:l,value:n})=>{const o=i.useMemo((()=>(0,g.getMatches)(n)),[n]),{matchValues:s,selectedColors:u}=i.useMemo((()=>o.reduce(((e,t)=>{e.matchValues.push(t.match);const r="string"==typeof t.value?t.value:"transparent";return e.selectedColors.push(r),e}),{matchValues:[],selectedColors:[]})),[o]),[{paletteTheme:c,paletteEntry:d},v]=i.useState((()=>(0,m.inferInitialPaletteFromContext)({defaultPalettesConfig:e,palettes:a,ranges:o}))),y=(0,m.getSwatchColorsFromPalette)({palettes:a,paletteInfo:d,paletteTheme:c}),_=i.useMemo((()=>(0,m.hasCustomColors)({currentSwatchColors:y,selectedColors:u})),[y,u]),[C,O]=i.useState((()=>(0,m.hasInitiallyReversedColors)({isSwatchCustomized:_,palettes:a,selectedColors:u,selectedPaletteInfo:d,selectedPaletteTheme:c,minimumNumberOfColors:1}))),x=i.useCallback((({paletteTheme:e,paletteInfo:t})=>s.length>7?u:(({palettes:e,paletteTheme:t,paletteInfo:r,matchValues:a,setIsReversed:l})=>{const n=(0,m.getSwatchColorsFromPalette)({palettes:e,paletteInfo:r,paletteTheme:t}),o=(0,m.getPrecedenceFromPalette)({palettes:e,paletteTheme:t,paletteInfo:r}),i=a.length,s=o[i<7?i-1:5].map((e=>n[e])).slice(0,i);return l(!1),s})({palettes:a,paletteTheme:e,paletteInfo:t,matchValues:s,setIsReversed:O})),[s,a,u]),P=i.useCallback((e=>{const a=x({paletteTheme:e,paletteInfo:d});v((t=>Object.assign(Object.assign({},t),{paletteTheme:e})));const l=(0,t.matchValuesToContextConfig)({colors:a,matchValues:s});r(null,null,l)}),[x,d,s,r]),w=i.useCallback((e=>{const a=x({paletteTheme:c,paletteInfo:e});v((t=>Object.assign(Object.assign({},t),{paletteEntry:e})));const l=(0,t.matchValuesToContextConfig)({colors:a,matchValues:s});r(null,null,l)}),[x,c,s,r]),E=i.useCallback((({colors:e,matchValues:a})=>{const l=(0,t.matchValuesToContextConfig)({colors:e,matchValues:a});r(null,null,l)}),[r]);return i.useEffect((()=>{v((0,m.inferInitialPaletteFromContext)({defaultPalettesConfig:e,palettes:a,ranges:o}))}),[l]),i.createElement(i.Fragment,null,i.createElement(p.default,{isReversed:C,isSwatchCustomized:_,shouldShowArrows:!1,onChangePaletteTheme:P,onPaletteChange:w,palettes:a,selectedPaletteInfo:d,selectedPaletteTheme:c}),i.createElement(h.default,{customizedColors:_,isReversed:C,onChange:E,precedence:(0,m.getPrecedenceFromPalette)({palettes:a,paletteTheme:c,paletteInfo:d}),matchValues:s,selectedColors:u,swatchColors:y,setIsReversed:O}),i.createElement(b,null,t.MATCH_VALUE_WILDCARD_INFO_TEXT))};v.propTypes={onChange:s.func,palettes:s.objectOf(s.shape({precedence:s.arrayOf(s.arrayOf(s.number)),swatches:s.arrayOf(s.arrayOf(s.string))})),value:s.arrayOf(s.shape({match:s.oneOfType([s.string,s.number]),value:s.string})),selectedDataSelector:s.string,defaultPalettesConfig:s.shape({paletteTheme:s.string,paletteEntry:s.shape({type:s.string,index:s.number})})},t.default=v},1561:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MatchValuePreview=void 0;const i=n(r(9497)),s=r(1705),u=o(r(1494));t.MatchValuePreview=({config:e})=>{const t=(0,i.useMemo)((()=>e.map((e=>e.value)).slice(0,8)),[e]);return i.default.createElement(u.default,null,i.default.createElement(s.ColorPreview,{"data-test":"ColorPreview",colors:t,maxColorCount:8}))}},5852:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=o(r(1964)),u=o(r(2150)),c=r(8548);t.default=({isReversed:e,isSwatchCustomized:t,shouldShowArrows:r=!0,onChangePaletteTheme:a,onPaletteChange:l,palettes:n,selectedPaletteInfo:o,selectedPaletteTheme:d})=>{const f=i.useMemo((()=>Object.keys(n).map((e=>({value:e,label:n[e]._meta.label})))),[n]),p=i.useMemo((()=>(0,c.getThemedPalettesWithoutMeta)({palettes:n,paletteTheme:d})),[n,d]);return i.createElement(i.Fragment,null,i.createElement(s.default,{onChange:a,paletteThemes:f,selectedPaletteTheme:d}),i.createElement(u.default,{isReversed:e,isSwatchCustomized:t,shouldShowArrows:r,onPaletteChange:l,palettes:p,selectedPaletteInfo:o}))}},2150:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=r(4793),u=o(r(232)),c=r(6649),d=o(r(7020)),f=o(r(6214)),p=o(r(4233)),h=o(r(4566)),m=o(r(6212)),g=r(1705),b=o(r(1494)),v=u.default.div`
    width: ${h.default.spacingMedium}; //enterprise: 15px, prisma: 12px
`,y=u.default.span.attrs((()=>({"data-test":"custom-swatch-text"})))`
    display: flex;
    flex: 1;
    padding-left: 10px;
`;t.default=({isReversed:e=!1,isSwatchCustomized:t=!1,shouldShowArrows:r=!0,onPaletteChange:a,palettes:l,selectedPaletteInfo:n})=>{const o=(0,s.get)(l,[n.type,"swatches",n.index],[]),u=i.createElement(d.default,{style:{width:"100%",padding:`0 ${h.default.spacingSmall}`},isMenu:!0,"data-test":"palettes-dropdown-toggle"},t?i.createElement(y,null,"Customized in swatches below"):i.createElement(i.Fragment,null,i.createElement(b.default,null,r&&i.createElement(m.default,null),i.createElement(g.ColorPreview,{colors:o,isReversed:e})),i.createElement(v,null))),_=i.useMemo((()=>Object.keys(l).reduce(((e,r,o,s)=>(e.push(i.createElement(p.default.Heading,{key:`title-${r}`,title:!0},(0,c._)(r).toUpperCase())),e.push(...l[r].swatches.map(((e,l)=>{const o=!t&&r===n.type&&n.index===l;return i.createElement(p.default.Item,{"data-test":`palette-swatch-row-${r}-${l}`,key:`${r}-${JSON.stringify(e)}`,onClick:()=>a({type:r,index:l}),selected:o,selectable:!0},i.createElement(b.default,null,i.createElement(g.ColorPreview,{colors:e})))}))),o<s.length-1&&e.push(i.createElement(p.default.Divider,{key:`divider-${r}`})),e)),[])),[t,a,l,n.index,n.type]);return i.createElement(f.default,{toggle:u},i.createElement(p.default,{style:{width:302}},_))}},1964:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=n(r(23)),u=r(6649),c=o(r(5411)),d=o(r(9250)),f=({labelPosition:e="top",onChange:t,paletteThemes:r,selectedPaletteTheme:a})=>{const l=i.useCallback(((e,{value:r})=>t(r)),[t]);return i.createElement(d.default,{label:(0,u._)("Preset palette"),labelPosition:e},i.createElement(c.default,{onChange:l,value:a},r.map((({value:e,label:t})=>i.createElement(c.default.Option,{key:e,value:e,label:t,"data-test":`preset-palette-theme-${e}`})))))};f.propTypes={labelPosition:s.string,onChange:s.func,paletteThemes:s.arrayOf(s.shape({value:s.string,label:s.string})),selectedPaletteTheme:s.string},t.default=f},8548:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.inferInitialPaletteFromContext=t.hasInitiallyReversedColors=t.getThemedPalettesWithoutMeta=t.hasCustomColors=t.getSwatchColorsFromPalette=t.getPrecedenceFromPalette=t.getNewColors=t.defaultPalettesConfig=void 0;const a=r(4793);t.defaultPalettesConfig={paletteTheme:"DARK_COLORS",paletteEntry:{type:"sequential",index:0}};t.getNewColors=({isReversed:e,numColors:t,precedence:r,swatchColors:a})=>{const l=Array.isArray(r[t-2])?r[t-2].map((e=>a[e])):[];return e&&l.reverse(),l};t.getPrecedenceFromPalette=({palettes:e,paletteInfo:t,paletteTheme:r})=>(0,a.get)(e,[r,t.type,"precedence"],[]);t.getSwatchColorsFromPalette=({palettes:e,paletteInfo:t,paletteTheme:r})=>(0,a.get)(e,[r,t.type,"swatches",t.index],[]);t.hasCustomColors=({currentSwatchColors:e,selectedColors:t})=>{if(t.length>e.length)return!0;const r={};return e.forEach((e=>{"string"==typeof e&&(r[e.toLowerCase()]=e.toLowerCase())})),t.some((e=>"string"!=typeof e||!r[e.toLowerCase()]))};t.getThemedPalettesWithoutMeta=({palettes:e,paletteTheme:t})=>Object.keys(e[t]).reduce(((r,a)=>("_meta"!==a&&(r[a]=e[t][a]),r)),{});const l=({currentSwatchColors:e,precedence:t,selectedColors:r})=>{if(!t)return!1;if(t.every((t=>e[t]===r[t])))return!0;return!![...t].reverse().every((t=>e[t]===r[t]))};t.hasInitiallyReversedColors=({isSwatchCustomized:e,palettes:t,selectedColors:r,selectedPaletteInfo:a,selectedPaletteTheme:l,minimumNumberOfColors:n=2})=>{var o,i,s,u,c,d;if(e)return!1;const f=r.length,p=2===n?f-2:f<7?f-1:5,h=null===(s=null===(i=null===(o=null==t?void 0:t[l])||void 0===o?void 0:o[a.type])||void 0===i?void 0:i.swatches)||void 0===s?void 0:s[a.index],m=[...null===(d=null===(c=null===(u=null==t?void 0:t[l])||void 0===u?void 0:u[a.type])||void 0===c?void 0:c.precedence)||void 0===d?void 0:d[p]].reverse();return r.every(((e,t)=>h[m[t]].toLowerCase()===e.toLowerCase()))};t.inferInitialPaletteFromContext=({defaultPalettesConfig:e,ranges:r,palettes:a})=>{let n,o=[];Array.isArray(r)&&(o=r.map((({value:e})=>e)));let i=!1;return Object.keys(a).forEach((e=>{Object.keys(a[e]).filter((e=>"_meta"!==e)).forEach((r=>{var s;const u=a[e][r];if(!((c=u)&&"object"==typeof c&&"swatches"in c&&Array.isArray(c.swatches)))return;var c;const{swatches:d,precedence:f}=u,p=null!==(s=f[o.length-2])&&void 0!==s?s:[];for(let a=0;a<d.length;a+=1){const s=d[a];(0,t.hasCustomColors)({currentSwatchColors:s,selectedColors:o})||(i=l({currentSwatchColors:s,selectedColors:o,precedence:p}),n&&!i||(n={paletteTheme:e,paletteEntry:{type:r,index:a}}))}}))})),n||e}},2841:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=n(r(23)),u=r(6649),c=o(r(232)),d=o(r(7020)),f=o(r(6062)),p=c.default.div`
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
`,h=c.default.div`
    display: flex;
    flex-direction: column;
    justify-content: center;
`,m=c.default.div`
    display: flex;
`,g={marginRight:"12px"},b=i.createElement(f.default,null),v=({disableAddRanges:e=!1,handleAddRange:t,handleReverse:r})=>i.createElement(p,null,i.createElement(m,null,i.createElement(d.default,{"data-test":"reverse-ranges-button",icon:b,style:g,onClick:r})),i.createElement(h,null,i.createElement(d.default,{"data-test":"add-range-button",appearance:"secondary",label:`+ ${(0,u._)("Add range")}`,disabled:e,onClick:t})));v.propTypes={disableAddRanges:s.bool,handleAddRange:s.func,handleReverse:s.func},t.default=v},6959:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.handleUpdateRangeBoundary=void 0;const i=n(r(9497)),s=o(r(232)),u=o(r(2782)),c=o(r(4566)),d=s.default.div.attrs((()=>({"data-test":"range-boundary-text"})))`
    color: ${c.default.contentColorMuted};
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
`,f=s.default.div.attrs((()=>({"data-test":"range-boundary-error"})))`
    color: ${c.default.contentColorNegative};
    padding-top: 5px;
    font-size: 12px;
    display: block;
`,p=(0,s.default)(u.default)`
    max-width: 105px;
    margin-right: ${c.default.spacingMedium};
`,h=s.default.div`
    display: flex;
    height: 100%;
`,m=s.default.div`
    display: flex;
    flex-direction: column;
    margin-left: ${c.default.spacingMedium};
`;t.handleUpdateRangeBoundary=({rangeBoundaryIndex:e,setError:t,shouldUpdate:r,updateRangeBoundary:a,value:l})=>{if(r){const r=a(l,e);r&&r.error&&t(r.error)}};t.default=({initialValue:e,rangeBoundaryIndex:r,rangeText:a,rangeValues:l,showNumberEditor:n=!0,updateRangeBoundary:o})=>{const[s,u]=i.useState(null),[c,g]=i.useState(!1),[b,v]=i.useState(null),y=i.useCallback((()=>{g(!0)}),[]),_=i.useCallback(((e,{value:a})=>{u(a),(0,t.handleUpdateRangeBoundary)({rangeBoundaryIndex:r,setError:v,shouldUpdate:!c,updateRangeBoundary:o,value:a})}),[c,r,o]),C=i.useCallback((()=>{g(!1),"number"==typeof s?(0,t.handleUpdateRangeBoundary)({rangeBoundaryIndex:r,setError:v,shouldUpdate:s!==e,updateRangeBoundary:o,value:s}):u(null)}),[r,s,e,o]),O=i.useCallback((a=>{"Enter"===a.key&&("number"==typeof s?(0,t.handleUpdateRangeBoundary)({rangeBoundaryIndex:r,setError:v,shouldUpdate:s!==e,updateRangeBoundary:o,value:s}):u(null))}),[r,s,e,o]);return i.useEffect((()=>{b&&!l.includes(s)&&(v(null),(0,t.handleUpdateRangeBoundary)({rangeBoundaryIndex:r,setError:v,shouldUpdate:"number"==typeof s,updateRangeBoundary:o,value:s}))}),[s,b,r,l,o]),i.createElement(m,null,i.createElement(h,null,n&&i.createElement(p,{"data-test":"range-boundary-editor",error:!!b,onBlur:C,onChange:_,onFocus:y,onKeyUp:O,value:null===s?e:s}),i.createElement(d,null,a)),n&&b&&i.createElement(f,null,b))}},1782:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=o(r(7408));t.default=({color:e,colorIndex:t,onChange:r,palette:a})=>{const l=i.useCallback((({value:e})=>{let a=e;return null===a&&(a="transparent"),r({colorIndex:t,value:a})}),[t,r]);return i.createElement(s.default,{"data-test":`range-color-${e}`,value:e,palette:a,onChange:l,hideInput:!0})}},104:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=n(r(23)),u=o(r(232)),c=r(6649),d=o(r(2841)),f=o(r(6959)),p=o(r(1782)),h=o(r(6900)),m=r(8548),g=u.default.div`
    padding-top: 10px;
`,b=u.default.div`
    display: flex;
    flex-direction: column-reverse;
`,v=u.default.div.attrs((()=>({"data-test":"range-entry-row"})))`
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
`,y=({lastColorIndex:e,rangeBoundaryIndex:t,rangeValues:r})=>{switch(t){case e:return(0,c._)("and greater");case 0:return`${(0,c._)("less than")} ${r[t]}`;default:return`${(0,c._)("to")} ${r[t]}`}},_=({customizedColors:e,isReversed:t,onChange:r,precedence:a,swatchColors:l,rangeValues:n,setIsReversed:o,selectedColors:s})=>{const u=i.useCallback((({colorIndex:e,value:t})=>{const a=[...s];a[e]=t,r({colors:a,rangeValues:n})}),[r,n,s]),_=i.useCallback((()=>{const o=[...n,n[n.length-1]+10],i=e?[...s,"#000000"]:(0,m.getNewColors)({isReversed:t,numColors:o.length+1,precedence:a,swatchColors:l});r({colors:i,rangeValues:o})}),[r,n,e,s,t,a,l]),C=i.useCallback((()=>{const e=[...s];e.reverse(),o(!t),r({colors:e,rangeValues:n})}),[r,n,t,s,o]),O=i.useCallback(((e,t)=>{if(n.includes(e))return{error:(0,c._)("Value already exists")};const a=[...n];return a[t]=e,a.sort(((e,t)=>e-t)),r({colors:s,rangeValues:a}),{error:null}}),[r,s,n]),x=i.useCallback(((e,o)=>{if(n.length>1){const i=[...n];i.splice(o,1);const u=[...s];u.splice(e,1);const c=(0,m.hasCustomColors)({currentSwatchColors:l,selectedColors:u})?u:(0,m.getNewColors)({isReversed:t,numColors:i.length+1,precedence:a,swatchColors:l});r({colors:c,rangeValues:i})}}),[t,r,a,n,s,l]);return i.createElement(g,null,i.createElement(d.default,{disableAddRanges:s.length>6,handleAddRange:_,handleReverse:C}),i.createElement(b,null,s.map(((e,t)=>{const r=t===s.length-1,a=t>0?t-1:0,o=n[a];return i.createElement(v,{key:`${e}-${o}`},i.createElement(p.default,{color:e,colorIndex:t,palette:l,onChange:u}),i.createElement(f.default,{initialValue:o,rangeBoundaryIndex:a,rangeText:y({lastColorIndex:s.length-1,rangeBoundaryIndex:t,rangeValues:n}),rangeValues:n,showNumberEditor:r||t>0,updateRangeBoundary:O}),i.createElement(h.default,{colorIndex:t,disabled:n.length<2,onRemove:x,rangeBoundaryIndex:a}))}))))};_.propTypes={customizedColors:s.bool,isReversed:s.bool,precedence:s.arrayOf(s.arrayOf(s.number)),swatchColors:s.arrayOf(s.string),rangeValues:s.arrayOf(s.number),setIsReversed:s.func,selectedColors:s.arrayOf(s.string)},t.default=_},6900:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=n(r(23)),u=o(r(232)),c=o(r(7020)),d=o(r(8855)),f=r(3563),p=u.default.div`
    display: flex;
    flex: 1;
    justify-content: flex-end;
`,h=(0,u.default)(c.default)`
    color: ${e=>e.disabled?f.variables.contentColorDisabled:f.variables.contentColorActive} !important;
    &:hover {
        background-color: ${e=>!e.disabled&&f.variables.interactiveColorOverlayDrag} !important;
    }
`,m=({colorIndex:e,disabled:t=!1,onRemove:r,rangeBoundaryIndex:a})=>{const l=i.useCallback((()=>r(e,a)),[e,r,a]);return i.createElement(p,null,i.createElement("div",null,i.createElement(h,{"data-test":"range-remove-button",disabled:t,icon:i.createElement(d.default,null),appearance:"subtle",onClick:l})))};m.propTypes={disabled:s.bool,onRemove:s.func},t.default=m},3493:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedRanges=void 0;const a=r(4793);t.getSortedRanges=(e=[])=>{if((0,a.isEmpty)(e))return[{to:0,value:"#f00"},{from:0,value:"#0f0"}];const t=[...e];return t.sort(((e,t)=>null==e.to?1:null==t.to?-1:+e.to-+t.to)),t}},530:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rangeValuesToContextConfig=void 0;const i=n(r(9497)),s=n(r(23)),u=o(r(5089)),c=o(r(5852)),d=o(r(104)),f=r(3493),p=r(8548);t.rangeValuesToContextConfig=({colors:e,rangeValues:t})=>e.map(((r,a)=>{const l={value:r};return a>0&&(l.from=t[a-1]),a<e.length-1&&(l.to=t[a]),l}));const h=({defaultPalettesConfig:e,onChange:r=(()=>{}),palettes:a=u.default,selectedDataSelector:l,value:n})=>{const o=i.useMemo((()=>(0,f.getSortedRanges)(n)),[n]),{rangeValues:s,selectedColors:h}=i.useMemo((()=>o.reduce(((e,t)=>("number"==typeof t.to&&e.rangeValues.push(t.to),e.selectedColors.push(t.value),e)),{rangeValues:[],selectedColors:[]})),[o]),[{paletteTheme:m,paletteEntry:g},b]=i.useState((()=>(0,p.inferInitialPaletteFromContext)({defaultPalettesConfig:e,palettes:a,ranges:o}))),v=(0,p.getSwatchColorsFromPalette)({palettes:a,paletteInfo:g,paletteTheme:m}),y=(0,p.hasCustomColors)({currentSwatchColors:v,selectedColors:h}),[_,C]=i.useState((()=>(0,p.hasInitiallyReversedColors)({isSwatchCustomized:y,palettes:a,selectedColors:h,selectedPaletteInfo:g,selectedPaletteTheme:m}))),O=i.useCallback((({paletteTheme:e,paletteInfo:t})=>s.length>6?h:(({palettes:e,paletteTheme:t,paletteInfo:r,rangeValues:a,setIsReversed:l})=>{const n=(0,p.getSwatchColorsFromPalette)({palettes:e,paletteInfo:r,paletteTheme:t}),o=(0,p.getPrecedenceFromPalette)({palettes:e,paletteTheme:t,paletteInfo:r})[a.length-1].map((e=>n[e]));return l(!1),o})({palettes:a,paletteTheme:e,paletteInfo:t,rangeValues:s,setIsReversed:C})),[a,s,h]),x=i.useCallback((e=>{const a=O({paletteTheme:e,paletteInfo:g});b((t=>Object.assign(Object.assign({},t),{paletteTheme:e})));const l=(0,t.rangeValuesToContextConfig)({colors:a,rangeValues:s});r(null,null,l)}),[O,g,s,r]),P=i.useCallback((e=>{const a=O({paletteTheme:m,paletteInfo:e});b((t=>Object.assign(Object.assign({},t),{paletteEntry:e})));const l=(0,t.rangeValuesToContextConfig)({colors:a,rangeValues:s});r(null,null,l)}),[O,m,s,r]),w=i.useCallback((({colors:e,rangeValues:a})=>{const l=(0,t.rangeValuesToContextConfig)({colors:e,rangeValues:a});r(null,null,l)}),[r]);return i.useEffect((()=>{b((0,p.inferInitialPaletteFromContext)({defaultPalettesConfig:e,palettes:a,ranges:o}))}),[l]),i.createElement(i.Fragment,null,i.createElement(c.default,{isReversed:_,isSwatchCustomized:y,onChangePaletteTheme:x,onPaletteChange:P,palettes:a,selectedPaletteInfo:g,selectedPaletteTheme:m}),i.createElement(d.default,{customizedColors:y,isReversed:_,onChange:w,precedence:(0,p.getPrecedenceFromPalette)({palettes:a,paletteTheme:m,paletteInfo:g}),rangeValues:s,selectedColors:h,swatchColors:v,setIsReversed:C}))};h.propTypes={onChange:s.func,palettes:s.objectOf(s.shape({precedence:s.arrayOf(s.arrayOf(s.number)),swatches:s.arrayOf(s.arrayOf(s.string))})),value:s.any},t.default=h},1788:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RangeValuePreview=void 0;const i=n(r(9497)),s=o(r(6212)),u=r(1705),c=o(r(1494)),d=r(3493);t.RangeValuePreview=({config:e})=>{const t=(0,i.useMemo)((()=>(0,d.getSortedRanges)(e)),[e]),r=(0,i.useMemo)((()=>t.map((e=>e.value)).slice(0,8)),[t]);return i.default.createElement(c.default,null,i.default.createElement(s.default,null),i.default.createElement(u.ColorPreview,{"data-test":"ColorPreview",colors:r,maxColorCount:8}))}},4008:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdvancedConfigButton=void 0;const i=n(r(9497)),s=n(r(23)),u=o(r(232)),c=r(6649),d=o(r(6643)),f=r(3563),p=o(r(6379)),h=o(r(7020)),m=o(r(9250)),g=(0,u.default)(m.default)`
    margin-top: 0;
    padding: 0;
    // adjust bottom margin according to theme
    margin-bottom: ${f.variables.spacingMedium};
    width: 100%;

    // remove top margin of the first component in control group
    &:first-child {
        margin-top: 0;
    }

    // remove bottom margin of the last component in control group
    &:last-child {
        margin-bottom: 0;
    }
    // remove top padding on label of the first control group
    [data-test='label']:first-of-type {
        padding-top: 0;
    }
`,b=(0,u.default)(p.default)`
    display: flex;
    > span {
        display: flex;
        width: 35px;
    }
`,v=(0,u.default)(h.default)`
    color: ${f.variables.contentColorActive} !important;
    &:hover {
        background-color: ${f.variables.interactiveColorOverlayDrag} !important;
    }
`;t.AdvancedConfigButton=({label:e="",onClick:t})=>i.default.createElement(b,{"data-test":`${e}-advanced-config-button-tooltip`,content:(0,c._)("Advanced configurations")},i.default.createElement(v,{"data-test":`${e}-advanced-config-button`,icon:i.default.createElement(d.default,{"data-test":`${e}-advanced-config-button-icon`}),appearance:"subtle",onClick:t}));const y=({"data-test":e,children:r,isAdvanced:a=!1,label:l,hideLabel:n,labelPosition:o,labelWidth:s,tooltip:u,help:c,style:d,error:f,controlsLayout:p,onClick:h,onAdvancedConfigButtonClick:m})=>i.default.createElement(g,{"data-test":null!=e?e:"control-group",label:l,hideLabel:n,labelPosition:o,labelWidth:s,tooltip:u,help:c,error:f,style:d,onClick:h,controlsLayout:p},a?i.Children.toArray(r).filter(Boolean).map((e=>(0,i.cloneElement)(e,{style:{flex:1}}))):r,a?i.default.createElement(t.AdvancedConfigButton,{label:l,onClick:m}):null);y.propTypes={style:s.object,isAdvanced:s.bool,onClick:s.func,onAdvancedConfigButtonClick:s.func},t.default=y},6212:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=o(r(232)),u=r(6649),c=o(r(9597)),d=o(r(2267)),f=s.default.div`
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* this aligns the first item on the far left and the other item is aligned to flex end */
    & :first-child {
        margin-right: auto;
    }
    & {
        padding: 4px 1px;
    }
`;t.default=({colorDown:e,colorUp:t})=>i.createElement(f,null,i.createElement(c.default,{"aria-label":(0,u._)("Bottom range"),style:{color:e||"white"}}),i.createElement(d.default,{"aria-label":(0,u._)("Top range"),style:{color:t||"white"}}))},1151:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var l=Object.getOwnPropertyDescriptor(t,r);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,l)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9497)),s=n(r(23)),u=r(6649),c=o(r(232)),d=o(r(4566)),f=o(r(6447)),p=o(r(7020)),h=(0,u._)("Dynamic Option: Customized in source"),m=(0,u._)("Configured in source code beyond what can be shown here. Resetting to default will overwrite this custom configurations."),g=(0,u._)("Reset to default"),b=c.default.div`
    padding: ${({padding:e})=>null!=e?e:"20px"};
    width: ${({width:e})=>null!=e?e:"300px"};
    color: ${d.default.contentColorActive};
`,v=c.default.div`
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 10px;
`,y={headerText:s.string,info:s.string,resetButtonText:s.string,onResetToDefault:s.func,style:s.object},_=({headerText:e=h,info:t=m,resetButtonText:r=g,onResetToDefault:a=(()=>{}),style:l={}})=>i.createElement(b,{style:l},i.createElement(v,{"data-test":"popover-header"},e),i.createElement(f.default,{"data-test":"customized-source-popover-message",type:"info"},t),i.createElement(p.default,{"data-test":"popover-reset",appearance:"secondary",onClick:a,label:r}));_.propTypes=y,t.default=_},1494:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=a(r(232));t.default=l.default.div`
    border-radius: 3px; /* @TODO(pwied): should this be imported from SUI variables? */
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 20px;
`},5862:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.editorStyle=t.DROPDOWN_MENU_WIDTH=t.VERTICAL_EDITOR_SPACING=t.FLYOUT_WIDTH=t.COLUMN_FLYOUT_PADDING=t.FLYOUT_PADDING=void 0,t.FLYOUT_PADDING=21,t.COLUMN_FLYOUT_PADDING=16,t.FLYOUT_WIDTH=344,t.VERTICAL_EDITOR_SPACING=16,t.DROPDOWN_MENU_WIDTH=327,t.editorStyle={width:"100%"}},6195:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},2649:e=>{e.exports=require("@babel/runtime/helpers/extends")},9597:e=>{e.exports=require("@splunk/react-icons/ArrowDown")},2267:e=>{e.exports=require("@splunk/react-icons/ArrowUp")},6062:e=>{e.exports=require("@splunk/react-icons/ArrowsRectangularDouble")},8855:e=>{e.exports=require("@splunk/react-icons/Cross")},6643:e=>{e.exports=require("@splunk/react-icons/SlidersDoubleHorizontal")},7020:e=>{e.exports=require("@splunk/react-ui/Button")},7408:e=>{e.exports=require("@splunk/react-ui/Color")},7143:e=>{e.exports=require("@splunk/react-ui/ColumnLayout")},9250:e=>{e.exports=require("@splunk/react-ui/ControlGroup")},6214:e=>{e.exports=require("@splunk/react-ui/Dropdown")},4233:e=>{e.exports=require("@splunk/react-ui/Menu")},6447:e=>{e.exports=require("@splunk/react-ui/Message")},2782:e=>{e.exports=require("@splunk/react-ui/Number")},1551:e=>{e.exports=require("@splunk/react-ui/Popover")},5411:e=>{e.exports=require("@splunk/react-ui/RadioBar")},2621:e=>{e.exports=require("@splunk/react-ui/ScreenReaderContent")},2373:e=>{e.exports=require("@splunk/react-ui/Select")},4082:e=>{e.exports=require("@splunk/react-ui/Text")},6379:e=>{e.exports=require("@splunk/react-ui/Tooltip")},3563:e=>{e.exports=require("@splunk/themes")},4566:e=>{e.exports=require("@splunk/themes/variables")},6649:e=>{e.exports=require("@splunk/ui-utils/i18n")},8987:e=>{e.exports=require("@splunk/ui-utils/id")},5089:e=>{e.exports=require("@splunk/visualization-color-palettes/editors/PresetPalettes")},1413:e=>{e.exports=require("@splunk/visualization-encoding/utils/dsl")},3283:e=>{e.exports=require("@splunk/visualizations-shared/colorUtils")},7124:e=>{e.exports=require("@splunk/visualizations-shared/style")},4793:e=>{e.exports=require("lodash")},23:e=>{e.exports=require("prop-types")},9497:e=>{e.exports=require("react")},232:e=>{e.exports=require("styled-components")}},t={};function r(a){var l=t[a];if(void 0!==l)return l.exports;var n=t[a]={exports:{}};return e[a].call(n.exports,n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a=r(1546);module.exports=a})();
//# sourceMappingURL=NetworkGraphDynamicColorEditor.js.map