{"version":3,"file":"main.DLHTkP.js","sources":["theme-20/virtual:theme","theme-20/discourse/api-initializers/theme-initializer.gjs","theme-20/virtual:entrypoint:main"],"sourcesContent":["import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(20);\n\nexport function themePrefix(key) {\n  return `theme_translations.20.${key}`;\n}\n","import { apiInitializer } from \"discourse/lib/api\";\n\nexport default apiInitializer((api) => {\n    // This code will run after the initial page loads AND\n    // every time the user navigates to a new page within the app.\n  api.onPageChange(() => {\n    const otCookiePrefButton = document.querySelector(\n      'a[data-easyfooter-small-link=\"your-privacy-choices\"]'\n    );\n\n    if (otCookiePrefButton && !otCookiePrefButton.dataset.listenerAttached) {\n      otCookiePrefButton.addEventListener(\"click\", (event) => {\n        event.preventDefault(); // Stop the <a> tag from navigating\n        event.stopPropagation();\n\n        if (window.Optanon) {\n          window.Optanon.ToggleInfoDisplay();\n        }\n      });\n\n      otCookiePrefButton.dataset.listenerAttached = \"true\";\n    }\n  });\n});\n\n","import * as Mod1 from \"./discourse/api-initializers/theme-initializer\";\nconst compatModules = {\n  \"discourse/api-initializers/theme-initializer\": Mod1,\n};\nexport { compatModules };\nexport default compatModules;\n"],"names":["getObjectForTheme","themeInitializer","apiInitializer","api","onPageChange","otCookiePrefButton","document","querySelector","dataset","listenerAttached","addEventListener","event","preventDefault","stopPropagation","window","Optanon","ToggleInfoDisplay","compatModules"],"mappings":";AAEwBA,EAAkB;;ACA1C,IAAAC;oCAAeC,CAAgBC,IAG7BA,EAAIC,aAAa,KACf,MAAMC,EAAqBC,SAASC,cAClC;AAGEF,IAAuBA,EAAmBG,QAAQC,mBACpDJ,EAAmBK,iBAAiB,QAAUC,IAC5CA,EAAMC,iBACND,EAAME,kBAEFC,OAAOC,SACTD,OAAOC,QAAQC,sBAInBX,EAAmBG,QAAQC,iBAAmB;ACnB/C,MAACQ,EAAgB,CACpB;"}