1(self.webpackChunkkunstmaan_edition=self.webpackChunkkunstmaan_edition||[]).push([[2942],{2942:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("{/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _hotwired_stimulus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2891);\n/* harmony import */ var leaflet_fullscreen__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9401);\n/* harmony import */ var leaflet_fullscreen__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(leaflet_fullscreen__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\n\n/* stimulusFetch: 'lazy' */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (class extends _hotwired_stimulus__WEBPACK_IMPORTED_MODULE_0__/* .Controller */ .xI {\n connect() {\n this.element.addEventListener('ux:map:connect', this._onConnect);\n }\n disconnect() {\n this.element.removeEventListener('ux:map:connect', this._onConnect);\n }\n _onConnect(event) {\n const {\n map,\n extra\n } = event.detail;\n L.control.fullscreen({\n position: extra.controlPosition || 'topleft',\n forceSeparateButton: true\n }).addTo(map);\n }\n});\n\n//# sourceURL=webpack://kunstmaan-edition/./vendor/insiders/kunstmaan-application/kunstmaan-odp-bundle/Resources/ui/frontend/js/controllers/map-fullscreen-controller.js?\n}")},9401:function(module,exports,__webpack_require__){eval("{var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*\n * leaflet.fullscreen\n * (c) Bruno B.; MIT License\n * Uses fragments from the package 'screenfull'\n */\n(function(root, factory) {\n\tif (true) {\n\t\t// define an AMD module that requires 'leaflet'\n\t\t// and resolve to an object c
1ontaining leaflet\n\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(3481)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t} else // removed by dead control flow\n{}\n}(typeof self !== 'undefined'\n\t? self\n\t: this, (leaflet) => {\n\t'use strict';\n\n\tif (typeof document === 'undefined') {\n\t\tconsole.warn('\"window.document\" is undefined; leaflet.fullscreen requires this object to access the DOM');\n\t\treturn false;\n\t}\n\n\tconst nativeAPI = (() => {\n\t\tconst methodMap = [\n\t\t\t// Standard\n\t\t\t[\n\t\t\t\t'requestFullscreen',\n\t\t\t\t'exitFullscreen',\n\t\t\t\t'fullscreenElement',\n\t\t\t\t'fullscreenEnabled',\n\t\t\t\t'fullscreenchange',\n\t\t\t\t'fullscreenerror'\n\t\t\t],\n\t\t\t// New WebKit\n\t\t\t[\n\t\t\t\t'webkitRequestFullscreen',\n\t\t\t\t'webkitExitFullscreen',\n\t\t\t\t'webkitFullscreenElement',\n\t\t\t\t'webkitFullscreenEnabled',\n\t\t\t\t'webkitfullscreenchange',\n\t\t\t\t'webkitfullscreenerror'\n\t\t\t]\n\t\t];\n\n\t\tconst baseList = methodMap[0];\n\t\tconst ret = {};\n\n\t\tfor (const methodList of methodMap) {\n\t\t\tif (methodList[1] in document) {\n\t\t\t\tfor (let i = 0; i < methodList.length; i++) {\n\t\t\t\t\tret[baseList[i]] = methodList[i];\n\t\t\t\t}\n\t\t\t\treturn ret;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t})();\n\n\tconst eventNameMap = {\n\t\tchange: nativeAPI.fullscreenchange,\n\t\terror: nativeAPI.fullscreenerror,\n\t};\n\n\tconst fullscreenAPI = {\n\t\trequest(element, options) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\tconst onFullScreenEntered = function() {\n\t\t\t\t\tthis.off('change', onFullScreenEntered);\n\t\t\t\t\tresolve();\n\t\t\t\t}.bind(this);\n\n\t\t\t\tthis.on('change', onFullScreenEntered);\n\t\t\t\telement = element || document.documentElement;\n\t\t\t\tconst returnPromise = element[nativeAPI.requestFullscreen](options);\n\t\t\t\tif (returnPromise instanceof Promise) {\n\t\t\t\t\treturnPromise.then(onFullScreenEntered).catch(reject);\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\texit() {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\tif (!this.isFullscreen) {\n\t\t\t\t\tresolve();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst onFullScreenExit = function() {\n\t\t\t\t\tthis.off('change', onFullScreenExit);\n\t\t\t\t\tresolve();\n\t\t\t\t}.bind(this);\n\n\t\t\t\tthis.on('change', onFullScreenExit);\n\t\t\t\tconst returnPromise = document[nativeAPI.exitFullscreen]();\n\t\t\t\tif (returnPromise instanceof Promise) {\n\t\t\t\t\treturnPromise.then(onFullScreenExit).catch(reject);\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\ton(event, callback) {\n\t\t\tconst eventName = eventNameMap[event];\n\t\t\tif (eventName) {\n\t\t\t\tdocument.addEventListener(eventName, callback, false);\n\t\t\t}\n\t\t},\n\t\toff(event, callback) {\n\t\t\tconst eventName = eventNameMap[event];\n\t\t\tif (eventName) {\n\t\t\t\tdocument.removeEventListener(eventName, callback, false);\n\t\t\t}\n\t\t},\n\t\tnativeAPI: nativeAPI\n\t};\n\n\tObject.defineProperties(fullscreenAPI, {\n\t\tisFullscreen: {\n\t\t\tget() {\n\t\t\t\treturn Boolean(document[nativeAPI.fullscreenElement]);\n\t\t\t}\n\t\t},\n\t\tisEnabled: {\n\t\t\tenumerable: true,\n\t\t\tget() {\n\t\t\t\t// Coerce to boolean in case of old WebKit\n\t\t\t\treturn Boolean(document[nativeAPI.fullscreenEnabled]);\n\t\t\t}\n\t\t}\n\t});\n\n\tleaflet.Control.FullScreen = leaflet.Control.extend({\n\t\toptions: {\n\t\t\tposition: 'topleft',\n\t\t\ttitle: 'Full Screen',\n\t\t\ttitleCancel: 'Exit Full Screen',\n\t\t\tforceSeparateButton: fal
1se,\n\t\t\tforcePseudoFullscreen: false,\n\t\t\tfullscreenElement: false\n\t\t},\n\n\t\t_screenfull: fullscreenAPI,\n\n\t\tonAdd(map) {\n\t\t\tlet className = 'leaflet-control-zoom-fullscreen';\n\t\t\tlet container;\n\t\t\tlet content = '';\n\n\t\t\tif (map.zoomControl && !this.options.forceSeparateButton) {\n\t\t\t\tcontainer = map.zoomControl._container;\n\t\t\t} else {\n\t\t\t\tcontainer = leaflet.DomUtil.create('div', 'leaflet-bar');\n\t\t\t}\n\n\t\t\tif (this.options.content) {\n\t\t\t\tcontent = this.options.content;\n\t\t\t} else {\n\t\t\t\tclassName += ' leaflet-fullscreen-icon';\n\t\t\t}\n\n\t\t\tthis._createButton(this.options.title, className, content, container, this.toggleFullScreen, this);\n\t\t\tthis._map.fullscreenControl = this;\n\n\t\t\tthis._map.on('enterFullscreen exitFullscreen', this._toggleState, this);\n\n\t\t\treturn container;\n\t\t},\n\n\t\tonRemove() {\n\t\t\tleaflet.DomEvent\n\t\t\t\t.off(this.link, 'click', leaflet.DomEvent.stop)\n\t\t\t\t.off(this.link, 'click', this.toggleFullScreen, this);\n\n\t\t\tif (this._screenfull.isEnabled) {\n\t\t\t\tleaflet.DomEvent\n\t\t\t\t\t.off(this._container, this._screenfull.nativeAPI.fullscreenchange, leaflet.DomEvent.stop)\n\t\t\t\t\t.off(this._container, this._screenfull.nativeAPI.fullscreenchange, this._handleFullscreenChange, this);\n\n\t\t\t\tleaflet.DomEvent\n\t\t\t\t\t.off(document, this._screenfull.nativeAPI.fullscreenchange, leaflet.DomEvent.stop)\n\t\t\t\t\t.off(document, this._screenfull.nativeAPI.fullscreenchange, this._handleFullscreenChange, this);\n\t\t\t}\n\t\t},\n\n\t\t_createButton(title, className, content, container, fn, context) {\n\t\t\tthis.link = leaflet.DomUtil.create('a', className, container);\n\t\t\tthis.link.href = '#';\n\t\t\tthis.link.title = title;\n\t\t\tthis.link.innerHTML = content;\n\n\t\t\tthis.link.setAttribute('role', 'button');\n\t\t\tthis.link.setAttribute('aria-label', title);\n\n\t\t\tL.DomEvent.disableClickPropagation(container);\n\n\t\t\tleaflet.DomEvent\n\t\t\t\t.on(this.link, 'click', leaflet.DomEvent.stop)\n\t\t\t\t.on(this.link, 'click', fn, context);\n\n\t\t\tif (this._screenfull.isEnabled) {\n\t\t\t\tleaflet.DomEvent\n\t\t\t\t\t.on(container, this._screenfull.nativeAPI.fullscreenchange, leaflet.DomEvent.stop)\n\t\t\t\t\t.on(container, this._screenfull.nativeAPI.fullscreenchange, this._handleFullscreenChange, context);\n\n\t\t\t\tleaflet.DomEvent\n\t\t\t\t\t.on(document, this._screenfull.nativeAPI.fullscreenchange, leaflet.DomEvent.stop)\n\t\t\t\t\t.on(document, this._screenfull.nativeAPI.fullscreenchange, this._handleFullscreenChange, context);\n\t\t\t}\n\n\t\t\treturn this.link;\n\t\t},\n\n\t\ttoggleFullScreen() {\n\t\t\tconst map = this._map;\n\t\t\tmap._exitFired = false;\n\t\t\tif (map._isFullscreen) {\n\t\t\t\tif (this._screenfull.isEnabled && !this.options.forcePseudoFullscreen) {\n\t\t\t\t\tthis._screenfull.exit().then(() => map.invalidateSize());\n\t\t\t\t} else {\n\t\t\t\t\tleaflet.DomUtil.removeClass(this.options.fullscreenElement\n\t\t\t\t\t\t? this.options.fullscreenElement\n\t\t\t\t\t\t: map._container, 'leaflet-pseudo-fullscreen');\n\t\t\t\t\tmap.invalidateSize();\n\t\t\t\t}\n\t\t\t\tmap.fire('exitFullscreen');\n\t\t\t\tmap._exitFired = true;\n\t\t\t\tmap._isFullscreen = false;\n\t\t\t} else {\n\t\t\t\tif (this._screenfull.isEnabled && !this.options.forcePseudoFullscreen) {\n\t\t\t\t\tthis._screenfull.request(this.options.fullscreenElement\n\t\t\t\t\t\t? this.options.fullscreenElement\n\t\t\t\t\t\t: map._container).then(() => map.invalidateSize());\n\t\t\t\t} else {\n\t\t\t\t\tleaflet.DomUtil.addClass(this.options.fullscreenElement\n\t\t\t\t\t\t? this.options.fullscreenElement\n\t\t\t\t\t\t: map._container, 'leaflet-pseudo-fullscreen');\n\t\t\t\t\tmap.invalidateSize();\n\t\t\t\t}\n\t\t\t\tmap.fire('enterFullscreen');\n\t\t\t\tmap._isFullscreen = true;\n\t\t\t}\n\t\t},\n\n\t\t_toggleState() {\n\t\t\tthis.link.title = this._map._isFullscreen\n\t\t\t\t? this.options.title\n\t\t\t\t: this.options.titleCancel;\n\t\t\tthis._map._isFullscreen\n\t\t\t\t? L.DomUtil.removeClass(this.link, 'leaflet-fullscreen-on')\n\t\t\t\t: L.DomUtil.addClass(this.link, 'leaflet-fullscreen-on');\n\t\t},\n\n\t\t_handleFullscreenChange(ev) {\n\t\t\tconst map = this._map;\n\t\t\tif (ev.target === map.getContainer() && !this._screenfull.isFullscreen && !map._exitFired) {\n\t\t\t\tthis._screenfull.exit().then(() => map.invalidateSize());\n\t\t\t\tmap.fire('exitFullscreen');\n\t\t\t\tmap._exitFired = true;\n\t\t\t\tmap._isFullscreen = false;\n\t\t\t}\n\t\t}\n\t});\n\n\tleaflet.Map.include({\n\t\ttoggleFullscreen() {\n\t\t\tthis.fullscreenControl.toggleFullScreen();\n\t\t}\n\t});
1\n\n\tleaflet.Map.addInitHook(function() {\n\t\tif (this.options.fullscreenControl) {\n\t\t\tthis.addControl(leaflet.control.fullscreen(this.options.fullscreenControlOptions));\n\t\t}\n\t});\n\n\tleaflet.control.fullscreen = function(options) {\n\t\treturn new leaflet.Control.FullScreen(options);\n\t};\n\n\treturn { leaflet };\n}));\n\n\n//# sourceURL=webpack://kunstmaan-edition/./node_modules/leaflet.fullscreen/Control.FullScreen.js?\n}")}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.