PageSourceSearch

https://btwb.com/assets/controllers/plan/weight_sets_controller-4c…989a5047e55b0b8fb7fe7c128ba4ad1cb1d6f6c7.js

js btwb.com collected 2026-10-02 15:07:32 UTC 848 bytes, 1 lines download raw bytes

1import{Controller}from"@hotwired/stimulus";export default class extends Controller{static targets=["select"];static outlets=["plan--weight-set-input"];onSelectChange(t){this.updateSetsUnits(this.selectTarget.value)}planWeightSetInputOutletConnected(t,e){this.updateSetsUnits(this.selectTarget.value)}planWeightSetInputOutletDisconnected(t,e){this.updateSetsUnits(this.selectTarget.value)}updateSetsUnits(t){"heaviest"===t?this.planWeightSetInputOutlets.forEach(t=>{t.setHeaviestInput()}):"same"===t?this.planWeightSetInputOutlets.forEach(t=>{t.setSameInput()}):"onerepmax"===t?this.planWeightSetInputOutlets.forEach(t=>{t.setPercentInput()}):"xbodyweight"===t?this.planWeightSetInputOutlets.forEach(t=>{t.setBodyweightInput()}):"assign"===t&&this.planWeightSetInputOutlets.forEach(t=>{t.setAssignInput(this.selectTarget.selectedOptions[0])},this)}}

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.