{"version":3,"file":"main.mG7gUf.js","sources":["theme-431/virtual:theme","theme-431/discourse/api-initializers/theme-initializer.gjs","theme-431/virtual:entrypoint:main"],"sourcesContent":["import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(431);\n\nexport function themePrefix(key) {\n  return `theme_translations.431.${key}`;\n}\n","import { apiInitializer } from \"discourse/lib/api\";\n\nexport default apiInitializer((api) => {\n    api.registerValueTransformer(\n        \"hubspot-flair-badge-label\",\n        ({ value, context }) => {\n            if (!value || !context.post?.hubspot_flair_data) {\n              return value;\n            }\n            \n            if (context.post.hubspot_lifecycle_stage === \"customer\") {\n              const planTier = context.post.hubspot_flair_data.find(\n                (e) => e.key === \"company.plan_tier\"\n              );\n              if (planTier?.value) {\n                return `${planTier.value} Customer`;\n              }\n            }\n            \n            return value;\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","registerValueTransformer","value","context","post","hubspot_flair_data","hubspot_lifecycle_stage","planTier","find","e","key","compatModules"],"mappings":";AAEwBA,EAAkB;;ACA1C,IAAAC;oCAAeC,CAAgBC,IAC3BA,EAAIC,yBACA,4BACA,EAAGC,QAAOC,cACN,IAAKD,IAAUC,EAAQC,MAAMC,mBAC3B,OAAOH;AAGT,GAA6C,aAAzCC,EAAQC,KAAKE,wBAAwC,CACvD,MAAMC,EAAWJ,EAAQC,KAAKC,mBAAmBG,KAC9CC,GAAgB,sBAAVA,EAAEC;AAEX,GAAIH,GAAUL,MACZ,MAAO,GAAGK,EAASL,gBAEvB,CAEA,OAAOA;AClBd,MAACS,EAAgB,CACpB;"}