1import{Controller}from"@hotwired/stimulus";export default class extends Controller{static targets=["submit","trackType","gymTrack","memberTrack","day","startDate"];connect(){this.refresh()}refresh(){this.submitTarget.disabled=!(this.hasTrack()&&this.hasDay()&&this.hasStartDate())}hasTrack(){const t=this.trackTypeTargets.find(t=>t.checked)?.value;return"member"===t?this.hasMemberTrackTarget&&Boolean(this.memberTrackTarget.value):this.hasGymTrackTarget&&Boolean(this.gymTrackTarget.value)}hasDay(){return this.dayTargets.some(t=>t.checked)}hasStartDate(){return this.hasStartDateTarget&&Boolean(this.startDateTarget.value)}}
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.