{ "version": 3, "sources": ["logout_controller-fad058f1b4459facff396e9250f32fc8e5cdde2e9e4b1d417151da99397d267e.js"], "sourcesContent": ["import { Controller } from \"@hotwired/stimulus\";\n\n// Connects to data-controller=\"logout\"\nexport default class extends Controller {\n connect() {\n this.element.addEventListener(\"submit\", _event => { \n let credentials = btoa(\"LOGOUT:PASSWORD\");\n var auth = { \"Authorization\" : `Basic ${credentials}` };\n fetch(window.location, { headers : auth });\n // Note: event.preventDefault(); is *NOT* called\n });\n }\n};\n"], "mappings": "AAAA,OAAS,cAAAA,MAAkB,qBAG3B,6BAA6BA,CAAW,CACtC,SAAU,CACR,KAAK,QAAQ,iBAAiB,SAAUC,GAAU,CAEhD,IAAIC,EAAO,CAAE,cAAkB,SADb,KAAK,iBAAiB,CACW,EAAG,EACtD,MAAM,OAAO,SAAU,CAAE,QAAUA,CAAK,CAAC,CAE3C,CAAC,CACH,CACF", "names": ["Controller", "_event", "auth"] }