PageSourceSearch

https://nutrebem.prod.nutrebem.com.br/assets/controllers/grouped_rows_controller-34a41d8a.js

js nutrebem.com.br collected 2026-10-01 16:39:29 UTC 489 bytes, 14 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3// Linhas de grupo que abrem e fecham as linhas filhas, marcadas por `child-<grupo>`.
4export default class extends Controller {
5  alternar({ target }) {
6    const linha = target.closest("tr.group-row")
7    if (!linha) return
8
9    const aberto = linha.classList.toggle("is-open")
10    this.element
11      .querySelectorAll(`.child-${linha.dataset.group}`)
12      .forEach((filha) => (filha.style.display = aberto ? "table-row" : "none"))
13  }
14}

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.