'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var jsxRuntime = require('react/jsx-runtime');
var React = require('react');
var drillableMap = require('../drillable-map.js');
var config = require('./config.js');

var index = React.forwardRef((props, ref) => {
    const drillableMapRef = React.useRef(null);
    React.useImperativeHandle(ref, () => {
        var _a;
        return ({
            echartsInstance: (_a = drillableMapRef.current) === null || _a === void 0 ? void 0 : _a.echartsInstance,
            backToUpperLevel: () => {
                var _a;
                (_a = drillableMapRef.current) === null || _a === void 0 ? void 0 : _a.backToUpperLevel();
            },
            drillDown: (mapName) => {
                var _a;
                (_a = drillableMapRef.current) === null || _a === void 0 ? void 0 : _a.drillDown(mapName);
            },
        });
    });
    return (jsxRuntime.jsx(drillableMap.default, Object.assign({ ref: drillableMapRef, rootGeoJson: config.rootGeoJson, childrenGeoJsonMap: config.childrenGeoJsonMap }, props)));
});

exports.default = index;
//# sourceMappingURL=index.js.map
