{ "version": 3, "sources": ["anchored_controller-540a5f38bd68638d750428127cd50c104599a9e32fdcf0504d95d0523779e0c4.js"], "sourcesContent": ["import { Controller } from \"@hotwired/stimulus\";\n\n// Connects to data-controller=\"anchored\"\n// see https://github.com/hotwired/turbo/issues/211\n// use with data-turbo=false on form elements\nexport default class extends Controller {\n connect() {\n let id = window.location.hash;\n if (id.length > 1) {\n let element = document.getElementById(id.slice(1));\n if (element) element.scrollIntoView(true);\n }\n }\n};\n"], "mappings": "AAAA,OAAS,cAAAA,MAAkB,qBAK3B,6BAA6BA,CAAW,CACtC,SAAU,CACR,IAAIC,EAAK,OAAO,SAAS,KACzB,GAAIA,EAAG,OAAS,EAAG,CACjB,IAAIC,EAAU,SAAS,eAAeD,EAAG,MAAM,CAAC,CAAC,EAC7CC,GAASA,EAAQ,eAAe,EAAI,CAC1C,CACF,CACF", "names": ["Controller", "id", "element"] }