import{_ as v}from"./Button.b03184b6.js";import{S as x}from"./Caret.1dd03f59.js";import{aw as A,ax as I,Q as y}from"./app-core.82d0a9b8.js";import{_ as a}from"./vendor-other.2cdd5822.js";import{w as k,f as r,i as u,O as L,j as l,v as t,ae as g,U as c,M as p,a0 as O,R as E,Q as U,P as W}from"./vendor-vue-ui.02763c14.js";const C=""+window.__aioseoDynamicImportPreload__("svg/login.526bfa16.svg"),N=""+window.__aioseoDynamicImportPreload__("svg/icon-logo.9cba25ef.svg"),T=["src"],P={class:"aioseo-seoboost-login__title"},V={class:"aioseo-seoboost-login__description"},z=["src"],H={__name:"Seoboost",props:{buttonOnly:{type:Boolean,default:!1},buttonText:String,buttonType:{type:String,default:"blue"},buttonIcons:{type:Boolean,default:!0},openLogin:{type:Boolean,default:!1}},setup(b){const e="all-in-one-seo-pack",d=A(),_=I(),s={title:a("Elevate your SEO with AIOSEO Writing Assistant",e),title2:a("Now Integrated into SEOBoost",e),description:a("Experience the power of AI-driven writing assistance seamlessly integrated into SEOBoost. Login to enhance your content creation process and boost your search rankings.",e),login:a("Login to SEOBoost",e)},o=b;k(()=>o.openLogin,i=>{i&&m()});const m=()=>{const i=d.seoBoost.loginUrl||_.seoBoost.loginUrl,n=450,f=580,h=window.innerWidth/2-n/2,S=window.innerHeight/2-f/2,B=`width=${n},height=${f},resizable=no,scrollbars=no,status=no,location=no,toolbar=no,menubar=no`;window.open(i,"_blank",B).moveBy(h,S),window.addEventListener("message",w=>{w.origin===window.location.origin&&w.data==="seoboost-authenticated"&&(d.setUserLoggedIn(!0),_.setUserLoggedIn(!0))})};return(i,n)=>(r(),u("div",{class:W(["aioseo-seoboost-login",{"aioseo-seoboost-login--button-only":o.buttonOnly}])},[o.buttonOnly?p("",!0):(r(),u(L,{key:0},[l("img",{src:t(y)(t(C))},null,8,T),l("div",P,[g(c(s.title)+" ",1),n[0]||(n[0]=l("br",null,null,-1)),g(" "+c(s.title2),1)]),l("div",V,c(s.description),1)],64)),O(t(v),{type:o.buttonType,onClick:m,size:"medium"},{default:E(()=>[o.buttonIcons?(r(),u("img",{key:0,src:t(y)(t(N))},null,8,z)):p("",!0),g(" "+c(o.buttonText||s.login)+" ",1),o.buttonIcons?(r(),U(t(x),{key:1})):p("",!0)]),_:1},8,["type"])],2))}};export{H as _};
