1import { Controller } from "@hotwired/stimulus" 2 3export default class extends Controller { 4 5 static targets = ['acceptanceNews', 'confirmPolitics', 'finalizeNewsletter', 'termsWarning'] 6 7 connect(){ 8 9 } 10 11 enableSuscribeBtn(){ 12 if (this.hasAcceptanceNewsTarget){ 13 if (this.acceptanceNewsTarget.checked && this.confirmPoliticsTarget.checked){ 14 this.finalizeNewsletterTarget.disabled = false 15 this.termsWarningTarget.classList.add('d-none') 16 }else{ 17 this.finalizeNewsletterTarget.disabled = true 18 this.termsWarningTarget.classList.remove('d-none') 19 } 20 }else{ 21 if (this.confirmPoliticsTarget.checked){ 22 this.finalizeNewsletterTarget.disabled = false 23 this.termsWarningTarget.classList.add('d-none') 24 }else{ 25 this.finalizeNewsletterTarget.disabled = true 26 this.termsWarningTarget.classList.remove('d-none') 27 } 28 } 29 30 } 31};
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.