"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const P=require("react/jsx-runtime"),i=require("react"),_=require("./SystemColors.js"),b=require("./PlainColor.js"),d=require("./ManualColors.js"),c=require("@nivo/colors"),E=require("./SequentialColors.js"),M=require("./CategoricalColors.js"),R=({app:s,type:f,colorBy:o,scheme:e,barColor:S,manualColors:g,locale:C,overallLabel:w,customLabels:v,options:{data:l,keys:n,indexBy:t,dimensionsMetadata:a,measuresMetadata:q},children:j})=>{let r;return l?(e==="system"?r=new _.default(s,f,o,e,l,n,t,a,q,C):e==="plain_color"?r=new b.default(S):e==="manual"?r=new d.default(s,f,o,e,l,a,q,n,t,g,C,w,v):(c.isSequentialColorScheme(e)&&(r=new E.default(o,e,l,n,t)),c.isCategoricalColorScheme(e)&&(r=new M.default(o,e,l,n,t))),P.jsx("div",{children:i.Children.map(j,u=>i.isValidElement(u)?i.cloneElement(u,{colorGenerator:r}):u)})):null};exports.default=R;
