from __future__ import print_function as _

import json
import os as _os
import sys as _sys
import dash as _dash

_basepath = _os.path.dirname(__file__)
_filepath = _os.path.abspath(_os.path.join(_basepath, 'package-info.json'))
with open(_filepath) as f:
    package = json.load(f)

package_name = package['name'].replace(' ', '_').replace('-', '_')
__version__ = package['version']

# Module imports trigger a dash.development import, need to check this first
if not hasattr(_dash, 'development'):
    print("Dash was not successfully imported. Make sure you don't have a file "
          "named \n'dash.py' in your current directory.", file=_sys.stderr)
    _sys.exit(1)

# Must update to dash>=0.23.1 to use this version of dash-core-components
if not hasattr(_dash.development.base_component, '_explicitize_args'):
    print("Please update the `dash` module to >= 0.23.1 to use this "
          "version of dash_core_components.\n"
          "You are using version {:s}".format(_dash.version.__version__),
          file=_sys.stderr)
    _sys.exit(1)

from ._imports_ import *  # noqa: F401, F403
from ._imports_ import __all__  # noqa: E402

_current_path = _os.path.dirname(_os.path.abspath(__file__))


_this_module = _sys.modules[__name__]

async_resources = [
    'datepicker',
    'dropdown',
    'graph',
    'highlight',
    'markdown',
    'slider',
    'upload'
]

_js_dist = []

_js_dist.extend([{
    'relative_package_path': 'async-{}.js'.format(async_resource),
    'external_url': (
        'https://unpkg.com/dash-core-components@{}'
        '/dash_core_components/async-{}.js'
    ).format(__version__, async_resource),
    'namespace': 'dash_core_components',
    'async': True
} for async_resource in async_resources])

_js_dist.extend([{
    'relative_package_path': 'async-{}.js.map'.format(async_resource),
    'external_url': (
        'https://unpkg.com/dash-core-components@{}'
        '/dash_core_components/async-{}.js.map'
    ).format(__version__, async_resource),
    'namespace': 'dash_core_components',
    'dynamic': True
} for async_resource in async_resources])

_js_dist.extend([
    {
        'relative_package_path': '{}.min.js'.format(__name__),
        'external_url': (
            'https://unpkg.com/dash-core-components@{}'
            '/dash_core_components/dash_core_components.min.js'
        ).format(__version__),
        'namespace': 'dash_core_components'
    },
    {
        'relative_package_path': '{}.min.js.map'.format(__name__),
        'external_url': (
            'https://unpkg.com/dash-core-components@{}'
            '/dash_core_components/dash_core_components.min.js.map'
        ).format(__version__),
        'namespace': 'dash_core_components',
        'dynamic': True
    },
    {
        'relative_package_path': '{}-shared.js'.format(__name__),
        'external_url': (
            'https://unpkg.com/dash-core-components@{}'
            '/dash_core_components/dash_core_components-shared.js'
        ).format(__version__),
        'namespace': 'dash_core_components'
    },
    {
        'relative_package_path': '{}-shared.js.map'.format(__name__),
        'external_url': (
            'https://unpkg.com/dash-core-components@{}'
            '/dash_core_components/dash_core_components-shared.js.map'
        ).format(__version__),
        'namespace': 'dash_core_components',
        'dynamic': True
    },
    {
        'relative_package_path': 'plotly.min.js',
        'external_url': (
            'https://unpkg.com/dash-core-components@{}'
            '/dash_core_components/plotly.min.js'
        ).format(__version__),
        'namespace': 'dash_core_components',
        'async': 'eager'
    },
    {
        'relative_package_path': 'async-plotlyjs.js',
        'external_url': (
            'https://unpkg.com/dash-core-components@{}'
            '/dash_core_components/async-plotlyjs.js'
        ).format(__version__),
        'namespace': 'dash_core_components',
        'async': 'lazy'
    },
    {
        'relative_package_path': 'async-plotlyjs.js.map',
        'external_url': (
            'https://unpkg.com/dash-core-components@{}'
            '/dash_core_components/async-plotlyjs.js.map'
        ).format(__version__),
        'namespace': 'dash_core_components',
        'dynamic': True
    },
])

for _component in __all__:
    setattr(locals()[_component], '_js_dist', _js_dist)

@@ -476,16 +476,56 @@
 r(_dash,
+ '__plotly_dash') and not hasattr(_dash,
  'develo
@@ -529,24 +529,24 @@
 elopment'):%0A
-
     print(%22D
@@ -614,16 +614,16 @@
  file %22%0A
+
         
@@ -712,390 +712,8 @@
 1)%0A%0A
-# Must update to dash%3E=0.23.1 to use this version of dash-core-components%0Aif not hasattr(_dash.development.base_component, '_explicitize_args'):%0A    print(%22Please update the %60dash%60 module to %3E= 0.23.1 to use this %22%0A          %22version of dash_core_components.%5Cn%22%0A          %22You are using version %7B:s%7D%22.format(_dash.version.__version__),%0A          file=_sys.stderr)%0A    _sys.exit(1)%0A%0A
 from

improve dash import test see https://github.com/plotly/dash/issues/1143