{"version":3,"sources":["discourse/initializers/theme-field-242-common-html-script-1.js"],"names":["window","define","_exports","_pluginApi","Object","defineProperty","value","default","require","getObjectForTheme","_default","name","after","initialize","withPluginApi","api","htmlSafe","findRawTemplate","modifyClass","pluginId","renderTopicListItem","template","this","set"],"mappings":"AAAI,WAAYA,QAChBC,OAAO,uEAAwE,CAAC,UAAW,6BAA6B,SAAUC,EAAUC,GAC1I;AAEAC,OAAOC,eAAeH,EAAU,aAAc,CAC5CI,OAAO,IAETJ,EAASK,aAAU;AACFC,QAAQ,sCAAsCC,kBAAkB;AAEjF,IAAIC,EAAW,CACbC,KAAM,uCACNC,MAAO,iBACPC,cACE,EAAIV,EAAWW,eAAe,OAAOC,IACnC,MAAMC,SACJA,GACER,QAAQ,oBACNS,gBACJA,GACET,QAAQ;AACZO,EAAIG,YAAY,4BAA6B,CAC3CC,SAAU,WACVC,sBACE,MAAMC,EAAWJ,EAAgB;AAC7BI,GACFC,KAAKC,IAAI,wBAAyBP,EAASK,EAASC,OAExD,GACA,GAEN;AAEFpB,EAASK,QAAUG,CACrB","sourceRoot":"theme-36/","sourcesContent":["if ('define' in window) {\ndefine(\"discourse/theme-36/initializers/theme-field-242-common-html-script-1\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(36);\n  const themePrefix = key => `theme_translations.36.${key}`;\n  var _default = {\n    name: \"theme-field-242-common-html-script-1\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        const {\n          htmlSafe\n        } = require(\"@ember/template\");\n        const {\n          findRawTemplate\n        } = require(\"discourse-common/lib/raw-templates\");\n        api.modifyClass('component:topic-list-item', {\n          pluginId: \"Fakebook\",\n          renderTopicListItem() {\n            const template = findRawTemplate(\"list/custom-topic-list-item\");\n            if (template) {\n              this.set(\"topicListItemContents\", htmlSafe(template(this)));\n            }\n          }\n        });\n      });\n    }\n  };\n  _exports.default = _default;\n});\n}\n"]}