import{e as B}from"./index.ByF2aI-G.js";import{C as E}from"./Blur.D3p3Plqi.js";import{b as I}from"./index.Olu2afa7.js";import{_ as w}from"./Caret.DMa7g0j7.js";import"./translations.Ur07Kmot.js";import{_ as C}from"./_plugin-vue_export-helper.BN1snXvA.js";import{a as L,_ as e}from"./default-i18n.DvLqo3S3.js";import{v as t,o as a,k as m,l as s,a as h,t as i,C as l,x as k,c as D,u as n,b as O}from"./runtime-dom.esm-bundler.DKw-RQqs.js";import{R as F}from"./RequiredPlans.Cd-RNSMK.js";import{C as U}from"./Card.Bqq4cvaT.js";import{C as V}from"./ProBadge.BJ3spTo5.js";import{C as A}from"./Index.BQLC1nYH.js";import{S as R}from"./Download.DJ55Etk5.js";import{C as $}from"./Cta.B3vFs82N.js";import{u as N}from"./AddonConditions.DhxW9qZc.js";import"./helpers.yjC6K_2A.js";import"./addons.C_QAj7aO.js";import"./upperFirst.BjBqmCj-.js";import"./_stringToArray.DnK4tKcY.js";import"./toString.Dc7QMRQR.js";import"./license.4E_gI5OR.js";import"./Tooltip.B0brI66q.js";import"./Slide.CdVEnD7S.js";import"./Row.D0941SYu.js";import"./constants.DfsCWbZk.js";const f="all-in-one-seo-pack",q={components:{BaseButton:w,BaseSelect:I,CoreBlur:E},data(){return{plugin:null,strings:{importOthersDescription:L(e("Choose a plugin to import Local SEO directly into %1$s.",f),"AIOSEO"),selectPlugin:e("Select a plugin...",f),import:e("Import",f),notInstalled:e("not installed",f)}}},computed:{plugins(){return[{value:"yoast-seo",label:"yoast-seo",canImport:!1,version:"1.0.0",$isDisabled:!1}]}}},T={class:"aioseo-section-description"},z={class:"import-plugin-label"},H={class:"plugin-label"};function M(x,c,b,S,o,_){const p=t("base-select"),d=t("base-button"),g=t("core-blur");return a(),m(g,null,{default:s(()=>[h("div",T,i(o.strings.importOthersDescription),1),l(p,{size:"medium",modelValue:o.plugin,"onUpdate:modelValue":c[0]||(c[0]=u=>o.plugin=u),options:_.plugins,placeholder:o.strings.selectPlugin},{option:s(({option:u})=>[h("div",z,[h("span",H,i(u.label),1)])]),_:1},8,["modelValue","options","placeholder"]),l(d,{type:"blue",size:"medium",class:"import"},{default:s(()=>[k(i(o.strings.import),1)]),_:1})]),_:1})}const Y=C(q,[["render",M]]),r="all-in-one-seo-pack",j={components:{SvgDownload:R,Blur:Y,Cta:A,CoreCard:U,CoreProBadge:V,RequiredPlans:F},data(){return{links:B,importSuccess:!1,importError:!1,options:{},plugin:null,loading:!1,strings:{importLocalSeoFromOtherPlugins:e("Import Local SEO From Other Plugins",r),ctaButtonText:e("Unlock Local SEO",r),ctaHeader:L(e("Local SEO is a %1$s Feature",r),"PRO"),ctaDescription:e("Import your Local SEO settings and locations from other plugins.",r)},features:[e("Yoast SEO",r),e("Rank Math SEO",r),e("SEOPress",r)]}},computed:{plugins(){return[{value:"yoast-seo",label:"yoast-seo",canImport:!1,version:"1.0.0",$isDisabled:!1}]}}};function G(x,c,b,S,o,_){const p=t("svg-download"),d=t("core-pro-badge"),g=t("blur"),u=t("required-plans"),P=t("cta"),v=t("core-card");return a(),m(v,{class:"aioseo-local-seo-import-others-lite",slug:"importOtherPluginsLocalSeo",toggles:!1,"no-slide":""},{"header-icon":s(()=>[l(p)]),header:s(()=>[h("span",null,i(o.strings.importLocalSeoFromOtherPlugins),1),l(d)]),default:s(()=>[l(g),l(P,{"cta-link":o.links.getPricingUrl("local-seo","local-seo-upsell","import"),"button-text":o.strings.ctaButtonText,"learn-more-link":o.links.getUpsellUrl("local-seo",null,"home"),"feature-list":o.features},{"header-text":s(()=>[k(i(o.strings.ctaHeader),1)]),description:s(()=>[l(u,{addon:"aioseo-local-business"}),k(" "+i(o.strings.ctaDescription),1)]),_:1},8,["cta-link","button-text","learn-more-link","feature-list"])]),_:1})}const y=C(j,[["render",G]]),Oo={__name:"Import",setup(x){const c="all-in-one-seo-pack",{shouldShowActivate:b,shouldShowLite:S,shouldShowMain:o,shouldShowUpdate:_}=N({addonSlug:"aioseo-local-business"}),p={importLocalSeoFromOtherPlugins:e("Import Local SEO From Other Plugins",c)};return(d,g)=>(a(),D("div",null,[n(o)?(a(),m(n(y),{key:0})):O("",!0),n(_)||n(b)?(a(),m(n($),{key:1,"card-slug":"localBusinessImport","header-text":p.importLocalSeoFromOtherPlugins},null,8,["header-text"])):O("",!0),n(S)?(a(),m(n(y),{key:2})):O("",!0)]))}};export{Oo as default};
