{ "version": 3, "sources": ["couples_controller-ce52b11bf562dd530a91b34d29bfc561b7d747915fa960f6bbf9f4c3819602bd.js"], "sourcesContent": ["import { Controller } from \"@hotwired/stimulus\"\n\n// Connects to data-controller=\"couples\"\nexport default class extends Controller {\n connect() {\n let billable_type = document.getElementById(\"billable_type\")\n let billable_couples = document.getElementById(\"billable_couples\")\n\n function couples_visibilty() {\n if (billable_type.value == \"Student\") {\n billable_couples.parentElement.classList.remove(\"hidden\")\n } else {\n billable_couples.parentElement.classList.add(\"hidden\")\n billable_couples.checked = false\n }\n }\n\n if (billable_type) {\n couples_visibilty()\n\n billable_type.addEventListener(\"change\", couples_visibilty)\n }\n }\n};\n"], "mappings": "AAAA,OAAS,cAAAA,MAAkB,qBAG3B,6BAA6BA,CAAW,CACtC,SAAU,CACR,IAAIC,EAAgB,SAAS,eAAe,eAAe,EACvDC,EAAmB,SAAS,eAAe,kBAAkB,EAEjE,SAASC,GAAoB,CACvBF,EAAc,OAAS,UACzBC,EAAiB,cAAc,UAAU,OAAO,QAAQ,GAExDA,EAAiB,cAAc,UAAU,IAAI,QAAQ,EACrDA,EAAiB,QAAU,GAE/B,CAEID,IACFE,EAAkB,EAElBF,EAAc,iBAAiB,SAAUE,CAAiB,EAE9D,CACF", "names": ["Controller", "billable_type", "billable_couples", "couples_visibilty"] }