{"version":3,"file":"section_controller-C0jpKYY5.js","sources":["../../../app/javascript/entrypoints/controllers/section_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"sectionUnit\", \"carrotUp\", \"carrotDown\", \"section\", \"row\"];\n hidden = true;\n\n remove(event) {\n this.sectionTarget.remove();\n }\n connect() {}\n\n toggle() {\n this.hidden ? this.show() : this.hide();\n }\n\n show(event) {\n this.hidden = false;\n\n this.rowTarget.classList.remove(\"border-b-2\");\n\n this.carrotDownTarget.classList.remove(\"hidden\");\n this.carrotUpTarget.classList.add(\"hidden\");\n\n [...this.sectionUnitTargets].map((unit) => unit.classList.remove(\"hidden\"));\n }\n\n hide(event) {\n this.hidden = true;\n\n this.rowTarget.classList.add(\"border-b-2\");\n\n this.carrotUpTarget.classList.remove(\"hidden\");\n this.carrotDownTarget.classList.add(\"hidden\");\n\n [...this.sectionUnitTargets].map((unit) => unit.classList.add(\"hidden\"));\n }\n}\n"],"names":["section_controller","Controller","__publicField","event","unit"],"mappings":"mNAEe,MAAKA,UAASC,CAAW,CAAzB,kCAEbC,EAAA,cAAS,IAET,OAAOC,EAAO,CACZ,KAAK,cAAc,QACpB,CACD,SAAU,CAAE,CAEZ,QAAS,CACP,KAAK,OAAS,KAAK,KAAI,EAAK,KAAK,MAClC,CAED,KAAKA,EAAO,CACV,KAAK,OAAS,GAEd,KAAK,UAAU,UAAU,OAAO,YAAY,EAE5C,KAAK,iBAAiB,UAAU,OAAO,QAAQ,EAC/C,KAAK,eAAe,UAAU,IAAI,QAAQ,EAE1C,CAAC,GAAG,KAAK,kBAAkB,EAAE,IAAKC,GAASA,EAAK,UAAU,OAAO,QAAQ,CAAC,CAC3E,CAED,KAAKD,EAAO,CACV,KAAK,OAAS,GAEd,KAAK,UAAU,UAAU,IAAI,YAAY,EAEzC,KAAK,eAAe,UAAU,OAAO,QAAQ,EAC7C,KAAK,iBAAiB,UAAU,IAAI,QAAQ,EAE5C,CAAC,GAAG,KAAK,kBAAkB,EAAE,IAAKC,GAASA,EAAK,UAAU,IAAI,QAAQ,CAAC,CACxE,CACH,CAjCEF,EADkBF,EACX,UAAU,CAAC,cAAe,WAAY,aAAc,UAAW,KAAK"}