PageSourceSearch

https://www.mairie-rochedagoux.fr/assets/controllers/modal-controller-a37405bcd39b23716bfd38f57f06bbce.js

js mairie-rochedagoux.fr collected 2026-10-02 22:17:46 UTC 588 bytes, 20 lines download raw bytes

1import { Controller } from '@hotwired/stimulus';
2
3/**
4 * Allows you to dispatch a "modal:close" JavaScript event to close it.
5 *
6 * This is useful inside a LiveComponent, where you can emit a browser event
7 * to open or close the modal.
8 *
9 * See templates/components/Modal.html.twig to see how this is
10 * attached to Bootstrap modal.
11 */
12/* stimulusFetch: 'lazy' */
13export default class extends Controller {
14    modal = null;
15
16    connect() {
17        this.modal = Modal.getOrCreateInstance(this.element);
18        document.addEventListener('modal:close', () => this.modal.hide());
19    }
20}

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.