1import { Controller } from "@hotwired/stimulus" 2 3export default class extends Controller { 4 send(event) { 5 const text = event.currentTarget.dataset.quickReplyText 6 if (!text) return 7 8 const chatController = this.application.getControllerForElementAndIdentifier( 9 document.querySelector("[data-controller~='web-chat']"), 10 "web-chat" 11 ) 12 if (!chatController) return 13 14 const input = chatController.inputTarget 15 input.value = text 16 input.dispatchEvent(new Event("input")) 17 18 this.element.remove() 19 20 chatController.formTarget.requestSubmit() 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.