{"version":3,"file":"main.DXIoom.js","sources":["theme-208/virtual:theme","theme-208/discourse/connectors/topic-above-post-stream/staff-pm-class.gjs","theme-208/virtual:entrypoint:main"],"sourcesContent":["import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(208);\n\nexport function themePrefix(key) {\n  return `theme_translations.208.${key}`;\n}\n","import Component from \"@glimmer/component\";\nimport bodyClass from \"discourse/helpers/body-class\";\n\nexport default class StaffPmClass extends Component {\n  get isStaffPmLikesTopic() {\n    const targetGroups = settings.target_groups || \"\";\n\n    const topic = this.args.outletArgs.model;\n    const allowedGroups = topic.get(\"details.allowed_groups\");\n\n    if (allowedGroups?.length && topic.isPrivateMessage) {\n      return allowedGroups.some((group) => targetGroups.includes(group.name));\n    }\n  }\n\n  <template>\n    {{#if this.isStaffPmLikesTopic}}\n      {{bodyClass \"staff-pm-likes\"}}\n    {{/if}}\n  </template>\n}\n","import * as Mod1 from \"./discourse/connectors/topic-above-post-stream/staff-pm-class.gjs\";\nconst compatModules = {\n  \"discourse/connectors/topic-above-post-stream/staff-pm-class\": Mod1,\n};\nexport { compatModules };\nexport default compatModules;\n"],"names":["settings","getObjectForTheme","StaffPmClass","Component","isStaffPmLikesTopic","targetGroups","target_groups","topic","this","args","outletArgs","model","allowedGroups","get","length","isPrivateMessage","some","group","includes","name","setComponentTemplate","createTemplateFactory","id","block","moduleName","scope","bodyClass","isStrictMode","compatModules"],"mappings":"wXAEaA,EAAWC,EAAkB;ACC3B,MAAMC,UAAqBC,EACxC,uBAAIC,GACF,MAAMC,EAAeL,EAASM,eAAiB,GAEzCC,EAAQC,KAAKC,KAAKC,WAAWC,MAC7BC,EAAgBL,EAAMM,IAAI;AAEhC,GAAID,GAAeE,QAAUP,EAAMQ,iBACjC,OAAOH,EAAcI,KAAMC,GAAUZ,EAAaa,SAASD,EAAME,MAErE,QAEAC,EAAAC,EAAA,CAAAC,GAAA,KAAAC,MAAA,2HAAAC,WAAA,4BAAAC,MAAAA,KAAAA,CAAAC,cAAAC,cAAA,IAIAnB,KAAU,EClBP,MAACoB,EAAgB,CACpB;"}