{"version":3,"file":"flash_message_controller-DQ1osYN5.js","names":[],"sources":["../../../app/javascript/entrypoints/controllers/flash_message_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\"\n\n// Connects to data-controller=\"flash-message\"\nexport default class extends Controller {\n static values = { timeout: Number }\n connect() {\n if (this.timeoutValue) {\n setTimeout(() => {\n this.element.remove()\n }, this.timeoutValue)\n }\n }\n\n\n close() {\n this.element.remove();\n }\n}\n"],"mappings":"4GAGA,EAAA,cAA6B,CAAW,CACtC,OAAO,OAAS,CAAE,QAAS,OAAQ,CACnC,SAAU,CACJ,KAAK,cACP,eAAiB,CACf,KAAK,QAAQ,QAAQ,EACpB,KAAK,aAAa,CAKzB,OAAQ,CACN,KAAK,QAAQ,QAAQ"}