Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
public_html
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
dist
/
Lite
/
assets
/
js
/
Editing: SearchConsoleInline.95fd7351.js
import{e as v,a as W,j as w,k as A,E as x}from"./index.317ad629.js";import{u as P}from"./GoogleSearchConsole.299a85c0.js";import{g as N}from"./params.af7ed354.js";import{_ as T}from"./Actionable.906b27d6.js";import"./translations.e71e2202.js";import{_ as I}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as r,a as B}from"./default-i18n.65d58dd6.js";import{a6 as p,o as i,a1 as b,a2 as C,a7 as k,$ as d,_,c as h,l as f,F as E,a4 as u}from"./runtime-core.esm-bundler.ce5add0b.js";import{u as U}from"./WpTable.9bcfde23.js";import{n as z}from"./Input.f04bee4d.js";import{C as D}from"./Index.3a1576c6.js";import{C as F}from"./Table.b24bacad.js";import{a as O}from"./Pencil.d82df6a1.js";import{a as M}from"./runtime-dom.esm-bundler.dc49ee3e.js";const l="all-in-one-seo-pack",R={setup(){const{strings:o}=P(),s="sitemapErrorsTable",{pageNumber:c,processPagination:t,resultsPerPage:e}=U({changeItemsPerPageSlug:"searchConsoleSitemapErrors",fetchData:()=>Promise.resolve(),resultsPerPage:5,tableId:s});return{composableStrings:o,optionsStore:v(),pageNumber:c,processPagination:t,resultsPerPage:e,rootStore:W(),searchStatisticsStore:w(),settingsStore:A(),tableId:s}},components:{CoreAlertActionable:T,CoreModal:D,CoreWpTable:F,SvgCircleCheck:O},props:{display:{type:Boolean,default:!1},sitemaps:{type:Array,default:()=>[]}},data(){return{loading:!1,bulkOptions:[{label:r("Remove",l),value:"remove"},{label:r("Ignore",l),value:"ignore"}],strings:x(this.composableStrings,{aioseoHasFoundSomeErrorsInSitemaps:B(r("%1$s has found some errors in sitemaps that were previously submitted to Google Search Console. Since %1$s manages your sitemaps, these additional sitemaps can be removed.",l),"AIOSEO"),allErrorsResolved:r("All errors have been resolved",l),removeSitemap:r("Remove",l),ignoreSitemap:r("Ignore",l),viewDetails:r("Details",l),sitemapErrors:r("Sitemap Errors",l),thereAreSitemapsWithErrors:r("There are sitemaps with errors",l)})}},computed:{totals(){return{page:1,pages:Math.ceil(this.searchStatisticsStore.sitemapsWithErrors.length/this.resultsPerPage),total:this.searchStatisticsStore.sitemapsWithErrors.length}},rows(){const o=this.pageNumber===1?0:(this.pageNumber-1)*this.resultsPerPage;return this.searchStatisticsStore.sitemapsWithErrors.slice(o,o+this.resultsPerPage)},columns(){return[{slug:"sitemap",label:r("Sitemap",l)},{slug:"actions",label:r("Actions",l),width:"220px"}]}},methods:{escUrl:z,fetchData(){return Promise.resolve()},processBulkAction({action:o,selectedRows:s}){if(!s.length)return;const c=[];switch(Array.isArray(s)?s.forEach(t=>{c.push(this.rows[t].path)}):c.push(s.path),o){case"remove":this.loading=!0,this.searchStatisticsStore.deleteSitemap({sitemap:c}).finally(()=>{this.loading=!1});break;case"ignore":this.loading=!0,this.searchStatisticsStore.ignoreSitemap({sitemap:c}).finally(()=>{this.loading=!1});break}},deleteSitemap(o){this.loading=!0,this.searchStatisticsStore.deleteSitemap({sitemap:o}).finally(()=>{this.loading=!1})},ignoreSitemap(o){this.loading=!0,this.searchStatisticsStore.ignoreSitemap({sitemap:o}).finally(()=>{this.loading=!1})},canRemoveSitemap(o){return!this.rootStore.aioseo.data.sitemapUrls.includes(o.path)}}},V={class:"aioseo-modal-body"},H={key:0},L=["href"],Y=["onClick"],j=["href"],q=["onClick"],J={key:1,class:"no-errors"};function K(o,s,c,t,e,n){const m=p("core-alert-actionable"),y=p("core-wp-table"),S=p("svg-circle-check"),g=p("core-modal");return i(),b(g,{show:c.display,onClose:s[0]||(s[0]=a=>o.$emit("close")),classes:["aioseo-sitemaps-errors-modal"]},{headerTitle:C(()=>[k(d(e.strings.sitemapErrors),1)]),body:C(()=>[_("div",V,[t.searchStatisticsStore.sitemapsWithErrors.length>0?(i(),h("div",H,[f(m,{title:e.strings.thereAreSitemapsWithErrors,text:e.strings.aioseoHasFoundSomeErrorsInSitemaps,type:"yellow",size:"small"},null,8,["title","text"]),f(y,{id:t.tableId,columns:n.columns,rows:n.rows,"bulk-options":e.bulkOptions,totals:n.totals,showSearch:!1,loading:e.loading,onPaginate:t.processPagination,onProcessBulkAction:n.processBulkAction},{sitemap:C(({row:a})=>[_("a",{href:n.escUrl(a.path),target:"_blank",rel:"noopener"},d(a.path),9,L)]),actions:C(({row:a})=>[_("a",{href:"#",onClick:M(()=>n.ignoreSitemap(a.path),["prevent"])},d(e.strings.ignoreSitemap),9,Y),a.detailsUrl!==""?(i(),h(E,{key:0},[k(" | "),_("a",{href:n.escUrl(a.detailsUrl),target:"_blank",rel:"noopener"},d(e.strings.viewDetails),9,j)],64)):u("",!0),n.canRemoveSitemap(a)?(i(),h(E,{key:1},[k(" | "),_("a",{href:"#",class:"aioseo-sitemaps-errors-remove",onClick:M(()=>n.deleteSitemap(a.path),["prevent"])},d(e.strings.removeSitemap),9,q)],64)):u("",!0)]),_:1},8,["id","columns","rows","bulk-options","totals","loading","onPaginate","onProcessBulkAction"])])):(i(),h("div",J,[f(S),_("p",null,d(e.strings.allErrorsResolved),1)]))])]),_:1},8,["show"])}const G=I(R,[["render",K]]),Q="all-in-one-seo-pack",X={setup(){const{strings:o,redirectToGscSettings:s}=P();return{searchStatisticsStore:w(),settingsStore:A(),optionsStore:v(),composableStrings:o,redirectToGscSettings:s}},components:{CoreAlertActionable:T,SitemapsWithErrorsModal:G},data(){return{showErrorsModal:!1,strings:x(this.composableStrings,{yourSiteIsConnected:r("Your site is connected directly to Google Search Console and your sitemaps are in sync.",Q)})}},mounted(){this.showErrorsModal=!!N()["open-modal"]}},Z={class:"google-search-console-alerts"},$={key:1};function ee(o,s,c,t,e,n){var S,g;const m=p("core-alert-actionable"),y=p("sitemaps-with-errors-modal");return i(),h("div",Z,[!t.searchStatisticsStore.isConnected&&!((S=t.settingsStore.settings.dismissedAlerts)!=null&&S.searchConsoleNotConnected)?(i(),b(m,{key:0,title:e.strings.connectToGoogleToAddSitemaps,text:e.strings.aioseoCanNowVerify,button:e.strings.connectToGoogleSearchConsole,buttonType:"link",type:"yellow",size:"small","show-close":"",onClick:t.redirectToGscSettings,onCloseAlert:s[0]||(s[0]=()=>t.settingsStore.dismissAlert("searchConsoleNotConnected"))},null,8,["title","text","button","onClick"])):u("",!0),t.searchStatisticsStore.isConnected&&!((g=t.settingsStore.settings.dismissedAlerts)!=null&&g.searchConsoleSitemapErrors)?(i(),h("div",$,[t.searchStatisticsStore.sitemapsWithErrors.length>0?(i(),b(m,{key:0,title:e.strings.thereAreSitemapsWithErrors,text:e.strings.aioseoHasFoundSomeErrorsInSitemaps,button:e.strings.fixSitemapErrors,buttonType:"link",type:"yellow",size:"small","show-close":"",onCloseAlert:s[1]||(s[1]=()=>t.settingsStore.dismissAlert("searchConsoleSitemapErrors")),onClick:s[2]||(s[2]=()=>e.showErrorsModal=!0)},null,8,["title","text","button"])):u("",!0),f(y,{display:e.showErrorsModal,onClose:s[3]||(s[3]=a=>e.showErrorsModal=!1)},null,8,["display"])])):u("",!0)])}const ye=I(X,[["render",ee]]),se="all-in-one-seo-pack",te={setup(){const{strings:o,redirectToGscSettings:s}=P();return{optionsStore:v(),searchStatisticsStore:w(),settingsStore:A(),rootStore:W(),composableStrings:o,redirectToGscSettings:s}},components:{CoreAlertActionable:T,SitemapsWithErrorsModal:G},data(){return{showErrorsModal:!1,strings:x(this.composableStrings,{yourSiteIsConnected:r("Your site is connected directly to Google Search Console and your sitemaps are in sync.",se)})}},computed:{showIsConnected(){return this.searchStatisticsStore.isConnected&&this.optionsStore.internalOptions.internal.searchStatistics.site.verified}}},oe={class:"google-search-console-alerts-inline"};function re(o,s,c,t,e,n){var S,g;const m=p("core-alert-actionable"),y=p("sitemaps-with-errors-modal");return i(),h("div",oe,[n.showIsConnected?(i(),h(E,{key:0},[f(m,{text:e.strings.yourSiteIsConnected,type:"green",size:"small"},null,8,["text"]),t.searchStatisticsStore.sitemapsWithErrors.length>0&&((S=t.settingsStore.settings.dismissedAlerts)!=null&&S.searchConsoleSitemapErrors)?(i(),b(m,{key:0,text:e.strings.aioseoHasFoundSomeErrorsInSitemaps,button:e.strings.fixSitemapErrors,buttonType:"link",type:"yellow",size:"small",onClick:s[0]||(s[0]=()=>e.showErrorsModal=!0)},null,8,["text","button"])):u("",!0),f(y,{display:e.showErrorsModal,onClose:s[1]||(s[1]=a=>e.showErrorsModal=!1),sitemaps:t.searchStatisticsStore.sitemapsWithErrors},null,8,["display","sitemaps"])],64)):(g=t.settingsStore.settings.dismissedAlerts)!=null&&g.searchConsoleNotConnected?(i(),b(m,{key:1,text:e.strings.connectToGoogleToAddSitemaps,button:e.strings.connectToGoogleSearchConsole,buttonType:"link",type:"yellow",size:"small",onClick:t.redirectToGscSettings},null,8,["text","button","onClick"])):u("",!0)])}const be=I(te,[["render",re]]);export{ye as S,be as a};
Save
Cancel