import{c as S,a as k}from"./index.e0fdfdc6.js";import{u as v}from"./Wizard.798cebaa.js";import{C as y}from"./Index.2713d4dd.js";import{S as z}from"./Close.ccd53ef3.js";import{a as l}from"./runtime-dom.esm-bundler.dc49ee3e.js";import{_ as C}from"./_plugin-vue_export-helper.eefbdd86.js";import{u as W}from"./SetupWizardStore.fef34770.js";import{a6 as d,o as c,c as u,a3 as b,$ as e,l as t,a2 as r,a7 as m,_ as n}from"./runtime-core.esm-bundler.ce5add0b.js";const w={setup(){const{strings:a}=v();return{optionsStore:S(),rootStore:k(),setupWizardStore:W(),strings:a}},components:{CoreModal:y,SvgClose:z},data(){return{loading:!1}},methods:{processOptIn(){this.setupWizardStore.smartRecommendations.usageTracking=!0,this.loading=!0,this.setupWizardStore.saveWizard("smartRecommendations").then(()=>{window.location.href=this.rootStore.aioseo.urls.aio.dashboard})}}},x={class:"aioseo-wizard-close-and-exit"},T=["href"],M={class:"aioseo-modal-body"},A=["innerHTML"],U={class:"actions"};function B(a,s,E,o,g,_){const f=d("svg-close"),p=d("base-button"),h=d("core-modal");return c(),u("div",x,[b(a.$slots,"links",{},()=>[o.rootStore.isPro||o.optionsStore.options.advanced.usageTracking?(c(),u("a",{key:0,href:o.rootStore.aioseo.urls.aio.dashboard},e(o.strings.closeAndExit),9,T)):(c(),u("a",{key:1,href:"#",onClick:s[0]||(s[0]=l(i=>o.setupWizardStore.showUsageTrackingModal=!0,["prevent"]))},e(o.strings.closeAndExit),1))]),t(h,{show:o.setupWizardStore.showUsageTrackingModal&&!o.rootStore.isPro,onClose:s[3]||(s[3]=i=>o.setupWizardStore.showUsageTrackingModal=!1),classes:["aioseo-close-and-exit-modal"]},{header:r(()=>[m(e(o.strings.buildABetterAioseo)+" ",1),n("button",{class:"close",onClick:s[2]||(s[2]=l(i=>o.setupWizardStore.showUsageTrackingModal=!1,["stop"]))},[t(f,{onClick:s[1]||(s[1]=i=>o.setupWizardStore.showUsageTrackingModal=!1)})])]),body:r(()=>[n("div",M,[n("div",{class:"reset-description",innerHTML:o.strings.getImprovedFeatures},null,8,A),n("div",U,[t(p,{tag:"a",href:o.rootStore.aioseo.urls.aio.dashboard,type:"gray",size:"medium"},{default:r(()=>[m(e(o.strings.noThanks),1)]),_:1},8,["href"]),t(p,{type:"blue",size:"medium",loading:g.loading,onClick:l(_.processOptIn,["stop"])},{default:r(()=>[m(e(o.strings.yesCountMeIn),1)]),_:1},8,["loading","onClick"])])])]),_:1},8,["show"])])}const D=C(w,[["render",B]]);export{D as W};
