{
  "version": 3,
  "sources": ["help_topic_anchor.js"],
  "sourcesContent": ["// @ts-check\n/**\n * static/js/help_topic_anchor.js \u2014 open the /help/ topic a link lands on\n * (SNOW-1119).\n *\n * Every topic on /help/ is a collapsed <details>. The map's help mode links\n * each control to its topic (/help/#help-topic-layers), and a link that\n * scrolled to a closed panel would land on its title with the answer still\n * folded away. This opens the targeted panel \u2014 on load and when the hash\n * changes on the page \u2014 and brings it into view once open.\n */\n\n(function helpTopicAnchorInit() {\n  'use strict';\n\n  /** Open the <details> the address names, if it names one. */\n  const openTarget = () => {\n    const id = decodeURIComponent(location.hash.slice(1));\n    if (!id) return;\n    const target = document.getElementById(id);\n    if (!target) return;\n    const details = target instanceof HTMLDetailsElement ? target : target.querySelector('details');\n    if (!details) return;\n    details.open = true;\n    details.scrollIntoView({ block: 'start' });\n  };\n\n  openTarget();\n  window.addEventListener('hashchange', openTarget);\n}());\n"],
  "mappings": "CAYC,UAA+B,CAC9B,aAGA,MAAMA,EAAa,IAAM,CACvB,MAAMC,EAAK,mBAAmB,SAAS,KAAK,MAAM,CAAC,CAAC,EACpD,GAAI,CAACA,EAAI,OACT,MAAMC,EAAS,SAAS,eAAeD,CAAE,EACzC,GAAI,CAACC,EAAQ,OACb,MAAMC,EAAUD,aAAkB,mBAAqBA,EAASA,EAAO,cAAc,SAAS,EACzFC,IACLA,EAAQ,KAAO,GACfA,EAAQ,eAAe,CAAE,MAAO,OAAQ,CAAC,EAC3C,EAEAH,EAAW,EACX,OAAO,iBAAiB,aAAcA,CAAU,CAClD,GAAE",
  "names": ["openTarget", "id", "target", "details"]
}
