Sid Gifari File Manager
🏠 Root
/
home
/
caldereriajp
/
www
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
dist
/
Lite
/
assets
/
js
/
Editing: GeneralSettings.58ad9b11.js
import{o as A,u as v,e as L,f as N}from"./links.96235554.js";import{l as P}from"./license.2537a586.js";import{a as U}from"./allowed.d054e5c0.js";import{C as O}from"./Card.02715b2c.js";import{C as z}from"./GettingStarted.77e5bbd8.js";import{C as w}from"./SettingsRow.5de01aba.js";import{r as o,o as c,c as S,e as l,w as n,a as e,t as a,g as d,d as _,b as g,Q as D}from"./vue.runtime.esm-bundler.a49acf4f.js";import{_ as f}from"./_plugin-vue_export-helper.bd508f36.js";import"./index.c885ab17.js";import{C as E}from"./Index.86dc50d3.js";import"./default-i18n.cc9dbff0.js";import"./constants.c7984802.js";import{N as H}from"./Network.7c9fa9d4.js";/* empty css */import{C as B}from"./Table.9ab1ff6b.js";import{S as K}from"./CheckSolid.1a68f627.js";import{p as M}from"./popup.b60b699f.js";import{S as W}from"./Rocket.c6e3a012.js";import"./isArrayLikeObject.3ade28da.js";import"./upperFirst.0bd33a97.js";import"./_stringToArray.4de3b1f3.js";import"./toString.d05e92a1.js";import"./Tooltip.c031cb66.js";import"./Caret.7f04b0aa.js";import"./Slide.f53bd663.js";import"./Row.85168b37.js";/* empty css */import"./Book.666e0177.js";/* empty css */import"./numbers.8fa607e7.js";import"./params.597cd0f5.js";const V={mixins:[H],components:{CoreWpTable:B,Cta:E,SvgCircleCheckSolid:K},data(){return{bulkOptions:[{label:this.$t.__("Activate License",this.$td),value:"activate-license"},{label:this.$t.__("Deactivate License",this.$td),value:"deactivate-license"}],strings:{activate:this.$t.__("Activate",this.$td),deactivate:this.$t.__("Deactivate",this.$td),visitSite:this.$t.__("Visit Site",this.$td),dashboard:this.$t.__("Dashboard",this.$td),ctaHeader:this.$t.sprintf(this.$t.__("This feature is not available in your current plan.",this.$td),"AIOSEO","Pro"),ctaButtonText:this.$t.__("Upgrade Your Plan and Unlock Network Tools",this.$td),networkDatabaseToolsDescription:this.$t.__("Unlock network-level tools to manage all your sites from one easy-to-use location. Manage your license key activations for each individual domain.",this.$td)}}},computed:{columns(){return[{slug:"domain",label:this.$t.__("Domain",this.$td)},{slug:"path",label:this.$t.__("Path",this.$td)},{slug:"primary_domain",label:this.$t.__("Alias Of",this.$td)},{slug:"activated",label:this.$t.__("Activated",this.$td),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:this.$t.__("All",this.$td)},{slug:"activated",name:this.$t.__("Activated",this.$td)},{slug:"deactivated",name:this.$t.__("Deactivated",this.$td)}]}}},G={class:"aioseo-settings-network-sites-activation"},R={class:"row-actions"},I={class:"activate",href:"#"},F={class:"view-site",href:"#",target:"_blank"},Y={class:"dashboard",href:"#",target:"_blank"};function j(s,$,k,r,t,i){const p=o("svg-circle-check-solid"),u=o("cta"),h=o("core-wp-table");return c(),S("div",G,[l(h,{columns:i.columns,rows:i.rows,totals:i.totals,filters:i.filters,"bulk-options":t.bulkOptions,"blur-rows":"","disable-table":""},{domain:n(({row:m})=>[e("span",null,a(m.domain),1),e("div",R,[e("span",null,[e("a",I,[e("span",null,a(t.strings.activate),1)]),d(" | ")]),e("span",null,[e("a",F,[e("span",null,a(t.strings.visitSite),1)]),d(" | ")]),e("span",null,[e("a",Y,[e("span",null,a(t.strings.dashboard),1)])])])]),activated:n(()=>[e("span",null,[l(p)])]),cta:n(()=>[l(u,{"cta-link":s.$links.getPricingUrl("network-tools","network-sites-activation"),"button-text":t.strings.ctaButtonText,"learn-more-link":s.$links.getUpsellUrl("network-tools","network-sites-activation","home")},{"header-text":n(()=>[d(a(t.strings.ctaHeader),1)]),description:n(()=>[d(a(t.strings.networkDatabaseToolsDescription),1)]),_:1},8,["cta-link","button-text","learn-more-link"])]),_:1},8,["columns","rows","totals","filters","bulk-options"])])}const b=f(V,[["render",j]]);const Q={setup(){return{connectStore:A(),rootStore:v()}},components:{CoreSettingsRow:w},data(){return{licenseKey:null,strings:{boldText:this.$t.sprintf("<strong>%1$s %2$s</strong>","AIOSEO","Lite"),purchasedBoldText:this.$t.sprintf("<strong>%1$s %2$s</strong>","AIOSEO","Pro"),linkText:this.$t.sprintf(this.$t.__("upgrading to %1$s",this.$td),"Pro"),moreBoldText:this.$t.sprintf("<strong>%1$s</strong>",this.$constants.DISCOUNT_PERCENTAGE+" "+this.$t.__("off",this.$td)),licenseKey:this.$t.__("License Key",this.$td),licenseKeyDescription:this.$t.__("Your license key provides access to updates and addons.",this.$td),placeholder:this.$t.__("Paste your license key here",this.$td),connect:this.$t.__("Connect",this.$td)}}},computed:{link(){return this.$t.sprintf('<strong><a href="%1$s" target="_blank">%2$s</a></strong>',this.$links.utmUrl("general-settings","license-box"),this.strings.linkText)},tooltipText(){return this.$t.sprintf(this.$t.__("To unlock more features, consider %1$s.",this.$td),this.link)},moreToolTipText(){return this.$t.sprintf(this.$t.__("As a valued user you receive %1$s, automatically applied at checkout!",this.$td),this.strings.moreBoldText)},noLicenseNeeded(){return this.$t.sprintf(this.$t.__("You're using %1$s - no license needed. Enjoy!",this.$td)+" 🙂",this.strings.boldText)},alreadyPurchased(){return this.$t.sprintf(this.$t.__("Already purchased? Simply enter your license key below to connect with %1$s!",this.$td),this.strings.purchasedBoldText)}},methods:{processGetConnectUrl(){this.rootStore.loading=!0,this.connectStore.getConnectUrl({key:this.licenseKey}).then(s=>{if(s.body.url){if(!s.body.popup)return this.rootStore.loading=!1,window.open(s.body.url,"_blank");this.openPopup(s.body.url)}})},openPopup(s){M(s,"_self",600,630,!0,["file","token"],this.completedCallback,this.closedCallback)},completedCallback(s){return this.connectStore.processConnect(s)},closedCallback(s){if(s)return window.location.reload();this.rootStore.loading=!1}}},q=["innerHTML"],J={class:"license-cta-box"},X=["innerHTML"],Z=["innerHTML"],tt=["innerHTML"],et={class:"license-key"},st=e("input",{type:"text",name:"username",autocomplete:"username",style:{display:"none"}},null,-1);function ot(s,$,k,r,t,i){const p=o("base-input"),u=o("base-button"),h=o("core-settings-row");return c(),_(h,{name:t.strings.licenseKey},{description:n(()=>[d(a(t.strings.licenseKeyDescription),1)]),content:n(()=>[e("div",{innerHTML:i.noLicenseNeeded},null,8,q),e("div",J,[e("div",{innerHTML:i.tooltipText},null,8,X),e("span",{innerHTML:i.moreToolTipText},null,8,Z)]),e("div",{innerHTML:i.alreadyPurchased},null,8,tt),e("form",et,[st,l(p,{type:"password",placeholder:t.strings.placeholder,"append-icon":t.licenseKey?"circle-check":null,autocomplete:"new-password",modelValue:t.licenseKey,"onUpdate:modelValue":$[0]||($[0]=m=>t.licenseKey=m)},null,8,["placeholder","append-icon","modelValue"]),l(u,{type:"green",disabled:!t.licenseKey,loading:r.rootStore.loading,onClick:i.processGetConnectUrl},{default:n(()=>[d(a(t.strings.connect),1)]),_:1},8,["disabled","loading","onClick"])])]),_:1},8,["name"])}const it=f(Q,[["render",ot]]);const nt={setup(){return{licenseStore:L(),rootStore:v(),settingsStore:N()}},components:{CoreCard:O,CoreGettingStarted:z,CoreSettingsRow:w,LiteSettingsNetworkSitesActivation:b,SettingsLicenseKey:it,SettingsNetworkSitesActivation:b,SvgRocket:W},data(){return{allowed:U,license:P,strings:{license:this.$t.__("License",this.$td),boldText:this.$t.sprintf("<strong>%1$s %2$s</strong>","All in One SEO",this.$t.__("Free",this.$td)),purchasedBoldText:this.$t.sprintf("<strong>%1$s %2$s</strong>","All in One SEO","Pro"),linkText:this.$t.sprintf(this.$t.__("upgrading to %1$s",this.$td),"Pro"),moreBoldText:this.$t.sprintf("<strong>%1$s</strong>",this.$constants.DISCOUNT_PERCENTAGE+" "+this.$t.__("off",this.$td)),setupWizard:this.$t.__("Setup Wizard",this.$td),relaunchSetupWizard:this.$t.__("Relaunch Setup Wizard",this.$td),setupWizardText:this.$t.sprintf(this.$t.__("Use our configuration wizard to properly set up %1$s with your WordPress website.",this.$td),"All in One SEO"),domainActivations:this.$t.__("Domain Activations",this.$td)}}},computed:{link(){return this.$t.sprintf('<strong><a href="%1$s" target="_blank">%2$s</a></strong>',this.$links.utmUrl("general-settings","license-box-tooltip"),this.strings.linkText)},tooltipText(){return this.$t.sprintf(this.$t.__("To unlock more features, consider %1$s.",this.$td),this.link)},moreToolTipText(){return this.$t.sprintf(this.$t.__("As a valued user you receive %1$s, automatically applied at checkout!",this.$td),this.strings.moreBoldText)}}},rt={class:"aioseo-general-settings"},at=["innerHTML"],lt=e("br",null,null,-1),ct=["innerHTML"],dt={class:"aioseo-description"};function _t(s,$,k,r,t,i){const p=o("core-getting-started"),u=o("settings-license-key"),h=o("svg-rocket"),m=o("base-button"),T=o("core-settings-row"),y=o("core-card"),x=o("settings-network-sites-activation"),C=o("lite-settings-network-sites-activation");return c(),S("div",rt,[r.settingsStore.settings.showSetupWizard&&t.allowed("aioseo_setup_wizard")&&!r.rootStore.aioseo.data.isNetworkAdmin?(c(),_(p,{key:0})):g("",!0),l(y,{slug:"license","header-text":t.strings.license},D({default:n(()=>[l(u),!r.settingsStore.settings.showSetupWizard&&t.allowed("aioseo_setup_wizard")&&!r.rootStore.aioseo.data.isNetworkAdmin?(c(),_(T,{key:0,name:t.strings.setupWizard},{content:n(()=>[l(m,{type:"blue",size:"medium",tag:"a",href:r.rootStore.aioseo.urls.aio.wizard},{default:n(()=>[l(h),d(" "+a(t.strings.relaunchSetupWizard),1)]),_:1},8,["href"]),e("p",dt,a(t.strings.setupWizardText),1)]),_:1},8,["name"])):g("",!0)]),_:2},[s.$isPro?void 0:{name:"tooltip",fn:n(()=>[e("div",{innerHTML:i.tooltipText},null,8,at),lt,e("div",{class:"more-tooltip-text",innerHTML:i.moreToolTipText},null,8,ct)]),key:"0"}]),1032,["header-text"]),r.rootStore.aioseo.data.isNetworkAdmin?(c(),_(y,{key:1,slug:"domainActivations","header-text":t.strings.domainActivations},{default:n(()=>[!r.licenseStore.isUnlicensed&&t.license.hasCoreFeature("tools","network-tools-site-activation")?(c(),_(x,{key:0})):g("",!0),r.licenseStore.isUnlicensed||!t.license.hasCoreFeature("tools","network-tools-site-activation")?(c(),_(C,{key:1})):g("",!0)]),_:1},8,["header-text"])):g("",!0)])}const Gt=f(nt,[["render",_t]]);export{Gt as default};
Save
Cancel