(function(){if('Discourse'in window&&Discourse.__container__){Discourse.__container__.lookup("service:theme-settings").registerSettings(3,{"blog_category":"announcements,sweepstakes","image_display_style":"responsive crop","mobile_enabled":false,"no_images":false});}})();define("blog-post-styling/components/blog-image",["exports","@ember/component","discourse-common/utils/decorators"],function(_exports,_component,_decorators){"use strict";Object.defineProperty(_exports,"__esModule",{value:true});_exports.default=void 0;var _dec,_obj;function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}
function _applyDecoratedDescriptor(target,property,decorators,descriptor,context){var desc={};Object.keys(descriptor).forEach(function(key){desc[key]=descriptor[key];});desc.enumerable=!!desc.enumerable;desc.configurable=!!desc.configurable;if('value'in desc||desc.initializer){desc.writable=true;}desc=decorators.slice().reverse().reduce(function(desc,decorator){return decorator(target,property,desc)||desc;},desc);if(context&&desc.initializer!==void 0){desc.value=desc.initializer?desc.initializer.call(context):void 0;desc.initializer=undefined;}if(desc.initializer===void 0){Object.defineProperty(target,property,desc);desc=null;}return desc;}
var __theme_name__="Blog Post Styling";var settings=Discourse.__container__.lookup("service:theme-settings").getObjectForTheme(3);var themePrefix=function themePrefix(key){return "theme_translations.3.".concat(key);};var _default=_component.default.extend((_dec=(0,_decorators.default)("topic.thumbnails"),(_obj=_defineProperty({imageURL:null},"imageURL",function imageURL(thumbnails){if(thumbnails){return thumbnails[0].url;}}),(_applyDecoratedDescriptor(_obj,"imageURL",[_dec],Object.getOwnPropertyDescriptor(_obj,"imageURL"),_obj)),_obj)));_exports.default=_default;});(function(){if('Ember'in window){Ember.TEMPLATES["discourse/connectors/topic-above-post-stream/blog-post-styling"]=Ember.HTMLBars.template({"id":null,"block":"{\"symbols\":[],\"statements\":[[1,[28,\"blog-image\",null,[[\"topic\"],[[24,[\"model\"]]]]],false]],\"hasEval\":false}","meta":{}});}})();define("discourse/connectors/topic-above-post-stream/blog-post-styling",["exports"],function(_exports){"use strict";Object.defineProperty(_exports,"__esModule",{value:true});_exports.default=void 0;var __theme_name__="Blog Post Styling";var settings=Discourse.__container__.lookup("service:theme-settings").getObjectForTheme(3);var themePrefix=function themePrefix(key){return "theme_translations.3.".concat(key);};var _default={shouldRender:function shouldRender(args,component){var currentCategory=args.model.category;if(!currentCategory||settings.no_images){return false;}
var allowedCategories=settings.blog_category.split(",");var parentCategorySlug=currentCategory.parentCategory?"".concat(currentCategory.parentCategory.slug,"-"):"";return allowedCategories.some(function(c){return c.trim()==="".concat(parentCategorySlug).concat(currentCategory.slug);});}};_exports.default=_default;});(function(){if('Ember'in window){Ember.TEMPLATES["components/blog-image"]=Ember.HTMLBars.template({"id":null,"block":"{\"symbols\":[],\"statements\":[[4,\"if\",[[24,[\"imageURL\"]]],null,{\"statements\":[[7,\"div\",true],[10,\"class\",\"blog-image-container\"],[8],[0,\"\\n  \"],[7,\"div\",true],[10,\"class\",\"blog-image\"],[11,\"style\",[29,[\"background-image: url('\",[22,\"imageURL\"],\"')\"]]],[8],[9],[0,\"\\n\"],[9],[0,\"\\n\"]],\"parameters\":[]},null]],\"hasEval\":false}","meta":{}});}})();