1import{Controller}from"@hotwired/stimulus";export default class extends Controller{static targets=["button","popupError","section","cashActive","chequeActive","cardActive","ibankActive","tansactionDate","amount"];connect(){}changePaymentMode(t){t.preventDefault();const e=this.cashActiveTarget,s=this.chequeActiveTarget,a=this.cardActiveTarget,c=this.ibankActiveTarget;"cash"===t.target.value?(!e.classList.contains("active")&&e.classList.add("active"),s.classList.contains("active")&&s.classList.remove("active"),a.classList.contains("active")&&a.classList.remove("active"),c.classList.contains("active")&&c.classList.remove("active"),fetch("/bank_statements/payment_mode?mode=cash",{method:"GET"}).then(t=>t.text()).then(t=>{document.getElementById("select-payment-mode").innerHTML=t}).catch(t=>console.error(t))):"cheque"===t.target.value?(!s.classList.contains("active")&&s.classList.add("active"),e.classList.contains("active")&&e.classList.remove("active"),a.classList.contains("active")&&a.classList.remove("active"),c.classList.contains("active")&&c.classList.remove("active"),fetch("/bank_statements/payment_mode?mode=cheque",{method:"GET"}).then(t=>t.text()).then(t=>{document.getElementById("select-payment-mode").innerHTML=t}).catch(t=>console.error(t))):"card"===t.target.value?(!a.classList.contains("active")&&a.classList.add("active"),e.classList.contains("active")&&e.classList.remove("active"),s.classList.contains("active")&&s.classList.remove("active"),c.classList.contains("active")&&c.classList.remove("active"),fetch("/bank_statements/payment_mode?mode=card",{method:"GET"}).then(t=>t.text()).then(t=>{document.getElementById("select-payment-mode").innerHTML=t}).catch(t=>console.error(t))):(!c.classList.contains("active")&&c.classList.add("active"),e.classList.contains("active")&&e.classList.remove("active"),s.classList.contains("active")&&s.classList.remove("active"),a.classList.contains("active")&&a.classList.remove("active"),fetch("/bank_statements/payment_mode?mode=ibank",{method:"GET"}).then(t=>t.text()).then(t=>{document.getElementById("select-payment-mode").innerHTML=t}).catch(t=>console.error(t)))}}
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.