PageSourceSearch

https://www.laveze.fr/assets/controllers/alerte_controller-a6b2d436b0a46824c66374b82e938060.js

js laveze.fr collected 2026-10-02 22:10:20 UTC 2,078 bytes, 36 lines download raw bytes

1import {Controller} from "@hotwired/stimulus";
2import { afficheDatePlanificationSuppression, afficheRecurrence, afficheFinValidite,afficheDatePlanification, afficheRecurrenceSemaineMois, validateDatePlanificationSuppression } from "alerte-utils";
3import {sendPush} from "push-utils";
4
5export default class extends Controller {
6    connect() {
7        afficheFinValidite();
8        afficheDatePlanification();
9        afficheDatePlanificationSuppression();
10        afficheRecurrence();
11
12        document.getElementById('checkboxFinValidite')?.addEventListener('change', afficheFinValidite);
13        document.getElementById('checkboxDatePlanification')?.addEventListener('change', () => {
14            afficheDatePlanification();
15            validateDatePlanificationSuppression();
16        });
17        document.getElementById('checkboxDatePlanificationSuppression')?.addEventListener('change', () => {
18            afficheDatePlanificationSuppression();
19            validateDatePlanificationSuppression();
20        });
21        document.getElementById('checkboxRecurrence')?.addEventListener('change', afficheRecurrence);
22        document.querySelector('[name="qsmart_illiwapbundle_alerte[recurrence][type]"]')?.addEventListener('change', afficheRecurrenceSemaineMois);
23
24        // Add validation on date change for both planning and deletion dates
25        const datePlanificationInput = document.querySelector('input[name="qsmart_illiwapbundle_alerte[datePlanification]"]');
26        const dateSuppressionInput = document.querySelector('input[name="qsmart_illiwapbundle_alerte[datePlanificationSuppression]"]');
27        
28        datePlanificationInput?.addEventListener('change', validateDatePlanificationSuppression);
29        dateSuppressionInput?.addEventListener('change', validateDatePlanificationSuppression);
30        
31        // Also validate on blur (when user leaves the field)
32        datePlanificationInput?.addEventListener('blur', validateDatePlanificationSuppression);
33        dateSuppressionInput?.addEventListener('blur', validateDatePlanificationSuppression);
34    }
35
36}

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.