import{h as G,b as A}from"./app-core.152db1db.js";import{u as R}from"./GoogleSearchConsole.29cf5cd6.js";import{C as T}from"./Index.da555368.js";import{C as B}from"./Card.d86f3fdf.js";import{C as L}from"./SettingsRow.3442570e.js";import{_ as N}from"./DisconnectModal.12771774.js";import{G as V,a as z}from"./Row.f5276b4c.js";import{as as n,f as l,i as f,a0 as s,R as e,Q as S,ae as m,U as d,M as _,j as D,T as C}from"./vendor-vue-ui.9852a9dd.js";import{_ as H}from"./_plugin-vue_export-helper.eefbdd86.js";import{a as y,_ as r}from"./vendor-other.35999c47.js";import"./vendor-datetime.361c8690.js";import"./vendor-lodash.e0b5303e.js";import"./Close.13ddaab7.js";import"./Tooltip.fea720f1.js";import"./Caret.34a0e986.js";import"./Trash.afa6bd6f.js";import"./Slide.51c3c11f.js";import"./Index.46254557.js";const i="aioseo-pro",P={setup(){const{alertMessage:a,connect:c,disconnect:h,loading:o,reconnect:t,showAlert:u,showModal:g}=R();return{alertMessage:a,connect:c,disconnect:h,loading:o,reconnect:t,rootStore:A(),searchStatisticsStore:G(),showAlert:u,showModal:g}},components:{CoreAlert:T,CoreCard:B,CoreSettingsRow:L,DisconnectModal:N,GridColumn:z,GridRow:V},data(){return{strings:{settings:r("Settings",i),description:r("By connecting to Google Search Console, you will receive valuable insights on how your content is being discovered. With this information, you will be able to identify areas for improvement and make changes to your content strategy in order to improve search engine rankings and drive more traffic to your website.",i),connectToGoogle:y(r("Connect to %1$s",i),"Google Search Console"),connect:r("Connect",i),reconnect:r("Reconnect",i),disconnect:r("Disconnect",i)}}},computed:{authedSite(){const a=this.searchStatisticsStore.authedSite;return a?y(r("You are connected to %1$s%2$s%3$s.",i),"<strong>",a,"</strong>"):""}}},U={class:"aioseo-search-statistics-settings-options"},j={class:"aioseo-settings-row aioseo-section-description"},E={key:1},Q=["innerHTML"];function W(a,c,h,o,t,u){const g=n("core-alert"),p=n("base-button"),w=n("core-settings-row"),b=n("disconnect-modal"),k=n("core-card"),v=n("grid-column"),M=n("grid-row");return l(),f("div",U,[s(M,null,{default:e(()=>[s(v,null,{default:e(()=>[s(k,{slug:"searchStatisticsSettings","header-text":t.strings.settings,toggles:!1,"no-slide":""},{default:e(()=>[o.showAlert?(l(),S(g,{key:0,type:"red"},{default:e(()=>[m(d(o.alertMessage),1)]),_:1})):_("",!0),D("div",j,d(t.strings.description),1),s(w,{name:t.strings.connectToGoogle,align:""},{content:e(()=>[o.searchStatisticsStore.isConnected?_("",!0):(l(),S(p,{key:0,size:"medium",type:"blue",tag:"button",onClick:C(o.connect,["stop"]),loading:o.loading},{default:e(()=>[m(d(t.strings.connect)+" → ",1)]),_:1},8,["onClick","loading"])),o.searchStatisticsStore.isConnected?(l(),f("div",E,[s(p,{size:"medium",type:"blue",tag:"button",onClick:C(o.reconnect,["stop"]),loading:o.loading},{default:e(()=>[m(d(t.strings.reconnect)+" → ",1)]),_:1},8,["onClick","loading"]),s(p,{size:"medium",type:"gray",tag:"button",onClick:c[0]||(c[0]=x=>o.showModal=!0)},{default:e(()=>[m(d(t.strings.disconnect),1)]),_:1}),u.authedSite?(l(),f("div",{key:0,class:"authed-site",innerHTML:u.authedSite},null,8,Q)):_("",!0)])):_("",!0)]),_:1},8,["name"]),s(b,{"show-modal":o.showModal,loading:o.loading,onContinue:o.disconnect,onCancel:c[1]||(c[1]=x=>o.showModal=!1)},null,8,["show-modal","loading","onContinue"])]),_:1},8,["header-text"])]),_:1})]),_:1})])}const ao=H(P,[["render",W]]);export{ao as default};
