import{i as l,u as v}from"./index.506b73e8.js";import"./translations.d159963e.js";import{g as s}from"./runtime-dom.esm-bundler.5c3c7d72.js";import{s as g,_ as e}from"./default-i18n.20001971.js";const o="all-in-one-seo-pack",b=(S={})=>{const{returnTo:d="search-statistics"}=S,u=s(""),a=s(!1),r=s(!1),c=s(d),i=s(!1),h=s(!1),p=()=>{r.value=!0,l().getAuthUrl({returnTo:c.value}).then(t=>{window.location=t})},f=()=>{r.value=!0,l().getReauthUrl({returnTo:c.value}).then(t=>{window.location=t})},m=()=>{r.value=!0,l().deleteAuth({force:a.value}).then(t=>{h.value=!1,i.value=!1,t.success||(a.value=!0,i.value=!0,u.value=t.message)}).finally(()=>{r.value=!1})},y={aioseoCanNowVerify:g(e("%1$s can now verify whether your site is correctly verified with Google Search Console and that your sitemaps have been submitted correctly. Connect with Google Search Console now to ensure your content is being added to Google as soon as possible for increased rankings.",o),"AIOSEO"),connectToGoogleSearchConsole:e("Connect to Google Search Console",o),connectToGoogleToAddSitemaps:e("Connect to Google to automatically add sitemaps and keep them in sync.",o),syncYourSiteWithGsc:e("Upgrade to Pro to unlock Search Statistics and sync your site with Google Search Console. Get valuable insights right inside your WordPress dashboard, track keyword rankings and search performance for individual posts with actionable insights to help you rank higher in search results!",o),fixSitemapErrors:e("Fix Errors",o),aioseoHasFoundSomeErrorsInSitemaps:g(e("%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.",o),"AIOSEO"),thereAreSitemapsWithErrors:e("There are sitemaps with errors",o),gscFeature1:e("Google Search Console Metrics",o),gscFeature2:e("SEO Changes Performance Tracking",o),gscFeature3:e("Top Content Discovery",o),gscFeature4:e("Content Decay Tracking",o)};return{alertMessage:u,connect:p,disconnect:m,forceDisconnect:a,loading:r,reconnect:f,redirectToGscSettings:()=>{const n=v();window.location.href=`${n.aioseo.urls.aio.settings}&aioseo-scroll=google-search-console-settings&aioseo-highlight=google-search-console-settings#/webmaster-tools?activetool=googleSearchConsole`},returnTo:c,showAlert:i,showModal:h,strings:y}};export{b as u};
