import{v as G,b as A}from"./app-core.a6d808ce.js";import{u as R}from"./GoogleSearchConsole.cb2e41cb.js";import{C as T}from"./Index.52399193.js";import{C as B}from"./Card.bced93c3.js";import{C as L}from"./SettingsRow.0c329e43.js";import{_ as N}from"./DisconnectModal.cec3331f.js";import{G as V,a as z}from"./Row.6337df55.js";import{aq 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.de3ab35f.js";import{_ as H}from"./_plugin-vue_export-helper.eefbdd86.js";import{a as y,_ as r}from"./vendor-other.7b559694.js";import"./vendor-lodash.8e35bd59.js";import"./Close.098d4b76.js";import"./Tooltip.ae7a1028.js";import"./Caret.a017b70a.js";import"./Trash.d35f8063.js";import"./Slide.e6618126.js";import"./Index.16a854da.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"},q={key:1},E=["innerHTML"];function Q(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",q,[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,E)):_("",!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 co=H(P,[["render",Q]]);export{co as default};
