{"version":3,"file":"main.BEBkze.js","sources":["theme-14/virtual:theme","theme-14/discourse/api-initializers/init-custom-hamburger-links.js","theme-14/virtual:entrypoint:main"],"sourcesContent":["import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(14);\n\nexport function themePrefix(key) {\n  return `theme_translations.14.${key}`;\n}\n","import { apiInitializer } from \"discourse/lib/api\";\n\nexport default apiInitializer((api) => {\n  (settings.Hamburger_links || \"\").split(\"|\").forEach((link, index) => {\n    let [rawLabel, href] = (link || \"\").split(\",\");\n\n    api.addCommunitySectionLink((baseSectionLink) => {\n      return class CustomSectionLink extends baseSectionLink {\n        name = `custom-link-${index + 1}`;\n        href = href;\n        route = \"\";\n        text = rawLabel;\n        title = rawLabel;\n      };\n    }, false);\n  });\n});\n","import * as Mod1 from \"./discourse/api-initializers/init-custom-hamburger-links\";\nconst compatModules = {\n  \"discourse/api-initializers/init-custom-hamburger-links\": Mod1,\n};\nexport { compatModules };\nexport default compatModules;\n"],"names":["settings","getObjectForTheme","initCustomHamburgerLinks","apiInitializer","api","Hamburger_links","split","forEach","link","index","rawLabel","href","addCommunitySectionLink","baseSectionLink","name","route","text","title","compatModules"],"mappings":"sLAEaA,EAAWC,EAAkB;ACA1C,IAAAC;oCAAeC,CAAgBC,KAC5BJ,EAASK,iBAAmB,IAAIC,MAAM,KAAKC,QAAQ,CAACC,EAAMC,KACzD,IAAKC,EAAUC,IAASH,GAAQ,IAAIF,MAAM;AAE1CF,EAAIQ,wBAAyBC,GACpB,cAAgCA,EACrCC,KAAO,eAAeL,EAAQ;AAC9BE,KAAOA;AACPI,MAAQ;AACRC,KAAON;AACPO,MAAQP,IAET;ACbF,MAACQ,EAAgB,CACpB;"}