{"version":3,"file":"main.DzHcPP.js","sources":["theme-57/virtual:theme","theme-57/discourse/api-initializers/theme-initializer.gjs","theme-57/virtual:entrypoint:main"],"sourcesContent":["import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(57);\n\nexport function themePrefix(key) {\n  return `theme_translations.57.${key}`;\n}\n","import { withPluginApi } from \"discourse/lib/plugin-api\";\n\nexport default {\n  name: \"legal-tc-v2\",\n  initialize() {\n    withPluginApi(\"0.8.31\", (api) => {\n      api.decorateCookedElement((el) => {\n        const wraps = el.querySelectorAll(\".d-wrap[data-wrap=legal]\");\n        \n        wraps.forEach((wrap) => {\n          // Find the first paragraph or text node\n          const target = wrap.querySelector(\"p\") || wrap;\n          \n          if (target && target.innerHTML) {\n            // Removes any leading numbers/dots that you might have typed\n            // e.g. \"12.1. Text\" becomes \"Text\"\n            target.innerHTML = target.innerHTML.replace(/^[\\d\\.]+\\s+/, \"\");\n          }\n        });\n      }, { id: \"legal-tc-v2-decorator\" });\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","name","initialize","withPluginApi","api","decorateCookedElement","el","querySelectorAll","forEach","wrap","target","querySelector","innerHTML","replace","id","compatModules"],"mappings":";AAEwBA,EAAkB;;ACA1C,IAAAC,EAAe,CACbC,KAAM,cACNC,UAAAA;8BACEC,CAAc,SAAWC,IACvBA,EAAIC,sBAAuBC,IACXA,EAAGC,iBAAiB,4BAE5BC,QAASC,IAEb,MAAMC,EAASD,EAAKE,cAAc,MAAQF;AAEtCC,GAAUA,EAAOE,YAGnBF,EAAOE,UAAYF,EAAOE,UAAUC,QAAQ,cAAe,QAG9D,CAAEC,GAAI,2BAEb;ACpBG,MAACC,EAAgB,CACpB;"}