1"use strict";(self.webpackChunkErfgoedshboschWebsiteBundle=self.webpackChunkErfgoedshboschWebsiteBundle||[]).push([[5937],{5937:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("{__webpack_require__.r(__webpack_exports__);\n/* 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\n\n/* stimulusFetch: 'lazy' */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (class extends _hotwired_stimulus__WEBPACK_IMPORTED_MODULE_0__/* .Controller */ .xI {\n static targets = ['item', 'content'];\n static values = {\n keepOpen: Boolean,\n activeClass: {\n type: String,\n default: 'active'\n }\n };\n toggle(event) {\n const button = event.currentTarget;\n const targetId = button.dataset.toggleGroupTargetId;\n let targetItem = null;\n if (targetId) {\n targetItem = this.itemTargets.find(item => item.id === targetId);\n } else {\n targetItem = button.closest('[data-toggle-group-target=\"item\"]');\n }\n if (!targetItem) {\n return;\n }\n const isActive = targetItem.classList.contains(this.activeClassValue);\n if (this.keepOpenValue) {\n targetItem.classList.toggle(this.activeClassValue);\n if (button.matches('[aria-expanded][aria-controls]:not([aria-haspopup])')) {\n button.setAttribute('aria-expanded', !isActive ? 'true' : 'false');\n }\n return;\n }\n this.itemTargets.forEach(item => {\n const shouldActivate = item === targetItem && !isActive;\n const controlButton = this.element.querySelector(`button[data-toggle-group-target-id=\"${item.id}\"][aria-expanded][aria-controls]:not([aria-haspopup])`);\n item.classList.toggle(this.activeClassValue, shouldActivate);\n if (controlButton) {\n controlButton.setAttribute('aria-expanded', shouldActivate);\n }\n });\n }\n});\n\n//# sourceURL=webpack://ErfgoedshboschWebsiteBundle/./vendor/insiders/kunstmaan-application/kunstmaan-bundles/KunstmaanCoreBundle/Resources/ui/frontend/js/controllers/toggle-group-controller.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.