관리-도구
편집 파일: GeneralSettings.kbfnyv11.js
import{D as P}from"./constants.fxxegv78.js";import{u as T,e as x,v as B,i as M,g as N}from"./index.nsvc8vqf.js";import{l as K}from"./license.bcd45a0t.js";import{a as W}from"./allowed.kmy7i7t2.js";import{C as E}from"./Card.n68aovsj.js";import{C as R}from"./GettingStarted.kk7od6ii.js";import{C as U}from"./SettingsRow.1l1umqn0.js";import{C as V}from"./Table.jd7cflkg.js";import{C as G}from"./Index.lvccx76i.js";import{S as $}from"./CheckSolid.ktze41sq.js";import{R as F}from"./RequiredPlans.e7ak5151.js";import"./translations.lf9cwm9a.js";import{_ as C}from"./_plugin-vue_export-helper.oebm7xum.js";import{_ as e,a as n}from"./default-i18n.hohxoesu.js";import{v as i,o as _,c as z,C as m,l as c,a as o,t as p,x as g,k as h,b as y,$ as q}from"./runtime-dom.esm-bundler.h3clfjuw.js";import{p as I}from"./popup.by9shv56.js";import{S as Y}from"./Rocket.b6uwphz5.js";import"./helpers.fdpg7vgg.js";import"./upperFirst.mzmrvvb6.js";import"./_stringToArray.mpukyt2g.js";import"./toString.g0kcp64r.js";import"./Tooltip.jx4casvt.js";import"./Caret.hnvbzqgq.js";import"./index.h076fivy.js";import"./Slide.dop8j51m.js";import"./Row.o0q8mn7y.js";import"./Book.f6lktglp.js";import"./numbers.busvl4mt.js";import"./addons.foby19s7.js";import"./params.k8e95b6q.js";const s="all-in-one-seo-pack",j={setup(){return{rootStore:T()}},components:{RequiredPlans:F,CoreWpTable:V,Cta:G,SvgCircleCheckSolid:$},data(){return{links:x,bulkOptions:[{label:e("Activate License",s),value:"activate-license"},{label:e("Deactivate License",s),value:"deactivate-license"}],strings:{activate:e("Activate",s),deactivate:e("Deactivate",s),visitSite:e("Visit Site",s),dashboard:e("Dashboard",s),ctaHeader:n(e("Domain Activations is an %1$s Feature",s),"Elite"),ctaButtonText:e("Unlock Domain Activations",s),networkDatabaseToolsDescription:e("Unlock network-level tools to manage all your sites from one easy-to-use location. Manage your license key activations for each individual domain.",s)}}},computed:{columns(){return[{slug:"domain",label:e("Domain",s)},{slug:"path",label:e("Path",s)},{slug:"primary_domain",label:e("Alias Of",s)},{slug:"activated",label:e("Activated",s),width:"90px"}]},rows(){return[{blog_id:1,path:"/",domain:"aioseo.com"},{blog_id:2,path:"/",domain:"wpbeginner.com"},{blog_id:3,path:"/",domain:"wpforms.com"},{blog_id:4,path:"/",domain:"optinmonster.com"},{blog_id:5,path:"/",domain:"monsterinsights.com"},{blog_id:8,path:"/",domain:"seedprod.com"},{blog_id:10,path:"/",domain:"easydigitaldownloads.com"}]},totals(){return{total:this.rows.length,pages:1,page:1}},filters(){return[{slug:"all",name:e("All",s)},{slug:"activated",name:e("Activated",s)},{slug:"deactivated",name:e("Deactivated",s)}]}}},J={class:"aioseo-settings-network-sites-activation"},Q={class:"row-actions"},X={class:"activate",href:"#"},Z={class:"view-site",href:"#",target:"_blank"},ee={class:"dashboard",href:"#",target:"_blank"};function te(r,w,A,a,t,l){const k=i("svg-circle-check-solid"),f=i("required-plans"),b=i("cta"),v=i("core-wp-table");return _(),z("div",J,[m(v,{columns:l.columns,rows:l.rows,totals:l.totals,filters:l.filters,"bulk-options":t.bulkOptions,"blur-rows":"","disable-table":""},{domain:c(({row:S})=>[o("span",null,p(S.domain),1),o("div",Q,[o("span",null,[o("a",X,[o("span",null,p(t.strings.activate),1)]),g(" | ")]),o("span",null,[o("a",Z,[o("span",null,p(t.strings.visitSite),1)]),g(" | ")]),o("span",null,[o("a",ee,[o("span",null,p(t.strings.dashboard),1)])])])]),activated:c(()=>[o("span",null,[m(k)])]),cta:c(()=>[m(b,{"cta-link":t.links.getPricingUrl("network-tools","network-sites-activation"),"button-text":t.strings.ctaButtonText,"learn-more-link":t.links.getUpsellUrl("network-tools","network-sites-activation",a.rootStore.isPro?"pricing":"liteUpgrade")},{"header-text":c(()=>[g(p(t.strings.ctaHeader),1)]),description:c(()=>[m(f,{"core-feature":["tools","network-tools-site-activation"]}),g(" "+p(t.strings.networkDatabaseToolsDescription),1)]),_:1},8,["cta-link","button-text","learn-more-link"])]),_:1},8,["columns","rows","totals","filters","bulk-options"])])}const D=C(j,[["render",te]]),d="all-in-one-seo-pack",oe={setup(){return{connectStore:B(),rootStore:T()}},components:{CoreSettingsRow:U},data(){return{licenseKey:null,strings:{boldText:n("<strong>%1$s %2$s</strong>","AIOSEO","Lite"),purchasedBoldText:n("<strong>%1$s %2$s</strong>","AIOSEO","Pro"),linkText:n(e("upgrading to %1$s",d),"Pro"),moreBoldText:n("<strong>%1$s</strong>",P+" "+e("off",d)),licenseKey:e("License Key",d),licenseKeyDescription:e("Your license key provides access to updates and addons.",d),placeholder:e("Paste your license key here",d),connect:e("Connect",d)}}},computed:{link(){return n('<strong><a href="%1$s" target="_blank">%2$s</a></strong>',x.utmUrl("general-settings","license-box"),this.strings.linkText)},tooltipText(){return n(e("To unlock more features, consider %1$s.",d),this.link)},moreToolTipText(){return n(e("As a valued user you receive %1$s, automatically applied at checkout!",d),this.strings.moreBoldText)},noLicenseNeeded(){return n(e("You're using %1$s - no license needed. Enjoy!",d)+" 🙂",this.strings.boldText)},alreadyPurchased(){return n(e("Already purchased? Simply enter your license key below to connect with %1$s!",d),this.strings.purchasedBoldText)}},methods:{processGetConnectUrl(){this.rootStore.loading=!0,this.connectStore.getConnectUrl({key:this.licenseKey}).then(r=>{if(r.body.url){if(!r.body.popup)return this.rootStore.loading=!1,window.open(r.body.url,"_blank");this.openPopup(r.body.url)}})},openPopup(r){I(r,"_self",600,630,!0,["file","token"],this.completedCallback,this.closedCallback)},completedCallback(r){return this.connectStore.processConnect(r)},closedCallback(r){if(r)return window.location.reload();this.rootStore.loading=!1}}},ne=["innerHTML"],se={class:"license-cta-box"},ie=["innerHTML"],re=["innerHTML"],ae=["innerHTML"],le={class:"license-key"},ce=o("input",{type:"text",name:"username",autocomplete:"username",style:{display:"none"}},null,-1);function de(r,w,A,a,t,l){const k=i("base-input"),f=i("base-button"),b=i("core-settings-row");return _(),h(b,{name:t.strings.licenseKey},{description:c(()=>[g(p(t.strings.licenseKeyDescription),1)]),content:c(()=>[o("div",{innerHTML:l.noLicenseNeeded},null,8,ne),o("div",se,[o("div",{innerHTML:l.tooltipText},null,8,ie),o("span",{innerHTML:l.moreToolTipText},null,8,re)]),o("div",{innerHTML:l.alreadyPurchased},null,8,ae),o("form",le,[ce,m(k,{type:"password",placeholder:t.strings.placeholder,"append-icon":t.licenseKey?"circle-check":null,autocomplete:"new-password",modelValue:t.licenseKey,"onUpdate:modelValue":w[0]||(w[0]=v=>t.licenseKey=v)},null,8,["placeholder","append-icon","modelValue"]),m(f,{type:"green",disabled:!t.licenseKey,loading:a.rootStore.loading,onClick:l.processGetConnectUrl},{default:c(()=>[g(p(t.strings.connect),1)]),_:1},8,["disabled","loading","onClick"])])]),_:1},8,["name"])}const ue=C(oe,[["render",de]]),u="all-in-one-seo-pack",pe={setup(){return{licenseStore:M(),rootStore:T(),settingsStore:N()}},components:{CoreCard:E,CoreGettingStarted:R,CoreSettingsRow:U,LiteSettingsNetworkSitesActivation:D,SettingsLicenseKey:ue,SettingsNetworkSitesActivation:D,SvgRocket:Y},data(){return{allowed:W,license:K,strings:{license:e("License",u),boldText:n("<strong>%1$s %2$s</strong>","All in One SEO",e("Free",u)),purchasedBoldText:n("<strong>%1$s %2$s</strong>","All in One SEO","Pro"),linkText:n(e("upgrading to %1$s",u),"Pro"),moreBoldText:n("<strong>%1$s</strong>",P+" "+e("off",u)),setupWizard:e("Setup Wizard",u),relaunchSetupWizard:e("Relaunch Setup Wizard",u),setupWizardText:n(e("Use our configuration wizard to properly set up %1$s with your WordPress website.",u),"All in One SEO"),domainActivations:e("Domain Activations",u)}}},computed:{link(){return n('<strong><a href="%1$s" target="_blank">%2$s</a></strong>',x.utmUrl("general-settings","license-box-tooltip"),this.strings.linkText)},tooltipText(){return n(e("To unlock more features, consider %1$s.",u),this.link)},moreToolTipText(){return n(e("As a valued user you receive %1$s, automatically applied at checkout!",u),this.strings.moreBoldText)}}},me={class:"aioseo-general-settings"},_e=["innerHTML"],ge=o("br",null,null,-1),he=["innerHTML"],ke={class:"aioseo-description"};function fe(r,w,A,a,t,l){const k=i("core-getting-started"),f=i("settings-license-key"),b=i("svg-rocket"),v=i("base-button"),S=i("core-settings-row"),L=i("core-card"),H=i("settings-network-sites-activation"),O=i("lite-settings-network-sites-activation");return _(),z("div",me,[a.settingsStore.settings.showSetupWizard&&t.allowed("aioseo_setup_wizard")&&!a.rootStore.aioseo.data.isNetworkAdmin?(_(),h(k,{key:0})):y("",!0),m(L,{slug:"license","header-text":t.strings.license},q({default:c(()=>[m(f),!a.settingsStore.settings.showSetupWizard&&t.allowed("aioseo_setup_wizard")&&!a.rootStore.aioseo.data.isNetworkAdmin?(_(),h(S,{key:0,name:t.strings.setupWizard},{content:c(()=>[m(v,{type:"blue",size:"medium",tag:"a",href:a.rootStore.aioseo.urls.aio.wizard},{default:c(()=>[m(b),g(" "+p(t.strings.relaunchSetupWizard),1)]),_:1},8,["href"]),o("p",ke,p(t.strings.setupWizardText),1)]),_:1},8,["name"])):y("",!0)]),_:2},[a.rootStore.isPro?void 0:{name:"tooltip",fn:c(()=>[o("div",{innerHTML:l.tooltipText},null,8,_e),ge,o("div",{class:"more-tooltip-text",innerHTML:l.moreToolTipText},null,8,he)]),key:"0"}]),1032,["header-text"]),a.rootStore.aioseo.data.isNetworkAdmin?(_(),h(L,{key:1,slug:"domainActivations","header-text":t.strings.domainActivations},{default:c(()=>[!a.licenseStore.isUnlicensed&&t.license.hasCoreFeature("tools","network-tools-site-activation")?(_(),h(H,{key:0})):y("",!0),a.licenseStore.isUnlicensed||!t.license.hasCoreFeature("tools","network-tools-site-activation")?(_(),h(O,{key:1})):y("",!0)]),_:1},8,["header-text"])):y("",!0)])}const je=C(pe,[["render",fe]]);export{je as default};