Files
2026-04-28 15:13:50 +02:00

2 lines
25 KiB
JavaScript

import{G as E,q as Y,d as G,a5 as J,a as M,j as X,w as Z,b as $}from"./app-core.ae890a3f.js";import{u as F}from"./AddonConditions.d0b4b606.js";import{u as ee}from"./PostTypes.bcb4ad24.js";import{T as te,A as ae}from"./TitleDescription.a4494bf1.js";import{B as N}from"./RadioToggle.de933e45.js";import{C as oe}from"./Card.c7ceb11b.js";import{C as se}from"./Tabs.b5aef6dd.js";import{C as ie}from"./ProBadge.fd60f711.js";import{C as K}from"./SettingsRow.0c329e43.js";import{B as W}from"./Checkbox.79be52ca.js";import{C as ne}from"./Blur.5e231db6.js";import{C as H}from"./HtmlTagsEditor.f64ea7dd.js";import{G as z,a as j}from"./Row.6337df55.js";import{_ as R}from"./_plugin-vue_export-helper.eefbdd86.js";import{aq as g,f as c,Q as h,R as n,j as u,a0 as l,M as S,ae as A,U as d,i as T,O as D,ad as O,v as w,S as q,u as re,aD as le,a4 as ce,P as ue}from"./vendor-vue-ui.de3ab35f.js";import{_ as e,a as _}from"./vendor-other.7b559694.js";import{S as de,C as me}from"./Schema.c56f9079.js";import{B as pe}from"./Textarea.916c7d34.js";import{C as ge}from"./ExcludePosts.652191da.js";import{C as he}from"./Tooltip.ae7a1028.js";import{R as _e}from"./RequiredPlans.c6bcf6ea.js";import{C as be}from"./Index.43bf246d.js";import"./vendor-lodash.8e35bd59.js";import"./Index.52399193.js";import"./Close.098d4b76.js";import"./JsonValues.a0694556.js";import"./RobotsMeta.08a30229.js";import"./GoogleSearchPreview.b664169f.js";import"./Caret.a017b70a.js";import"./Url.bb132bc9.js";import"./Trash.d35f8063.js";import"./Slide.e6618126.js";import"./Button.a549093d.js";import"./Information.278772ab.js";import"./Checkmark.fac3f231.js";import"./Editor.10fec9a8.js";import"./vendor-quill.fa67f709.js";import"./Input.8918dec2.js";import"./Pencil.405b16d2.js";import"./Plus.97dee933.js";import"./UnfilteredHtml.8040f29d.js";import"./vendor-emoji.92c96208.js";import"./Select.32af2da8.js";import"./AddPlus.863a7e44.js";import"./External.94d285ce.js";const p="all-in-one-seo-pack",Se={components:{BaseCheckbox:W,BaseRadioToggle:N,CoreBlur:ne,CoreHtmlTagsEditor:H,CoreSettingsRow:K,GridColumn:j,GridRow:z},props:{activeTab:Object},data(){return{GLOBAL_STRINGS:E,stripPunctuationSettings:[{value:"dashes",label:e("Dashes (-)",p)},{value:"underscores",label:e("Underscores (_)",p)},{value:"numbers",label:e("Numbers (0-9)",p)},{value:"plus",label:e("Plus (+)",p)},{value:"apostrophe",label:e("Apostrophe (')",p)},{value:"pound",label:e("Pound (#)",p)},{value:"ampersand",label:e("Ampersand (&)",p)}],strings:{attributeFormat:_(e("%1$s Format",p),e("Title",p)),clickToAddTags:_(e("Click on the tags below to insert variables into your %1$s attribute.",p),e("Title",p).toLowerCase()),stripPunctuation:e("Strip Punctuation",p),punctuationCharactersToKeep:e("Punctuation Characters to Keep:",p),casing:e("Casing",p),casingDescription:e("Choose which casing should be applied to the attribute.",p),wordsToStrip:e("Words to Strip",p),autogenerate:_(e("Autogenerate %1$s on Upload",p),e("Title",p))},tags:{title:{context:"imageSeoTitle",default:["image_title","separator_sa","site_title"]},altTag:{context:"imageSeoAlt",default:["alt_tag","separator_sa","site_title"]},caption:{context:"imageSeoCaption",default:["attachment_caption","separator_sa","site_title"]},description:{context:"imageSeoDescription",default:["attachment_description","separator_sa","site_title"]}},casings:{lowerCase:{label:e("Lower Case",p),description:e("All letters are converted to lower case (small) letters.",p)},titleCase:{label:e("Title Case",p),description:e("Major words are capitalized and minor words remain in their original casing.",p)},sentenceCase:{label:e("Sentence Case",p),description:e("The first word of each sentence starts with a capital.",p)}}}}},ve={class:"aioseo-sa-image-seo"},fe={class:"global-robots-settings aioseo-description"},Te={class:"aioseo-description"},Ce={class:"casing-options"};function ye(m,i,v,a,t,o){const C=g("base-radio-toggle"),b=g("core-settings-row"),L=g("core-html-tags-editor"),x=g("base-checkbox"),I=g("grid-column"),V=g("grid-row"),P=g("core-blur");return c(),h(P,null,{default:n(()=>[u("div",ve,[["caption","description"].includes("title")?(c(),h(b,{key:0,name:t.strings.autogenerate,align:""},{content:n(()=>[l(C,{name:"autogenerate",options:[{label:t.GLOBAL_STRINGS.disabled,value:!1,activeClass:"dark"},{label:t.GLOBAL_STRINGS.enabled,value:!0}]},null,8,["options"])]),_:1},8,["name"])):S("",!0),l(b,{name:t.strings.attributeFormat},{content:n(()=>[l(L,{"line-numbers":!1,single:"","tags-context":t.tags.title.context,"default-tags":t.tags.title.default},{"tags-description":n(()=>[A(d(t.strings.clickToAddTags),1)]),_:1},8,["tags-context","default-tags"])]),_:1},8,["name"]),l(b,{name:t.strings.stripPunctuation,align:""},{content:n(()=>[l(C,{name:"stripPunctuation",options:[{label:t.GLOBAL_STRINGS.disabled,value:!1,activeClass:"dark"},{label:t.GLOBAL_STRINGS.enabled,value:!0}]},null,8,["options"]),u("div",fe,[u("strong",null,d(t.strings.punctuationCharactersToKeep),1),l(V,{class:"settings"},{default:n(()=>[(c(!0),T(D,null,O(t.stripPunctuationSettings,(k,y)=>(c(),h(I,{key:y,xl:"3",md:"4",sm:"6"},{default:n(()=>[l(x,{size:"medium"},{default:n(()=>[A(d(k.label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})])]),_:1},8,["name"]),l(b,{name:t.strings.casing,align:""},{content:n(()=>[l(C,{name:"casing",options:[{label:t.GLOBAL_STRINGS.disabled,value:"",activeClass:"dark"},{label:t.casings.lowerCase.label,value:"lower"},{label:t.casings.titleCase.label,value:"title"},{label:t.casings.sentenceCase.label,value:"sentence"}]},null,8,["options"]),u("div",Te,[u("span",null,d(t.strings.casingDescription),1),i[0]||(i[0]=u("br",null,null,-1)),u("ul",Ce,[(c(!0),T(D,null,O(t.casings,(k,y)=>(c(),T("li",{key:y},[u("span",null,d(k.label),1),u("span",null,d(k.description),1)]))),128))])])]),_:1},8,["name"])])]),_:1})}const Q=R(Se,[["render",ye]]),Ae={class:"aioseo-sa-image-seo"},we={__name:"Cta",setup(m){const i="aioseo-pro",v=Y(),{ctaComponent:a,shouldShowUpdate:t}=F({addonSlug:"aioseo-image-seo"}),o={imageSeoHeader:e("Enable Image SEO on Your Site",i),ctaDescription:e("The Image SEO module is a premium feature that enables you to globally control the title, alt tag, caption, description and filename of the images on your site.",i),learnMoreText:e("Learn more about Image SEO",i),features:[e("Autogenerate image attributes",i),e("Clean uploaded image filenames",i),e("Strip punctuation from image attributes",i),e("Convert casing of image attributes",i)]},C=re(()=>t.value?e("Update Image SEO",i):e("Activate Image SEO",i));return(b,L)=>(c(),T("div",Ae,[l(w(Q)),(c(),h(q(w(a)),{"addon-slug":"aioseo-image-seo","cta-header":o.imageSeoHeader,"cta-description":o.ctaDescription,"cta-button-text":C.value,"learn-more-text":o.learnMoreText,"learn-more-link":w(G).getDocUrl("imageSeo"),"feature-list":o.features,"post-activation-promises":[w(v).getTags]},null,8,["cta-header","cta-description","cta-button-text","learn-more-text","learn-more-link","feature-list","post-activation-promises"]))]))}},s="aioseo-pro",xe={setup(){const{getFeatureCost:m}=J();return{getFeatureCost:m,optionsStore:M(),GLOBAL_STRINGS:E,links:G}},components:{BaseCheckbox:W,BaseRadioToggle:N,BaseTextarea:pe,CoreExcludePosts:ge,CoreHtmlTagsEditor:H,CoreSettingsRow:K,CoreTooltip:he,GridColumn:j,GridRow:z},props:{activeTab:Object},data(){return{strings:{attributeFormat:_(e("%1$s Format",s),this.activeTab.name),clickToAddTags:_(e("Click on the tags below to insert variables into your %1$s attribute.",s),this.activeTab.name.toLowerCase()),stripPunctuation:e("Strip Punctuation",s),charactersToKeep:e("Characters to Exclude from Being Stripped:",s),charactersToConvert:e("Characters to Convert to Spaces:",s),casing:e("Casing",s),casingDescription:e("Choose which casing should be applied to the attribute.",s),wordsToStrip:e("Words to Strip",s),wordsToStripDescription:e("Here you can add words that should be stripped from the filename, separated by a new line.",s),excludePostsPages:e("Exclude Posts / Pages",s),excludeTerms:e("Exclude Terms",s),excludeTermsDescription:e("Any posts that are assigned to these terms will also be excluded.",s),autogenerate:_(e("Autogenerate %1$s on Upload",s),this.activeTab.name),autogenerateAltWithAi:e("Autogenerate Alt Text with AI",s),autogenerateDescriptions:{caption:_(e("Choose whether %1$s should automatically generate a %2$s when new images are uploaded. If you disable this setting, you can still generate %3$s in the Media Library via our bulk action.",s),"AIOSEO",e("caption",s),e("captions",s)),description:_(e("Choose whether %1$s should automatically generate a %2$s when new images are uploaded. If you disable this setting, you can still generate %3$s in the Media Library via our bulk action.",s),"AIOSEO",e("description",s),e("descriptions",s))},attributeDescriptions:{title:{first:e("The title attribute is used to provide additional information about an image and can be viewed when you hover over the image.",s),second:_(e("Below you can control how your %1$s look like by setting a format (similar to the SEO title/description formats), stripping punctuation and converting the casing.",s),e("title attributes",s))},altTag:{first:e("The alt tag attribute is used to display text that describes the image if it cannot be rendered by the browser. Its primary goal is to make images more accessible to visually impaired users, but it also used as a ranking factor by search engines.",s),second:_(e("Below you can control how your %1$s look like by setting a format (similar to the SEO title/description formats), stripping punctuation and converting the casing.",s),e("alt tag attributes",s))},caption:{first:e("The caption is usually a few lines of text that are displayed underneath an image to provide more context or explain what can be seen in the picture.",s),second:_(e("Below you can control how your %1$s look like by setting a format (similar to the SEO title/description formats), stripping punctuation and converting the casing.",s),e("image captions",s))},description:{first:e("The description is the text that is displayed on an image's attachment page",s),second:_(e("Below you can control how your %1$s look like by setting a format (similar to the SEO title/description formats), stripping punctuation and converting the casing.",s),e("attachment page descriptions",s))},filename:{first:e("The filename is name of the image file when it is uploaded to the Media Library. The more descriptive and relevant the filename is, the more likely search engines will include in their results.",s),second:_(e("Below you can control how your %1$s look like by stripping punctuation, specific words and converting the casing.",s),e("filenames",s))}}},charactersToKeep:[{value:"dashes",label:e("Dashes (-)",s)},{value:"underscores",label:e("Underscores (_)",s)},{value:"numbers",label:e("Numbers (0-9)",s)},{value:"plus",label:e("Plus (+)",s)},{value:"apostrophe",label:e("Apostrophe (')",s)},{value:"pound",label:e("Pound (#)",s)},{value:"ampersand",label:e("Ampersand (&)",s)}],charactersToConvert:[{value:"dashes",label:e("Dashes (-)",s)},{value:"underscores",label:e("Underscores (_)",s)}],casings:{lowerCase:{label:e("Lower Case",s),description:e("All letters are converted to lower case (small) letters.",s)},titleCase:{label:e("Title Case",s),description:e("Major words are capitalized and minor words remain in their original casing.",s)},sentenceCase:{label:e("Sentence Case",s),description:e("The first word of each sentence starts with a capital.",s)}},tags:{title:{context:"imageSeoTitle",default:["image_title","separator_sa","site_title"]},altTag:{context:"imageSeoAlt",default:["alt_tag","separator_sa","site_title"]},caption:{context:"imageSeoCaption",default:["attachment_caption","separator_sa","site_title"]},description:{context:"imageSeoDescription",default:["attachment_description","separator_sa","site_title"]}}}},computed:{activeSlug(){return this.activeTab.slug},autogenerateAltWithAiDescription(){return _(e("If enabled, %1$s will automatically generate alt text for your images using AI. Each image upload will use %2$d AI credits.",s),"AIOSEO",this.getFeatureCost("imageAltText"))},filteredCharactersToKeep(){const m=["plus","apostrophe","pound","ampersand"];return this.charactersToKeep.filter(v=>this.activeSlug!=="filename"?!0:!m.includes(v.value)).map(v=>(this.optionsStore.options.image[this.activeSlug].charactersToConvert?.[v.value]?v.disabled=!0:v.disabled=!1,v))},filteredCharactersToConvert(){return this.charactersToConvert.map(m=>(this.optionsStore.options.image[this.activeSlug].charactersToKeep[m.value]?m.disabled=!0:m.disabled=!1,m))}},methods:{charactersToKeepTooltipText(m){return _(e("Excluding %1$s is disabled when converting to spaces is enabled.",s),m.toLowerCase())},charactersToConvertTooltipText(m){return _(e("Converting %1$s to spaces is disabled when excluding from stripping.",s),m.toLowerCase())}}},ke={class:"aioseo-sa-image-seo"},Le={class:"aioseo-settings-row aioseo-section-description"},Ue=["innerHTML"],Ie={class:"aioseo-description"},Ve={class:"aioseo-description"},Pe={key:0,class:"global-robots-settings aioseo-description"},Be={key:0},De={class:"aioseo-description"},Oe={class:"casing-options"},Ge={class:"aioseo-description"},Re={key:4,slug:"advancedSettings"},Ee={class:"aioseo-description"};function Ne(m,i,v,a,t,o){const C=g("base-radio-toggle"),b=g("core-settings-row"),L=g("core-html-tags-editor"),x=g("base-checkbox"),I=g("core-tooltip"),V=g("grid-column"),P=g("grid-row"),k=g("base-textarea"),y=g("core-exclude-posts");return c(),T("div",ke,[u("div",Le,[u("div",null,d(t.strings.attributeDescriptions[o.activeSlug].first),1),u("div",null,[A(d(t.strings.attributeDescriptions[o.activeSlug].second)+" ",1),u("span",{innerHTML:a.links.getDocLink(a.GLOBAL_STRINGS.learnMore,"imageSeo",!0)},null,8,Ue)])]),["caption","description"].includes(o.activeSlug)?(c(),h(b,{key:0,name:t.strings.autogenerate,align:""},{content:n(()=>[l(C,{modelValue:a.optionsStore.options.image[o.activeSlug].autogenerate,"onUpdate:modelValue":i[0]||(i[0]=r=>a.optionsStore.options.image[o.activeSlug].autogenerate=r),name:"autogenerate",options:[{label:a.GLOBAL_STRINGS.disabled,value:!1,activeClass:"dark"},{label:a.GLOBAL_STRINGS.enabled,value:!0}]},null,8,["modelValue","options"]),u("div",Ie,d(t.strings.autogenerateDescriptions[o.activeSlug]),1)]),_:1},8,["name"])):S("",!0),o.activeSlug==="altTag"?(c(),h(b,{key:1,name:t.strings.autogenerateAltWithAi,align:""},{content:n(()=>[l(C,{modelValue:a.optionsStore.options.image.altTag.autogenerateWithAi,"onUpdate:modelValue":i[1]||(i[1]=r=>a.optionsStore.options.image.altTag.autogenerateWithAi=r),name:"autogenerateWithAi",options:[{label:a.GLOBAL_STRINGS.disabled,value:!1,activeClass:"dark"},{label:a.GLOBAL_STRINGS.enabled,value:!0}]},null,8,["modelValue","options"]),u("div",Ve,d(o.autogenerateAltWithAiDescription),1)]),_:1},8,["name"])):S("",!0),o.activeSlug!=="filename"?(c(),h(b,{key:2,name:t.strings.attributeFormat},{content:n(()=>[l(L,{modelValue:a.optionsStore.options.image[o.activeSlug].format,"onUpdate:modelValue":i[2]||(i[2]=r=>a.optionsStore.options.image[o.activeSlug].format=r),"line-numbers":!1,single:"","tags-context":t.tags[o.activeSlug].context,"default-tags":t.tags[o.activeSlug].default,"disable-emoji":""},{"tags-description":n(()=>[A(d(t.strings.clickToAddTags),1)]),_:1},8,["modelValue","tags-context","default-tags"])]),_:1},8,["name"])):S("",!0),l(b,{name:t.strings.stripPunctuation,align:""},{content:n(()=>[l(C,{modelValue:a.optionsStore.options.image[o.activeSlug].stripPunctuation,"onUpdate:modelValue":i[3]||(i[3]=r=>a.optionsStore.options.image[o.activeSlug].stripPunctuation=r),name:"stripPunctuation",options:[{label:a.GLOBAL_STRINGS.disabled,value:!1,activeClass:"dark"},{label:a.GLOBAL_STRINGS.enabled,value:!0}]},null,8,["modelValue","options"]),a.optionsStore.options.image[o.activeSlug].stripPunctuation?(c(),T("div",Pe,[u("div",null,[u("strong",null,d(t.strings.charactersToKeep),1),l(P,{class:"characters-to-keep"},{default:n(()=>[(c(!0),T(D,null,O(o.filteredCharactersToKeep,(r,B)=>(c(),h(V,{class:"characters-grid",key:B,xl:"3",md:"4",sm:"6"},{default:n(()=>[r.disabled?(c(),h(I,{key:0},{tooltip:n(()=>[A(d(o.charactersToKeepTooltipText(r.value)),1)]),default:n(()=>[l(x,{size:"medium",modelValue:a.optionsStore.options.image[o.activeSlug].charactersToKeep[r.value],"onUpdate:modelValue":U=>a.optionsStore.options.image[o.activeSlug].charactersToKeep[r.value]=U,disabled:r.disabled},{default:n(()=>[A(d(r.label),1)]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1024)):S("",!0),r.disabled?S("",!0):(c(),h(x,{key:1,size:"medium",modelValue:a.optionsStore.options.image[o.activeSlug].charactersToKeep[r.value],"onUpdate:modelValue":U=>a.optionsStore.options.image[o.activeSlug].charactersToKeep[r.value]=U,disabled:r.disabled},{default:n(()=>[A(d(r.label),1)]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"]))]),_:2},1024))),128))]),_:1})]),o.activeSlug!=="filename"&&o.filteredCharactersToConvert.length?(c(),T("div",Be,[u("strong",null,d(t.strings.charactersToConvert),1),l(P,{class:"characters-to-convert"},{default:n(()=>[(c(!0),T(D,null,O(o.filteredCharactersToConvert,(r,B)=>(c(),h(V,{class:"characters-grid",key:B,xl:"3",md:"4",sm:"6"},{default:n(()=>[r.disabled?(c(),h(I,{key:0},{tooltip:n(()=>[A(d(o.charactersToConvertTooltipText(r.value)),1)]),default:n(()=>[l(x,{size:"medium",modelValue:a.optionsStore.options.image[o.activeSlug].charactersToConvert[r.value],"onUpdate:modelValue":U=>a.optionsStore.options.image[o.activeSlug].charactersToConvert[r.value]=U,disabled:r.disabled},{default:n(()=>[A(d(r.label),1)]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1024)):S("",!0),r.disabled?S("",!0):(c(),h(x,{key:1,size:"medium",modelValue:a.optionsStore.options.image[o.activeSlug].charactersToConvert[r.value],"onUpdate:modelValue":U=>a.optionsStore.options.image[o.activeSlug].charactersToConvert[r.value]=U,disabled:r.disabled},{default:n(()=>[A(d(r.label),1)]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"]))]),_:2},1024))),128))]),_:1})])):S("",!0)])):S("",!0)]),_:1},8,["name"]),l(b,{name:t.strings.casing,align:""},{content:n(()=>[l(C,{modelValue:a.optionsStore.options.image[o.activeSlug].casing,"onUpdate:modelValue":i[4]||(i[4]=r=>a.optionsStore.options.image[o.activeSlug].casing=r),name:"casing",options:[{label:a.GLOBAL_STRINGS.disabled,value:"",activeClass:"dark"},{label:t.casings.lowerCase.label,value:"lower"},{label:t.casings.titleCase.label,value:"title"},{label:t.casings.sentenceCase.label,value:"sentence"}]},null,8,["modelValue","options"]),u("div",De,[u("span",null,d(t.strings.casingDescription),1),i[6]||(i[6]=u("br",null,null,-1)),u("ul",Oe,[(c(!0),T(D,null,O(t.casings,(r,B)=>(c(),T("li",{key:B},[u("span",null,d(r.label),1),u("span",null,d(r.description),1)]))),128))])])]),_:1},8,["name"]),o.activeSlug==="filename"?(c(),h(b,{key:3,name:t.strings.wordsToStrip,align:""},{content:n(()=>[l(k,{minHeight:200,modelValue:a.optionsStore.options.image[o.activeSlug].wordsToStrip,"onUpdate:modelValue":i[5]||(i[5]=r=>a.optionsStore.options.image[o.activeSlug].wordsToStrip=r)},null,8,["modelValue"]),u("div",Ge,d(t.strings.wordsToStripDescription),1)]),_:1},8,["name"])):S("",!0),["title","altTag"].includes(o.activeSlug)?(c(),T("div",Re,[l(b,{name:t.strings.excludePostsPages,class:"aioseo-exclude-pages-posts",align:""},{content:n(()=>[l(y,{options:a.optionsStore.options.image[o.activeSlug].advancedSettings,type:"posts"},null,8,["options"])]),_:1},8,["name"]),l(b,{name:t.strings.excludeTerms,class:"aioseo-exclude-terms",align:""},{content:n(()=>[l(y,{options:a.optionsStore.options.image[o.activeSlug].advancedSettings,type:"terms"},null,8,["options"]),u("div",Ee,d(t.strings.excludeTermsDescription),1)]),_:1},8,["name"])])):S("",!0)])}const Ke=R(xe,[["render",Ne]]),Me={class:"aioseo-sa-image-seo"},Fe={__name:"ImageSeo",setup(m){const i="all-in-one-seo-pack",v=X(),a={titleAttributeFormat:e("Title Attribute Format",i),ctaDescription:e("The Image SEO module is a premium feature that enables you to globally control the title, alt tag, caption, description and filename of the images on your site.",i),ctaButtonText:e("Unlock Image SEO",i),ctaHeader:_(e("Image SEO is a %1$s Feature",i),"PRO")},t=[e("Autogenerate image attributes",i),e("Clean uploaded image filenames",i),e("Strip punctuation from image attributes",i),e("Convert casing of image attributes",i)];return(o,C)=>(c(),T("div",Me,[l(w(Q)),l(w(be),{"cta-link":w(G).getPricingUrl("image-seo","image-seo-upsell",null,"liteUpgrade"),"button-text":a.ctaButtonText,"learn-more-link":w(G).getUpsellUrl("image-seo",null,"liteUpgrade"),"feature-list":t,"hide-bonus":!w(v).isUnlicensed},{"header-text":n(()=>[A(d(a.ctaHeader),1)]),description:n(()=>[l(w(_e),{addon:"aioseo-image-seo"}),A(" "+d(a.ctaDescription),1)]),_:1},8,["cta-link","button-text","learn-more-link","hide-bonus"])]))}},We=R(Fe,[["__scopeId","data-v-bc554ad9"]]),f="all-in-one-seo-pack",He={setup(){const{shouldShowActivate:m,shouldShowLite:i,shouldShowMain:v,shouldShowUpdate:a}=F({addonSlug:"aioseo-image-seo"}),{getPostIconClass:t}=ee();return{GLOBAL_STRINGS:E,getPostIconClass:t,optionsStore:M(),rootStore:$(),settingsStore:Z(),shouldShowActivate:m,shouldShowLite:i,shouldShowMain:v,shouldShowUpdate:a}},components:{Advanced:ae,BaseRadioToggle:N,CoreCard:oe,CoreMainTabs:se,CoreProBadge:ie,CoreSettingsRow:K,Cta:we,CustomFields:me,ImageSeo:Ke,Lite:We,Schema:de,TitleDescription:te},data(){return{imageSeoKey:0,internalDebounce:!1,imageSeoActiveTab:{slug:"altTag",name:e("Alt Tag",f),pro:!0},strings:{redirectAttachmentUrls:e("Redirect Attachment URLs",f),attachment:e("Attachment",f),attachmentParent:e("Attachment Parent",f),attachmentUrlsDescription:e("We recommended redirecting attachment URLs back to the attachment since the default WordPress attachment pages have little SEO value.",f),imageSeo:e("Image SEO",f),advancedSettings:e("Advanced Settings",f)},tabs:{attachments:[{slug:"title-description",name:e("Title & Description",f),access:"aioseo_search_appearance_settings",pro:!1},{slug:"Schema",name:e("Schema Markup",f),access:"aioseo_search_appearance_settings",pro:!0},{slug:"advanced",name:e("Advanced",f),access:"aioseo_search_appearance_settings",pro:!1}],imageSeo:[{slug:"altTag",name:e("Alt Tag",f),pro:!0},{slug:"title",name:e("Title",f),pro:!0},{slug:"caption",name:e("Caption",f),pro:!0},{slug:"description",name:e("Description",f),pro:!0},{slug:"filename",name:e("Filename",f),pro:!0}]}}},computed:{postType(){return this.rootStore.aioseo.postData.postTypes.filter(m=>m.name==="attachment")[0]}},methods:{processChangeTab(m,i){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:`${m}SA`,value:i}),setTimeout(()=>{this.internalDebounce=!1},50))},setImageSeoActiveTab(m){this.imageSeoActiveTab=this.tabs.imageSeo.find(i=>i.slug===m),this.imageSeoKey++}}},ze={class:"aioseo-search-appearance-content-types"},je={class:"aioseo-description"};function qe(m,i,v,a,t,o){const C=g("base-radio-toggle"),b=g("core-settings-row"),L=g("core-main-tabs"),x=g("core-card"),I=g("core-pro-badge"),V=g("image-seo"),P=g("cta"),k=g("lite");return c(),T("div",ze,[l(x,{slug:`${o.postType.name}SA`},le({header:n(()=>[u("div",{class:ue(["icon dashicons",a.getPostIconClass(o.postType.icon)])},null,2),u("div",null,d(o.postType.label),1)]),"before-tabs":n(()=>[l(b,{name:t.strings.redirectAttachmentUrls,align:""},{content:n(()=>[l(C,{modelValue:a.optionsStore.dynamicOptions.searchAppearance.postTypes.attachment.redirectAttachmentUrls,"onUpdate:modelValue":i[0]||(i[0]=y=>a.optionsStore.dynamicOptions.searchAppearance.postTypes.attachment.redirectAttachmentUrls=y),name:"redirectAttachmentUrls",options:[{label:a.GLOBAL_STRINGS.disabled,value:"disabled",activeClass:"dark"},{label:t.strings.attachment,value:"attachment"},{label:t.strings.attachmentParent,value:"attachment_parent"}]},null,8,["modelValue","options"]),u("div",je,d(t.strings.attachmentUrlsDescription),1)]),_:1},8,["name"])]),default:n(()=>[a.optionsStore.dynamicOptions.searchAppearance.postTypes.attachment.redirectAttachmentUrls==="disabled"?(c(),h(ce,{key:0,name:"route-fade",mode:"out-in"},{default:n(()=>[(c(),h(q(a.settingsStore.settings.internalTabs[`${o.postType.name}SA`]),{object:o.postType,separator:a.optionsStore.options.searchAppearance.global.separator,options:a.optionsStore.dynamicOptions.searchAppearance.postTypes[o.postType.name],type:"postTypes"},null,8,["object","separator","options"]))]),_:1})):S("",!0)]),_:2},[a.optionsStore.dynamicOptions.searchAppearance.postTypes.attachment.redirectAttachmentUrls==="disabled"?{name:"tabs",fn:n(()=>[l(L,{tabs:t.tabs.attachments,showSaveButton:!1,active:a.settingsStore.settings.internalTabs[`${o.postType.name}SA`],internal:"",onChanged:i[1]||(i[1]=y=>o.processChangeTab(o.postType.name,y))},null,8,["tabs","active"])]),key:"0"}:void 0]),1032,["slug"]),l(x,{slug:"imageSeo",noSlide:!a.shouldShowMain},{header:n(()=>[u("span",null,d(t.strings.imageSeo),1),l(I)]),tabs:n(()=>[l(L,{tabs:t.tabs.imageSeo,showSaveButton:!1,active:t.imageSeoActiveTab.slug,internal:"",onChanged:i[2]||(i[2]=y=>o.setImageSeoActiveTab(y))},null,8,["tabs","active"])]),default:n(()=>[a.shouldShowMain?(c(),h(V,{activeTab:t.imageSeoActiveTab,key:t.imageSeoKey},null,8,["activeTab"])):S("",!0),a.shouldShowUpdate||a.shouldShowActivate?(c(),h(P,{key:1})):S("",!0),a.shouldShowLite?(c(),h(k,{key:2})):S("",!0)]),_:1},8,["noSlide"])])}const Nt=R(He,[["render",qe]]);export{Nt as default};