{"version":3,"file":"virtual_entrypoint_main.js","sources":["theme-13/virtual:init-settings","theme-13/virtual:theme","theme-13/discourse/initializers/theme-field-502-desktop-html-script-1.js","theme-13/virtual:entrypoint:main"],"sourcesContent":["import { registerSettings } from \"discourse/lib/theme-settings-store\";\n\nregisterSettings(13, {\n  \"theme_uploads\": {\n    \"icons-sprite\": \"/uploads/default/original/3X/a/d/ad418f2a4c34f80fbd371f322c32c7353fb757c7.svg\"\n  }\n});\n","import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(13);\n\nexport function themePrefix(key) {\n  return `theme_translations.13.${key}`;\n}\n","import { withPluginApi } from \"discourse/lib/plugin-api\";\nimport deprecated from \"discourse/lib/deprecated\";\n\nexport default {\n  name: \"theme-field-502-desktop-html-script-1\",\n  after: \"inject-objects\",\n\n  initialize() {\n    deprecated(\n      \"Adding JS code using <script type='text/discourse-plugin'> is deprecated. Move this code to a dedicated JavaScript file.\",\n      {\n        id: \"discourse.script-tag-discourse-plugin\",\n        url: \"https://meta.discourse.org/t/366482\",\n      }\n    )\n    withPluginApi(\"0.8\", (api) => {\n      \n  const SCROLL_THRESHOLD = 20;\n\n  const update = () => {\n    const el = document.querySelector('.d-header-wrap');\n    if (!el) return;\n    const scrolled = window.scrollY > SCROLL_THRESHOLD;\n    el.classList.toggle('sticky', scrolled);\n  };\n\n  api.onPageChange(() => requestAnimationFrame(update));\n  window.addEventListener('scroll', update, { passive: true });\n  window.addEventListener('resize', update, { passive: true });\n\n    });\n  }\n};\n","import \"virtual:init-settings\";\n\nconst compatModules = {};\nimport * as Mod1 from \"./discourse/initializers/theme-field-502-desktop-html-script-1\";\ncompatModules[\"discourse/initializers/theme-field-502-desktop-html-script-1\"] = Mod1;\n\nexport default compatModules;\n"],"names":["registerSettings","theme_uploads","getObjectForTheme","themeField502DesktopHtmlScript1","name","after","initialize","deprecated","id","url","withPluginApi","api","update","el","document","querySelector","scrolled","window","scrollY","classList","toggle","onPageChange","requestAnimationFrame","addEventListener","passive","compatModules","Mod1"],"mappings":";AAEAA,EAAiB,GAAI,CACnBC,cAAiB,CACf,eAAgB,mFCFIC,EAAkB;ACC1C,IAAAC,EAAe,CACbC,KAAM,wCACNC,MAAO,iBAEPC,UAAAA,GACEC,EACE,2HACA,CACEC,GAAI,wCACJC,IAAK,wCAGTC,EAAc,MAAQC,IAExB,MAEMC,EAASA,KACb,MAAMC,EAAKC,SAASC,cAAc;AAClC,IAAKF,EAAI;AACT,MAAMG,EAAWC,OAAOC,QALD;AAMvBL,EAAGM,UAAUC,OAAO,SAAUJ;AAGhCL,EAAIU,aAAa,IAAMC,sBAAsBV,IAC7CK,OAAOM,iBAAiB,SAAUX,EAAQ,CAAEY,SAAS,IACrDP,OAAOM,iBAAiB,SAAUX,EAAQ,CAAEY,SAAS,KAGrD;AC7BG,MAACC,EAAgB,CAAA;AAEtBA,EAAc,gEAAkEC;"}