Files
2026-04-28 15:13:50 +02:00

2 lines
11 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{u as G}from"./AddonConditions.d0b4b606.js";import{d as P,G as M,j as z,b as Y,a as j}from"./app-core.ae890a3f.js";import{_ as t,a as q}from"./vendor-other.7b559694.js";import{B as F}from"./Blur.157ba1c7.js";import{C as A}from"./Card.c7ceb11b.js";import{m as D}from"./vendor-lodash.8e35bd59.js";import{f as m,i as k,a0 as s,R as n,v as o,Q as S,S as Q,u as J,aq as l,j as p,ae as d,U as r,M as w}from"./vendor-vue-ui.de3ab35f.js";import{C as K}from"./Blur.5e231db6.js";import{C as U}from"./SettingsRow.0c329e43.js";import{S as I}from"./External.94d285ce.js";import{B as R}from"./Checkbox.79be52ca.js";import{_ as V}from"./_plugin-vue_export-helper.eefbdd86.js";import{C as W}from"./ProBadge.fd60f711.js";import{C as X}from"./Index.43bf246d.js";import{R as Z}from"./RequiredPlans.c6bcf6ea.js";import{C as $}from"./ExcludePosts.652191da.js";import{C as ee}from"./PostTypeOptions.b81e5303.js";import{S as te,a as oe}from"./SearchConsoleInline.0d09a261.js";import"./Index.52399193.js";import"./Close.098d4b76.js";import"./RadioToggle.de933e45.js";import"./Tooltip.ae7a1028.js";import"./Caret.a017b70a.js";import"./Trash.d35f8063.js";import"./Slide.e6618126.js";import"./Row.6337df55.js";import"./Checkmark.fac3f231.js";import"./Button.a549093d.js";import"./Pencil.405b16d2.js";import"./JsonValues.a0694556.js";import"./Select.32af2da8.js";import"./AddPlus.863a7e44.js";import"./PostTypes.bcb4ad24.js";import"./HighlightToggle.9305c143.js";import"./Radio.7b7e6cf4.js";import"./GoogleSearchConsole.98e7fa66.js";import"./Actionable.f715f764.js";import"./CheckSolid.7f805a48.js";import"./ExclamationSolid.ddc28e8f.js";import"./WpTable.65c7870f.js";import"./ScrollTo.f4df02aa.js";import"./Index.ab3bcf62.js";import"./Table.199a0fd0.js";import"./Download.aee86410.js";const c="all-in-one-seo-pack",v=()=>({strings:{news:t("News Sitemap",c),setPublicationName:t("Set Publication Name",c),publicationName:t("Publication Name",c),postTypes:t("Post Types",c),exclude:t("Exclude Pages/Posts",c),description:t("The Google News Sitemap lets you control which content you submit to Google News and only contains articles that were published in the last 48 hours.",c),extendedDescription:t("In order to submit a News Sitemap to Google, you must have added your site to Googles Publisher Center and had it approved.",c),enableSitemap:t("Enable Sitemap",c),openSitemap:t("Open News Sitemap",c),noIndexDisplayed:t("Noindexed content will not be displayed in your sitemap.",c),doYou404:t("Do you get a blank sitemap or 404 error?",c),ctaButtonText:t("Unlock News Sitemaps",c),ctaHeader:q(t("News Sitemaps is a %1$s Feature",c),"PRO"),includeAllPostTypes:t("Include All Post Types",c),selectPostTypes:t("Select which Post Types appear in your sitemap.",c)}}),se={__name:"Cta",setup(g){const i="aioseo-pro",{strings:u}=v(),e=D(u,{newsSitemapHeader:t("Enable News Sitemaps on Your Site",i),ctaButtonTextActivate:t("Update News Sitemap",i),learnMoreText:t("Learn more about News Sitemaps",i)}),{ctaComponent:a,shouldShowUpdate:T}=G({addonSlug:"aioseo-news-sitemap"}),x=J(()=>T.value?t("Update News Sitemap",i):t("Activate News Sitemaps",i));return(b,N)=>(m(),k("div",null,[s(o(A),{slug:"newsSitemap","header-text":o(e).news},{default:n(()=>[s(o(F)),(m(),S(Q(o(a)),{"addon-slug":"aioseo-news-sitemap","cta-header":o(e).newsSitemapHeader,"cta-description":o(e).description,"cta-button-text":x.value,"learn-more-text":o(e).learnMoreText,"learn-more-link":o(P).getDocUrl("newsSitemaps"),"feature-list":[o(e).setPublicationName,o(e).exclude]},null,8,["cta-header","cta-description","cta-button-text","learn-more-text","learn-more-link","feature-list"]))]),_:1},8,["header-text"])]))}},ne={setup(){const{strings:g}=v();return{strings:g,GLOBAL_STRINGS:M,links:P}},components:{CoreBlur:K,CoreSettingsRow:U,SvgExternal:I,BaseCheckbox:R}},ie={class:"aioseo-settings-row aioseo-section-description"},ae=["innerHTML"],re={class:"aioseo-sitemap-preview"},le={class:"aioseo-description"},pe=["innerHTML"],ce={class:"aioseo-description"},me=["innerHTML"];function de(g,i,u,e,a,T){const x=l("base-toggle"),b=l("core-settings-row"),N=l("svg-external"),h=l("base-button"),L=l("base-input"),C=l("base-checkbox"),f=l("core-blur");return m(),S(f,null,{default:n(()=>[p("div",ie,[d(r(e.strings.description)+" "+r(e.strings.extendedDescription)+" ",1),p("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"newsSitemaps",!0)},null,8,ae)]),s(b,{name:e.strings.enableSitemap},{content:n(()=>[s(x,{modelValue:!0})]),_:1},8,["name"]),s(b,{name:e.GLOBAL_STRINGS.preview},{content:n(()=>[p("div",re,[s(h,{size:"medium",type:"blue"},{default:n(()=>[s(N),d(" "+r(e.strings.openSitemap),1)]),_:1})]),p("div",le,[d(r(e.strings.noIndexDisplayed)+" ",1),i[0]||(i[0]=p("br",null,null,-1)),d(" "+r(e.strings.doYou404)+" ",1),p("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"blankSitemap",!0)},null,8,pe)])]),_:1},8,["name"]),s(b,{name:e.strings.publicationName,align:""},{content:n(()=>[s(L,{size:"medium"})]),_:1},8,["name"]),s(b,{name:e.strings.postTypes},{content:n(()=>[s(C,{size:"medium"},{default:n(()=>[d(r(e.strings.includeAllPostTypes),1)]),_:1}),p("div",ce,[d(r(e.strings.selectPostTypes)+" ",1),p("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"selectPostTypesNews",!0)},null,8,me)])]),_:1},8,["name"])]),_:1})}const ue=V(ne,[["render",de]]),_e={class:"aioseo-news-sitemap-lite"},ge={__name:"NewsSitemap",setup(g){const i=z(),{strings:u}=v();return(e,a)=>(m(),k("div",_e,[s(o(A),{slug:"newsSitemap",noSlide:!0},{header:n(()=>[p("span",null,r(o(u).news),1),s(o(W))]),default:n(()=>[s(o(ue)),s(o(X),{"feature-list":[o(u).setPublicationName,o(u).exclude],"cta-link":o(P).getPricingUrl("news-sitemap","news-sitemap-upsell",null,"liteUpgrade"),"button-text":o(u).ctaButtonText,"learn-more-link":o(P).getUpsellUrl("news-sitemap",null,"liteUpgrade"),"hide-bonus":!o(i).isUnlicensed},{"header-text":n(()=>[d(r(o(u).ctaHeader),1)]),description:n(()=>[s(o(Z),{addon:"aioseo-news-sitemap"}),d(" "+r(o(u).description),1)]),_:1},8,["feature-list","cta-link","button-text","learn-more-link","hide-bonus"])]),_:1})]))}},_="aioseo-pro",Se={setup(){const{strings:g}=v();return{optionsStore:j(),rootStore:Y(),composableStrings:g,GLOBAL_STRINGS:M,links:P}},components:{BaseCheckbox:R,CoreCard:A,CoreExcludePosts:$,CorePostTypeOptions:ee,CoreSettingsRow:U,SearchConsole:oe,SearchConsoleInline:te,SvgExternal:I},data(){return{pagePostOptions:[],strings:D(this.composableStrings,{sitemapSettings:t("News Sitemap Settings",_),publicationName:t("Publication Name",_),postTypes:t("Post Types",_),includeAllPostTypes:t("Include All Post Types",_),selectPostTypes:t("Select which Post Types appear in your sitemap.",_),advancedSettings:t("Advanced Settings",_),excludePostsPages:t("Exclude Posts / Pages",_),excludeTerms:t("Exclude Terms",_),excludeTermsDescription:t("Any posts that are assigned to these terms will also be excluded from your sitemap.",_),priorityScore:t("Priority Score",_),noResult:t("No pages or posts found with that title or ID. Try again!",_),clear:t("Clear",_)})}},computed:{getExcludedPostTypes(){return["attachment"]}},methods:{processGetPagesPosts(g){return this.optionsStore.getObjects(g).then(i=>{this.pagePostOptions=i.body.posts})}}},we={class:"aioseo-settings-row aioseo-section-description"},be=["innerHTML"],he={class:"aioseo-sitemap-preview"},ye={class:"aioseo-description"},xe=["innerHTML"],Te={class:"aioseo-description"},fe=["innerHTML"],Pe={class:"aioseo-description"};function Ne(g,i,u,e,a,T){const x=l("search-console"),b=l("base-toggle"),N=l("search-console-inline"),h=l("core-settings-row"),L=l("svg-external"),C=l("base-button"),f=l("core-card"),H=l("base-input"),O=l("base-checkbox"),E=l("core-post-type-options"),B=l("core-exclude-posts");return m(),k("div",null,[e.optionsStore.options.sitemap.news.enable?(m(),S(x,{key:0})):w("",!0),s(f,{slug:"newsSitemap","header-text":a.strings.news},{default:n(()=>[p("div",we,[d(r(a.strings.description)+" "+r(a.strings.extendedDescription)+" ",1),p("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"newsSitemaps",!0)},null,8,be)]),s(h,{name:a.strings.enableSitemap},{content:n(()=>[s(b,{modelValue:e.optionsStore.options.sitemap.news.enable,"onUpdate:modelValue":i[0]||(i[0]=y=>e.optionsStore.options.sitemap.news.enable=y)},null,8,["modelValue"]),e.optionsStore.options.sitemap.news.enable?(m(),S(N,{key:0})):w("",!0)]),_:1},8,["name"]),e.optionsStore.options.sitemap.news.enable?(m(),S(h,{key:0,name:e.GLOBAL_STRINGS.preview},{content:n(()=>[p("div",he,[s(C,{size:"medium",type:"blue",tag:"a",href:e.rootStore.aioseo.urls.newsSitemapUrl,target:"_blank"},{default:n(()=>[s(L),d(" "+r(a.strings.openSitemap),1)]),_:1},8,["href"])]),p("div",ye,[d(r(a.strings.noIndexDisplayed)+" "+r(a.strings.doYou404)+" ",1),p("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"blankSitemap",!0)},null,8,xe)])]),_:1},8,["name"])):w("",!0)]),_:1},8,["header-text"]),e.optionsStore.options.sitemap.news.enable?(m(),S(f,{key:1,slug:"newsSitemapSettings","header-text":a.strings.sitemapSettings},{default:n(()=>[s(h,{id:"news-sitemap-publication-name",name:a.strings.publicationName,align:""},{content:n(()=>[s(H,{size:"medium",modelValue:e.optionsStore.options.sitemap.news.publicationName,"onUpdate:modelValue":i[1]||(i[1]=y=>e.optionsStore.options.sitemap.news.publicationName=y)},null,8,["modelValue"])]),_:1},8,["name"]),s(h,{name:a.strings.postTypes},{content:n(()=>[s(O,{size:"medium",modelValue:e.optionsStore.options.sitemap.news.postTypes.all,"onUpdate:modelValue":i[2]||(i[2]=y=>e.optionsStore.options.sitemap.news.postTypes.all=y)},{default:n(()=>[d(r(a.strings.includeAllPostTypes),1)]),_:1},8,["modelValue"]),e.optionsStore.options.sitemap.news.postTypes.all?w("",!0):(m(),S(E,{key:0,options:e.optionsStore.options.sitemap.news,type:"postTypes",excluded:T.getExcludedPostTypes},null,8,["options","excluded"])),p("div",Te,[d(r(a.strings.selectPostTypes)+" ",1),p("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"selectPostTypesNews",!0)},null,8,fe)])]),_:1},8,["name"])]),_:1},8,["header-text"])):w("",!0),e.optionsStore.options.sitemap.news.enable?(m(),S(f,{key:2,slug:"newsAdvancedSettings",toggles:e.optionsStore.options.sitemap.news.advancedSettings.enable},{header:n(()=>[s(b,{modelValue:e.optionsStore.options.sitemap.news.advancedSettings.enable,"onUpdate:modelValue":i[3]||(i[3]=y=>e.optionsStore.options.sitemap.news.advancedSettings.enable=y)},null,8,["modelValue"]),p("span",null,r(a.strings.advancedSettings),1)]),default:n(()=>[s(h,{name:a.strings.excludePostsPages,class:"aioseo-exclude-pages-posts",align:""},{content:n(()=>[s(B,{options:e.optionsStore.options.sitemap.news.advancedSettings,type:"posts"},null,8,["options"])]),_:1},8,["name"]),s(h,{name:a.strings.excludeTerms,class:"aioseo-exclude-terms",align:""},{content:n(()=>[s(B,{options:e.optionsStore.options.sitemap.news.advancedSettings,type:"terms"},null,8,["options"]),p("div",Pe,r(a.strings.excludeTermsDescription),1)]),_:1},8,["name"])]),_:1},8,["toggles"])):w("",!0)])}const ke=V(Se,[["render",Ne]]),ve={class:"aioseo-news-sitemap"},bt={__name:"NewsSitemap",setup(g){const{shouldShowActivate:i,shouldShowLite:u,shouldShowMain:e,shouldShowUpdate:a}=G({addonSlug:"aioseo-news-sitemap"});return(T,x)=>(m(),k("div",ve,[o(e)?(m(),S(o(ke),{key:0})):w("",!0),o(a)||o(i)?(m(),S(o(se),{key:1})):w("",!0),o(u)?(m(),S(o(ge),{key:2})):w("",!0)]))}};export{bt as default};