{"version":3,"file":"main.BNjqwp.js","sources":["theme-34/virtual:theme","theme-34/discourse/api-initializers/init-custom-hamburger-links.js","theme-34/virtual:entrypoint:main"],"sourcesContent":["import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(34);\n\nexport function themePrefix(key) {\n  return `theme_translations.34.${key}`;\n}\n","import { apiInitializer } from \"discourse/lib/api\";\n\nexport default apiInitializer(\"0.8.18\", (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,CAAe,SAAWC,KACtCJ,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;"}