GeneralSettings.dec771f1.js
10.1 KB
import{a,m as l,c}from"./vuex.esm.8fdeb4b6.js";import{C as d}from"./Card.27307535.js";import{C as p}from"./GettingStarted.6a7a08b8.js";import{C as r}from"./SettingsRow.edbb3005.js";import{c as u}from"./WpTable.ee9185a7.js";import"./default-i18n.3a91e0e5.js";import"./constants.0d8c074c.js";import{n}from"./_plugin-vue2_normalizer.61652a7c.js";import"./index.ec9852b3.js";import"./SaveChanges.e40a9083.js";import{C as _}from"./Table.e3a46b6a.js";import{C as h}from"./Index.235069bb.js";import{S as m}from"./CheckSolid.731d2c48.js";import{p as $}from"./popup.b60b699f.js";import{S as g}from"./Rocket.dc643d1e.js";import"./Tooltip.68a8a92b.js";import"./_commonjsHelpers.f84db168.js";import"./Caret.19b10233.js";import"./index.3c70e00e.js";import"./client.e62d6c37.js";import"./translations.c394afe3.js";import"./helpers.de7566d0.js";import"./portal-vue.esm.98f2e05b.js";import"./Slide.15a07930.js";import"./Row.830f6397.js";import"./Book.9dd59972.js";import"./attachments.6af710f9.js";import"./cleanForSlug.51ef7354.js";import"./isArrayLikeObject.9b4b678d.js";import"./html.14f2a8b9.js";import"./Index.6dd703b2.js";import"./params.597cd0f5.js";const f={mixins:[u],components:{CoreWpTable:_,Cta:h,SvgCircleCheckSolid:m},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)}]}}};var v=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-settings-network-sites-activation"},[e("core-wp-table",{attrs:{columns:t.columns,rows:t.rows,totals:t.totals,filters:t.filters,"bulk-options":t.bulkOptions,"blur-rows":"","disable-table":""},scopedSlots:t._u([{key:"domain",fn:function({row:i}){return[e("span",[t._v(" "+t._s(i.domain)+" ")]),e("div",{staticClass:"row-actions"},[e("span",[e("a",{staticClass:"activate",attrs:{href:"#"}},[e("span",[t._v(t._s(t.strings.activate))])]),t._v(" | ")]),e("span",[e("a",{staticClass:"view-site",attrs:{href:"#",target:"_blank"}},[e("span",[t._v(t._s(t.strings.visitSite))])]),t._v(" | ")]),e("span",[e("a",{staticClass:"dashboard",attrs:{href:"#",target:"_blank"}},[e("span",[t._v(t._s(t.strings.dashboard))])])])])]}},{key:"activated",fn:function(){return[e("span",[e("svg-circle-check-solid")],1)]},proxy:!0},{key:"cta",fn:function(){return[e("cta",{attrs:{"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","home")},scopedSlots:t._u([{key:"header-text",fn:function(){return[t._v(" "+t._s(t.strings.ctaHeader)+" ")]},proxy:!0},{key:"description",fn:function(){return[t._v(" "+t._s(t.strings.networkDatabaseToolsDescription)+" ")]},proxy:!0}])})]},proxy:!0}])})],1)},y=[],k=n(f,v,y,!1,null,null,null,null);const o=k.exports;const b={components:{CoreSettingsRow:r},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:{...a(["loading"]),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:{...l(["getConnectUrl","processConnect"]),processGetConnectUrl(){this.$store.commit("loading",!0),this.getConnectUrl({key:this.licenseKey}).then(s=>{if(s.body.url){if(!s.body.popup)return this.$store.commit("loading",!1),window.open(s.body.url,"_blank");this.openPopup(s.body.url)}})},openPopup(s){$(s,"_self",600,630,!0,["file","token"],this.completedCallback,this.closedCallback)},completedCallback(s){return this.processConnect(s)},closedCallback(s){if(s)return window.location.reload();this.$store.commit("loading",!1)}}};var x=function(){var t=this,e=t._self._c;return e("core-settings-row",{attrs:{name:t.strings.licenseKey},scopedSlots:t._u([{key:"description",fn:function(){return[t._v(" "+t._s(t.strings.licenseKeyDescription)+" ")]},proxy:!0},{key:"content",fn:function(){return[e("div",{domProps:{innerHTML:t._s(t.noLicenseNeeded)}}),e("div",{staticClass:"license-cta-box"},[e("div",{domProps:{innerHTML:t._s(t.tooltipText)}}),e("span",{domProps:{innerHTML:t._s(t.moreToolTipText)}})]),e("div",{domProps:{innerHTML:t._s(t.alreadyPurchased)}}),e("form",{staticClass:"license-key"},[e("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"username",autocomplete:"username"}}),e("base-input",{attrs:{type:"password",placeholder:t.strings.placeholder,"append-icon":t.licenseKey?"circle-check":null,autocomplete:"new-password"},model:{value:t.licenseKey,callback:function(i){t.licenseKey=i},expression:"licenseKey"}}),e("base-button",{attrs:{type:"green",disabled:!t.licenseKey,loading:t.loading},on:{click:t.processGetConnectUrl}},[t._v(" "+t._s(t.strings.connect)+" ")])],1)]},proxy:!0}])})},w=[],T=n(b,x,w,!1,null,null,null,null);const C=T.exports;const S={components:{CoreCard:d,CoreGettingStarted:p,CoreSettingsRow:r,LiteSettingsNetworkSitesActivation:o,SettingsLicenseKey:C,SettingsNetworkSitesActivation:o,SvgRocket:g},data(){return{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:{...c(["settings","isUnlicensed"]),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)}}};var A=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-general-settings"},[t.settings.showSetupWizard&&t.$allowed("aioseo_setup_wizard")&&!t.$aioseo.data.isNetworkAdmin?e("core-getting-started"):t._e(),e("core-card",{attrs:{slug:"license","header-text":t.strings.license},scopedSlots:t._u([t.$isPro?null:{key:"tooltip",fn:function(){return[e("div",{domProps:{innerHTML:t._s(t.tooltipText)}}),e("br"),e("div",{staticClass:"more-tooltip-text",domProps:{innerHTML:t._s(t.moreToolTipText)}})]},proxy:!0}],null,!0)},[e("settings-license-key"),!t.settings.showSetupWizard&&t.$allowed("aioseo_setup_wizard")&&!t.$aioseo.data.isNetworkAdmin?e("core-settings-row",{attrs:{name:t.strings.setupWizard},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-button",{attrs:{type:"blue",size:"medium",tag:"a",href:t.$aioseo.urls.aio.wizard}},[e("svg-rocket"),t._v(" "+t._s(t.strings.relaunchSetupWizard)+" ")],1),e("p",{staticClass:"aioseo-description"},[t._v(t._s(t.strings.setupWizardText))])]},proxy:!0}],null,!1,2504899611)}):t._e()],1),t.$aioseo.data.isNetworkAdmin?e("core-card",{attrs:{slug:"domainActivations","header-text":t.strings.domainActivations}},[!t.isUnlicensed&&t.$license.hasCoreFeature("tools","network-tools-site-activation")?e("settings-network-sites-activation"):t._e(),t.isUnlicensed||!t.$license.hasCoreFeature("tools","network-tools-site-activation")?e("lite-settings-network-sites-activation"):t._e()],1):t._e()],1)},P=[],U=n(S,A,P,!1,null,null,null,null);const ct=U.exports;export{ct as default};