82fe40dbbe1d4edaf17e037f5b804905.json 1.59 KB
{"ast":null,"code":"var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=void 0;var _react=_interopRequireDefault(require(\"react\"));var _barChart=_interopRequireDefault(require(\"./bar-chart\"));var _barChartGrouped=_interopRequireDefault(require(\"./bar-chart-grouped\"));var BarChartGate=function BarChartGate(props){var data=props.data;if(data[0]&&data[0].hasOwnProperty('data')){return _react.default.createElement(_barChartGrouped.default,props);}return _react.default.createElement(_barChart.default,props);};var _default=BarChartGate;exports.default=_default;","map":{"version":3,"sources":["C:/Users/bluej/Desktop/2_2/searchGuide/searchGuide/node_modules/react-native-svg-charts/src/bar-chart/index.js"],"names":["BarChartGate","props","data","hasOwnProperty"],"mappings":"mKAAA,oDACA,6DACA,4EAEA,GAAMA,CAAAA,YAAY,CAAG,QAAfA,CAAAA,YAAe,CAACC,KAAD,CAAW,IACpBC,CAAAA,IADoB,CACXD,KADW,CACpBC,IADoB,CAG5B,GAAIA,IAAI,CAAC,CAAD,CAAJ,EAAWA,IAAI,CAAC,CAAD,CAAJ,CAAQC,cAAR,CAAuB,MAAvB,CAAf,CAA+C,CAC3C,MAAO,8BAAC,wBAAD,CAAqBF,KAArB,CAAP,CACH,CAED,MAAO,8BAAC,iBAAD,CAAcA,KAAd,CAAP,CACH,CARD,C,aAUeD,Y","sourcesContent":["import React from 'react'\nimport BarChart from './bar-chart'\nimport BarChartGrouped from './bar-chart-grouped'\n\nconst BarChartGate = (props) => {\n    const { data } = props\n\n    if (data[0] && data[0].hasOwnProperty('data')) {\n        return <BarChartGrouped {...props} />\n    }\n\n    return <BarChart {...props} />\n}\n\nexport default BarChartGate\n"]},"metadata":{},"sourceType":"script"}