/*!
 * 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={n:n=>{var o=n&&n.__esModule?()=>n.default:()=>n;return e.d(o,{a:o}),o},d:(n,o)=>{for(var i in o)e.o(o,i)&&!e.o(n,i)&&Object.defineProperty(n,i,{enumerable:!0,get:o[i]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{default:()=>u});const o=require("@babel/runtime/helpers/extends");var i=e.n(o);const r=require("react");var t=e.n(r);const d=require("prop-types");var s=e.n(d);const c=require("lodash"),l=()=>null;l.propTypes={name:s().string.isRequired,dimensions:s().object.isRequired,encodingAST:s().object.isRequired,onEncodingASTChange:s().object.isRequired,label:s().string,metaKey:s().string};const a={"encoding.dimension.point":()=>null,"encoding.dimension.series":()=>null,"encoding.dimension.frame":()=>null,"encoding.formatter.color":l},g=({item:e,name:n,encodingAST:o,dimensions:r,onEncodingASTChange:d=c.noop})=>{const{editor:s}=e;let l;if("string"==typeof s){if(!a[s])throw Error(`Invalid editor type: ${s}`);l=a[s]}else l=s;return t().createElement("div",{key:e.option||e.encoding},t().createElement(l,i()({},e.editorProps,{label:e.label,name:n,dimensions:r,onEncodingASTChange:d,encodingAST:o})))};g.propTypes={item:s().object,name:s().string,encodingAST:s().object,dimensions:s().object,onEncodingASTChange:s().func};const u=g;module.exports=n})();
//# sourceMappingURL=EncodingItem.js.map