1import { Controller } from '@hotwired/stimulus' 2 3export default class extends Controller { 4 static values = { 5 message: String, 6 autoOpenModal: String 7 } 8 9 onClick (_e) { 10 if (this.autoOpenModalValue) { 11 setTimeout(() => { 12 const modal = document.getElementById(this.autoOpenModalValue) 13 if (modal) { 14 modal.setAttribute('open', true) 15 } 16 }, 1000) 17 } 18 19 const message = this.messageValue 20 this.dispatch('onClick', { detail: { message } }) 21 } 22}
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.