PageSourceSearch

https://nutrebem.prod.nutrebem.com.br/assets/controllers/weekday_availability_controller-8956fd23.js

js nutrebem.com.br collected 2026-10-01 16:41:00 UTC 582 bytes, 16 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3// "Segunda a sexta" liga e desliga os cinco dias de uma vez, e volta a ficar marcado sozinho
4// quando os cinco estao marcados. Marcar a semana inteira desmarca o sabado.
5export default class extends Controller {
6  static targets = ["semana", "dia", "sabado"]
7
8  marcarSemana() {
9    if (this.hasSabadoTarget) this.sabadoTarget.checked = false
10    this.diaTargets.forEach((dia) => (dia.checked = this.semanaTarget.checked))
11  }
12
13  conferirSemana() {
14    this.semanaTarget.checked = this.diaTargets.every((dia) => dia.checked)
15  }
16}

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.