diff --git a/src/Resources/app/administration/src/module/blog-module/elements/blog/config/sw-cms-el-config-blog.html.twig b/src/Resources/app/administration/src/module/blog-module/elements/blog/config/sw-cms-el-config-blog.html.twig index 599947d..333ca25 100644 --- a/src/Resources/app/administration/src/module/blog-module/elements/blog/config/sw-cms-el-config-blog.html.twig +++ b/src/Resources/app/administration/src/module/blog-module/elements/blog/config/sw-cms-el-config-blog.html.twig @@ -14,6 +14,19 @@ {% endblock %} + {% block sas_cms_element_blog_listing_config_offsetCount_field %} + + + {% endblock %} + {% block sas_cms_element_blog_listing_config_show_type %} ":"greater","|":"or","\xa2":"cent","\xa3":"pound","\xa4":"currency","\xa5":"yen","\xa9":"(c)","\xaa":"a","\xae":"(r)","\xba":"o","\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xc6":"AE","\xc7":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xde":"TH","\xdf":"ss","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xe6":"ae","\xe7":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xfe":"th","\xff":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}'),t=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"\xc4":"AE","\xe4":"ae","\xd6":"OE","\xf6":"oe","\xdc":"UE","\xfc":"ue","\xdf":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xa2":"centavos","\xa3":"libras","\xa4":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xa2":"centime","\xa3":"livre","\xa4":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xa2":"centavo","∑":"soma","\xa3":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"\xd8":"OE","\xf8":"oe","\xc5":"AA","\xe5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xf8rre end"},"nb":{"&":"og","\xc5":"AA","\xc6":"AE","\xd8":"OE","\xe5":"aa","\xe6":"ae","\xf8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xc5":"AA","\xc4":"AE","\xd6":"OE","\xe5":"aa","\xe4":"ae","\xf6":"oe"}}');function a(a,n){if("string"!=typeof a)throw Error("slugify: string argument expected");var s=t[(n="string"==typeof n?{replacement:n}:n||{}).locale]||{},l=void 0===n.replacement?"-":n.replacement,i=void 0===n.trim||n.trim,o=a.normalize().split("").reduce(function(t,a){var i=s[a];return void 0===i&&(i=e[a]),void 0===i&&(i=a),i===l&&(i=" "),t+i.replace(n.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return n.strict&&(o=o.replace(/[^A-Za-z0-9\s]/g,"")),i&&(o=o.trim()),o=o.replace(/\s+/g,l),n.lower&&(o=o.toLowerCase()),o}return a.extend=function(t){Object.assign(e,t)},a},e.exports=t(),e.exports.default=t()},467:function(){},514:function(){},3529:function(){},4242:function(){},9808:function(){},6517:function(){},4273:function(){},7952:function(){},4344:function(){},1775:function(){},4734:function(){},8527:function(){},7184:function(){},9567:function(){},1902:function(){},9422:function(){},4:function(){},9747:function(){},3211:function(){},6883:function(){},6304:function(){},5344:function(){},9572:function(){let{Component:e}=Shopware,{Criteria:t}=Shopware.Data;e.extend("sas-blog-category-tree-field","sw-category-tree-field",{computed:{globalCategoryRepository(){return this.repositoryFactory.create("sas_blog_category")}},methods:{searchCategories(e){let a=new t(1,500);return a.setTerm(e),this.globalCategoryRepository.search(a,Shopware.Context.api)}}})},4785:function(){let{Component:e}=Shopware;e.override("sw-cms-list",{computed:{sortPageTypes(){return[{value:"",name:this.$tc("sw-cms.sorting.labelSortByAllPages"),active:!0},{value:"page",name:this.$tc("sw-cms.detail.label.pageType.page")},{value:"landingpage",name:this.$tc("sw-cms.detail.label.pageType.landingpage")},{value:"product_list",name:this.$tc("sw-cms.detail.label.pageType.productList")},{value:"product_detail",name:this.$tc("sw-cms.detail.label.pageType.productDetail")},{value:"blog_detail",name:this.$tc("sw-cms.sorting.labelSortByBlogPages")}]}}})},245:function(){Shopware.Service("privileges").addPrivilegeMappingEntry({category:"permissions",parent:"content",key:"sas-blog-author",roles:{viewer:{privileges:["sas_blog_author:read","sas_blog_author_translation:read"],dependencies:[]},editor:{privileges:["sas_blog_author:update","sas_blog_author_translation:update"],dependencies:[]},creator:{privileges:["sas_blog_author:create","sas_blog_author_translation:create"],dependencies:[]},deleter:{privileges:["sas_blog_author:delete","sas_blog_author_translation:delete"],dependencies:[]}}})},7309:function(){let{Component:e}=Shopware;e.extend("sas-blog-author-create","sas-blog-author-detail",{methods:{createdComponent(){Shopware.State.commit("context/resetLanguageToDefault"),this.blogAuthor=this.blogAuthorRepository.create(Shopware.Context.api)}}})},9290:function(){Shopware.Service("privileges").addPrivilegeMappingEntry({category:"permissions",parent:"content",key:"sas-blog",roles:{viewer:{privileges:["sas_blog_entries:read","sas_blog_entries_translation:read","sas_blog_blog_category:read"],dependencies:[]},editor:{privileges:["sas_blog_entries:update","sas_blog_entries_translation:update","system_config:read"],dependencies:[]},creator:{privileges:["sas_blog_entries:create","sas_blog_entries_translation:create","sas_blog_blog_category:create","system_config:read"],dependencies:[]},deleter:{privileges:["sas_blog_entries:delete","sas_blog_entries_translation:delete"],dependencies:[]}}})},8758:function(){Shopware.Service("privileges").addPrivilegeMappingEntry({category:"permissions",parent:"content",key:"sas-blog-category",roles:{viewer:{privileges:["sas_blog_category:read","sas_blog_category_translation:read"],dependencies:[]},editor:{privileges:["sas_blog_category:update","sas_blog_category_translation:update"],dependencies:[]},creator:{privileges:["sas_blog_category:create","sas_blog_category_translation:create"],dependencies:[]},deleter:{privileges:["sas_blog_category:delete","sas_blog_category_translation:delete"],dependencies:[]}}})},5193:function(e,t,a){var n=a(467);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("720f62a0",n,!0,{})},9676:function(e,t,a){var n=a(514);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("6dc8c155",n,!0,{})},3302:function(e,t,a){var n=a(3529);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("2f82c1c1",n,!0,{})},3198:function(e,t,a){var n=a(4242);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("779349e8",n,!0,{})},6035:function(e,t,a){var n=a(9808);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("050e0d49",n,!0,{})},3985:function(e,t,a){var n=a(6517);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("3cad1af8",n,!0,{})},6708:function(e,t,a){var n=a(4273);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("aae5960e",n,!0,{})},9571:function(e,t,a){var n=a(7952);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("6cf904ec",n,!0,{})},4207:function(e,t,a){var n=a(4344);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("729b4682",n,!0,{})},7743:function(e,t,a){var n=a(1775);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("72ba8b95",n,!0,{})},394:function(e,t,a){var n=a(4734);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("3718d774",n,!0,{})},1255:function(e,t,a){var n=a(8527);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("4a681d6b",n,!0,{})},642:function(e,t,a){var n=a(7184);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("238ff151",n,!0,{})},5871:function(e,t,a){var n=a(9567);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("7fefd344",n,!0,{})},7439:function(e,t,a){var n=a(1902);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("26c8ad45",n,!0,{})},9550:function(e,t,a){var n=a(9422);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("599a29d8",n,!0,{})},7267:function(e,t,a){var n=a(4);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("5807ce33",n,!0,{})},7848:function(e,t,a){var n=a(9747);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("2f607fce",n,!0,{})},3468:function(e,t,a){var n=a(3211);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("0d3ef7c3",n,!0,{})},4718:function(e,t,a){var n=a(6883);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("52ef7417",n,!0,{})},7641:function(e,t,a){var n=a(6304);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("23a1c8ec",n,!0,{})},8970:function(e,t,a){var n=a(5344);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("5f15398c",n,!0,{})},5346:function(e,t,a){"use strict";function n(e,t){for(var a=[],n={},s=0;sa.parts.length&&(n.parts.length=a.parts.length)}else{for(var i=[],s=0;s\n \n',props:{positionIdentifier:{type:String,required:!0}},computed:{componentSections(){return t.get("extensionComponentSections").identifier[this.positionIdentifier]??[]}}});var n=Object.freeze({REQUIRED_FIELD_ERROR_CODE:"c1051bb4-d103-4f74-8988-acbcafc7fdc3",PAGE_TYPES:{BLOG_DETAIL:"blog_detail"}});Shopware.Component.override("sw-cms-sidebar",{template:'{% block sw_cms_sidebar_block_overview_category_options %}\n {% parent %}\n \n{% endblock %}\n\n{% block sw_cms_sidebar_page_settings_type_field_options %}\n{% parent %}\n \n {{ $tc(\'sw-cms.detail.label.pageTypeBlog\') }}\n \n{% endblock %}\n\n{% block sw_cms_sidebar_page_settings_type_field %}\n {% parent %}\n \n{% endblock %}\n',computed:{pageRepository(){return this.repositoryFactory.create("cms_page")},isBlogDetail(){return this.page.type===n.PAGE_TYPES.BLOG_DETAIL}}}),a(4785);var s=JSON.parse('{"blog.module.detail":{"sas_blog_entries":["title","slug","teaser","authorId","publishedAt","blogCategories"]}}');a(3468);let{Component:l}=Shopware,{mapPageErrors:i,mapPropertyErrors:o}=l.getComponentHelper();l.extend("sas-cms-sidebar","sw-cms-sidebar",{template:'{% block sw_cms_sidebar_page_settings %}\n \n {% block sas_blog_cms_sidebar_page_basic_information %}\n \n {% block sas_blog_cms_sidebar_page_basic_information_header %}\n \n {% endblock %}\n\n {% block sas_blog_cms_sidebar_page_basic_information_form %}\n \n {% endblock %}\n \n {% endblock %}\n\n {% block sas_blog_cms_sidebar_page_settings %}\n \n {% block sas_blog_cms_sidebar_page_settings_header %}\n \n {% endblock %}\n\n {% block sas_blog_cms_sidebar_page_settings_form %}\n \n {% endblock %}\n \n {% endblock %}\n\n {% block sas_blog_cms_sidebar_page_serp %}\n \n {% block sas_blog_cms_sidebar_page_serp_header %}\n \n {% endblock %}\n\n {% block sas_blog_cms_sidebar_page_serp_form %}\n \n {% endblock %}\n \n {% endblock %}\n \n{% endblock %}\n\n{% block sw_cms_sidebar_layout_assignment %}\n {% block sas_blog_cms_sidebar_extension_component %}\n \n \n \n {% endblock %}\n{% endblock %}\n',inject:["repositoryFactory","systemConfigApiService"],props:{blog:{type:Object,default:()=>({})}},data(){return{fileAccept:"image/*",maximumMetaTitleCharacter:160,maximumMetaDescriptionCharacter:160}},created(){this.createdComponent()},mounted(){this.openBlogDetailSideBar()},computed:{blogSalesChannelIds:{get(){return this.blog.customFields?.salesChannelIds||[]},set(e){let t=null;e&&e.length>0&&(t=e),this.blog.customFields={...this.blog.customFields,salesChannelIds:t}}},salesChannelRepository(){return this.repositoryFactory.create("sales_channel")},mediaRepository(){return this.repositoryFactory.create("media")},positionIdentifierExtension(){return"sas-cms-sidebar-extension"},mediaItem(){return this.blog&&this.blog.media},...i(s),...o("blog",["title","slug","teaser","authorId","publishedAt","blogCategories"])},methods:{createdComponent(){this.systemConfigApiService.getValues("SasBlogModule.config").then(e=>{this.maximumMetaTitleCharacter=e["SasBlogModule.config.maximumMetaTitleCharacter"],this.maximumMetaDescriptionCharacter=e["SasBlogModule.config.maximumMetaDescriptionCharacter"]})},onSetMediaItem({targetId:e}){return this.mediaRepository.get(e,Shopware.Context.api).then(t=>{this.blog.mediaId=e,this.blog.media=t})},setMedia([e]){this.blog.mediaId=e.id,this.blog.media=e},onRemoveMediaItem(){this.blog.mediaId=null,this.blog.media=null},onMediaDropped(e){this.onSetMediaItem({targetId:e.id})},openBlogDetailSideBar(){this.$nextTick(()=>{this.$refs.sidebarItem&&"function"==typeof this.$refs.sidebarItem.openContent&&this.$refs.sidebarItem.openContent()})}}}),a(9290),a(245),a(8758),a(8970);let{Component:r,Mixin:c}=Shopware,g=Shopware.Data.Criteria;r.register("sas-blog-list",{template:'{% block sas_blog_list %}\n \n \n \n {% block sas_blog_list_smart_bar_actions %}\n \n {% endblock %}\n\n \n\n \n\n \n \n{% endblock %}\n',inject:["repositoryFactory"],mixins:[c.getByName("salutation"),c.getByName("listing")],data(){return{categoryId:null,blogEntries:null,total:0,isLoading:!0,currentLanguageId:Shopware.Context.api.languageId}},metaInfo(){return{title:this.$createTitle()}},created(){this.getList()},computed:{blogEntriesRepository(){return this.repositoryFactory.create("sas_blog_entries")},blogCategoryRepository(){return this.repositoryFactory.create("sas_blog_category")},dateFilter(){return Shopware.Filter.getByName("date")},columns(){return[{property:"title",dataIndex:"title",label:this.$tc("sas-blog.list.table.title"),routerLink:"blog.module.detail",primary:!0,inlineEdit:"string"},{property:"author",label:this.$tc("sas-blog.list.table.author"),inlineEdit:!1},{property:"publishedAt",label:this.$tc("sas-blog.list.table.publishedAt"),inlineEdit:!1},{property:"active",label:this.$tc("sas-blog.list.table.active"),inlineEdit:"boolean"}]}},methods:{changeLanguage(e){this.currentLanguageId=e,this.getList()},changeCategoryId(e){e&&e!==this.categoryId&&(this.categoryId=e,this.getList())},getList(){this.isLoading=!0;let e=new g(this.page,this.limit);return e.addAssociation("blogAuthor"),e.addAssociation("blogCategories"),e.addSorting(g.sort("publishedAt","DESC",!1)),this.categoryId&&e.addFilter(g.equals("blogCategories.id",this.categoryId)),this.blogEntriesRepository.search(e,Shopware.Context.api).then(e=>{this.total=e.total,this.blogEntries=e,this.isLoading=!1})}}});let{Component:d}=Shopware;d.extend("sas-blog-create","sas-blog-detail",{template:"",methods:{async createdComponent(){Shopware.State.commit("adminMenu/collapseSidebar");let e=Shopware.State.getters["context/isSystemDefaultLanguage"];this.$store.commit("cmsPageState/setIsSystemDefaultLanguage",e),e||Shopware.State.commit("context/resetLanguageToDefault"),Shopware.Context.api.languageId!==Shopware.Context.api.systemLanguageId&&Shopware.State.commit("context/setApiLanguageId",Shopware.Context.api.languageId),this.resetCmsPageState(),this.createPage(),this.createBlog(this.page.id),this.isLoading=!1,this.setPageContext()},createBlog(e){this.blog=this.blogRepository.create(),this.blog.cmsPageId=e,this.blogId=this.blog.id}}});var m=a(8613),b=a.n(m);let{Component:p,Data:u,Utils:h,Classes:_,ExtensionAPI:w,State:v,Context:f}=Shopware,{Criteria:y}=u,{debounce:C}=h,{cloneDeep:k}=h.object,{ShopwareError:S}=_;p.extend("sas-blog-detail","sw-cms-detail",{template:'{% block sw_cms_detail_toolbar_page_name %}\n

\n {{ placeholder(blog, \'title\') }}\n

\n{% endblock %}\n\n{% block sw_cms_detail_toolbar_language_switch %}\n \n{% endblock %}\n\n{% block sw_cms_detail_toolbar_back_button %}\n \n \n \n{% endblock %}\n\n{% block sw_cms_detail_toolbar_page_type %}\n{% endblock %}\n\n{% block sw_cms_detail_toolbar_actions_save %}\n \n {{ $tc(\'sw-cms.detail.label.buttonSave\') }}\n \n{% endblock %}\n\n{% block sw_cms_detail_stage_empty_stade_content %}\n
\n

\n {{ $tc(\'sw-cms.detail.label.headlineEmptyState\') }}\n

\n

\n {{ $tc(\'sw-cms.detail.label.claimEmptyState\') }}\n

\n \n
\n{% endblock %}\n{% block sw_cms_detail_stage_add_first_section %}\n \n{% endblock %}\n{% block sw_cms_detail_stage_add_last_section %}\n \n{% endblock %}\n\n{% block sw_cms_detail_stage_content_section %}\n \n{% endblock %}\n\n{% block sw_cms_detail_sidebar %}\n \n{% endblock %}\n\n',data(){return{blogId:null,blog:null,originalSlug:null,isLoading:!1,localeLanguage:null,showSectionModal:!1,sectionDontRemind:!1}},computed:{identifier(){return this.placeholder(this.blog,"title")},blogRepository(){return this.repositoryFactory.create("sas_blog_entries")},localeRepository(){return this.repositoryFactory.create("locale")},loadBlogCriteria(){let e=new y(1,1),t=y.sort("position","ASC",!0);return e.addAssociation("blogCategories").getAssociation("cmsPage").getAssociation("sections").addSorting(t).addAssociation("backgroundMedia").getAssociation("blocks").addSorting(t).addAssociation("backgroundMedia").addAssociation("slots"),e},backPath(){return this.$route.query.ids&&this.$route.query.ids.length>0?{name:"blog.module.index",query:{ids:this.$route.query.ids,limit:this.$route.query.limit,page:this.$route.query.page}}:{name:"blog.module.index"}},isCreateMode(){return"blog.module.create"===this.$route.name}},watch:{"blog.title":function(e){this.onBlogTitleChanged(e)}},methods:{createdComponent(){this.publishExtensionData(),v.commit("adminMenu/collapseSidebar");let e=v.getters["context/isSystemDefaultLanguage"];if(this.$store.commit("cmsPageState/setIsSystemDefaultLanguage",e),this.resetCmsPageState(),this.$route.params.id){this.isLoading=!0,this.blogId=this.$route.params.id,Shopware.State.commit("shopwareApps/setSelectedIds",[this.pageId]);let e=new y(1,25);e.addFilter(y.equals("typeId","8A243080F92E4C719546314B577CF82B")),this.salesChannelRepository.search(e).then(e=>{this.salesChannels=e,this.salesChannels.length>0&&(this.currentSalesChannelKey=this.salesChannels[0].id,this.loadBlog(this.blogId))})}this.acl.can("system_config.read")&&this.getDefaultLayouts(),this.setPageContext()},publishExtensionData(){w.publishData({id:"sas-blog-detail__page",path:"page",scope:this}),w.publishData({id:"sas-blog-detail__blog",path:"blog",scope:this})},debouncedPageSave:C(function(){this.onSave()},300),loadBlog(e){return this.isLoading=!0,this.blogRepository.get(e,f.api,this.loadBlogCriteria).then(e=>((this.blog=e,this.originalSlug=e.slug,e.cmsPageId)?(this.page=e.cmsPage,this.pageId=e.cmsPageId,delete this.blog.cmsPage):(this.isLoading=!1,this.createPage(e.title),this.blog.cmsPageId=this.page.id,this.blogId=e.id),this.loadCMSDataResolver())).catch(e=>{this.isLoading=!1,this.createNotificationError({title:e.message,message:e.response})})},onPageSave(e=!1){if(this.onPageUpdate(),e){this.debouncedPageSave();return}this.onSaveBlog()},addAdditionalSection(e,t){this.onAddSection(e,t),this.onSaveBlog()},async onChangeLanguage(){return this.isLoading=!0,this.salesChannelRepository.search(new y).then(e=>{this.salesChannels=e;let t=v.getters["context/isSystemDefaultLanguage"];return this.$store.commit("cmsPageState/setIsSystemDefaultLanguage",t),this.loadBlog(this.blogId)})},saveOnLanguageChange(){return this.onSaveBlog()},loadCMSDataResolver(){return this.isLoading=!0,this.cmsDataResolverService.resolve(this.page).then(()=>{if(this.updateSectionAndBlockPositions(),v.commit("cmsPageState/setCurrentPage",this.page),this.updateDataMapping(),this.pageOrigin=k(this.page),this.selectedBlock){let e=this.selectedBlock.id,t=this.selectedBlock.sectionId;this.page.sections.forEach(a=>{a.id===t&&a.blocks.forEach(a=>{a.id===e&&this.setSelectedBlock(t,a)})})}this.isLoading=!1}).catch(e=>{this.isLoading=!1,this.createNotificationError({title:e.message,message:e.response}),warn(this._name,e.message,e.response)})},onSaveBlog(){return this.blogIsValid()&&this.pageIsValid()?this.onSavePageEntity().then(()=>this.onSaveBlogEntity()).then(()=>this.loadBlog(this.blogId)).catch(e=>(this.isLoading=!1,this.createNotificationError({message:e.message}),Promise.reject(e))):(this.createNotificationError({message:this.$tc("sas-blog.detail.notification.error.pageInvalid")}),Promise.reject())},onSaveBlogEntity(){return this.isLoading=!0,this.blogRepository.save(this.blog,f.api).catch(e=>(this.createNotificationError({message:e.message}),Promise.reject(e))).finally(()=>{this.isLoading=!1})},onSavePageEntity(){return this.isLoading=!0,this.deleteEntityAndRequiredConfigKey(this.page.sections),this.pageRepository.save(this.page,f.api,!1).then(()=>(this.isLoading=!1,this.isSaveSuccessful=!0,Promise.resolve())).catch(e=>(this.isLoading=!1,this.createNotificationError({message:e.message}),Promise.reject(e)))},blogIsValid(){return v.dispatch("error/resetApiErrors"),[this.missingTitleValidation(),this.missingPublishedAtValidation(),this.missingAuthorIdValidation(),this.missingCategoriesValidation()].every(e=>e)},missingTitleValidation(){return!this.isSystemDefaultLanguage||!!this.blog.title||(this.addBlogError({property:"title",message:this.$tc("sw-cms.detail.notification.messageMissingFields")}),!1)},missingPublishedAtValidation(){return!!this.blog.publishedAt||(this.addBlogError({property:"publishedAt",message:this.$tc("sw-cms.detail.notification.messageMissingFields")}),!1)},missingAuthorIdValidation(){return!!this.blog.authorId||(this.addBlogError({property:"authorId",message:this.$tc("sw-cms.detail.notification.messageMissingFields")}),!1)},missingCategoriesValidation(){return!!this.blog.blogCategories&&!!this.blog.blogCategories.length||(this.addBlogError({property:"blogCategories",message:this.$tc("sw-cms.detail.notification.messageMissingFields")}),!1)},pageSectionCountValidation(){return!0},onBlogTitleChanged:C(function(e){e&&(this.page.name=e,this.getLocaleLanguage(),this.generateSlug(e))},300),addBlogError({property:e=null,payload:t={},code:a=n.REQUIRED_FIELD_ERROR_CODE,message:s=""}={}){let l=`sas_blog_entries.${this.blog.id}.${e}`,i=new S({code:a,detail:s,meta:{parameters:t}});v.commit("error/addApiError",{expression:l,error:i})},getLocaleLanguage(){return this.localeRepository.get(f.api.language.localeId,f.api).then(e=>(this.localeLanguage=e.code.substr(0,e.code.length-3).toLowerCase(),Promise.resolve(this.localeLanguage)))},generateSlug(e){if(!e)return;let t=b()(e,{locale:this.localeLanguage,lower:!0});if(!this.localeLanguage){this.blog.slug=t;return}let a=new y;a.addFilter(y.equals("slug",t)),this.blogRepository.search(a,f.api).then(e=>{let a=e.length,n=this.originalSlug!==t;a&&n?this.blog.slug=t+"-1":this.blog.slug=t}).catch(()=>{this.blog.slug=t})},createPage(e){this.page=this.pageRepository.create(),this.page.name=e,this.page.type=n.PAGE_TYPES.BLOG_DETAIL,this.page.sections=[],this.pageId=this.page.id}}});var x=JSON.parse('{"sas-blog":{"general":{"mainMenuItemGeneral":"Blog","mainMenuItemList":"Blog","mainMenuItemAdd":"Blog Eintrag anlegen","descriptionTextModule":"Verwaltung von Blog Eintr\xe4ge.","placeholderSearchBar":"Durchsuche alle Eintr\xe4ge","tooltipLanguageSwitch":"Du musst zuerst einen Eintrag in der Systemsprache anlegen"},"list":{"textBlogOverview":"Blog Eintr\xe4ge","buttonAddBlogEntry":"Blog Eintrag erstellen","messageEmpty":"Keine Eintr\xe4ge vorhanden","table":{"title":"Titel","active":"Aktiv","author":"Autor","publishedAt":"Ver\xf6ffentlicht am"}},"detail":{"sidebar":{"heading":"Blog detail","basicInformation":"Grundlegende Information","settings":"Einstellungen"},"saveBlogEntry":"Eintrag speichern","buttonCancel":"Abbrechen","activeLabel":"Artikel aktiv","contentLabel":"Markdown Inhalt","slugLabel":"Slug","slugPlaceholder":"Undefiniert","titleLabel":"Titel","mediaLabel":"Teaser Image","teaserLabel":"Teaser","teaserImageLabel":"Teaser Bild","teaserPlaceholder":"Der Teaser Text, welcher im Blog Listing angezeigt wird ...","editorCardTitle":"Dein Artikel","editorLabel":"Blog Inhalt","editorPlaceholder":"Starte deinen Blog Beitrag ...","publishedAtLabel":"Ver\xf6ffentlichungsdatum","visibility":{"label":"Artikel aktiv"},"detailTeaser":{"label":"Zeige Teaser Image auf Detailseite"},"editor":{"headerPlaceholder":"\xdcberschrift","paragraphPlaceholder":"Fange an zu schreiben ...","warningTitle":"Titel der Warnung","warningMessage":"Deine Warnung ...","quotePlaceholder":"Verrate mir dein Zitat ...","quoteCaption":"... und den Autor"},"notification":{"save-success":{"title":"Erfolreich!","text":"Dein Blog Artikel wurde gespeichert."},"error":{"missingCategory":"Bitte w\xe4hle mind. eine Kategorie!","pageInvalid":"Einige Fehler sind aufgetreten. Bitte \xfcberpr\xfcfe die Liste im Editor."}},"author":{"label":"Autor","placeholder":"W\xe4hle einen Autor"},"category":{"label":"Kategorien","placeholder":"W\xe4hle eine Kategorie"},"salesChannels":{"labelSalesChannels":"Verkaufskanal","placeholderSalesChannels":"W\xe4hle Verkaufskan\xe4le aus ..."}},"elements":{"listing":{"config":{"paginationCount":"Pagination count","showFilter":{"label":"Zeige Filter","options":{"all":"Alle","select":"Filter ausw\xe4hlen","filter":{"category":"Zeige Kategorie Filter","author":"Zeige Autor Filter"}}},"showType":{"label":"Anzeigetyp","options":{"all":"Alle","select":"Kategorien ausw\xe4hlen"}},"blogCategories":{"label":"Kategorien","placeholder":"Kategorien ausw\xe4hlen"}},"component":{"elementHeadline":"Blog Listen Element","infoText":"Der Blog Listen Inhalt wird automatisch in der Storefront ausgespielt."}},"detail":{"config":{"showMeta":{"label":"Detail Ansicht Meta Informationen","showAuthor":"Zeige Autor","showCategory":"Zeige Kategorie"}},"component":{"elementHeadline":"Blog Detail Element","infoText":"Der Blog Inhalt wird automatisch in der Storefront ausgespielt. Derzeit gibt es keine Element Konfiguration."}},"single-select":{"label":"Blog Single Select","selectFieldLabel":"W\xe4hle einen Blog Eintrag","previewText":"Lorem Ipsum Dolor"},"newestListing":{"config":{"itemCount":"Anzahl der Artikel","showType":{"label":"Typ anzeigen","options":{"all":"Alle","select":"Kategorien ausw\xe4hlen"}},"blogCategories":{"label":"Kategorien","placeholder":"Kategorien ausw\xe4hlen"}},"component":{"elementHeadline":"Blog neuestes Listenelement","infoText":"Der Inhalt des Blogs mit den neuesten Eintr\xe4gen wird automatisch von diesem Element abgerufen."},"preview":{"label":"Blog Neueste Auflistung"}}},"blocks":{"blog":{"listing":{"previewTitle":"Blog Liste","label":"Blog Listen Ansicht"},"detail":{"previewTitle":"Blog Detail","label":"Blog Detail"},"singleEntry":{"previewTitle":"Einzelner Blogeintrag","label":"Einzelner Blogeintrag"},"newestListing":{"previewTitle":"Blog Neueste Auflistung","label":"Blog Neueste Auflistung"}}}},"sas-blog-category":{"general":{"treeHeadline":"Blog Kategorien","mainMenuItemIndex":"Kategorien","mainMenuItemList":"Overview","descriptionTextModule":"Verwalte hier deine Kategorien.","headlineCategories":"Kategorien","placeholderSearchBar":"Suche in Kategorien...","buttonCreate":"Kategorie erstellen","buttonSafeCategory":"Speichern","descriptionLabel":"Beschreibung","messageSaveSuccess":"Kategorie \\"{name}\\" wurde gespeichert.","useAsLogo":"Use as display image","treeHeadSelected":"{count} ausgew\xe4hlt","emptyStateHeadline":"Keine Kategorie ausgew\xe4hlt","actions":{"actionsDisabledInLanguage":"Kategorien k\xf6nnen nur in der Default Sprache erstellt werden.","createSub":"Neue Unterkategorie","createBefore":"Neue Kategorie davor","createAfter":"Neue Kategorie danach"}},"modal":{"textDeleteConfirm":"M\xf6chtest Du die Blog Kategorie \\"{name}\\" wirklich l\xf6schen?","textDeleteChildrenConfirm":"Alle unterliegenden Blog Kategorien werden auch gel\xf6scht.","textDeleteMultipleConfirm":"M\xf6chtest Du diese {count} Blog Kategorien wirklich l\xf6schen?"}},"sas-blog-author":{"general":{"mainMenuItemList":"Autor"},"list":{"textBlogOverview":"Autoren","buttonAdd":"Autor erstellen","messageEmpty":"Keine Autoren ...","table":{"fullName":"Voller Name","displayName":"Anzeigename","email":"Email","salutation":"Anrede"}},"detail":{"title":"Autor","messageSaveSuccess":"Autor \\"{name}\\" wurde gespeichert.","buttonSave":"Speichern","buttonCancel":"Abbrechen","buttonEdit":"Editieren","firstName":{"label":"Vorname","placeholder":"Gebe den Vornamen des Autors ein"},"lastName":{"label":"Nachname","placeholder":"Gebe den Nachnamen des Autors ein"},"displayName":{"label":"Anzeigename","placeholder":"Gebe den Anzeigenamen des Autors ein"},"email":{"label":"Email","placeholder":"Gebe die Email Adresse des Autors ein"},"description":{"label":"Beschreibung","placeholder":"Gebe eine kurze Beschreibung des Autors ein"},"salutation":{"label":"Anrede","placeholder":"Anrede"},"media":{"label":"Avatar des Autors"}}},"sas-blog-tree-item":{"actions":{"edit":"Editieren"}},"sw-privileges":{"permissions":{"sas-blog":{"label":"Blog"},"sas-blog-author":{"label":"Blog Autor"},"sas-blog-category":{"label":"Blog Kategorien"}}}}'),E=JSON.parse('{"sas-blog":{"general":{"mainMenuItemGeneral":"Blog","mainMenuItemList":"Blog","mainMenuItemAdd":"New blog entry","descriptionTextModule":"Verwaltung von Blog Eintr\xe4ge.","placeholderSearchBar":"Search all blog entries","tooltipLanguageSwitch":"Create an entry first in the system language"},"list":{"textBlogOverview":"Blog entries","buttonAddBlogEntry":"Create blog entry","messageEmpty":"No blog entries ...","table":{"title":"Title","active":"Active","author":"Author","publishedAt":"Published at"}},"detail":{"serp":{"title":"SERP preview","metaDescription":"Meta Description","metaTitle":"Meta Title"},"sidebar":{"heading":"Blog detail","basicInformation":"Basic information","settings":"Settings"},"saveBlogEntry":"Save entry","buttonCancel":"Cancel","activeLabel":"Entry active","contentLabel":"Markdown content","slugLabel":"Slug","slugPlaceholder":"Undefined","titleLabel":"Title","mediaLabel":"Teaser Image","titlePlaceholder":"Enter your blog title","teaserLabel":"Teaser","teaserImageLabel":"Teaser Image","teaserPlaceholder":"The teaser text which will be shown as an introduction within the blog listing ...","editorCardTitle":"Your article","editorLabel":"Blog Content","editorPlaceholder":"Start your blog post ...","publishedAtLabel":"Published at","visibility":{"label":"Article active"},"detailTeaser":{"label":"Show teaser image on detail page"},"editor":{"headerPlaceholder":"Type in your heading text","paragraphPlaceholder":"Start typing ...","warningTitle":"Warning title","warningMessage":"Write your warning message ...","quotePlaceholder":"Tell me about your quote ...","quoteCaption":"... the caption"},"notification":{"save-success":{"title":"Success!","text":"Your blog entry has been saved."},"error":{"missingCategory":"Please choose at least one blog category!","pageInvalid":"Errors occured. Please check the error list in the editor."}},"author":{"label":"Author","placeholder":"Select a blog\'s author"},"category":{"label":"Categories","placeholder":"Select blog\'s categories"},"salesChannels":{"labelSalesChannels":"Sales Channel","placeholderSalesChannels":"Add Sales Channels..."},"warning":{"maxTextCountReached":"There\'re {charLeft} character(s) left"}},"elements":{"listing":{"config":{"paginationCount":"Pagination count","showFilter":{"label":"Listing filter","options":{"all":"All","select":"Select filter","filter":{"category":"Show Category filter","author":"Show Author filter"}}},"showType":{"label":"Show type","options":{"all":"All","select":"Select categories"}},"blogCategories":{"label":"Categories","placeholder":"Select categories"}},"component":{"elementHeadline":"Blog listing element","infoText":"The blog listing content will be automatically fetched by the element."}},"detail":{"config":{"showMeta":{"label":"Detail view meta information","showAuthor":"Show author","showCategory":"Show category"}},"component":{"elementHeadline":"Blog detail element","infoText":"The blog detail content will be automatically fetched by the element. There\'s currently no configuration available."}},"single-select":{"label":"Blog Single Select","selectFieldLabel":"Select a blog entry","previewText":"Lorem Ipsum Dolor"},"newestListing":{"config":{"itemCount":"Item count","showType":{"label":"Show type","options":{"all":"All","select":"Select categories"}},"blogCategories":{"label":"Categories","placeholder":"Select categories"}},"component":{"elementHeadline":"Blog newest listing element","infoText":"The blog newest listing content will be automatically fetched by the element."},"preview":{"label":"Blog Newest Listing"}}},"blocks":{"blog":{"listing":{"previewTitle":"Blog Listing","label":"Blog Listing"},"detail":{"previewTitle":"Blog Detail View","label":"Blog Detail"},"singleEntry":{"previewTitle":"Single Blog Entry","label":"Single Blog Entry"},"newestListing":{"previewTitle":"Blog Newest Listing","label":"Blog Newest Listing"}}}},"sw-seo-url-template-card":{"routeNames":{"sas-frontend-blog-detail":"Blog Detail Page"}},"sas-blog-category":{"general":{"treeHeadline":"Blog categories","mainMenuItemIndex":"Categories","mainMenuItemList":"Overview","descriptionTextModule":"Manage categories here.","headlineCategories":"Categories","placeholderSearchBar":"Search categories...","buttonCreate":"Create category","buttonSafeCategory":"Save","descriptionLabel":"Description","messageSaveSuccess":"Category \\"{name}\\" has been saved.","useAsLogo":"Use as display image","treeHeadSelected":"{count} selected","emptyStateHeadline":"No category selected","actions":{"actionsDisabledInLanguage":"Categories can only be created in the default language.","createSub":"New subcategory","createBefore":"New category before","createAfter":"New category after"}},"modal":{"textDeleteConfirm":"Are you sure you really want to delete the blog category \\"{name}\\"?","textDeleteChildrenConfirm":"All blog subcategories will be deleted too.","textDeleteMultipleConfirm":"Are you sure you want to delete the {count} selected blogs?"}},"sas-blog-author":{"general":{"mainMenuItemList":"Author"},"list":{"textBlogOverview":"Blog authors","buttonAdd":"Add new blog author","messageEmpty":"No blog authors ...","table":{"fullName":"Full name","displayName":"Display name","email":"Email","salutation":"Salutation"}},"detail":{"title":"Blog author","messageSaveSuccess":"Author \\"{name}\\" has been saved.","buttonSave":"Save","buttonCancel":"Cancel","buttonEdit":"Edit","firstName":{"label":"First Name","placeholder":"Enter author\'s first name"},"lastName":{"label":"Last Name","placeholder":"Enter author\'s last name"},"displayName":{"label":"Display Name","placeholder":"Enter author\'s display name"},"email":{"label":"Email","placeholder":"Enter author\'s email"},"description":{"label":"Description","placeholder":"Enter author\'s short description"},"salutation":{"label":"Salutation","placeholder":"Salutation"},"media":{"label":"Author\'s avatar"}}},"sas-blog-tree-item":{"actions":{"edit":"Edit"}},"sw-privileges":{"permissions":{"sas-blog":{"label":"Blog"},"sas-blog-author":{"label":"Author Blog"},"sas-blog-category":{"label":"Category Blog"}}}}');a(3302),Shopware.Component.register("sw-cms-block-blog-listing",{template:'{% block sas_cms_block_listing %}\n
\n \n
\n{% endblock %}\n'}),a(3198),Shopware.Component.register("sas-cms-preview-blog-listing",{template:'{% block sas_cms_preview_blog_listing %}\n
\n
\n

{{ $tc(\'sas-blog.blocks.blog.listing.previewTitle\') }}

\n
\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n{% endblock %}\n',computed:{today(){return new Date().toLocaleDateString()}}}),Shopware.Service("cmsService").registerCmsBlock({name:"blog-listing",label:"sas-blog.blocks.blog.listing.label",category:"sas-blog",component:"sas-cms-block-blog",previewComponent:"sas-cms-preview-blog-listing",defaultConfig:{marginBottom:"0px",marginTop:"0px",marginLeft:"0px",marginRight:"0px",sizingMode:"boxed"},slots:{listing:"blog"}}),a(5193),Shopware.Component.register("sw-cms-block-blog-detail",{template:'{% block sas_cms_block_detail %}\n
\n \n
\n{% endblock %}\n'}),a(9676),Shopware.Component.register("sas-cms-preview-blog-detail",{template:'{% block sas_cms_preview_blog_detail %}\n
\n
\n

{{ $tc(\'sas-blog.blocks.blog.detail.previewTitle\') }}

\n
\n \n

Lorem ipsum dolor sit amet, consetetur sadipscing elitr,\n sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,\n sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.

\n
\n
\n
\n{% endblock %}\n',computed:{today(){return new Date().toLocaleDateString()}}}),Shopware.Service("cmsService").registerCmsBlock({name:"blog-detail",label:"sas-blog.blocks.blog.detail.label",category:"sas-blog",component:"sas-cms-block-blog-detail",previewComponent:"sas-cms-preview-blog-detail",defaultConfig:{marginBottom:"0px",marginTop:"0px",marginLeft:"0px",marginRight:"0px",sizingMode:"boxed"},slots:{blogDetail:"blog-detail"}}),a(3985),Shopware.Component.register("sw-cms-block-blog-single-entry",{template:'{% block sas_cms_block_blog_single_entry %}\n
\n \n
\n{% endblock %}\n'}),a(6708),Shopware.Component.register("sas-cms-preview-blog-single-entry",{template:'{% block sas_cms_preview_blog_single_entry %}\n
\n
\n

{{ $tc(\'sas-blog.blocks.blog.singleEntry.previewTitle\') }}

\n
\n \n
\n
\n
\n
\n
\n{% endblock %}\n',computed:{today(){return new Date().toLocaleDateString()}}}),Shopware.Service("cmsService").registerCmsBlock({name:"blog-single-entry",label:"sas-blog.blocks.blog.singleEntry.label",category:"sas-blog",component:"sas-cms-block-blog-single-entry",previewComponent:"sas-cms-preview-blog-single-entry",defaultConfig:{marginBottom:"0px",marginTop:"0px",marginLeft:"0px",marginRight:"0px",sizingMode:"boxed"},slots:{singleEntry:{type:"blog-single-select",default:{config:{blogEntry:{source:"static",value:null}}}}}});let{Component:A}=Shopware;A.register("sw-cms-block-blog-newest-listing",{template:'{% block sas_cms_block_newest_listing %}\n
\n \n
\n{% endblock %}\n'}),a(6035);let{Component:I}=Shopware;I.register("sas-cms-preview-newest-listing",{template:'{% block sas_cms_preview_newest_listing %}\n
\n
\n

{{ $tc(\'sas-blog.blocks.blog.newestListing.previewTitle\') }}

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n{% endblock %}\n'}),Shopware.Service("cmsService").registerCmsBlock({name:"blog-newest-listing",label:"sas-blog.blocks.blog.newestListing.label",category:"sas-blog",component:"sas-cms-block-newest-listing",previewComponent:"sas-cms-preview-newest-listing",defaultConfig:{marginBottom:"0px",marginTop:"0px",marginLeft:"0px",marginRight:"0px",sizingMode:"boxed"},slots:{listing:"blog-newest-listing"}}),a(9571);let{Mixin:L}=Shopware;Shopware.Component.register("sas-blog-el-blog-detail",{template:"{% block sas_cms_element_blog_detail %}\n
\n

{{ $tc('sas-blog.elements.detail.component.elementHeadline') }}

\n \n {{ $tc('sas-blog.elements.detail.component.infoText') }}\n \n
\n{% endblock %}\n",mixins:[L.getByName("cms-element")],created(){this.createdComponent()},methods:{createdComponent(){this.initElementConfig("blog-detail")}}}),a(4207);let{Component:B,Mixin:T}=Shopware;B.register("sw-cms-el-config-blog-detail",{template:'{% block sas_cms_element_blog_detail_config %}\n
\n\n {% block sas_cms_element_blog_detail_config_show_meta %}\n \n\n \n \n\n \n \n \n {% endblock %}\n\n
\n{% endblock %}\n',inject:["repositoryFactory"],mixins:[T.getByName("cms-element")],created(){this.createdComponent()},methods:{createdComponent(){this.initElementConfig("blog")}}}),a(7743),Shopware.Component.register("sas-blog-el-blog-detail-preview",{template:'{% block sas_blog_element_previews %}\n
\n

Lorem ipsum dolor

\n

\n Lorem ipsum dolor sit amet, consetetur sadipscing elitr,\n sed diam nonumy eirmod tempor invidunt ut labore et dolore magna.\n

\n
\n{% endblock %}\n'}),Shopware.Service("cmsService").registerCmsElement({name:"blog-detail",label:"Blog Detail",component:"sas-blog-el-blog-detail",configComponent:"sw-cms-el-config-blog-detail",previewComponent:"sas-blog-el-blog-detail-preview",defaultConfig:{showCategory:{source:"static",value:!0},showAuthor:{source:"static",value:!0}}}),a(9550);let{Mixin:$}=Shopware;Shopware.Component.register("sw-cms-el-blog",{template:"{% block sas_cms_element_blog_listing %}\n
\n

{{ $tc('sas-blog.elements.listing.component.elementHeadline') }}

\n \n {{ $tc('sas-blog.elements.listing.component.infoText') }}\n \n
\n{% endblock %}\n",mixins:[$.getByName("cms-element")],created(){this.createdComponent()},methods:{createdComponent(){this.initElementConfig("blog")}}}),a(7267);let{Component:M,Mixin:D}=Shopware,{EntityCollection:N,Criteria:P}=Shopware.Data;M.register("sw-cms-el-config-blog",{template:'{% block sas_cms_element_blog_listing_config %}\n
\n\n {% block sas_cms_element_blog_listing_config_paginationCount_field %}\n \n \n {% endblock %}\n\n {% block sas_cms_element_blog_listing_config_show_type %}\n \n {% block sas_cms_element_download_card_config_layout_select_options %}\n \n \n {% endblock %}\n \n {% endblock %}\n\n\n {% block sas_cms_element_blog_listing_config_select_categories %}\n \n \n {% endblock %}\n\n {% block sas_cms_element_blog_listing_config_show_filter_select %}\n \n\n \n \n\n \n \n \n {% endblock %}\n\n
\n{% endblock %}\n',inject:["repositoryFactory"],mixins:[D.getByName("cms-element")],data(){return{categories:[],selectedCategories:null}},computed:{blogCategoryRepository(){return this.repositoryFactory.create("sas_blog_category")},blogListingSelectContext(){let e=Object.assign({},Shopware.Context.api);return e.inheritance=!0,e},blogCategoriesConfigValue(){return this.element.config.blogCategories.value}},watch:{selectedCategories:{handler(e){this.element.config.blogCategories.value=e.getIds(),this.$set(this.element.data,"blogCategories",e),this.$emit("element-update",this.element)}}},created(){this.createdComponent()},methods:{async createdComponent(){this.initElementConfig("blog"),await this.getSelectedCategories()},getSelectedCategories(){if(Shopware.Utils.types.isEmpty(this.blogCategoriesConfigValue))this.selectedCategories=new N(this.blogCategoryRepository.route,this.blogCategoryRepository.schema.entity,Shopware.Context.api,new P);else{let e=new P;e.setIds(this.blogCategoriesConfigValue),this.blogCategoryRepository.search(e,Shopware.Context.api).then(e=>{this.selectedCategories=e})}}}}),a(7848),Shopware.Component.register("sw-cms-el-preview-blog",{template:'{% block sw_cms_element_blog_preview %}\n
\n

Blog Listing Element

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n{% endblock %}\n'}),Shopware.Service("cmsService").registerCmsElement({name:"blog",label:"Blog",component:"sw-cms-el-blog",configComponent:"sw-cms-el-config-blog",previewComponent:"sw-cms-el-preview-blog",defaultConfig:{paginationCount:{source:"static",value:5},showType:{source:"static",value:"all"},showCategoryFilter:{source:"static",value:!0},showAuthorFilter:{source:"static",value:!0},blogCategories:{source:"static",value:null,entity:{name:"sas_blog_categories"}}}}),a(5871);let{Mixin:R,Context:F}=Shopware,{Criteria:O}=Shopware.Data;Shopware.Component.register("sw-cms-el-blog-single-select",{template:'{% block sas_cms_element_blog_single_select %}\n
\n
{{ categoryName }}
\n

{{ title }}

\n \n

{{ teaser }}

\n
\n{% endblock %}\n',inject:["repositoryFactory"],mixins:[R.getByName("cms-element")],created(){this.createdComponent()},data(){return{article:null,title:"Placeholder Article Title",teaser:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque faucibus maximus velit, dictum mollis erat finibus quis. Ut dictum ornare dolor, sed mattis tellus gravida vel.",mediaUrl:null,categoryName:"Placeholder Category"}},computed:{articleImage(){return this.mediaUrl?this.mediaUrl:`${Shopware.Context.api.assetsPath}/administration/static/img/cms/preview_mountain_small.jpg`},repository(){return this.repositoryFactory.create("sas_blog_entries")},selectedBlogEntry(){return this.element.config.blogEntry.value}},methods:{createdComponent(){this.initElementConfig("blog-single-select"),this.initElementData("blog-single-select"),this.element.config.blogEntry.value&&this.getEntityProperties()},getEntityProperties(){if(this.element.config.blogEntry.value){let e=new O;e.addAssociation("blogCategories"),this.repository.get(this.element.config.blogEntry.value,F.api,e).then(e=>{this.article=e,this.title=this.article.translated.title,this.teaser=this.article.translated.teaser,this.mediaUrl=this.article.media.url,this.categoryName=this.article.blogCategories[0]?this.article.blogCategories[0].translated.name:null})}else this.article=null,this.title="Placeholder Article Title",this.teaser="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque faucibus maximus velit, dictum mollis erat finibus quis. Ut dictum ornare dolor, sed mattis tellus gravida vel.",this.mediaUrl=null,this.categoryName="Placeholder Category"}},watch:{selectedBlogEntry:function(){this.getEntityProperties()}}});let{Component:U,Mixin:z}=Shopware;U.register("sw-cms-el-config-blog-single-select",{template:'{% block sas_cms_element_blog_single_select_config %}\n
\n \n\n \n\n \n \n
\n{% endblock %}\n',inject:["repositoryFactory"],mixins:[z.getByName("cms-element")],data(){return{blogEntry:null,selectedEntry:null}},computed:{blogEntryRepository(){return this.repositoryFactory.create("sas_blog_entries")}},created(){this.createdComponent()},methods:{createdComponent(){this.initElementConfig("blog-single-select")}}}),a(7439),Shopware.Component.register("sw-cms-el-preview-blog-single-select",{template:'{% block sw_cms_element_blog_single_select_preview %}\n
\n
{{ $tc(\'sas-blog.elements.single-select.previewText\') }}
\n \n
\n
\n
\n
\n
\n{% endblock %}\n'}),Shopware.Service("cmsService").registerCmsElement({name:"blog-single-select",label:"sas-blog.elements.single-select.label",component:"sw-cms-el-blog-single-select",configComponent:"sw-cms-el-config-blog-single-select",previewComponent:"sw-cms-el-preview-blog-single-select",defaultConfig:{blogEntry:{source:"static",value:null,entity:{name:"sas_blog_entries"}}}}),a(394);let{Component:Z,Mixin:K}=Shopware;Z.register("sas-cms-el-newest-listing",{template:"{% block sas_cms_el_newest_listing %}\n
\n

{{ $tc('sas-blog.elements.newestListing.component.elementHeadline') }}

\n \n {{ $tc('sas-blog.elements.newestListing.component.infoText') }}\n \n
\n{% endblock %}\n",mixins:[K.getByName("cms-element")],created(){this.createdComponent()},methods:{createdComponent(){this.initElementConfig("blog-newest-listing"),this.initElementData("blog-newest-listing")}}}),a(1255);let{Component:q,Mixin:j}=Shopware,{EntityCollection:V,Criteria:H}=Shopware.Data;q.register("sas-cms-el-config-newest-listing",{template:'{% block sas_cms_element_newest_listing_config %}\n
\n\n {% block sas_cms_element_newest_listing_config_itemCount_field %}\n \n {% endblock %}\n\n {% block sas_cms_element_blog_listing_config_show_type %}\n \n {% block sas_cms_element_download_card_config_layout_select_options %}\n \n \n {% endblock %}\n \n {% endblock %}\n\n {% block sas_cms_element_blog_listing_config_select_categories %}\n \n {% endblock %}\n\n
\n{% endblock %}\n',inject:["repositoryFactory"],mixins:[j.getByName("cms-element")],data(){return{categories:[],selectedCategories:null}},computed:{blogCategoryRepository(){return this.repositoryFactory.create("sas_blog_category")},blogListingSelectContext(){let e=Object.assign({},Shopware.Context.api);return e.inheritance=!0,e},blogCategoriesConfigValue(){return this.element.config.blogCategories.value}},watch:{selectedCategories:{handler(e){this.element.config.blogCategories.value=e.getIds(),this.$set(this.element.data,"blogCategories",e),this.$emit("element-update",this.element)}}},created(){this.createdComponent()},methods:{async createdComponent(){this.initElementConfig("blog-newest-listing"),await this.getSelectedCategories()},getSelectedCategories(){if(Shopware.Utils.types.isEmpty(this.blogCategoriesConfigValue))this.selectedCategories=new V(this.blogCategoryRepository.route,this.blogCategoryRepository.schema.entity,Shopware.Context.api,new H);else{let e=new H;e.setIds(this.blogCategoriesConfigValue),this.blogCategoryRepository.search(e,Shopware.Context.api).then(e=>{this.selectedCategories=e})}}}}),a(642);let{Component:G}=Shopware;G.register("sas-cms-el-preview-newest-listing",{template:'{% block sas_cms_element_newest_listing_preview %}\n
\n

Newest Listing Element

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n{% endblock %}\n'}),Shopware.Service("cmsService").registerCmsElement({name:"blog-newest-listing",label:"sas-blog.elements.newestListing.preview.label",component:"sas-cms-el-newest-listing",configComponent:"sas-cms-el-config-newest-listing",previewComponent:"sas-cms-el-preview-newest-listing",defaultConfig:{itemCount:{source:"static",value:5},showType:{source:"static",value:"all"},blogCategories:{source:"static",value:null,entity:{name:"sas_blog_categories"}}}});let{Component:Y}=Shopware;Y.extend("sas-blog-tree-item","sw-tree-item",{template:'{% block sw_tree_item_children_items %}\n \n {% block sw_tree_item_children_items_slots %}\n {% parent %}\n {% endblock %}\n \n{% endblock %}\n\n{% block sw_tree_items_actions_edit %}\n\n {{ $tc(\'sas-blog-tree-item.actions.edit\') }}\n\n{% endblock %}\n',computed:{parentScope(){let e=this.$parent;for(;"sw-tree"!==e.$options.name;)e=e.$parent;return e}},data(){return{editingCategory:null}},methods:{onEditCategory(e){this.editingCategory=e,this.currentEditElement=e.id,this.editElementName()},onBlurTreeItemInput(e){this.abortCreateElement(e)},onCancelSubmit(e){this.abortCreateElement(e)},abortCreateElement(e){this.currentEditElement=null,this.editingCategory=null,this.$super("abortCreateElement",e)}}});let{Component:J}=Shopware;J.extend("sas-blog-category-tree","sw-category-tree",{template:'{% block sw_category_tree %}\n
\n \n {% block sw_category_tree_items %}\n \n \n \n {% endblock %}\n \n\n
\n \n \n \n \n \n \n \n
\n
\n{% endblock %}\n',data(){return{blogCategory:null,translationContext:"sas-blog-category"}},methods:{changeCategory(e){this.$emit("change-category-id",e.id)}},computed:{category(){return this.blogCategory},categoryRepository(){return this.repositoryFactory.create("sas_blog_category")},disableContextMenu(){return!this.allowEdit||this.currentLanguageId!==Shopware.Context.api.systemLanguageId},syncProducts(){}}}),a(9572),a(7641);let{Component:W,Mixin:Q}=Shopware,X=Shopware.Data.Criteria;W.register("sas-blog-author-list",{template:'{% block sas_blog_author_list %}\n\n \n \n {% block sas_blog_author_list_smart_bar_actions %}\n \n {% endblock %}\n\n \n\n \n\n\n{% endblock %}\n',inject:["repositoryFactory"],mixins:[Q.getByName("notification"),Q.getByName("salutation"),Q.getByName("listing")],data(){return{blogAuthors:null,total:0,isLoading:!0,currentLanguageId:Shopware.Context.api.languageId}},metaInfo(){return{title:this.$createTitle()}},created(){this.getList()},computed:{blogAuthorRepository(){return this.repositoryFactory.create("sas_blog_author")},columns(){return[{property:"salutation.displayName",label:"sas-blog-author.list.table.salutation",width:"100px",allowResize:!0},{property:"fullName",dataIndex:"firstName,lastName",inlineEdit:"string",label:"sas-blog-author.list.table.fullName",routerLink:"sw.blog.author.detail",allowResize:!0,primary:!0},{property:"displayName",label:"sas-blog-author.list.table.displayName",allowResize:!0,inlineEdit:"string"},{property:"email",label:"sas-blog-author.list.table.email",align:"right",inlineEdit:"string",allowResize:!0}]}},methods:{changeLanguage(e){this.currentLanguageId=e,this.getList()},getList(){this.isLoading=!0;let e=new X(this.page,this.limit);return e.addAssociation("media"),e.addAssociation("salutation"),this.blogAuthorRepository.search(e,Shopware.Context.api).then(e=>{this.total=e.total,this.blogAuthors=e,this.isLoading=!1})}}}),a(4718);let{Component:ee,Mixin:et}=Shopware,{Criteria:ea}=Shopware.Data,{mapPropertyErrors:en}=Shopware.Component.getComponentHelper();ee.register("sas-blog-author-detail",{template:'{% block sas_blog_author_detail %}\n\n \n\n \n\n \n\n\n{% endblock %}\n',inject:["repositoryFactory"],mixins:[et.getByName("notification"),et.getByName("salutation")],shortcuts:{"SYSTEMKEY+S":"onSave",ESCAPE:"onCancel"},data(){return{isLoading:!1,isSaveSuccessful:!1,blogAuthor:null,blogAuthorCustomFieldSets:null,processSuccess:!1,availableTags:null,fileAccept:"image/*"}},metaInfo(){return{title:this.$createTitle(this.identifier)}},computed:{identifier(){return null!==this.blogAuthor?this.salutation(this.blogAuthor):""},blogAuthorRepository(){return this.repositoryFactory.create("sas_blog_author")},mediaRepository(){return this.repositoryFactory.create("media")},defaultCriteria(){let e=new ea;return e.addAssociation("media").addAssociation("salutation"),e},customFieldSetRepository(){return this.repositoryFactory.create("custom_field_set")},customFieldSetCriteria(){let e=new ea;return e.addFilter(ea.equals("relations.entityName","sas_blog_author")),e.getAssociation("customFields").addSorting(ea.sort("config.customFieldPosition")),e},...en("blogAuthor",["firstName","lastName","displayName","email","salutationId","description"])},created(){this.createdComponent()},methods:{createdComponent(){this.isLoading=!0,this.blogAuthorRepository.get(this.$route.params.id,Shopware.Context.api,this.defaultCriteria).then(e=>{this.blogAuthor=e,this.isLoading=!1})},saveFinish(){this.isSaveSuccessful=!1},async onSave(){return this.isLoading=!0,this.isSaveSuccessful=!1,this.blogAuthorRepository.save(this.blogAuthor,Shopware.Context.api).then(()=>{this.isLoading=!1,this.isSaveSuccessful=!0,this.createNotificationSuccess({message:this.$tc("sas-blog-author.detail.messageSaveSuccess",0,{name:`${this.blogAuthor.firstName} ${this.blogAuthor.lastName}`})}),this.$router.push({name:"blog.module.author.detail",params:{id:this.blogAuthor.id}})}).catch(e=>{throw this.createNotificationError({message:this.$tc("global.notification.unspecifiedSaveErrorMessage")}),this.isLoading=!1,e})},onCancel(){this.$router.push({name:"sas.blog.author.index"})},onSetMediaItem({targetId:e}){this.mediaRepository.get(e,Shopware.Context.api).then(t=>{this.blogAuthor.mediaId=e,this.blogAuthor.media=t})},onRemoveMediaItem(){this.blogAuthor.mediaId=null,this.blogAuthor.media=null},onMediaDropped(e){this.onSetMediaItem({targetId:e.id})}}}),a(7309);let{Component:es}=Shopware;es.register("sas-blog-vertical-tabs",{template:'\n \n\n',props:{defaultItem:{type:String,default:"blog"}},methods:{onChangeTab(e){this.currentTab=e}}});let{Module:el}=Shopware;el.register("blog-module",{type:"plugin",name:"Blog",title:"sas-blog.general.mainMenuItemGeneral",description:"sas-blog.general.descriptionTextModule",color:"#F965AF",icon:"regular-content",snippets:{"de-DE":x,"en-GB":E},routes:{index:{components:{default:"sas-blog-list"},path:"index"},create:{components:{default:"sas-blog-create"},path:"create"},detail:{component:"sas-blog-detail",path:"detail/:id"},author:{path:"author",component:"sas-blog-author-list",meta:{parentPath:"blog.module.index"},redirect:{name:"blog.module.author.index"}},"author.index":{path:"author/index",component:"sas-blog-author-list"},"author.create":{path:"author/new",component:"sas-blog-author-create",meta:{parentPath:"blog.module.author.index"}},"author.detail":{path:"author/detail/:id",component:"sas-blog-author-detail",meta:{parentPath:"blog.module.author.index"}}},navigation:[{id:"sas-blog",label:"sas-blog.general.mainMenuItemGeneral",path:"blog.module.index",parent:"sw-content",meta:{privilege:["sas-blog-category:read","sas_blog_author:read","sas_blog_entries:read"]}}]})}()})(); \ No newline at end of file +(function(){var e={4893:function(e){var t;t=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xa2":"cent","\xa3":"pound","\xa4":"currency","\xa5":"yen","\xa9":"(c)","\xaa":"a","\xae":"(r)","\xba":"o","\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xc6":"AE","\xc7":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xde":"TH","\xdf":"ss","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xe6":"ae","\xe7":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xfe":"th","\xff":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}'),t=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"\xc4":"AE","\xe4":"ae","\xd6":"OE","\xf6":"oe","\xdc":"UE","\xfc":"ue","\xdf":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xa2":"centavos","\xa3":"libras","\xa4":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xa2":"centime","\xa3":"livre","\xa4":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xa2":"centavo","∑":"soma","\xa3":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"\xd8":"OE","\xf8":"oe","\xc5":"AA","\xe5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xf8rre end"},"nb":{"&":"og","\xc5":"AA","\xc6":"AE","\xd8":"OE","\xe5":"aa","\xe6":"ae","\xf8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xc5":"AA","\xc4":"AE","\xd6":"OE","\xe5":"aa","\xe4":"ae","\xf6":"oe"}}');function a(a,n){if("string"!=typeof a)throw Error("slugify: string argument expected");var s=t[(n="string"==typeof n?{replacement:n}:n||{}).locale]||{},l=void 0===n.replacement?"-":n.replacement,i=void 0===n.trim||n.trim,o=a.normalize().split("").reduce(function(t,a){var i=s[a];return void 0===i&&(i=e[a]),void 0===i&&(i=a),i===l&&(i=" "),t+i.replace(n.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return n.strict&&(o=o.replace(/[^A-Za-z0-9\s]/g,"")),i&&(o=o.trim()),o=o.replace(/\s+/g,l),n.lower&&(o=o.toLowerCase()),o}return a.extend=function(t){Object.assign(e,t)},a},e.exports=t(),e.exports.default=t()},3111:function(){},6943:function(){},9403:function(){},4731:function(){},7878:function(){},6427:function(){},528:function(){},1673:function(){},2289:function(){},9113:function(){},1276:function(){},748:function(){},1456:function(){},5738:function(){},7941:function(){},9243:function(){},2946:function(){},6408:function(){},9784:function(){},1585:function(){},63:function(){},183:function(){},5332:function(){let{Component:e}=Shopware,{Criteria:t}=Shopware.Data;e.extend("sas-blog-category-tree-field","sw-category-tree-field",{computed:{globalCategoryRepository(){return this.repositoryFactory.create("sas_blog_category")}},methods:{searchCategories(e){let a=new t(1,500);return a.setTerm(e),this.globalCategoryRepository.search(a,Shopware.Context.api)}}})},119:function(){let{Component:e}=Shopware;e.override("sw-cms-list",{computed:{sortPageTypes(){return[{value:"",name:this.$tc("sw-cms.sorting.labelSortByAllPages"),active:!0},{value:"page",name:this.$tc("sw-cms.detail.label.pageType.page")},{value:"landingpage",name:this.$tc("sw-cms.detail.label.pageType.landingpage")},{value:"product_list",name:this.$tc("sw-cms.detail.label.pageType.productList")},{value:"product_detail",name:this.$tc("sw-cms.detail.label.pageType.productDetail")},{value:"blog_detail",name:this.$tc("sw-cms.sorting.labelSortByBlogPages")}]}}})},1901:function(){Shopware.Service("privileges").addPrivilegeMappingEntry({category:"permissions",parent:"content",key:"sas-blog-author",roles:{viewer:{privileges:["sas_blog_author:read","sas_blog_author_translation:read"],dependencies:[]},editor:{privileges:["sas_blog_author:update","sas_blog_author_translation:update"],dependencies:[]},creator:{privileges:["sas_blog_author:create","sas_blog_author_translation:create"],dependencies:[]},deleter:{privileges:["sas_blog_author:delete","sas_blog_author_translation:delete"],dependencies:[]}}})},9080:function(){let{Component:e}=Shopware;e.extend("sas-blog-author-create","sas-blog-author-detail",{methods:{createdComponent(){Shopware.State.commit("context/resetLanguageToDefault"),this.blogAuthor=this.blogAuthorRepository.create(Shopware.Context.api)}}})},8223:function(){Shopware.Service("privileges").addPrivilegeMappingEntry({category:"permissions",parent:"content",key:"sas-blog",roles:{viewer:{privileges:["sas_blog_entries:read","sas_blog_entries_translation:read","sas_blog_blog_category:read"],dependencies:[]},editor:{privileges:["sas_blog_entries:update","sas_blog_entries_translation:update","system_config:read"],dependencies:[]},creator:{privileges:["sas_blog_entries:create","sas_blog_entries_translation:create","sas_blog_blog_category:create","system_config:read"],dependencies:[]},deleter:{privileges:["sas_blog_entries:delete","sas_blog_entries_translation:delete"],dependencies:[]}}})},2120:function(){Shopware.Service("privileges").addPrivilegeMappingEntry({category:"permissions",parent:"content",key:"sas-blog-category",roles:{viewer:{privileges:["sas_blog_category:read","sas_blog_category_translation:read"],dependencies:[]},editor:{privileges:["sas_blog_category:update","sas_blog_category_translation:update"],dependencies:[]},creator:{privileges:["sas_blog_category:create","sas_blog_category_translation:create"],dependencies:[]},deleter:{privileges:["sas_blog_category:delete","sas_blog_category_translation:delete"],dependencies:[]}}})},4336:function(e,t,a){var n=a(3111);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("6d99ad8d",n,!0,{})},5432:function(e,t,a){var n=a(6943);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("0b35b742",n,!0,{})},1208:function(e,t,a){var n=a(9403);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("11106e6e",n,!0,{})},7450:function(e,t,a){var n=a(4731);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("e607328e",n,!0,{})},4436:function(e,t,a){var n=a(7878);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("16eed03c",n,!0,{})},9116:function(e,t,a){var n=a(6427);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("27b7ddf1",n,!0,{})},1770:function(e,t,a){var n=a(528);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("6d498b66",n,!0,{})},4262:function(e,t,a){var n=a(1673);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("a442eb92",n,!0,{})},4478:function(e,t,a){var n=a(2289);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("139c959c",n,!0,{})},6023:function(e,t,a){var n=a(9113);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("6571ebfc",n,!0,{})},5801:function(e,t,a){var n=a(1276);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("09e3bab9",n,!0,{})},3632:function(e,t,a){var n=a(748);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("a2734544",n,!0,{})},3527:function(e,t,a){var n=a(1456);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("1eeae084",n,!0,{})},8913:function(e,t,a){var n=a(5738);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("750a3a12",n,!0,{})},6677:function(e,t,a){var n=a(7941);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("cbc95490",n,!0,{})},562:function(e,t,a){var n=a(9243);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("2e98080b",n,!0,{})},1935:function(e,t,a){var n=a(2946);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("b76c0034",n,!0,{})},4667:function(e,t,a){var n=a(6408);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("5e06170c",n,!0,{})},3521:function(e,t,a){var n=a(9784);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("0a89cff0",n,!0,{})},7798:function(e,t,a){var n=a(1585);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("29dc72ca",n,!0,{})},9572:function(e,t,a){var n=a(63);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("3ad52286",n,!0,{})},1183:function(e,t,a){var n=a(183);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),a(5346).Z("4e75aeff",n,!0,{})},5346:function(e,t,a){"use strict";function n(e,t){for(var a=[],n={},s=0;sa.parts.length&&(n.parts.length=a.parts.length)}else{for(var i=[],s=0;s\n \n',props:{positionIdentifier:{type:String,required:!0}},computed:{componentSections(){return t.get("extensionComponentSections").identifier[this.positionIdentifier]??[]}}});var n=Object.freeze({REQUIRED_FIELD_ERROR_CODE:"c1051bb4-d103-4f74-8988-acbcafc7fdc3",PAGE_TYPES:{BLOG_DETAIL:"blog_detail"}});Shopware.Component.override("sw-cms-sidebar",{template:'{% block sw_cms_sidebar_block_overview_category_options %}\n {% parent %}\n \n{% endblock %}\n\n{% block sw_cms_sidebar_page_settings_type_field_options %}\n{% parent %}\n \n {{ $tc(\'sw-cms.detail.label.pageTypeBlog\') }}\n \n{% endblock %}\n\n{% block sw_cms_sidebar_page_settings_type_field %}\n {% parent %}\n \n{% endblock %}\n',computed:{pageRepository(){return this.repositoryFactory.create("cms_page")},isBlogDetail(){return this.page.type===n.PAGE_TYPES.BLOG_DETAIL}}}),a(119);var s=JSON.parse('{"blog.module.detail":{"sas_blog_entries":["title","slug","teaser","authorId","publishedAt","blogCategories"]}}');a(3521);let{Component:l}=Shopware,{mapPageErrors:i,mapPropertyErrors:o}=l.getComponentHelper();l.extend("sas-cms-sidebar","sw-cms-sidebar",{template:'{% block sw_cms_sidebar_page_settings %}\n \n {% block sas_blog_cms_sidebar_page_basic_information %}\n \n {% block sas_blog_cms_sidebar_page_basic_information_header %}\n \n {% endblock %}\n\n {% block sas_blog_cms_sidebar_page_basic_information_form %}\n \n {% endblock %}\n \n {% endblock %}\n\n {% block sas_blog_cms_sidebar_page_settings %}\n \n {% block sas_blog_cms_sidebar_page_settings_header %}\n \n {% endblock %}\n\n {% block sas_blog_cms_sidebar_page_settings_form %}\n \n {% endblock %}\n \n {% endblock %}\n\n {% block sas_blog_cms_sidebar_page_serp %}\n \n {% block sas_blog_cms_sidebar_page_serp_header %}\n \n {% endblock %}\n\n {% block sas_blog_cms_sidebar_page_serp_form %}\n \n {% endblock %}\n \n {% endblock %}\n \n{% endblock %}\n\n{% block sw_cms_sidebar_layout_assignment %}\n {% block sas_blog_cms_sidebar_extension_component %}\n \n \n \n {% endblock %}\n{% endblock %}\n',inject:["repositoryFactory","systemConfigApiService"],props:{blog:{type:Object,default:()=>({})}},data(){return{fileAccept:"image/*",maximumMetaTitleCharacter:160,maximumMetaDescriptionCharacter:160}},created(){this.createdComponent()},mounted(){this.openBlogDetailSideBar()},computed:{blogSalesChannelIds:{get(){return this.blog.customFields?.salesChannelIds||[]},set(e){let t=null;e&&e.length>0&&(t=e),this.blog.customFields={...this.blog.customFields,salesChannelIds:t}}},salesChannelRepository(){return this.repositoryFactory.create("sales_channel")},mediaRepository(){return this.repositoryFactory.create("media")},positionIdentifierExtension(){return"sas-cms-sidebar-extension"},mediaItem(){return this.blog&&this.blog.media},...i(s),...o("blog",["title","slug","teaser","authorId","publishedAt","blogCategories"])},methods:{createdComponent(){this.systemConfigApiService.getValues("SasBlogModule.config").then(e=>{this.maximumMetaTitleCharacter=e["SasBlogModule.config.maximumMetaTitleCharacter"],this.maximumMetaDescriptionCharacter=e["SasBlogModule.config.maximumMetaDescriptionCharacter"]})},onSetMediaItem({targetId:e}){return this.mediaRepository.get(e,Shopware.Context.api).then(t=>{this.blog.mediaId=e,this.blog.media=t})},setMedia([e]){this.blog.mediaId=e.id,this.blog.media=e},onRemoveMediaItem(){this.blog.mediaId=null,this.blog.media=null},onMediaDropped(e){this.onSetMediaItem({targetId:e.id})},openBlogDetailSideBar(){this.$nextTick(()=>{this.$refs.sidebarItem&&"function"==typeof this.$refs.sidebarItem.openContent&&this.$refs.sidebarItem.openContent()})}}}),a(8223),a(1901),a(2120),a(1183);let{Component:r,Mixin:c}=Shopware,g=Shopware.Data.Criteria;r.register("sas-blog-list",{template:'{% block sas_blog_list %}\n \n \n \n {% block sas_blog_list_smart_bar_actions %}\n \n {% endblock %}\n\n \n\n \n\n \n \n{% endblock %}\n',inject:["repositoryFactory"],mixins:[c.getByName("salutation"),c.getByName("listing")],data(){return{categoryId:null,blogEntries:null,total:0,isLoading:!0,currentLanguageId:Shopware.Context.api.languageId}},metaInfo(){return{title:this.$createTitle()}},created(){this.getList()},computed:{blogEntriesRepository(){return this.repositoryFactory.create("sas_blog_entries")},blogCategoryRepository(){return this.repositoryFactory.create("sas_blog_category")},dateFilter(){return Shopware.Filter.getByName("date")},columns(){return[{property:"title",dataIndex:"title",label:this.$tc("sas-blog.list.table.title"),routerLink:"blog.module.detail",primary:!0,inlineEdit:"string"},{property:"author",label:this.$tc("sas-blog.list.table.author"),inlineEdit:!1},{property:"publishedAt",label:this.$tc("sas-blog.list.table.publishedAt"),inlineEdit:!1},{property:"active",label:this.$tc("sas-blog.list.table.active"),inlineEdit:"boolean"}]}},methods:{changeLanguage(e){this.currentLanguageId=e,this.getList()},changeCategoryId(e){e&&e!==this.categoryId&&(this.categoryId=e,this.getList())},getList(){this.isLoading=!0;let e=new g(this.page,this.limit);return e.addAssociation("blogAuthor"),e.addAssociation("blogCategories"),e.addSorting(g.sort("publishedAt","DESC",!1)),this.categoryId&&e.addFilter(g.equals("blogCategories.id",this.categoryId)),this.blogEntriesRepository.search(e,Shopware.Context.api).then(e=>{this.total=e.total,this.blogEntries=e,this.isLoading=!1})}}});let{Component:d}=Shopware;d.extend("sas-blog-create","sas-blog-detail",{template:"",methods:{async createdComponent(){Shopware.State.commit("adminMenu/collapseSidebar");let e=Shopware.State.getters["context/isSystemDefaultLanguage"];this.$store.commit("cmsPageState/setIsSystemDefaultLanguage",e),e||Shopware.State.commit("context/resetLanguageToDefault"),Shopware.Context.api.languageId!==Shopware.Context.api.systemLanguageId&&Shopware.State.commit("context/setApiLanguageId",Shopware.Context.api.languageId),this.resetCmsPageState(),this.createPage(),this.createBlog(this.page.id),this.isLoading=!1,this.setPageContext()},createBlog(e){this.blog=this.blogRepository.create(),this.blog.cmsPageId=e,this.blogId=this.blog.id}}});var m=a(4893),b=a.n(m);let{Component:u,Data:p,Utils:h,Classes:_,ExtensionAPI:w,State:f,Context:v}=Shopware,{Criteria:y}=p,{debounce:C}=h,{cloneDeep:k}=h.object,{ShopwareError:S}=_;u.extend("sas-blog-detail","sw-cms-detail",{template:'{% block sw_cms_detail_toolbar_page_name %}\n

\n {{ placeholder(blog, \'title\') }}\n

\n{% endblock %}\n\n{% block sw_cms_detail_toolbar_language_switch %}\n \n{% endblock %}\n\n{% block sw_cms_detail_toolbar_back_button %}\n \n \n \n{% endblock %}\n\n{% block sw_cms_detail_toolbar_page_type %}\n{% endblock %}\n\n{% block sw_cms_detail_toolbar_actions_save %}\n \n {{ $tc(\'sw-cms.detail.label.buttonSave\') }}\n \n{% endblock %}\n\n{% block sw_cms_detail_stage_empty_stade_content %}\n
\n

\n {{ $tc(\'sw-cms.detail.label.headlineEmptyState\') }}\n

\n

\n {{ $tc(\'sw-cms.detail.label.claimEmptyState\') }}\n

\n \n
\n{% endblock %}\n{% block sw_cms_detail_stage_add_first_section %}\n \n{% endblock %}\n{% block sw_cms_detail_stage_add_last_section %}\n \n{% endblock %}\n\n{% block sw_cms_detail_stage_content_section %}\n \n{% endblock %}\n\n{% block sw_cms_detail_sidebar %}\n \n{% endblock %}\n\n',data(){return{blogId:null,blog:null,originalSlug:null,isLoading:!1,localeLanguage:null,showSectionModal:!1,sectionDontRemind:!1}},computed:{identifier(){return this.placeholder(this.blog,"title")},blogRepository(){return this.repositoryFactory.create("sas_blog_entries")},localeRepository(){return this.repositoryFactory.create("locale")},loadBlogCriteria(){let e=new y(1,1),t=y.sort("position","ASC",!0);return e.addAssociation("blogCategories").getAssociation("cmsPage").getAssociation("sections").addSorting(t).addAssociation("backgroundMedia").getAssociation("blocks").addSorting(t).addAssociation("backgroundMedia").addAssociation("slots"),e},backPath(){return this.$route.query.ids&&this.$route.query.ids.length>0?{name:"blog.module.index",query:{ids:this.$route.query.ids,limit:this.$route.query.limit,page:this.$route.query.page}}:{name:"blog.module.index"}},isCreateMode(){return"blog.module.create"===this.$route.name}},watch:{"blog.title":function(e){this.onBlogTitleChanged(e)}},methods:{createdComponent(){this.publishExtensionData(),f.commit("adminMenu/collapseSidebar");let e=f.getters["context/isSystemDefaultLanguage"];if(this.$store.commit("cmsPageState/setIsSystemDefaultLanguage",e),this.resetCmsPageState(),this.$route.params.id){this.isLoading=!0,this.blogId=this.$route.params.id,Shopware.State.commit("shopwareApps/setSelectedIds",[this.pageId]);let e=new y(1,25);e.addFilter(y.equals("typeId","8A243080F92E4C719546314B577CF82B")),this.salesChannelRepository.search(e).then(e=>{this.salesChannels=e,this.salesChannels.length>0&&(this.currentSalesChannelKey=this.salesChannels[0].id,this.loadBlog(this.blogId))})}this.acl.can("system_config.read")&&this.getDefaultLayouts(),this.setPageContext()},publishExtensionData(){w.publishData({id:"sas-blog-detail__page",path:"page",scope:this}),w.publishData({id:"sas-blog-detail__blog",path:"blog",scope:this})},debouncedPageSave:C(function(){this.onSave()},300),loadBlog(e){return this.isLoading=!0,this.blogRepository.get(e,v.api,this.loadBlogCriteria).then(e=>((this.blog=e,this.originalSlug=e.slug,e.cmsPageId)?(this.page=e.cmsPage,this.pageId=e.cmsPageId,delete this.blog.cmsPage):(this.isLoading=!1,this.createPage(e.title),this.blog.cmsPageId=this.page.id,this.blogId=e.id),this.loadCMSDataResolver())).catch(e=>{this.isLoading=!1,this.createNotificationError({title:e.message,message:e.response})})},onPageSave(e=!1){if(this.onPageUpdate(),e){this.debouncedPageSave();return}this.onSaveBlog()},addAdditionalSection(e,t){this.onAddSection(e,t),this.onSaveBlog()},async onChangeLanguage(){return this.isLoading=!0,this.salesChannelRepository.search(new y).then(e=>{this.salesChannels=e;let t=f.getters["context/isSystemDefaultLanguage"];return this.$store.commit("cmsPageState/setIsSystemDefaultLanguage",t),this.loadBlog(this.blogId)})},saveOnLanguageChange(){return this.onSaveBlog()},loadCMSDataResolver(){return this.isLoading=!0,this.cmsDataResolverService.resolve(this.page).then(()=>{if(this.updateSectionAndBlockPositions(),f.commit("cmsPageState/setCurrentPage",this.page),this.updateDataMapping(),this.pageOrigin=k(this.page),this.selectedBlock){let e=this.selectedBlock.id,t=this.selectedBlock.sectionId;this.page.sections.forEach(a=>{a.id===t&&a.blocks.forEach(a=>{a.id===e&&this.setSelectedBlock(t,a)})})}this.isLoading=!1}).catch(e=>{this.isLoading=!1,this.createNotificationError({title:e.message,message:e.response}),warn(this._name,e.message,e.response)})},onSaveBlog(){return this.blogIsValid()&&this.pageIsValid()?this.onSavePageEntity().then(()=>this.onSaveBlogEntity()).then(()=>this.loadBlog(this.blogId)).catch(e=>(this.isLoading=!1,this.createNotificationError({message:e.message}),Promise.reject(e))):(this.createNotificationError({message:this.$tc("sas-blog.detail.notification.error.pageInvalid")}),Promise.reject())},onSaveBlogEntity(){return this.isLoading=!0,this.blogRepository.save(this.blog,v.api).catch(e=>(this.createNotificationError({message:e.message}),Promise.reject(e))).finally(()=>{this.isLoading=!1})},onSavePageEntity(){return this.isLoading=!0,this.deleteEntityAndRequiredConfigKey(this.page.sections),this.pageRepository.save(this.page,v.api,!1).then(()=>(this.isLoading=!1,this.isSaveSuccessful=!0,Promise.resolve())).catch(e=>(this.isLoading=!1,this.createNotificationError({message:e.message}),Promise.reject(e)))},blogIsValid(){return f.dispatch("error/resetApiErrors"),[this.missingTitleValidation(),this.missingPublishedAtValidation(),this.missingAuthorIdValidation(),this.missingCategoriesValidation()].every(e=>e)},missingTitleValidation(){return!this.isSystemDefaultLanguage||!!this.blog.title||(this.addBlogError({property:"title",message:this.$tc("sw-cms.detail.notification.messageMissingFields")}),!1)},missingPublishedAtValidation(){return!!this.blog.publishedAt||(this.addBlogError({property:"publishedAt",message:this.$tc("sw-cms.detail.notification.messageMissingFields")}),!1)},missingAuthorIdValidation(){return!!this.blog.authorId||(this.addBlogError({property:"authorId",message:this.$tc("sw-cms.detail.notification.messageMissingFields")}),!1)},missingCategoriesValidation(){return!!this.blog.blogCategories&&!!this.blog.blogCategories.length||(this.addBlogError({property:"blogCategories",message:this.$tc("sw-cms.detail.notification.messageMissingFields")}),!1)},pageSectionCountValidation(){return!0},onBlogTitleChanged:C(function(e){e&&(this.page.name=e,this.getLocaleLanguage(),this.generateSlug(e))},300),addBlogError({property:e=null,payload:t={},code:a=n.REQUIRED_FIELD_ERROR_CODE,message:s=""}={}){let l=`sas_blog_entries.${this.blog.id}.${e}`,i=new S({code:a,detail:s,meta:{parameters:t}});f.commit("error/addApiError",{expression:l,error:i})},getLocaleLanguage(){return this.localeRepository.get(v.api.language.localeId,v.api).then(e=>(this.localeLanguage=e.code.substr(0,e.code.length-3).toLowerCase(),Promise.resolve(this.localeLanguage)))},generateSlug(e){if(!e)return;let t=b()(e,{locale:this.localeLanguage,lower:!0});if(!this.localeLanguage){this.blog.slug=t;return}let a=new y;a.addFilter(y.equals("slug",t)),this.blogRepository.search(a,v.api).then(e=>{let a=e.length,n=this.originalSlug!==t;a&&n?this.blog.slug=t+"-1":this.blog.slug=t}).catch(()=>{this.blog.slug=t})},createPage(e){this.page=this.pageRepository.create(),this.page.name=e,this.page.type=n.PAGE_TYPES.BLOG_DETAIL,this.page.sections=[],this.pageId=this.page.id}}});var x=JSON.parse('{"sas-blog":{"general":{"mainMenuItemGeneral":"Blog","mainMenuItemList":"Blog","mainMenuItemAdd":"Blog Eintrag anlegen","descriptionTextModule":"Verwaltung von Blog Eintr\xe4ge.","placeholderSearchBar":"Durchsuche alle Eintr\xe4ge","tooltipLanguageSwitch":"Du musst zuerst einen Eintrag in der Systemsprache anlegen"},"list":{"textBlogOverview":"Blog Eintr\xe4ge","buttonAddBlogEntry":"Blog Eintrag erstellen","messageEmpty":"Keine Eintr\xe4ge vorhanden","table":{"title":"Titel","active":"Aktiv","author":"Autor","publishedAt":"Ver\xf6ffentlicht am"}},"detail":{"sidebar":{"heading":"Blog detail","basicInformation":"Grundlegende Information","settings":"Einstellungen"},"saveBlogEntry":"Eintrag speichern","buttonCancel":"Abbrechen","activeLabel":"Artikel aktiv","contentLabel":"Markdown Inhalt","slugLabel":"Slug","slugPlaceholder":"Undefiniert","titleLabel":"Titel","mediaLabel":"Teaser Image","teaserLabel":"Teaser","teaserImageLabel":"Teaser Bild","teaserPlaceholder":"Der Teaser Text, welcher im Blog Listing angezeigt wird ...","editorCardTitle":"Dein Artikel","editorLabel":"Blog Inhalt","editorPlaceholder":"Starte deinen Blog Beitrag ...","publishedAtLabel":"Ver\xf6ffentlichungsdatum","visibility":{"label":"Artikel aktiv"},"detailTeaser":{"label":"Zeige Teaser Image auf Detailseite"},"editor":{"headerPlaceholder":"\xdcberschrift","paragraphPlaceholder":"Fange an zu schreiben ...","warningTitle":"Titel der Warnung","warningMessage":"Deine Warnung ...","quotePlaceholder":"Verrate mir dein Zitat ...","quoteCaption":"... und den Autor"},"notification":{"save-success":{"title":"Erfolreich!","text":"Dein Blog Artikel wurde gespeichert."},"error":{"missingCategory":"Bitte w\xe4hle mind. eine Kategorie!","pageInvalid":"Einige Fehler sind aufgetreten. Bitte \xfcberpr\xfcfe die Liste im Editor."}},"author":{"label":"Autor","placeholder":"W\xe4hle einen Autor"},"category":{"label":"Kategorien","placeholder":"W\xe4hle eine Kategorie"},"salesChannels":{"labelSalesChannels":"Verkaufskanal","placeholderSalesChannels":"W\xe4hle Verkaufskan\xe4le aus ..."}},"elements":{"listing":{"config":{"paginationCount":"Pagination count","offsetCount":"Offset count","showFilter":{"label":"Zeige Filter","options":{"all":"Alle","select":"Filter ausw\xe4hlen","filter":{"category":"Zeige Kategorie Filter","author":"Zeige Autor Filter"}}},"showType":{"label":"Anzeigetyp","options":{"all":"Alle","select":"Kategorien ausw\xe4hlen"}},"blogCategories":{"label":"Kategorien","placeholder":"Kategorien ausw\xe4hlen"}},"component":{"elementHeadline":"Blog Listen Element","infoText":"Der Blog Listen Inhalt wird automatisch in der Storefront ausgespielt."}},"detail":{"config":{"showMeta":{"label":"Detail Ansicht Meta Informationen","showAuthor":"Zeige Autor","showCategory":"Zeige Kategorie"}},"component":{"elementHeadline":"Blog Detail Element","infoText":"Der Blog Inhalt wird automatisch in der Storefront ausgespielt. Derzeit gibt es keine Element Konfiguration."}},"single-select":{"label":"Blog Single Select","selectFieldLabel":"W\xe4hle einen Blog Eintrag","previewText":"Lorem Ipsum Dolor"},"newestListing":{"config":{"itemCount":"Anzahl der Artikel","showType":{"label":"Typ anzeigen","options":{"all":"Alle","select":"Kategorien ausw\xe4hlen"}},"blogCategories":{"label":"Kategorien","placeholder":"Kategorien ausw\xe4hlen"}},"component":{"elementHeadline":"Blog neuestes Listenelement","infoText":"Der Inhalt des Blogs mit den neuesten Eintr\xe4gen wird automatisch von diesem Element abgerufen."},"preview":{"label":"Blog Neueste Auflistung"}}},"blocks":{"blog":{"listing":{"previewTitle":"Blog Liste","label":"Blog Listen Ansicht"},"detail":{"previewTitle":"Blog Detail","label":"Blog Detail"},"singleEntry":{"previewTitle":"Einzelner Blogeintrag","label":"Einzelner Blogeintrag"},"newestListing":{"previewTitle":"Blog Neueste Auflistung","label":"Blog Neueste Auflistung"}}}},"sas-blog-category":{"general":{"treeHeadline":"Blog Kategorien","mainMenuItemIndex":"Kategorien","mainMenuItemList":"Overview","descriptionTextModule":"Verwalte hier deine Kategorien.","headlineCategories":"Kategorien","placeholderSearchBar":"Suche in Kategorien...","buttonCreate":"Kategorie erstellen","buttonSafeCategory":"Speichern","descriptionLabel":"Beschreibung","messageSaveSuccess":"Kategorie \\"{name}\\" wurde gespeichert.","useAsLogo":"Use as display image","treeHeadSelected":"{count} ausgew\xe4hlt","emptyStateHeadline":"Keine Kategorie ausgew\xe4hlt","actions":{"actionsDisabledInLanguage":"Kategorien k\xf6nnen nur in der Default Sprache erstellt werden.","createSub":"Neue Unterkategorie","createBefore":"Neue Kategorie davor","createAfter":"Neue Kategorie danach"}},"modal":{"textDeleteConfirm":"M\xf6chtest Du die Blog Kategorie \\"{name}\\" wirklich l\xf6schen?","textDeleteChildrenConfirm":"Alle unterliegenden Blog Kategorien werden auch gel\xf6scht.","textDeleteMultipleConfirm":"M\xf6chtest Du diese {count} Blog Kategorien wirklich l\xf6schen?"}},"sas-blog-author":{"general":{"mainMenuItemList":"Autor"},"list":{"textBlogOverview":"Autoren","buttonAdd":"Autor erstellen","messageEmpty":"Keine Autoren ...","table":{"fullName":"Voller Name","displayName":"Anzeigename","email":"Email","salutation":"Anrede"}},"detail":{"title":"Autor","messageSaveSuccess":"Autor \\"{name}\\" wurde gespeichert.","buttonSave":"Speichern","buttonCancel":"Abbrechen","buttonEdit":"Editieren","firstName":{"label":"Vorname","placeholder":"Gebe den Vornamen des Autors ein"},"lastName":{"label":"Nachname","placeholder":"Gebe den Nachnamen des Autors ein"},"displayName":{"label":"Anzeigename","placeholder":"Gebe den Anzeigenamen des Autors ein"},"email":{"label":"Email","placeholder":"Gebe die Email Adresse des Autors ein"},"description":{"label":"Beschreibung","placeholder":"Gebe eine kurze Beschreibung des Autors ein"},"salutation":{"label":"Anrede","placeholder":"Anrede"},"media":{"label":"Avatar des Autors"}}},"sas-blog-tree-item":{"actions":{"edit":"Editieren"}},"sw-privileges":{"permissions":{"sas-blog":{"label":"Blog"},"sas-blog-author":{"label":"Blog Autor"},"sas-blog-category":{"label":"Blog Kategorien"}}}}'),E=JSON.parse('{"sas-blog":{"general":{"mainMenuItemGeneral":"Blog","mainMenuItemList":"Blog","mainMenuItemAdd":"New blog entry","descriptionTextModule":"Verwaltung von Blog Eintr\xe4ge.","placeholderSearchBar":"Search all blog entries","tooltipLanguageSwitch":"Create an entry first in the system language"},"list":{"textBlogOverview":"Blog entries","buttonAddBlogEntry":"Create blog entry","messageEmpty":"No blog entries ...","table":{"title":"Title","active":"Active","author":"Author","publishedAt":"Published at"}},"detail":{"serp":{"title":"SERP preview","metaDescription":"Meta Description","metaTitle":"Meta Title"},"sidebar":{"heading":"Blog detail","basicInformation":"Basic information","settings":"Settings"},"saveBlogEntry":"Save entry","buttonCancel":"Cancel","activeLabel":"Entry active","contentLabel":"Markdown content","slugLabel":"Slug","slugPlaceholder":"Undefined","titleLabel":"Title","mediaLabel":"Teaser Image","titlePlaceholder":"Enter your blog title","teaserLabel":"Teaser","teaserImageLabel":"Teaser Image","teaserPlaceholder":"The teaser text which will be shown as an introduction within the blog listing ...","editorCardTitle":"Your article","editorLabel":"Blog Content","editorPlaceholder":"Start your blog post ...","publishedAtLabel":"Published at","visibility":{"label":"Article active"},"detailTeaser":{"label":"Show teaser image on detail page"},"editor":{"headerPlaceholder":"Type in your heading text","paragraphPlaceholder":"Start typing ...","warningTitle":"Warning title","warningMessage":"Write your warning message ...","quotePlaceholder":"Tell me about your quote ...","quoteCaption":"... the caption"},"notification":{"save-success":{"title":"Success!","text":"Your blog entry has been saved."},"error":{"missingCategory":"Please choose at least one blog category!","pageInvalid":"Errors occured. Please check the error list in the editor."}},"author":{"label":"Author","placeholder":"Select a blog\'s author"},"category":{"label":"Categories","placeholder":"Select blog\'s categories"},"salesChannels":{"labelSalesChannels":"Sales Channel","placeholderSalesChannels":"Add Sales Channels..."},"warning":{"maxTextCountReached":"There\'re {charLeft} character(s) left"}},"elements":{"listing":{"config":{"paginationCount":"Pagination count","offsetCount":"Offset count","showFilter":{"label":"Listing filter","options":{"all":"All","select":"Select filter","filter":{"category":"Show Category filter","author":"Show Author filter"}}},"showType":{"label":"Show type","options":{"all":"All","select":"Select categories"}},"blogCategories":{"label":"Categories","placeholder":"Select categories"}},"component":{"elementHeadline":"Blog listing element","infoText":"The blog listing content will be automatically fetched by the element."}},"detail":{"config":{"showMeta":{"label":"Detail view meta information","showAuthor":"Show author","showCategory":"Show category"}},"component":{"elementHeadline":"Blog detail element","infoText":"The blog detail content will be automatically fetched by the element. There\'s currently no configuration available."}},"single-select":{"label":"Blog Single Select","selectFieldLabel":"Select a blog entry","previewText":"Lorem Ipsum Dolor"},"newestListing":{"config":{"itemCount":"Item count","showType":{"label":"Show type","options":{"all":"All","select":"Select categories"}},"blogCategories":{"label":"Categories","placeholder":"Select categories"}},"component":{"elementHeadline":"Blog newest listing element","infoText":"The blog newest listing content will be automatically fetched by the element."},"preview":{"label":"Blog Newest Listing"}}},"blocks":{"blog":{"listing":{"previewTitle":"Blog Listing","label":"Blog Listing"},"detail":{"previewTitle":"Blog Detail View","label":"Blog Detail"},"singleEntry":{"previewTitle":"Single Blog Entry","label":"Single Blog Entry"},"newestListing":{"previewTitle":"Blog Newest Listing","label":"Blog Newest Listing"}}}},"sw-seo-url-template-card":{"routeNames":{"sas-frontend-blog-detail":"Blog Detail Page"}},"sas-blog-category":{"general":{"treeHeadline":"Blog categories","mainMenuItemIndex":"Categories","mainMenuItemList":"Overview","descriptionTextModule":"Manage categories here.","headlineCategories":"Categories","placeholderSearchBar":"Search categories...","buttonCreate":"Create category","buttonSafeCategory":"Save","descriptionLabel":"Description","messageSaveSuccess":"Category \\"{name}\\" has been saved.","useAsLogo":"Use as display image","treeHeadSelected":"{count} selected","emptyStateHeadline":"No category selected","actions":{"actionsDisabledInLanguage":"Categories can only be created in the default language.","createSub":"New subcategory","createBefore":"New category before","createAfter":"New category after"}},"modal":{"textDeleteConfirm":"Are you sure you really want to delete the blog category \\"{name}\\"?","textDeleteChildrenConfirm":"All blog subcategories will be deleted too.","textDeleteMultipleConfirm":"Are you sure you want to delete the {count} selected blogs?"}},"sas-blog-author":{"general":{"mainMenuItemList":"Author"},"list":{"textBlogOverview":"Blog authors","buttonAdd":"Add new blog author","messageEmpty":"No blog authors ...","table":{"fullName":"Full name","displayName":"Display name","email":"Email","salutation":"Salutation"}},"detail":{"title":"Blog author","messageSaveSuccess":"Author \\"{name}\\" has been saved.","buttonSave":"Save","buttonCancel":"Cancel","buttonEdit":"Edit","firstName":{"label":"First Name","placeholder":"Enter author\'s first name"},"lastName":{"label":"Last Name","placeholder":"Enter author\'s last name"},"displayName":{"label":"Display Name","placeholder":"Enter author\'s display name"},"email":{"label":"Email","placeholder":"Enter author\'s email"},"description":{"label":"Description","placeholder":"Enter author\'s short description"},"salutation":{"label":"Salutation","placeholder":"Salutation"},"media":{"label":"Author\'s avatar"}}},"sas-blog-tree-item":{"actions":{"edit":"Edit"}},"sw-privileges":{"permissions":{"sas-blog":{"label":"Blog"},"sas-blog-author":{"label":"Author Blog"},"sas-blog-category":{"label":"Category Blog"}}}}');a(1208),Shopware.Component.register("sw-cms-block-blog-listing",{template:'{% block sas_cms_block_listing %}\n
\n \n
\n{% endblock %}\n'}),a(7450),Shopware.Component.register("sas-cms-preview-blog-listing",{template:'{% block sas_cms_preview_blog_listing %}\n
\n
\n

{{ $tc(\'sas-blog.blocks.blog.listing.previewTitle\') }}

\n
\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n{% endblock %}\n',computed:{today(){return new Date().toLocaleDateString()}}}),Shopware.Service("cmsService").registerCmsBlock({name:"blog-listing",label:"sas-blog.blocks.blog.listing.label",category:"sas-blog",component:"sas-cms-block-blog",previewComponent:"sas-cms-preview-blog-listing",defaultConfig:{marginBottom:"0px",marginTop:"0px",marginLeft:"0px",marginRight:"0px",sizingMode:"boxed"},slots:{listing:"blog"}}),a(4336),Shopware.Component.register("sw-cms-block-blog-detail",{template:'{% block sas_cms_block_detail %}\n
\n \n
\n{% endblock %}\n'}),a(5432),Shopware.Component.register("sas-cms-preview-blog-detail",{template:'{% block sas_cms_preview_blog_detail %}\n
\n
\n

{{ $tc(\'sas-blog.blocks.blog.detail.previewTitle\') }}

\n
\n \n

Lorem ipsum dolor sit amet, consetetur sadipscing elitr,\n sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,\n sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.

\n
\n
\n
\n{% endblock %}\n',computed:{today(){return new Date().toLocaleDateString()}}}),Shopware.Service("cmsService").registerCmsBlock({name:"blog-detail",label:"sas-blog.blocks.blog.detail.label",category:"sas-blog",component:"sas-cms-block-blog-detail",previewComponent:"sas-cms-preview-blog-detail",defaultConfig:{marginBottom:"0px",marginTop:"0px",marginLeft:"0px",marginRight:"0px",sizingMode:"boxed"},slots:{blogDetail:"blog-detail"}}),a(9116),Shopware.Component.register("sw-cms-block-blog-single-entry",{template:'{% block sas_cms_block_blog_single_entry %}\n
\n \n
\n{% endblock %}\n'}),a(1770),Shopware.Component.register("sas-cms-preview-blog-single-entry",{template:'{% block sas_cms_preview_blog_single_entry %}\n
\n
\n

{{ $tc(\'sas-blog.blocks.blog.singleEntry.previewTitle\') }}

\n
\n \n
\n
\n
\n
\n
\n{% endblock %}\n',computed:{today(){return new Date().toLocaleDateString()}}}),Shopware.Service("cmsService").registerCmsBlock({name:"blog-single-entry",label:"sas-blog.blocks.blog.singleEntry.label",category:"sas-blog",component:"sas-cms-block-blog-single-entry",previewComponent:"sas-cms-preview-blog-single-entry",defaultConfig:{marginBottom:"0px",marginTop:"0px",marginLeft:"0px",marginRight:"0px",sizingMode:"boxed"},slots:{singleEntry:{type:"blog-single-select",default:{config:{blogEntry:{source:"static",value:null}}}}}});let{Component:A}=Shopware;A.register("sw-cms-block-blog-newest-listing",{template:'{% block sas_cms_block_newest_listing %}\n
\n \n
\n{% endblock %}\n'}),a(4436);let{Component:I}=Shopware;I.register("sas-cms-preview-newest-listing",{template:'{% block sas_cms_preview_newest_listing %}\n
\n
\n

{{ $tc(\'sas-blog.blocks.blog.newestListing.previewTitle\') }}

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n{% endblock %}\n'}),Shopware.Service("cmsService").registerCmsBlock({name:"blog-newest-listing",label:"sas-blog.blocks.blog.newestListing.label",category:"sas-blog",component:"sas-cms-block-newest-listing",previewComponent:"sas-cms-preview-newest-listing",defaultConfig:{marginBottom:"0px",marginTop:"0px",marginLeft:"0px",marginRight:"0px",sizingMode:"boxed"},slots:{listing:"blog-newest-listing"}}),a(4262);let{Mixin:L}=Shopware;Shopware.Component.register("sas-blog-el-blog-detail",{template:"{% block sas_cms_element_blog_detail %}\n
\n

{{ $tc('sas-blog.elements.detail.component.elementHeadline') }}

\n \n {{ $tc('sas-blog.elements.detail.component.infoText') }}\n \n
\n{% endblock %}\n",mixins:[L.getByName("cms-element")],created(){this.createdComponent()},methods:{createdComponent(){this.initElementConfig("blog-detail")}}}),a(4478);let{Component:B,Mixin:T}=Shopware;B.register("sw-cms-el-config-blog-detail",{template:'{% block sas_cms_element_blog_detail_config %}\n
\n\n {% block sas_cms_element_blog_detail_config_show_meta %}\n \n\n \n \n\n \n \n \n {% endblock %}\n\n
\n{% endblock %}\n',inject:["repositoryFactory"],mixins:[T.getByName("cms-element")],created(){this.createdComponent()},methods:{createdComponent(){this.initElementConfig("blog")}}}),a(6023),Shopware.Component.register("sas-blog-el-blog-detail-preview",{template:'{% block sas_blog_element_previews %}\n
\n

Lorem ipsum dolor

\n

\n Lorem ipsum dolor sit amet, consetetur sadipscing elitr,\n sed diam nonumy eirmod tempor invidunt ut labore et dolore magna.\n

\n
\n{% endblock %}\n'}),Shopware.Service("cmsService").registerCmsElement({name:"blog-detail",label:"Blog Detail",component:"sas-blog-el-blog-detail",configComponent:"sw-cms-el-config-blog-detail",previewComponent:"sas-blog-el-blog-detail-preview",defaultConfig:{showCategory:{source:"static",value:!0},showAuthor:{source:"static",value:!0}}}),a(562);let{Mixin:$}=Shopware;Shopware.Component.register("sw-cms-el-blog",{template:"{% block sas_cms_element_blog_listing %}\n
\n

{{ $tc('sas-blog.elements.listing.component.elementHeadline') }}

\n \n {{ $tc('sas-blog.elements.listing.component.infoText') }}\n \n
\n{% endblock %}\n",mixins:[$.getByName("cms-element")],created(){this.createdComponent()},methods:{createdComponent(){this.initElementConfig("blog")}}}),a(1935);let{Component:M,Mixin:D}=Shopware,{EntityCollection:N,Criteria:P}=Shopware.Data;M.register("sw-cms-el-config-blog",{template:'{% block sas_cms_element_blog_listing_config %}\n
\n\n {% block sas_cms_element_blog_listing_config_paginationCount_field %}\n \n \n {% endblock %}\n\n {% block sas_cms_element_blog_listing_config_offsetCount_field %}\n \n \n {% endblock %}\n\n {% block sas_cms_element_blog_listing_config_show_type %}\n \n {% block sas_cms_element_download_card_config_layout_select_options %}\n \n \n {% endblock %}\n \n {% endblock %}\n\n\n {% block sas_cms_element_blog_listing_config_select_categories %}\n \n \n {% endblock %}\n\n {% block sas_cms_element_blog_listing_config_show_filter_select %}\n \n\n \n \n\n \n \n \n {% endblock %}\n\n
\n{% endblock %}\n',inject:["repositoryFactory"],mixins:[D.getByName("cms-element")],data(){return{categories:[],selectedCategories:null}},computed:{blogCategoryRepository(){return this.repositoryFactory.create("sas_blog_category")},blogListingSelectContext(){let e=Object.assign({},Shopware.Context.api);return e.inheritance=!0,e},blogCategoriesConfigValue(){return this.element.config.blogCategories.value}},watch:{selectedCategories:{handler(e){this.element.config.blogCategories.value=e.getIds(),this.$set(this.element.data,"blogCategories",e),this.$emit("element-update",this.element)}}},created(){this.createdComponent()},methods:{async createdComponent(){this.initElementConfig("blog"),await this.getSelectedCategories()},getSelectedCategories(){if(Shopware.Utils.types.isEmpty(this.blogCategoriesConfigValue))this.selectedCategories=new N(this.blogCategoryRepository.route,this.blogCategoryRepository.schema.entity,Shopware.Context.api,new P);else{let e=new P;e.setIds(this.blogCategoriesConfigValue),this.blogCategoryRepository.search(e,Shopware.Context.api).then(e=>{this.selectedCategories=e})}}}}),a(4667),Shopware.Component.register("sw-cms-el-preview-blog",{template:'{% block sw_cms_element_blog_preview %}\n
\n

Blog Listing Element

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n{% endblock %}\n'}),Shopware.Service("cmsService").registerCmsElement({name:"blog",label:"Blog",component:"sw-cms-el-blog",configComponent:"sw-cms-el-config-blog",previewComponent:"sw-cms-el-preview-blog",defaultConfig:{paginationCount:{source:"static",value:5},offsetCount:{source:"static",value:0},showType:{source:"static",value:"all"},showCategoryFilter:{source:"static",value:!0},showAuthorFilter:{source:"static",value:!0},blogCategories:{source:"static",value:null,entity:{name:"sas_blog_categories"}}}}),a(8913);let{Mixin:R,Context:F}=Shopware,{Criteria:O}=Shopware.Data;Shopware.Component.register("sw-cms-el-blog-single-select",{template:'{% block sas_cms_element_blog_single_select %}\n
\n
{{ categoryName }}
\n

{{ title }}

\n \n

{{ teaser }}

\n
\n{% endblock %}\n',inject:["repositoryFactory"],mixins:[R.getByName("cms-element")],created(){this.createdComponent()},data(){return{article:null,title:"Placeholder Article Title",teaser:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque faucibus maximus velit, dictum mollis erat finibus quis. Ut dictum ornare dolor, sed mattis tellus gravida vel.",mediaUrl:null,categoryName:"Placeholder Category"}},computed:{articleImage(){return this.mediaUrl?this.mediaUrl:`${Shopware.Context.api.assetsPath}/administration/static/img/cms/preview_mountain_small.jpg`},repository(){return this.repositoryFactory.create("sas_blog_entries")},selectedBlogEntry(){return this.element.config.blogEntry.value}},methods:{createdComponent(){this.initElementConfig("blog-single-select"),this.initElementData("blog-single-select"),this.element.config.blogEntry.value&&this.getEntityProperties()},getEntityProperties(){if(this.element.config.blogEntry.value){let e=new O;e.addAssociation("blogCategories"),this.repository.get(this.element.config.blogEntry.value,F.api,e).then(e=>{this.article=e,this.title=this.article.translated.title,this.teaser=this.article.translated.teaser,this.mediaUrl=this.article.media.url,this.categoryName=this.article.blogCategories[0]?this.article.blogCategories[0].translated.name:null})}else this.article=null,this.title="Placeholder Article Title",this.teaser="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque faucibus maximus velit, dictum mollis erat finibus quis. Ut dictum ornare dolor, sed mattis tellus gravida vel.",this.mediaUrl=null,this.categoryName="Placeholder Category"}},watch:{selectedBlogEntry:function(){this.getEntityProperties()}}});let{Component:U,Mixin:z}=Shopware;U.register("sw-cms-el-config-blog-single-select",{template:'{% block sas_cms_element_blog_single_select_config %}\n
\n \n\n \n\n \n \n
\n{% endblock %}\n',inject:["repositoryFactory"],mixins:[z.getByName("cms-element")],data(){return{blogEntry:null,selectedEntry:null}},computed:{blogEntryRepository(){return this.repositoryFactory.create("sas_blog_entries")}},created(){this.createdComponent()},methods:{createdComponent(){this.initElementConfig("blog-single-select")}}}),a(6677),Shopware.Component.register("sw-cms-el-preview-blog-single-select",{template:'{% block sw_cms_element_blog_single_select_preview %}\n
\n
{{ $tc(\'sas-blog.elements.single-select.previewText\') }}
\n \n
\n
\n
\n
\n
\n{% endblock %}\n'}),Shopware.Service("cmsService").registerCmsElement({name:"blog-single-select",label:"sas-blog.elements.single-select.label",component:"sw-cms-el-blog-single-select",configComponent:"sw-cms-el-config-blog-single-select",previewComponent:"sw-cms-el-preview-blog-single-select",defaultConfig:{blogEntry:{source:"static",value:null,entity:{name:"sas_blog_entries"}}}}),a(5801);let{Component:Z,Mixin:K}=Shopware;Z.register("sas-cms-el-newest-listing",{template:"{% block sas_cms_el_newest_listing %}\n
\n

{{ $tc('sas-blog.elements.newestListing.component.elementHeadline') }}

\n \n {{ $tc('sas-blog.elements.newestListing.component.infoText') }}\n \n
\n{% endblock %}\n",mixins:[K.getByName("cms-element")],created(){this.createdComponent()},methods:{createdComponent(){this.initElementConfig("blog-newest-listing"),this.initElementData("blog-newest-listing")}}}),a(3632);let{Component:q,Mixin:j}=Shopware,{EntityCollection:V,Criteria:H}=Shopware.Data;q.register("sas-cms-el-config-newest-listing",{template:'{% block sas_cms_element_newest_listing_config %}\n
\n\n {% block sas_cms_element_newest_listing_config_itemCount_field %}\n \n {% endblock %}\n\n {% block sas_cms_element_blog_listing_config_show_type %}\n \n {% block sas_cms_element_download_card_config_layout_select_options %}\n \n \n {% endblock %}\n \n {% endblock %}\n\n {% block sas_cms_element_blog_listing_config_select_categories %}\n \n {% endblock %}\n\n
\n{% endblock %}\n',inject:["repositoryFactory"],mixins:[j.getByName("cms-element")],data(){return{categories:[],selectedCategories:null}},computed:{blogCategoryRepository(){return this.repositoryFactory.create("sas_blog_category")},blogListingSelectContext(){let e=Object.assign({},Shopware.Context.api);return e.inheritance=!0,e},blogCategoriesConfigValue(){return this.element.config.blogCategories.value}},watch:{selectedCategories:{handler(e){this.element.config.blogCategories.value=e.getIds(),this.$set(this.element.data,"blogCategories",e),this.$emit("element-update",this.element)}}},created(){this.createdComponent()},methods:{async createdComponent(){this.initElementConfig("blog-newest-listing"),await this.getSelectedCategories()},getSelectedCategories(){if(Shopware.Utils.types.isEmpty(this.blogCategoriesConfigValue))this.selectedCategories=new V(this.blogCategoryRepository.route,this.blogCategoryRepository.schema.entity,Shopware.Context.api,new H);else{let e=new H;e.setIds(this.blogCategoriesConfigValue),this.blogCategoryRepository.search(e,Shopware.Context.api).then(e=>{this.selectedCategories=e})}}}}),a(3527);let{Component:G}=Shopware;G.register("sas-cms-el-preview-newest-listing",{template:'{% block sas_cms_element_newest_listing_preview %}\n
\n

Newest Listing Element

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n{% endblock %}\n'}),Shopware.Service("cmsService").registerCmsElement({name:"blog-newest-listing",label:"sas-blog.elements.newestListing.preview.label",component:"sas-cms-el-newest-listing",configComponent:"sas-cms-el-config-newest-listing",previewComponent:"sas-cms-el-preview-newest-listing",defaultConfig:{itemCount:{source:"static",value:5},showType:{source:"static",value:"all"},blogCategories:{source:"static",value:null,entity:{name:"sas_blog_categories"}}}});let{Component:Y}=Shopware;Y.extend("sas-blog-tree-item","sw-tree-item",{template:'{% block sw_tree_item_children_items %}\n \n {% block sw_tree_item_children_items_slots %}\n {% parent %}\n {% endblock %}\n \n{% endblock %}\n\n{% block sw_tree_items_actions_edit %}\n\n {{ $tc(\'sas-blog-tree-item.actions.edit\') }}\n\n{% endblock %}\n',computed:{parentScope(){let e=this.$parent;for(;"sw-tree"!==e.$options.name;)e=e.$parent;return e}},data(){return{editingCategory:null}},methods:{onEditCategory(e){this.editingCategory=e,this.currentEditElement=e.id,this.editElementName()},onBlurTreeItemInput(e){this.abortCreateElement(e)},onCancelSubmit(e){this.abortCreateElement(e)},abortCreateElement(e){this.currentEditElement=null,this.editingCategory=null,this.$super("abortCreateElement",e)}}});let{Component:J}=Shopware;J.extend("sas-blog-category-tree","sw-category-tree",{template:'{% block sw_category_tree %}\n
\n \n {% block sw_category_tree_items %}\n \n \n \n {% endblock %}\n \n\n
\n \n \n \n \n \n \n \n
\n
\n{% endblock %}\n',data(){return{blogCategory:null,translationContext:"sas-blog-category"}},methods:{changeCategory(e){this.$emit("change-category-id",e.id)}},computed:{category(){return this.blogCategory},categoryRepository(){return this.repositoryFactory.create("sas_blog_category")},disableContextMenu(){return!this.allowEdit||this.currentLanguageId!==Shopware.Context.api.systemLanguageId},syncProducts(){}}}),a(5332),a(9572);let{Component:W,Mixin:Q}=Shopware,X=Shopware.Data.Criteria;W.register("sas-blog-author-list",{template:'{% block sas_blog_author_list %}\n\n \n \n {% block sas_blog_author_list_smart_bar_actions %}\n \n {% endblock %}\n\n \n\n \n\n\n{% endblock %}\n',inject:["repositoryFactory"],mixins:[Q.getByName("notification"),Q.getByName("salutation"),Q.getByName("listing")],data(){return{blogAuthors:null,total:0,isLoading:!0,currentLanguageId:Shopware.Context.api.languageId}},metaInfo(){return{title:this.$createTitle()}},created(){this.getList()},computed:{blogAuthorRepository(){return this.repositoryFactory.create("sas_blog_author")},columns(){return[{property:"salutation.displayName",label:"sas-blog-author.list.table.salutation",width:"100px",allowResize:!0},{property:"fullName",dataIndex:"firstName,lastName",inlineEdit:"string",label:"sas-blog-author.list.table.fullName",routerLink:"sw.blog.author.detail",allowResize:!0,primary:!0},{property:"displayName",label:"sas-blog-author.list.table.displayName",allowResize:!0,inlineEdit:"string"},{property:"email",label:"sas-blog-author.list.table.email",align:"right",inlineEdit:"string",allowResize:!0}]}},methods:{changeLanguage(e){this.currentLanguageId=e,this.getList()},getList(){this.isLoading=!0;let e=new X(this.page,this.limit);return e.addAssociation("media"),e.addAssociation("salutation"),this.blogAuthorRepository.search(e,Shopware.Context.api).then(e=>{this.total=e.total,this.blogAuthors=e,this.isLoading=!1})}}}),a(7798);let{Component:ee,Mixin:et}=Shopware,{Criteria:ea}=Shopware.Data,{mapPropertyErrors:en}=Shopware.Component.getComponentHelper();ee.register("sas-blog-author-detail",{template:'{% block sas_blog_author_detail %}\n\n \n\n \n\n \n\n\n{% endblock %}\n',inject:["repositoryFactory"],mixins:[et.getByName("notification"),et.getByName("salutation")],shortcuts:{"SYSTEMKEY+S":"onSave",ESCAPE:"onCancel"},data(){return{isLoading:!1,isSaveSuccessful:!1,blogAuthor:null,blogAuthorCustomFieldSets:null,processSuccess:!1,availableTags:null,fileAccept:"image/*"}},metaInfo(){return{title:this.$createTitle(this.identifier)}},computed:{identifier(){return null!==this.blogAuthor?this.salutation(this.blogAuthor):""},blogAuthorRepository(){return this.repositoryFactory.create("sas_blog_author")},mediaRepository(){return this.repositoryFactory.create("media")},defaultCriteria(){let e=new ea;return e.addAssociation("media").addAssociation("salutation"),e},customFieldSetRepository(){return this.repositoryFactory.create("custom_field_set")},customFieldSetCriteria(){let e=new ea;return e.addFilter(ea.equals("relations.entityName","sas_blog_author")),e.getAssociation("customFields").addSorting(ea.sort("config.customFieldPosition")),e},...en("blogAuthor",["firstName","lastName","displayName","email","salutationId","description"])},created(){this.createdComponent()},methods:{createdComponent(){this.isLoading=!0,this.blogAuthorRepository.get(this.$route.params.id,Shopware.Context.api,this.defaultCriteria).then(e=>{this.blogAuthor=e,this.isLoading=!1})},saveFinish(){this.isSaveSuccessful=!1},async onSave(){return this.isLoading=!0,this.isSaveSuccessful=!1,this.blogAuthorRepository.save(this.blogAuthor,Shopware.Context.api).then(()=>{this.isLoading=!1,this.isSaveSuccessful=!0,this.createNotificationSuccess({message:this.$tc("sas-blog-author.detail.messageSaveSuccess",0,{name:`${this.blogAuthor.firstName} ${this.blogAuthor.lastName}`})}),this.$router.push({name:"blog.module.author.detail",params:{id:this.blogAuthor.id}})}).catch(e=>{throw this.createNotificationError({message:this.$tc("global.notification.unspecifiedSaveErrorMessage")}),this.isLoading=!1,e})},onCancel(){this.$router.push({name:"sas.blog.author.index"})},onSetMediaItem({targetId:e}){this.mediaRepository.get(e,Shopware.Context.api).then(t=>{this.blogAuthor.mediaId=e,this.blogAuthor.media=t})},onRemoveMediaItem(){this.blogAuthor.mediaId=null,this.blogAuthor.media=null},onMediaDropped(e){this.onSetMediaItem({targetId:e.id})}}}),a(9080);let{Component:es}=Shopware;es.register("sas-blog-vertical-tabs",{template:'\n \n\n',props:{defaultItem:{type:String,default:"blog"}},methods:{onChangeTab(e){this.currentTab=e}}});let{Module:el}=Shopware;el.register("blog-module",{type:"plugin",name:"Blog",title:"sas-blog.general.mainMenuItemGeneral",description:"sas-blog.general.descriptionTextModule",color:"#F965AF",icon:"regular-content",snippets:{"de-DE":x,"en-GB":E},routes:{index:{components:{default:"sas-blog-list"},path:"index"},create:{components:{default:"sas-blog-create"},path:"create"},detail:{component:"sas-blog-detail",path:"detail/:id"},author:{path:"author",component:"sas-blog-author-list",meta:{parentPath:"blog.module.index"},redirect:{name:"blog.module.author.index"}},"author.index":{path:"author/index",component:"sas-blog-author-list"},"author.create":{path:"author/new",component:"sas-blog-author-create",meta:{parentPath:"blog.module.author.index"}},"author.detail":{path:"author/detail/:id",component:"sas-blog-author-detail",meta:{parentPath:"blog.module.author.index"}}},navigation:[{id:"sas-blog",label:"sas-blog.general.mainMenuItemGeneral",path:"blog.module.index",parent:"sw-content",meta:{privilege:["sas-blog-category:read","sas_blog_author:read","sas_blog_entries:read"]}}]})}()})(); \ No newline at end of file