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,GAAI,CAAE,SAAU,IAChD,IAgBH,EAAE,QAAQ,QAAU,SAAS,EAAS,GAClC,OAAO,IAAI,EAAE,QAAQ,QAAQ,EAAS,EAC1C","file":"/npm/leaflet-sidebar-tabless@1.0.5/js/leaflet-sidebar-tabless.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/leaflet-sidebar-tabless@1.0.5/js/leaflet-sidebar-tabless.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","// @ts-nocheck\n/**\n * @name Sidebar\n * @class L.Control.Sidebar\n * @extends L.Control\n * @param {string} id - The id of the sidebar element (without the # character)\n * @param {Object} [options] - Optional options object\n * @param {string} [options.autopan=false] - whether to move the map when opening the sidebar to make maintain the visible center point\n * @param {string} [options.position=left] - Position of the sidebar: 'left' or 'right'\n * @param {string} [options.id] - ID of a predefined sidebar container that should be used\n * @param {boolean} [data.close=true] Whether to add a close button to the pane header\n * @see L.control.sidebar\n */\nL.Control.Sidebar = L.Control.extend(/** @lends L.Control.Sidebar.prototype */ {\n    includes: L.Evented ? L.Evented.prototype : L.Mixin.Events,\n\n    options: {\n        autopan: false,\n        closeButton: true,\n        container: null,\n        position: 'left'\n    },\n\n    /**\n     * Create a new sidebar on this object.\n     *\n     * @constructor\n     * @param {Object} [options] - Optional options object\n     * @param {string} [options.autopan=false] - whether to move the map when opening the sidebar to make maintain the visible center point\n     * @param {string} [options.position=left] - Position of the sidebar: 'left' or 'right'\n     * @param {string} [options.container] - ID of a predefined sidebar container that should be used\n     * @param {bool} [data.close=true] Whether to add a close button to the pane header\n     */\n    initialize: function(options, deprecatedOptions) {\n        if (typeof options === 'string') {\n            console.warn('this syntax is deprecated. please use L.control.sidebar({ container }) now');\n            options = { container: options };\n        }\n\n        if (typeof options === 'object' && options.id) {\n            console.warn('this syntax is deprecated. please use L.control.sidebar({ container }) now');\n            options.container = options.id;\n        }\n\n        this._tabitems = [];\n        this._panes = [];\n        this._closeButtons = [];\n\n        L.setOptions(this, Object.assign({}, options, deprecatedOptions));\n        return this;\n    },\n\n    /**\n     * Add this sidebar to the specified map.\n     *\n     * @param {L.Map} map\n     * @returns {Sidebar}\n     */\n    onAdd: function(map) {\n        var i, child, container;\n\n        // use container from previous onAdd()\n        container = this._container\n\n        // use the container given via options.\n        if (!container) {\n            container = this._container || typeof this.options.container === 'string'\n            ? L.DomUtil.get(this.options.container)\n            : this.options.container;\n        }\n\n        // if no container was specified or not found, create it and apply an ID\n        if (!container) {\n            container = L.DomUtil.create('div', 'leaflet-sidebar collapsed');\n            if (typeof this.options.container === 'string')\n                container.id = this.options.container;\n        }\n\n        // Find paneContainer in DOM & store reference\n        this._paneContainer = container.querySelector('div.leaflet-sidebar-content');\n\n        // If none is found, create it\n        if (this._paneContainer === null)\n            this._paneContainer = L.DomUtil.create('div', 'leaflet-sidebar-content', container);\n\n        // Store Panes in Collection for easier iteration\n        for (i = 0; i < this._paneContainer.children.length; i++) {\n            child = this._paneContainer.children[i];\n            if (child.tagName === 'DIV' && L.DomUtil.hasClass(child, 'leaflet-sidebar-pane')) {\n                this._panes.push(child);\n\n                // Save references to close buttons\n                var closeButtons = child.querySelectorAll('.leaflet-sidebar-close');\n                if (closeButtons.length) {\n                    this._closeButtons.push(closeButtons[closeButtons.length - 1]);\n                    this._closeClick(closeButtons[closeButtons.length - 1], 'on');\n                }\n            }\n        }\n\n        // leaflet moves the returned container to the right place in the DOM\n        return container;\n    },\n\n    /**\n     * Remove this sidebar from the map.\n     *\n     * @param {L.Map} map\n     * @returns {Sidebar}\n     */\n    onRemove: function (map) {\n        // Remove click listeners for tab & close buttons\n        // for (var i = 0; i < this._tabitems.length; i++)\n        //     this._tabClick(this._tabitems[i], 'off');\n        for (var i = 0; i < this._closeButtons.length; i++)\n            this._closeClick(this._closeButtons[i], 'off');\n\n        this._tabitems = [];\n        this._panes = [];\n        this._closeButtons = [];\n\n        return this;\n    },\n\n    /**\n     * @method addTo(map: Map): this\n     * Adds the control to the given map. Overrides the implementation of L.Control,\n     * changing the DOM mount target from map._controlContainer.topleft to map._container\n     */\n    addTo: function (map) {\n        this.onRemove();\n        this._map = map;\n\n        this._container = this.onAdd(map);\n\n        L.DomUtil.addClass(this._container, 'leaflet-control');\n        L.DomUtil.addClass(this._container, 'leaflet-sidebar-' + this.getPosition());\n        if (L.Browser.touch)\n            L.DomUtil.addClass(this._container, 'leaflet-touch');\n\n        // when adding to the map container, we should stop event propagation\n        L.DomEvent.disableScrollPropagation(this._container);\n        L.DomEvent.disableClickPropagation(this._container);\n        L.DomEvent.on(this._container, 'contextmenu', L.DomEvent.stopPropagation);\n\n        // insert as first child of map container (important for css)\n        map._container.insertBefore(this._container, map._container.firstChild);\n\n        return this;\n    },\n\n    /**\n     * @deprecated - Please use remove() instead of removeFrom(), as of Leaflet 0.8-dev, the removeFrom() has been replaced with remove()\n     * Removes this sidebar from the map.\n     * @param {L.Map} map\n     * @returns {Sidebar}\n     */\n    removeFrom: function(map) {\n        console.warn('removeFrom() has been deprecated, please use remove() instead as support for this function will be ending soon.');\n        this._map._container.removeChild(this._container);\n        this.onRemove(map);\n\n        return this;\n    },\n\n   /**\n     * Open sidebar (if it's closed) and show the specified tab.\n     *\n     * @param {string} id - The ID of the tab to show (without the # character)\n     * @returns {L.Control.Sidebar}\n     */\n    open: function(id) {\n        var i, child, tab;\n\n        // If panel is disabled, stop right here\n        // tab = this._getTab(id);\n        // if (L.DomUtil.hasClass(tab, 'disabled'))\n        //     return this;\n\n        // Hide old active contents and show new content\n        for (i = 0; i < this._panes.length; i++) {\n            child = this._panes[i];\n            if (child.id === id)\n                L.DomUtil.addClass(child, 'active');\n            else if (L.DomUtil.hasClass(child, 'active'))\n                L.DomUtil.removeClass(child, 'active');\n        }\n\n        this.fire('content', { id: id });\n\n        // Open sidebar if it's closed\n        if (L.DomUtil.hasClass(this._container, 'collapsed')) {\n            this.fire('opening');\n            L.DomUtil.removeClass(this._container, 'collapsed');\n            if (this.options.autopan) this._panMap('open');\n        }\n\n        return this;\n    },\n\n    /**\n     * Close the sidebar (if it's open).\n     *\n     * @returns {L.Control.Sidebar}\n     */\n    close: function() {\n        var i;\n\n        // Remove old active highlights\n        // for (i = 0; i < this._tabitems.length; i++) {\n        //     var child = this._tabitems[i];\n        //     if (L.DomUtil.hasClass(child, 'active'))\n        //         L.DomUtil.removeClass(child, 'active');\n        // }\n\n        // close sidebar, if it's opened\n        if (!L.DomUtil.hasClass(this._container, 'collapsed')) {\n            this.fire('closing');\n            L.DomUtil.addClass(this._container, 'collapsed');\n            if (this.options.autopan) this._panMap('close');\n        }\n\n        return this;\n    },\n\n    /**\n     * Add a panel to the sidebar\n     *\n     * @example\n     * sidebar.addPanel({\n     *     id: 'userinfo',\n     *     tab: '<i class=\"fa fa-gear\"></i>',\n     *     pane: someDomNode.innerHTML,\n     *     position: 'bottom'\n     * });\n     *\n     * @param {Object} [data] contains the data for the new Panel:\n     * @param {String} [data.id] the ID for the new Panel, must be unique for the whole page\n     * @param {String} [data.position='top'] where the tab will appear:\n     *                                       on the top or the bottom of the sidebar. 'top' or 'bottom'\n     * @param {HTMLString} {DOMnode} [data.tab]  content of the tab item, as HTMLstring or DOM node\n     * @param {HTMLString} {DOMnode} [data.pane] content of the panel, as HTMLstring or DOM node\n     * @param {String} [data.link] URL to an (external) link that will be opened instead of a panel\n     * @param {String} [data.title] Title for the pane header\n     * @param {String} {Function} [data.button] URL to an (external) link or a click listener function that will be opened instead of a panel\n     * @param {bool} [data.disabled] If the tab should be disabled by default\n     *\n     * @returns {L.Control.Sidebar}\n     */\n    addPanel: function(data) {\n        var pane, tab, tabHref, closeButtons, content;\n\n        // Create pane node\n        if (data.pane) {\n            if (typeof data.pane === 'string') {\n                // pane is given as HTML string\n                pane = L.DomUtil.create('DIV', 'leaflet-sidebar-pane', this._paneContainer);\n                content = '';\n                if (data.title)\n                    content += '<h1 class=\"leaflet-sidebar-header\">' + data.title;\n                if (this.options.closeButton)\n                    content += '<span class=\"leaflet-sidebar-close\"><i class=\"fa fa-caret-' + this.options.position + '\"></i></span>';\n                if (data.title)\n                    content += '</h1>';\n                pane.innerHTML = content + data.pane;\n            } else {\n                // pane is given as DOM object\n                pane = data.pane;\n                this._paneContainer.appendChild(pane);\n            }\n            pane.id = data.id;\n\n            this._panes.push(pane);\n\n            // Save references to close button & register click listener\n            closeButtons = pane.querySelectorAll('.leaflet-sidebar-close');\n            if (closeButtons.length) {\n                // select last button, because thats rendered on top\n                this._closeButtons.push(closeButtons[closeButtons.length - 1]);\n                this._closeClick(closeButtons[closeButtons.length - 1], 'on');\n            }\n        }\n\n        // Register click listeners, if the sidebar is on the map\n        this._tabClick(tab, 'on');\n\n        return this;\n    },\n\n    /**\n     * Removes a panel from the sidebar\n     *\n     * @example\n     * sidebar.remove('userinfo');\n     *\n     * @param {String} [id] the ID of the panel that is to be removed\n     * @returns {L.Control.Sidebar}\n     */\n    removePanel: function(id) {\n        var i, j, tab, pane, closeButtons;\n\n        // find the tab & panel by ID, remove them, and clean up\n        for (i = 0; i < this._tabitems.length; i++) {\n            if (this._tabitems[i]._id === id) {\n                tab = this._tabitems[i];\n\n                // Remove click listeners\n                this._tabClick(tab, 'off');\n\n                tab.remove();\n                this._tabitems.splice(i, 1);\n                break;\n            }\n        }\n\n        for (i = 0; i < this._panes.length; i++) {\n            if (this._panes[i].id === id) {\n                pane = this._panes[i];\n                closeButtons = pane.querySelectorAll('.leaflet-sidebar-close');\n                for (j = 0; j < closeButtons.length; j++) {\n                    this._closeClick(closeButtons[j], 'off');\n                }\n\n                pane.remove();\n                this._panes.splice(i, 1);\n\n                break;\n            }\n        }\n\n        return this;\n    },\n\n    /**\n     * enables a disabled tab/panel\n     *\n     * @param {String} [id] ID of the panel to enable\n     * @returns {L.Control.Sidebar}\n     */\n    enablePanel: function(id) {\n        var tab = this._getTab(id);\n        L.DomUtil.removeClass(tab, 'disabled');\n\n        return this;\n    },\n\n    /**\n     * disables an enabled tab/panel\n     *\n     * @param {String} [id] ID of the panel to disable\n     * @returns {L.Control.Sidebar}\n     */\n    disablePanel: function(id) {\n        var tab = this._getTab(id);\n        L.DomUtil.addClass(tab, 'disabled');\n\n        return this;\n    },\n\n    onTabClick: function(e) {\n        // `this` points to the tab DOM element!\n        if (L.DomUtil.hasClass(this, 'active')) {\n            this._sidebar.close();\n        } else if (!L.DomUtil.hasClass(this, 'disabled')) {\n            if (typeof this._button === 'string') // an url\n                window.location.href = this._button;\n            else if (typeof this._button === 'function') // a clickhandler\n                this._button(e);\n            else // a normal pane\n                this._sidebar.open(this.querySelector('a').hash.slice(1));\n        }\n    },\n\n    /**\n     * (un)registers the onclick event for the given tab,\n     * depending on the second argument.\n     * @private\n     *\n     * @param {DOMelement} [tab]\n     * @param {String} [on] 'on' or 'off'\n     */\n    _tabClick: function(tab, on) {\n        var link = tab.querySelector('a');\n        if (!link.hasAttribute('href') || link.getAttribute('href')[0] !== '#')\n            return;\n\n        if (on === 'on') {\n            L.DomEvent\n                .on(tab.querySelector('a'), 'click', L.DomEvent.preventDefault, tab)\n                .on(tab.querySelector('a'), 'click', this.onTabClick, tab);\n        } else {\n            L.DomEvent.off(tab.querySelector('a'), 'click', this.onTabClick, tab);\n        }\n    },\n\n    onCloseClick: function() {\n        this.close();\n    },\n\n    /**\n     * (un)registers the onclick event for the given close button\n     * depending on the second argument\n     * @private\n     *\n     * @param {DOMelement} [closeButton]\n     * @param {String} [on] 'on' or 'off'\n     */\n    _closeClick: function(closeButton, on) {\n        if (on === 'on') {\n            L.DomEvent.on(closeButton, 'click', this.onCloseClick, this);\n        } else {\n            L.DomEvent.off(closeButton, 'click', this.onCloseClick);\n        }\n    },\n\n    /**\n     * Finds & returns the DOMelement of a tab\n     *\n     * @param {String} [id] the id of the tab\n     * @returns {DOMelement} the tab specified by id, null if not found\n     */\n    _getTab: function(id) {\n        for (var i = 0; i < this._tabitems.length; i++) {\n            if (this._tabitems[i]._id === id)\n                return this._tabitems[i];\n        }\n\n        throw Error('tab \"' + id + '\" not found');\n    },\n\n    /**\n     * Helper for autopan: Pans the map for open/close events\n     *\n     * @param {String} [openClose] The behaviour to enact ('open' | 'close')\n     */\n   _panMap: function(openClose) {\n        var panWidth = Number.parseInt(L.DomUtil.getStyle(this._container, 'max-width')) / 2;\n        if (\n            openClose === 'open' && this.options.position === 'left' ||\n            openClose === 'close' && this.options.position === 'right'\n        ) panWidth *= -1;\n        this._map.panBy([panWidth, 0], { duration: 0.5 });\n   }\n});\n\n/**\n * Create a new sidebar.\n *\n * @example\n * var sidebar = L.control.sidebar({ container: 'sidebar' }).addTo(map);\n *\n * @param {Object} [options] - Optional options object\n * @param {string} [options.autopan=false] - whether to move the map when opening the sidebar to make maintain the visible center point\n * @param {string} [options.position=left] - Position of the sidebar: 'left' or 'right'\n * @param {string} [options.container] - ID of a predefined sidebar container that should be used\n * @param {boolean} [data.close=true] Whether to add a close button to the pane header\n * @returns {Sidebar} A new sidebar instance\n */\nL.control.sidebar = function(options, deprecated) {\n    return new L.Control.Sidebar(options, deprecated);\n};\n"]}