import{u as S,c as b}from"./links.574d4fd4.js";import{C}from"./index.b1bbc091.js";import{C as y}from"./Card.e9a25031.js";import{C as v}from"./HtmlTagsEditor.884e425c.js";import{C as R}from"./SettingsRow.3c16cab0.js";import{S as k}from"./External.f8ff7aa4.js";import{x as s,c as A,C as o,l as n,o as u,a as r,t as i,D as _,k as w,b as L}from"./vue.runtime.esm-bundler.78401fbe.js";import{_ as x}from"./_plugin-vue_export-helper.58be9317.js";import"./default-i18n.3881921e.js";import"./isArrayLikeObject.59b68b05.js";import"./Caret.89e18339.js";import"./Tooltip.72f8a160.js";import"./Slide.6b2090d0.js";import"./tags.58b8cbee.js";import"./Editor.df2359d9.js";import"./UnfilteredHtml.6760ba7c.js";import"./Row.e7795c3e.js";const $={setup(){return{optionsStore:S(),rootStore:b()}},components:{CoreAlert:C,CoreCard:y,CoreHtmlTagsEditor:v,CoreSettingsRow:R,SvgExternal:k},data(){return{strings:{tooltip:this.$t.__("Automatically add content to your site's RSS feed.",this.$td),description:this.$t.__("This feature is used to automatically add content to your site's RSS feed. More specifically, it allows you to add links back to your blog and your blog posts so scrapers will automatically add these links too. This helps search engines identify you as the original source of the content.",this.$td),learnMore:this.$t.__("Learn more",this.$td),rssFeedDisabled:this.$t.sprintf(this.$t.__("Your RSS feed has been disabled. Disabling the global RSS feed is NOT recommended. This will prevent users from subscribing to your content and can hurt your SEO rankings. You can re-enable the global RSS feed in the %1$scrawl content settings%2$s.",this.$td),'<a href="'+this.rootStore.aioseo.urls.aio.searchAppearance+'&aioseo-scroll=crawl-content-global-feed&aioseo-highlight=crawl-content-global-feed#/advanced">',"</a>"),rssContent:this.$t.__("RSS Content Settings",this.$td),openYourRssFeed:this.$t.__("Open Your RSS Feed",this.$td),rssBeforeContent:this.$t.__("RSS Before Content",this.$td),rssAfterContent:this.$t.__("RSS After Content",this.$td),beforeRssDescription:this.$t.__("Add content before each post in your site feed.",this.$td),afterRssDescription:this.$t.__("Add content after each post in your site feed.",this.$td),unfilteredHtmlError:this.$t.sprintf(this.$t.__("Your user account role does not have access to edit this field. %1$s",this.$td),this.$links.getDocLink(this.$constants.GLOBAL_STRINGS.learnMore,"unfilteredHtml",!0))}}}},T={class:"aioseo-rss-content"},D={class:"aioseo-settings-row aioseo-section-description"},B=["innerHTML"],V={class:"aioseo-description"},H={class:"aioseo-description"};function M(l,a,N,e,t,O){const m=s("core-alert"),f=s("svg-external"),h=s("base-button"),c=s("core-settings-row"),p=s("core-html-tags-editor"),g=s("core-card");return u(),A("div",T,[o(g,{slug:"rssContent","header-text":t.strings.rssContent},{tooltip:n(()=>[r("div",null,i(t.strings.tooltip),1)]),default:n(()=>[r("div",D,[_(i(t.strings.description)+" ",1),r("span",{innerHTML:l.$links.getDocLink(l.$constants.GLOBAL_STRINGS.learnMore,"rssContent",!0)},null,8,B),e.optionsStore.options.searchAppearance.advanced.crawlCleanup.enable&&!e.optionsStore.options.searchAppearance.advanced.crawlCleanup.feeds.global?(u(),w(m,{key:0,type:"red",innerHTML:t.strings.rssFeedDisabled},null,8,["innerHTML"])):L("",!0)]),o(c,{name:l.$constants.GLOBAL_STRINGS.preview},{content:n(()=>[o(h,{size:"medium",type:"blue",tag:"a",href:e.rootStore.aioseo.urls.feeds.global,target:"_blank",disabled:e.optionsStore.options.searchAppearance.advanced.crawlCleanup.enable&&!e.optionsStore.options.searchAppearance.advanced.crawlCleanup.feeds.global},{default:n(()=>[o(f),_(" "+i(t.strings.openYourRssFeed),1)]),_:1},8,["href","disabled"])]),_:1},8,["name"]),o(c,{name:t.strings.rssBeforeContent},{content:n(()=>[o(p,{checkUnfilteredHtml:"",modelValue:e.optionsStore.options.rssContent.before,"onUpdate:modelValue":a[0]||(a[0]=d=>e.optionsStore.options.rssContent.before=d),"minimum-line-numbers":5,"tags-context":"rss","default-tags":["post_link","site_link","author_link"],disabled:e.optionsStore.options.searchAppearance.advanced.crawlCleanup.enable&&!e.optionsStore.options.searchAppearance.advanced.crawlCleanup.feeds.global},null,8,["modelValue","disabled"]),r("div",V,i(t.strings.beforeRssDescription),1)]),_:1},8,["name"]),o(c,{name:t.strings.rssAfterContent},{content:n(()=>[o(p,{checkUnfilteredHtml:"",modelValue:e.optionsStore.options.rssContent.after,"onUpdate:modelValue":a[1]||(a[1]=d=>e.optionsStore.options.rssContent.after=d),"minimum-line-numbers":5,"tags-context":"rss","default-tags":["post_link","site_link","author_link"],disabled:e.optionsStore.options.searchAppearance.advanced.crawlCleanup.enable&&!e.optionsStore.options.searchAppearance.advanced.crawlCleanup.feeds.global},null,8,["modelValue","disabled"]),r("div",H,i(t.strings.afterRssDescription),1)]),_:1},8,["name"])]),_:1},8,["header-text"])])}const te=x($,[["render",M]]);export{te as default};
