{"version":3,"file":"chart_controller-BihGGvkM.js","sources":["../../../app/javascript/controllers/campaign/chart_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"highest\", \"lowest\", \"chart\"]\n\n connect() {\n super.connect()\n\n setTimeout(() => {\n this.chartTargets.forEach((chart) => {\n chart.classList.remove(\"opacity-0\")\n\n if (chart.dataset.heightClass) {\n chart.classList.add(chart.dataset.heightClass)\n } else {\n chart.style.height = `${chart.dataset.heightStyle}`\n }\n })\n }, 200)\n }\n}\n"],"names":["chart_controller","Controller","chart","__publicField"],"mappings":"4MAEe,MAAKA,UAASC,CAAW,CAGtC,SAAU,CACR,MAAM,QAAO,EAEb,WAAW,IAAM,CACf,KAAK,aAAa,QAASC,GAAU,CACnCA,EAAM,UAAU,OAAO,WAAW,EAE9BA,EAAM,QAAQ,YAChBA,EAAM,UAAU,IAAIA,EAAM,QAAQ,WAAW,EAE7CA,EAAM,MAAM,OAAS,GAAGA,EAAM,QAAQ,WAAW,EAEpD,CAAA,CACP,EAAO,GAAG,CACV,CACA,CAjBEC,EADkBH,EACX,UAAU,CAAC,UAAW,SAAU,OAAO"}