(window["aioseopjsonp"]=window["aioseopjsonp"]||[]).push([["search-appearance-pro-ImageSeoActivate-vue"],{"398d":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"aioseo-sa-image-seo"},[i("core-blur",[i("core-settings-row",{attrs:{name:t.strings.titleAttributeFormat},scopedSlots:t._u([{key:"content",fn:function(){return[i("core-html-tags-editor",{attrs:{"line-numbers":!1,single:"","default-tags":["image_title","separator_sa","site_title","alt_tag"]},scopedSlots:t._u([{key:"tags-description",fn:function(){return[t._v(" "+t._s(t.strings.clickToAddVariablesTitleTag)+" ")]},proxy:!0}])})]},proxy:!0}])}),i("core-settings-row",{attrs:{name:t.strings.stripPunctuationTitleAttribute,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[i("base-radio-toggle",{attrs:{value:!1,name:"stripTitlePunctuation",options:[{label:t.$constants.GLOBAL_STRINGS.disabled,value:!1,activeClass:"dark"},{label:t.$constants.GLOBAL_STRINGS.enabled,value:!0}]}})]},proxy:!0}])}),i("core-settings-row",{attrs:{name:t.strings.altTagAttributeFormat},scopedSlots:t._u([{key:"content",fn:function(){return[i("core-html-tags-editor",{attrs:{"line-numbers":!1,single:"","default-tags":["image_title","separator_sa","site_title","alt_tag"]},scopedSlots:t._u([{key:"tags-description",fn:function(){return[t._v(" "+t._s(t.strings.clickToAddVariablesAltTag)+" ")]},proxy:!0}])})]},proxy:!0}])}),i("core-settings-row",{attrs:{name:t.strings.stripPunctuationForAltAttribute,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[i("base-radio-toggle",{attrs:{value:!1,name:"stripAltPunctuation",options:[{label:t.$constants.GLOBAL_STRINGS.disabled,value:!1,activeClass:"dark"},{label:t.$constants.GLOBAL_STRINGS.enabled,value:!0}]}})]},proxy:!0}])})],1),i("cta",{attrs:{"cta-button-visible":t.$addons.userCanInstallOrActivate("aioseo-image-seo"),"cta-button-visible-warning":t.strings.permissionWarning,"cta-link":t.$aioseo.urls.aio.featureManager+"&aioseo-activate=aioseo-image-seo","same-tab":"","cta-button-action":"","cta-button-loading":t.activationLoading,"button-text":t.strings.ctaButtonText,"learn-more-link":t.$links.getDocUrl("imageSeo"),"feature-list":[t.strings.setTitleAttributes,t.strings.setAltTagAttributes,t.strings.stripPunctuationTitles,t.strings.stripPunctuationAltTags]},on:{"cta-button-click":t.activateAddon},scopedSlots:t._u([{key:"header-text",fn:function(){return[t._v(" "+t._s(t.strings.imageSeoHeader)+" ")]},proxy:!0},{key:"description",fn:function(){return[t.failed?i("core-alert",{attrs:{type:"red"}},[t._v(" "+t._s(t.strings.activateError)+" ")]):t._e(),t._v(" "+t._s(t.strings.ctaDescription)+" ")]},proxy:!0},{key:"learn-more-text",fn:function(){return[t._v(" "+t._s(t.strings.learnMoreText)+" ")]},proxy:!0}])})],1)},s=[],n=i("5530"),o=(i("7db0"),i("2f62")),r={data:function(){return{failed:!1,activationLoading:!1,strings:{imageSeoHeader:this.$t.__("Enable Advanced SEO for Images on your Site",this.$tdPro),titleAttributeFormat:this.$t.__("Title Attribute Format",this.$tdPro),stripPunctuationTitleAttribute:this.$t.__("Strip Punctuation for Title Attributes",this.$tdPro),clickToAddVariablesTitleTag:this.$t.__("Click on the tags below to insert variables into your title attribute.",this.$tdPro),altTagAttributeFormat:this.$t.__("Alt Tag Attribute Format",this.$tdPro),clickToAddVariablesAltTag:this.$t.__("Click on the tags below to insert variables into your alt tag attribute.",this.$tdPro),stripPunctuationForAltAttribute:this.$t.__("Strip Punctuation for Alt Attributes",this.$tdPro),ctaDescription:this.$t.__("The Image SEO module is a premium feature that enables you to globally control the Title Attribute and Alt Text for attachment pages and images that are embedded in your content. These can be set based on a specified format, similar to the Title Format settings in the Global Settings menu.",this.$tdPro),ctaButtonText:this.$t.__("Activate Image SEO",this.$tdPro),learnMoreText:this.$t.__("Learn more about Image SEO",this.$tdPro),setTitleAttributes:this.$t.__("Set title attributes",this.$td),setAltTagAttributes:this.$t.__("Set alt tag attributes",this.$td),stripPunctuationTitles:this.$t.__("Strip punctuation for titles",this.$td),stripPunctuationAltTags:this.$t.__("Strip punctuation for alt tags",this.$td),activateError:this.$t.__("An error occurred while activating the addon. Please upload it manually or contact support for more information.",this.$td),permissionWarning:this.$t.__("You currently don't have permission to activate this addon. Please ask a site administrator to activate first.",this.$td)}}},computed:Object(n["a"])({},Object(o["e"])(["addons","tags"])),methods:Object(n["a"])(Object(n["a"])(Object(n["a"])({},Object(o["b"])(["installPlugins","getTags"])),Object(o["d"])(["updateAddon"])),{},{activateAddon:function(){var t=this;this.failed=!1,this.activationLoading=!0;var e=this.addons.find((function(t){return"aioseo-image-seo"===t.sku}));this.installPlugins([{plugin:e.basename}]).then((function(i){if(i.body.failed.length)return t.activationLoading=!1,void(t.failed=!0);t.getTags().then((function(){t.activationLoading=!1,e.isActive=!0,t.updateAddon(e)}))})).catch((function(){t.activationLoading=!1}))}})},l=r,u=i("2877"),c=Object(u["a"])(l,a,s,!1,null,null,null);e["default"]=c.exports}}]);