{"version":3,"file":"main.Bmorg6.js","sources":["theme-33/virtual:theme","theme-33/discourse/components/global-signature.gjs","theme-33/discourse/api-initializers/init-global-signatures.gjs","theme-33/virtual:entrypoint:main"],"sourcesContent":["import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(33);\n\nexport function themePrefix(key) {\n  return `theme_translations.33.${key}`;\n}\n","import { trustHTML } from \"@ember/template\";\nimport { splitString } from \"discourse/lib/utilities\";\nimport DDecoratedHtml from \"discourse/ui-kit/d-decorated-html\";\n\nfunction shouldShowGlobalSignature(username) {\n  if (!settings.global_signature_contents?.trim()) {\n    return false;\n  }\n  return splitString(settings.global_signature_users, \"|\").includes(username);\n}\n\nconst GlobalSignature = \n<template>\n  {{#if (shouldShowGlobalSignature @post.username)}}\n    <div class=\"global-signature-wrapper\">\n      <hr />\n      <DDecoratedHtml\n        @html={{trustHTML settings.global_signature_contents}}\n        @className=\"user-signature global-signature\"\n      />\n    </div>\n  {{/if}}\n</template>;\n\nexport default GlobalSignature;\n","import { withPluginApi } from \"discourse/lib/plugin-api\";\nimport GlobalSignature from \"../components/global-signature.gjs\";\n\nexport default {\n  name: \"extend-for-global-signatures\",\n  initialize() {\n    withPluginApi((api) => {\n      api.renderBeforeWrapperOutlet(\"post-menu\", GlobalSignature);\n    });\n  },\n};\n","import * as Mod1 from \"./discourse/api-initializers/init-global-signatures\";\nimport * as Mod2 from \"./discourse/components/global-signature\";\nconst compatModules = {\n  \"discourse/api-initializers/init-global-signatures\": Mod1,\n  \"discourse/components/global-signature\": Mod2,\n};\nexport { compatModules };\nexport default compatModules;\n"],"names":["settings","getObjectForTheme","shouldShowGlobalSignature","username","global_signature_contents","trim","splitString","global_signature_users","includes","GlobalSignature","setComponentTemplate","createTemplateFactory","id","block","moduleName","scope","DDecoratedHtml","trustHTML","isStrictMode","templateOnly","initGlobalSignatures","name","initialize","withPluginApi","api","renderBeforeWrapperOutlet","compatModules","Mod2"],"mappings":"g/BAEaA,EAAWC,EAAkB;ACE1C,SAASC,EAA0BC,GACjC,QAAKH,EAASI,2BAA2BC,QAGlCC,EAAYN,EAASO,uBAAwB,KAAKC,SAASL,EACpE,CAEA,MAAMM,EAAAC,EAAAC,EAAA,CAAAC,GAAA,KAAAC,MAAA,2VAAAC,WAAA,4BAAAC,MAAAA,KAAAA,CAAAb,4BAAAc,iBAAAC,YAAAjB,aAAAkB,cAAA,IAAAC;;gDCRNC,EAAe,CACbC,KAAM,+BACNC,UAAAA;8BACEC,CAAeC,IACbA,EAAIC,0BAA0B,YAAahB,IAE/C;ACPG,MAACiB,EAAgB,CACpB,8FACA,wCAAyCC;"}