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ps/react-wrapper@1.2.0/dist/index.umd.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@googlemaps/react-wrapper@1.2.0/dist/index.umd.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","(function (global, factory) {\n    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@googlemaps/js-api-loader'), require('react')) :\n    typeof define === 'function' && define.amd ? define(['exports', '@googlemaps/js-api-loader', 'react'], factory) :\n    (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Loader = {}, global.google.maps.plugins.loader, global.React));\n})(this, (function (exports, jsApiLoader, React) { 'use strict';\n\n    function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }\n\n    var React__default = /*#__PURE__*/_interopDefaultLegacy(React);\n\n    /**\n     * Copyright 2021 Google LLC. All Rights Reserved.\n     *\n     * Licensed under the Apache License, Version 2.0 (the \"License\");\n     * you may not use this file except in compliance with the License.\n     * You may obtain a copy of the License at.\n     *\n     *      Http://www.apache.org/licenses/LICENSE-2.0.\n     *\n     * Unless required by applicable law or agreed to in writing, software\n     * distributed under the License is distributed on an \"AS IS\" BASIS,\n     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n     * See the License for the specific language governing permissions and\n     * limitations under the License.\n     */\n    exports.Status = void 0;\n    (function (Status) {\n        Status[\"LOADING\"] = \"LOADING\";\n        Status[\"FAILURE\"] = \"FAILURE\";\n        Status[\"SUCCESS\"] = \"SUCCESS\";\n    })(exports.Status || (exports.Status = {}));\n    /**\n     * A component to wrap the loading of the Google Maps JavaScript API.\n     *\n     * ```\n     * import { Wrapper } from '@googlemaps/react-wrapper';\n     *\n     * const MyApp = () => (\n     * \t<Wrapper apiKey={'YOUR_API_KEY'}>\n     * \t\t<MyMapComponent />\n     * \t</Wrapper>\n     * );\n     * ```\n     *\n     * @param props\n     */\n    const Wrapper = ({ children, render, callback, ...options }) => {\n        const [status, setStatus] = React.useState(exports.Status.LOADING);\n        React.useEffect(() => {\n            const loader = new jsApiLoader.Loader(options);\n            const setStatusAndExecuteCallback = (status) => {\n                if (callback)\n                    callback(status, loader);\n                setStatus(status);\n            };\n            setStatusAndExecuteCallback(exports.Status.LOADING);\n            loader.load().then(() => setStatusAndExecuteCallback(exports.Status.SUCCESS), () => setStatusAndExecuteCallback(exports.Status.FAILURE));\n        }, []);\n        if (status === exports.Status.SUCCESS && children)\n            return React__default[\"default\"].createElement(React__default[\"default\"].Fragment, null, children);\n        if (render)\n            return render(status);\n        return React__default[\"default\"].createElement(React__default[\"default\"].Fragment, null);\n    };\n\n    exports.Wrapper = Wrapper;\n\n    Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n"]}