관리-도구
편집 파일: Seoboost.fdjejgrj.js
import{a as B,_ as v}from"./Caret.g6s6s7gs.js";import{_ as x,$ as A}from"./index.lqcu3hi3.js";import{l as f}from"./cleanForSlug.etvx808q.js";import"./translations.e22mvhfh.js";import{_ as i}from"./default-i18n.bz7purh4.js";import{w as I,o as r,c as u,F as L,a as l,u as t,x as g,t as a,b as _,C as E,l as O,k as C,G as U}from"./runtime-dom.esm-bundler.h3clfjuw.js";const W=""+window.__aioseoDynamicImportPreload__("svg/login.eeqk5aza.svg"),N=""+window.__aioseoDynamicImportPreload__("svg/icon-logo.jkbdu34l.svg"),T=["src"],z={class:"aioseo-seoboost-login__title"},V=l("br",null,null,-1),$={class:"aioseo-seoboost-login__description"},D=["src"],J={__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 n="all-in-one-seo-pack",d=x(),p=A(),e={title:i("Elevate your SEO with AIOSEO Writing Assistant",n),title2:i("Now Integrated into SEOBoost",n),description:i("Experience the power of AI-driven writing assistance seamlessly integrated into SEOBoost. Login to enhance your content creation process and boost your search rankings.",n),login:i("Login to SEOBoost",n)},o=b;I(()=>o.openLogin,s=>{s&&m()});const m=()=>{const s=d.seoBoost.loginUrl||p.seoBoost.loginUrl,c=450,y=580,h=window.innerWidth/2-c/2,S=window.innerHeight/2-y/2,k=`width=${c},height=${y},resizable=no,scrollbars=no,status=no,location=no,toolbar=no,menubar=no`;window.open(s,"_blank",k).moveBy(h,S),window.addEventListener("message",w=>{w.origin===window.location.origin&&w.data==="seoboost-authenticated"&&(d.setUserLoggedIn(!0),p.setUserLoggedIn(!0))})};return(s,c)=>(r(),u("div",{class:U(["aioseo-seoboost-login",{"aioseo-seoboost-login--button-only":o.buttonOnly}])},[o.buttonOnly?_("",!0):(r(),u(L,{key:0},[l("img",{src:t(f)(t(W))},null,8,T),l("div",z,[g(a(e.title)+" ",1),V,g(" "+a(e.title2),1)]),l("div",$,a(e.description),1)],64)),E(t(v),{type:o.buttonType,onClick:m,size:"medium"},{default:O(()=>[o.buttonIcons?(r(),u("img",{key:0,src:t(f)(t(N))},null,8,D)):_("",!0),g(" "+a(o.buttonText||e.login)+" ",1),o.buttonIcons?(r(),C(t(B),{key:1})):_("",!0)]),_:1},8,["type"])],2))}};export{J as _};