{"version":3,"file":"toggle_controller-BSc5Nls8.js","sources":["../../../app/javascript/controllers/toggle_controller.js"],"sourcesContent":["import { Toggle } from 'tailwindcss-stimulus-components'\n\nexport default class extends Toggle {\n animate() {\n this.toggleableTargets.forEach((toggleable) => {\n const toggleClass = toggleable.dataset.toggleClass || 'hidden'\n\n if(toggleable.classList.contains(toggleClass)) {\n toggleable.classList.remove(toggleClass)\n } else {\n toggleable.classList.add(toggleClass)\n }\n })\n }\n}\n"],"names":["toggle_controller","Toggle","toggleable","toggleClass"],"mappings":"yEAEe,MAAKA,UAASC,CAAO,CAClC,SAAU,CACR,KAAK,kBAAkB,QAASC,GAAe,CAC7C,MAAMC,EAAcD,EAAW,QAAQ,aAAe,SAEnDA,EAAW,UAAU,SAASC,CAAW,EAC1CD,EAAW,UAAU,OAAOC,CAAW,EAEvCD,EAAW,UAAU,IAAIC,CAAW,CAEvC,CAAA,CACL,CACA"}