관리-도구
편집 파일: Index.c0a0a208.js
import{c as L,C as S,_ as m}from"./Caret.662da1f3.js";import{G as C,a as T}from"./Row.f01f32cd.js";import"./translations.12335a6a.js";import{D as A}from"./constants.2019bcb3.js";import{s as y,_ as k}from"./default-i18n.54b5d8cd.js";import{o as e,c as g,a as l,m as u,x as i,t as o,k as s,l as r,F as $,J as v,u as n,C as x,b as c,q as M,G as H}from"./runtime-dom.esm-bundler.6789c400.js";import{_ as V}from"./_plugin-vue_export-helper.249dac1d.js";const F={class:"type-1"},N={class:"header-text"},W={class:"description"},D={class:"actions"},O=["href"],P=["innerHTML"],E={__name:"1",props:{strings:Object,featureList:Array,ctaButtonVisible:Boolean,ctaButtonLoading:Boolean,ctaSecondButtonLoading:Boolean,ctaSecondButtonVisible:Boolean,ctaButtonVisibleWarning:String,ctaLink:String,ctaSecondLink:String,target:String,buttonText:String,secondButtonText:String,ctaButtonClick:Function,ctaSecondButtonClick:Function,ctaSecondButtonNewBadge:Boolean,showLink:Boolean,learnMoreLink:String,hideBonus:Boolean},setup(t){const a=y(k("%1$sBonus:%2$s You can upgrade to the %3$s plan today and %4$ssave %5$s off%6$s (discount auto-applied).","all-in-one-seo-pack"),"<strong>","</strong>","Pro","<strong>",A,"</strong>");return(f,B)=>(e(),g("div",F,[l("div",N,[u(f.$slots,"header-text",{},()=>[i(o(t.strings.ctaHeader),1)])]),l("div",W,[u(f.$slots,"description",{},()=>[i(o(t.strings.ctaDescription),1)])]),t.featureList?(e(),s(n(T),{key:0,class:"feature-list"},{default:r(()=>[(e(!0),g($,null,v(t.featureList,(b,w)=>(e(),s(n(C),{md:"6",key:w},{default:r(()=>[x(n(L)),i(" "+o(b),1)]),_:2},1024))),128))]),_:1})):c("",!0),!t.ctaButtonVisible&&t.ctaButtonVisibleWarning?(e(),s(n(S),{key:1,type:"yellow",innerHTML:t.ctaButtonVisibleWarning},null,8,["innerHTML"])):c("",!0),l("div",D,[t.ctaButtonVisible?(e(),s(n(m),{key:0,type:"green",tag:"a",href:t.ctaLink,target:t.target,onClick:t.ctaButtonClick,loading:t.ctaButtonLoading},{default:r(()=>[i(o(t.buttonText),1)]),_:1},8,["href","target","onClick","loading"])):c("",!0),t.ctaSecondButtonVisible?(e(),s(n(m),{key:1,type:"blue",tag:"a",href:t.ctaSecondLink,target:t.target,onClick:t.ctaSecondButtonClick,loading:t.ctaSecondButtonLoading,"new-badge":t.ctaSecondButtonNewBadge},{default:r(()=>[i(o(t.secondButtonText),1)]),_:1},8,["href","target","onClick","loading","new-badge"])):c("",!0),t.showLink?(e(),g("a",{key:2,class:"learn-more",href:t.learnMoreLink,target:"_blank"},[u(f.$slots,"learn-more-text",{},()=>[i(o(t.strings.learnMoreAllFeatures),1)])],8,O)):c("",!0)]),t.hideBonus?c("",!0):(e(),s(n(S),{key:2,class:"bonus-alert",type:"yellow"},{default:r(()=>[i(" 🎁 "),l("span",{innerHTML:n(a)},null,8,P)]),_:1}))]))}},q={class:"type-2"},G={class:"header-text"},j={class:"description"},R=l("br",null,null,-1),z=l("br",null,null,-1),U=["href"],I={class:"featured-image"},J={__name:"2",props:{strings:Object,featureList:Array,ctaButtonVisible:Boolean,ctaButtonLoading:Boolean,ctaButtonVisibleWarning:String,ctaLink:String,target:String,buttonText:String,ctaButtonClick:Function,showLink:Boolean,learnMoreLink:String},setup(t){return(d,a)=>(e(),g("div",q,[l("div",null,[l("div",G,[u(d.$slots,"header-text",{},()=>[i(o(t.strings.ctaHeader),1)])]),l("div",j,[u(d.$slots,"description",{},()=>[i(o(t.strings.ctaDescription),1)])]),t.featureList&&t.featureList.length<=5?(e(),s(n(T),{key:0,class:"feature-list"},{default:r(()=>[(e(!0),g($,null,v(t.featureList,(f,B)=>(e(),s(n(C),{md:"12",key:B},{default:r(()=>[x(n(L)),i(" "+o(f),1)]),_:2},1024))),128))]),_:1})):c("",!0),t.featureList&&t.featureList.length>5?(e(),s(n(T),{key:1,class:"feature-list"},{default:r(()=>[(e(!0),g($,null,v(t.featureList,(f,B)=>(e(),s(n(C),{md:"6",key:B},{default:r(()=>[x(n(L)),i(" "+o(f),1)]),_:2},1024))),128))]),_:1})):c("",!0),!t.ctaButtonVisible&&t.ctaButtonVisibleWarning?(e(),s(n(S),{key:2,type:"yellow",innerHTML:t.ctaButtonVisibleWarning},null,8,["innerHTML"])):c("",!0),t.ctaButtonVisible?(e(),s(n(m),{key:3,type:"green",tag:"a",href:t.ctaLink,target:t.target,onClick:t.ctaButtonClick,loading:t.ctaButtonLoading},{default:r(()=>[i(o(t.buttonText),1)]),_:1},8,["href","target","onClick","loading"])):c("",!0),R,z,t.showLink?(e(),g("a",{key:4,class:"learn-more",href:t.learnMoreLink,target:"_blank"},[u(d.$slots,"learn-more-text",{},()=>[i(o(t.strings.learnMoreAllFeatures),1)])],8,U)):c("",!0)]),l("div",I,[u(d.$slots,"featured-image")])]))}},Y={class:"type-3"},K={class:"sub-header"},Q={class:"header-text"},X={__name:"3",props:{strings:Object,featureList:Array,ctaButtonVisible:Boolean,ctaButtonLoading:Boolean,ctaButtonVisibleWarning:String,ctaLink:String,target:String,buttonText:String,ctaButtonClick:Function,showLink:Boolean,learnMoreLink:String},setup(t){return(d,a)=>(e(),g("div",Y,[l("div",K,o(t.strings.upgradeToPro),1),l("div",Q,[u(d.$slots,"header-text",{},()=>[i(o(t.strings.ctaHeader),1)])]),t.featureList?(e(),s(n(T),{key:0,class:"feature-list"},{default:r(()=>[(e(!0),g($,null,v(t.featureList,(f,B)=>(e(),s(n(C),{md:"6",key:B},{default:r(()=>[x(n(L)),i(" "+o(f),1)]),_:2},1024))),128))]),_:1})):c("",!0),!t.ctaButtonVisible&&t.ctaButtonVisibleWarning?(e(),s(n(S),{key:1,type:"yellow",innerHTML:t.ctaButtonVisibleWarning},null,8,["innerHTML"])):c("",!0),t.ctaButtonVisible?(e(),s(n(m),{key:2,type:"green",tag:"a",href:t.ctaLink,target:t.target,onClick:t.ctaButtonClick,loading:t.ctaButtonLoading,size:"medium"},{default:r(()=>[i(o(t.buttonText),1)]),_:1},8,["href","target","onClick","loading"])):c("",!0),t.showLink?(e(),s(n(m),{key:3,type:"gray",tag:"a",href:t.learnMoreLink,target:"_blank",size:"medium"},{default:r(()=>[u(d.$slots,"learn-more-text",{},()=>[i(o(t.strings.seeAllFeatures),1)])]),_:3},8,["href"])):c("",!0)]))}},Z={class:"type-4"},_={class:"header-text"},p={class:"description"},tt={__name:"4",props:{strings:Object},setup(t){return(d,a)=>(e(),g("div",Z,[l("div",_,[u(d.$slots,"header-text",{},()=>[i(o(t.strings.ctaHeader),1)])]),l("div",p,[u(d.$slots,"description",{},()=>[i(o(t.strings.ctaDescription),1)])])]))}},et={};function nt(t,d){return e(),g("div")}const at=V(et,[["render",nt]]),h="all-in-one-seo-pack",it={emits:["cta-button-click","cta-second-button-click"],components:{Type1:E,Type2:J,Type3:X,Type4:tt,Type5:at},props:{type:{type:Number,default(){return 1},validator(t){return[1,2,3,4,5].includes(t)}},featureList:Array,sameTab:Boolean,ctaButtonAction:Boolean,ctaSecondButtonAction:Boolean,ctaButtonLoading:Boolean,ctaLink:{type:String,required:!1},learnMoreLink:{type:String,required:!1},buttonText:{type:String,required:!1},secondButtonText:{type:String,required:!1},floating:{type:Boolean,default(){return!0}},showLink:{type:Boolean,default(){return!0}},ctaButtonVisible:{type:Boolean,default(){return!0}},ctaButtonVisibleWarning:String,ctaSecondButtonVisible:{type:Boolean,default(){return!1}},ctaSecondButtonNewBadge:Boolean,alignTop:{type:Boolean,default(){return!1}},hideBonus:Boolean},data(){return{target:"_blank",strings:{upgradeToPro:y(k("Upgrade to %1$s",h),"Pro"),ctaHeader:y(k("This is a %1$s Feature",h),"PRO"),ctaDescription:y(k("%1$s %2$s comes with many additional features to help take your site's SEO to the next level!",h),"AIOSEO","Pro"),learnMoreAllFeatures:k("Learn more about all features",h),seeAllFeatures:k("See all features",h)}}},computed:{getCtaComponent(){return`Type${this.type}`}},methods:{ctaButtonClick(t){this.ctaButtonAction&&(t.preventDefault(),this.$emit("cta-button-click"))},ctaSecondButtonClick(t){this.ctaSecondButtonAction&&(t.preventDefault(),this.$emit("cta-second-button-click"))}},mounted(){this.sameTab&&(this.target="_self")}},ot={class:"aioseo-cta-background"};function st(t,d,a,f,B,b){return e(),g("div",{class:H(["aioseo-cta",{floating:a.floating,"align-top":a.alignTop}])},[l("div",ot,[(e(),s(M(b.getCtaComponent),{strings:B.strings,"feature-list":a.featureList,"cta-button-visible":a.ctaButtonVisible,"cta-second-button-visible":a.ctaSecondButtonVisible,"cta-button-loading":a.ctaButtonLoading,"cta-button-visible-warning":a.ctaButtonVisibleWarning,"cta-link":a.ctaLink,target:B.target,"button-text":a.buttonText,"second-button-text":a.secondButtonText,"cta-button-click":b.ctaButtonClick,"cta-second-button-click":b.ctaSecondButtonClick,"cta-second-button-new-badge":a.ctaSecondButtonNewBadge,"show-link":a.showLink,"learn-more-link":a.learnMoreLink,"hide-bonus":a.hideBonus},{"header-text":r(()=>[u(t.$slots,"header-text")]),description:r(()=>[u(t.$slots,"description")]),"learn-more-text":r(()=>[u(t.$slots,"learn-more-text")]),"featured-image":r(()=>[u(t.$slots,"featured-image")]),_:3},8,["strings","feature-list","cta-button-visible","cta-second-button-visible","cta-button-loading","cta-button-visible-warning","cta-link","target","button-text","second-button-text","cta-button-click","cta-second-button-click","cta-second-button-new-badge","show-link","learn-more-link","hide-bonus"]))])],2)}const Bt=V(it,[["render",st]]);export{Bt as C};