import{m as g}from"./vuex.esm-bundler.55d3d5b3.js";import{C as b}from"./index.fae5bbc8.js";import{C}from"./Card.0a3b54f8.js";import{C as S}from"./HtmlTagsEditor.5ebef317.js";import{C as y}from"./SettingsRow.bc3a4ca9.js";import{S as $}from"./External.bfa99ff9.js";import{_ as v,r as o,c as A,d as s,w as n,o as p,a as r,t as a,y as u,b as R,f as k}from"./_plugin-vue_export-helper.a81c6319.js";import"./default-i18n.0e8bc810.js";import"./_commonjsHelpers.f84db168.js";import"./helpers.51e5fd9c.js";import"./Caret.19bf2275.js";import"./Tooltip.c4cc47a2.js";import"./Slide.4392623f.js";import"./Editor.5cedc7bc.js";import"./UnfilteredHtml.ceff4936.js";import"./Row.d42459be.js";const w={components:{CoreAlert:b,CoreCard:C,CoreHtmlTagsEditor:S,CoreSettingsRow:y,SvgExternal:$},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.$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))}}},computed:{...g(["options"])}},L={class:"aioseo-rss-content"},T={class:"aioseo-settings-row aioseo-section-description"},B=["innerHTML"],D={class:"aioseo-description"},V={class:"aioseo-description"};function H(e,i,M,N,t,G){const m=o("core-alert"),_=o("svg-external"),f=o("base-button"),l=o("core-settings-row"),d=o("core-html-tags-editor"),h=o("core-card");return p(),A("div",L,[s(h,{slug:"rssContent","header-text":t.strings.rssContent},{tooltip:n(()=>[r("div",null,a(t.strings.tooltip),1)]),default:n(()=>[r("div",T,[u(a(t.strings.description)+" ",1),r("span",{innerHTML:e.$links.getDocLink(e.$constants.GLOBAL_STRINGS.learnMore,"rssContent",!0)},null,8,B),e.options.searchAppearance.advanced.crawlCleanup.enable&&!e.options.searchAppearance.advanced.crawlCleanup.feeds.global?(p(),R(m,{key:0,type:"red",innerHTML:t.strings.rssFeedDisabled},null,8,["innerHTML"])):k("",!0)]),s(l,{name:e.$constants.GLOBAL_STRINGS.preview},{content:n(()=>[s(f,{size:"medium",type:"blue",tag:"a",href:e.$aioseo.urls.feeds.global,target:"_blank",disabled:e.options.searchAppearance.advanced.crawlCleanup.enable&&!e.options.searchAppearance.advanced.crawlCleanup.feeds.global},{default:n(()=>[s(_),u(" "+a(t.strings.openYourRssFeed),1)]),_:1},8,["href","disabled"])]),_:1},8,["name"]),s(l,{name:t.strings.rssBeforeContent},{content:n(()=>[s(d,{checkUnfilteredHtml:"",modelValue:e.options.rssContent.before,"onUpdate:modelValue":i[0]||(i[0]=c=>e.options.rssContent.before=c),"minimum-line-numbers":5,"tags-context":"rss","default-tags":["post_link","site_link","author_link"],disabled:e.options.searchAppearance.advanced.crawlCleanup.enable&&!e.options.searchAppearance.advanced.crawlCleanup.feeds.global},null,8,["modelValue","disabled"]),r("div",D,a(t.strings.beforeRssDescription),1)]),_:1},8,["name"]),s(l,{name:t.strings.rssAfterContent},{content:n(()=>[s(d,{checkUnfilteredHtml:"",modelValue:e.options.rssContent.after,"onUpdate:modelValue":i[1]||(i[1]=c=>e.options.rssContent.after=c),"minimum-line-numbers":5,"tags-context":"rss","default-tags":["post_link","site_link","author_link"],disabled:e.options.searchAppearance.advanced.crawlCleanup.enable&&!e.options.searchAppearance.advanced.crawlCleanup.feeds.global},null,8,["modelValue","disabled"]),r("div",V,a(t.strings.afterRssDescription),1)]),_:1},8,["name"])]),_:1},8,["header-text"])])}const Z=v(w,[["render",H]]);export{Z as default};
