1import { Controller } from '@hotwired/stimulus'; 2import { warningSwal} from 'swal-utils'; 3import { trans } from 'translator'; 4 5/* stimulusFetch: 'lazy' */ 6export default class extends Controller { 7 async submit(event) { 8 event.preventDefault(); 9 const confirmed = await warningSwal({ 10 title: trans('common.swal.warning_title'), 11 text: trans('alerte.edit_broadcast.warning_confirm'), 12 confirmButtonText: trans('common.swal.ok_button'), 13 cancelButtonText: trans('common.swal.cancel_button') 14 }); 15 16 if (confirmed) { 17 this.element.requestSubmit() 18 } 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.