{"version":3,"file":"useToastNotifiers-ndtqJFGC.js","sources":["../../../app/javascript/controllers/mixins/useToastNotifiers.js"],"sourcesContent":["export const useToastNotifiers = (controller) => {\n Object.assign(controller, {\n showToastErrorMessage(message, { autoHide = false } = {}) {\n window.dispatchEvent(\n new CustomEvent(\"toast:show\", {\n detail: {\n message,\n type: \"error\",\n autoHide\n },\n })\n )\n },\n showToastInformationMessage(message, { autoHide = false } = {}) {\n window.dispatchEvent(\n new CustomEvent(\"toast:show\", {\n detail: {\n message,\n type: \"information\"\n },\n })\n )\n }\n })\n}\n"],"names":["useToastNotifiers","controller","message","autoHide"],"mappings":"AAAY,MAACA,EAAqBC,GAAe,CAC/C,OAAO,OAAOA,EAAY,CACxB,sBAAsBC,EAAS,CAAE,SAAAC,EAAW,EAAK,EAAK,CAAA,EAAI,CACxD,OAAO,cACL,IAAI,YAAY,aAAc,CAC5B,OAAQ,CACN,QAAAD,EACA,KAAM,QACN,SAAAC,CACD,CACF,CAAA,CACT,CACK,EACD,4BAA4BD,EAAS,CAAE,SAAAC,EAAW,EAAK,EAAK,CAAA,EAAI,CAC9D,OAAO,cACL,IAAI,YAAY,aAAc,CAC5B,OAAQ,CACN,QAAAD,EACA,KAAM,aACP,CACF,CAAA,CACT,CACA,CACG,CAAA,CACH"}