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

2 lines
15 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{u as D}from"./AddonConditions.d0b4b606.js";import{u as V,B as R}from"./Blur.157ba1c7.js";import{d as x,j as H,G as F,b as E,a as W}from"./app-core.ae890a3f.js";import{C as P}from"./Card.c7ceb11b.js";import{m as M}from"./vendor-lodash.8e35bd59.js";import{_ as o,a as B}from"./vendor-other.7b559694.js";import{f as p,i as b,a0 as a,R as r,v as n,Q as u,S as z,u as j,ae as c,U as d,j as l,aq as S,M as _}from"./vendor-vue-ui.de3ab35f.js";import{R as Y}from"./RequiredPlans.c6bcf6ea.js";import{C as K}from"./ProBadge.fd60f711.js";import{C as q}from"./Index.43bf246d.js";import{u as Q}from"./CommonSitemap.d3bc15ea.js";import{B as X}from"./Checkbox.79be52ca.js";import{B as J}from"./RadioToggle.de933e45.js";import{C as Z}from"./Index.52399193.js";import{C as $}from"./ExcludePosts.652191da.js";import{C as ee}from"./PostTypeOptions.b81e5303.js";import{C as oe}from"./SettingsRow.0c329e43.js";import{S as te,a as ie}from"./SearchConsoleInline.0d09a261.js";import{S as se}from"./External.94d285ce.js";import{_ as ne}from"./_plugin-vue_export-helper.eefbdd86.js";import"./Blur.5e231db6.js";import"./Tooltip.ae7a1028.js";import"./Caret.a017b70a.js";import"./Trash.d35f8063.js";import"./Close.098d4b76.js";import"./Slide.e6618126.js";import"./Button.a549093d.js";import"./Row.6337df55.js";import"./Pencil.405b16d2.js";import"./Checkmark.fac3f231.js";import"./JsonValues.a0694556.js";import"./Select.32af2da8.js";import"./AddPlus.863a7e44.js";import"./PostTypes.bcb4ad24.js";import"./HighlightToggle.9305c143.js";import"./Radio.7b7e6cf4.js";import"./GoogleSearchConsole.98e7fa66.js";import"./Actionable.f715f764.js";import"./CheckSolid.7f805a48.js";import"./ExclamationSolid.ddc28e8f.js";import"./WpTable.65c7870f.js";import"./ScrollTo.f4df02aa.js";import"./Index.ab3bcf62.js";import"./Table.199a0fd0.js";import"./Download.aee86410.js";const ae={__name:"Cta",setup(v){const s="aioseo-pro",{strings:g}=V(),e=M(g,{videoSitemapHeader:o("Enable Video Sitemaps on Your Site",s),learnMoreText:o("Learn more about Video Sitemaps",s)}),{ctaComponent:i,shouldShowUpdate:h}=D({addonSlug:"aioseo-video-sitemap"}),f=j(()=>h.value?o("Update Video Sitemap",s):o("Activate Video Sitemaps",s));return(k,w)=>(p(),b("div",null,[a(n(P),{slug:"videoSitemap","header-text":n(e).video},{default:r(()=>[a(n(R)),(p(),u(z(n(i)),{"addon-slug":"aioseo-video-sitemap","cta-header":n(e).videoSitemapHeader,"cta-description":n(e).description,"cta-button-text":f.value,"learn-more-text":n(e).learnMoreText,"learn-more-link":n(x).getDocUrl("videoSitemaps"),"feature-list":[n(e).customFieldSupport,n(e).exclude]},null,8,["cta-header","cta-description","cta-button-text","learn-more-text","learn-more-link","feature-list"]))]),_:1},8,["header-text"])]))}},re={class:"aioseo-video-sitemap-lite"},le={__name:"VideoSitemap",setup(v){const s=H(),{strings:g}=V();return(e,i)=>(p(),b("div",re,[a(n(P),{slug:"videoSitemap",noSlide:!0},{header:r(()=>[l("span",null,d(n(g).video),1),a(n(K))]),default:r(()=>[a(n(R)),a(n(q),{"feature-list":[n(g).customFieldSupport,n(g).exclude],"cta-link":n(x).getPricingUrl("video-sitemap","video-sitemap-upsell",null,"liteUpgrade"),"button-text":n(g).ctaButtonText,"learn-more-link":n(x).getUpsellUrl("video-sitemap",null,"liteUpgrade"),"hide-bonus":!n(s).isUnlicensed},{"header-text":r(()=>[c(d(n(g).ctaHeader),1)]),description:r(()=>[a(n(Y),{addon:"aioseo-video-sitemap"}),c(" "+d(n(g).description),1)]),_:1},8,["feature-list","cta-link","button-text","learn-more-link","hide-bonus"])]),_:1})]))}},t="aioseo-pro",de={setup(){const{validateLinksPerIndex:v}=Q(),{strings:s}=V();return{GLOBAL_STRINGS:F,composableStrings:s,links:x,optionsStore:W(),rootStore:E(),validateLinksPerIndex:v}},components:{BaseCheckbox:X,BaseRadioToggle:J,CoreAlert:Z,CoreCard:P,CoreExcludePosts:$,CorePostTypeOptions:ee,CoreSettingsRow:oe,SearchConsole:ie,SearchConsoleInline:te,SvgExternal:se},data(){return{pagePostOptions:[],strings:M(this.composableStrings,{additionalPages:o("Additional Pages",t),additionalPagesTooltip:o("You can use this section to add any URLs to your sitemap which arent a part of your WordPress installation. For example, if you have a contact form that you would like to be included on your sitemap you can enter the information manually.",t),sitemapSettings:o("Video Sitemap Settings",t),enableSitemapIndexes:o("Enable Sitemap Indexes",t),sitemapIndexes:o("Organize sitemap entries into distinct files in your sitemap. We recommend you enable this setting if your sitemap contains more than 1,000 URLs.",t),linksPerSitemap:o("Links Per Sitemap",t),maxLinks:o("Allows you to specify the maximum number of posts in a sitemap (up to 50,000).",t),postTypes:o("Post Types",t),taxonomies:o("Taxonomies",t),includeAllPostTypes:o("Include All Post Types",t),selectPostTypes:o("Select which Post Types appear in your sitemap.",t),includeAllTaxonomies:o("Include All Taxonomies",t),selectTaxonomies:o("Select which Taxonomies appear in your sitemap. Categories and Tags are excluded by default since these do not support video embedding.",t),includeCustomFields:o("Include Custom Fields",t),includeCustomFieldsDescription:o("Enable this option to look for videos in custom fields as well.",t),advancedSettings:o("Advanced Settings",t),excludePostsPages:o("Exclude Posts / Pages",t),excludeTerms:o("Exclude Terms",t),excludeTermsDescription:o("Any posts that are assigned to these terms will also be excluded from your sitemap.",t),priorityScore:o("Priority Score",t),dynamicallyGenerate:o("Dynamically Generate",t),dynamicallyGenerateDescription:o("Dynamically creates the Video Sitemap instead of using a static file.",t),videoEmbedSettings:o("Video Embed Settings",t),embedSettingsTooltip:o("This section allows you to manage your video embeds, such as features for Facebook or making them responsive to automatically fit your content width.",t),embed:o("Embed",t),playDirectly:o("Allow videos to be played directly on other websites, such as Facebook or X (Twitter).",t),responsive:B(o("Try to make videos responsive using %1$s?",t),'<a href="http://fitvidsjs.com/" target="_blank">FitVids.js</a>'),contentWidth:o("Content Width",t),contentWidthDescription:o("This defaults to your theme's content width, but if it's empty, setting a value here will make sure videos are embedded with the right width.",t),wistiaDomain:o("Wistia Domain",t),wistiaDomainDescription:o("If you use Wistia in combination with a custom domain, set this to the domain name you use for your Wistia videos. Don't include https: or slashes as they are not needed.",t),embedlyApiKey:o("Embedly API Key",t),embedlyApiKeyDescription:B(o("By default, we try to provide enriched information about your videos. A lot of video services are supported by default. For those services which aren't supported, we can try to retrieve enriched video information using %1$s. If you want to use this option, you'll need to sign up for a (free) %2$s account and provide the API key you receive.",t),'<a href="https://embed.ly/" target="_blank">embed.ly</a>','<a href="https://embed.ly/" target="_blank">embed.ly</a>'),warningLinksPerSitemap:o("We recommend setting the amount of URLs per sitemap index to 1,000 or less. The more links, the longer it will take for the sitemap to load.",t),warningStaticRegeneration:o("Your static sitemap is currently being regenerated. This may take some time based on the size of your site. This may also cause the sitemap content to look outdated.",t)})}},computed:{linksPerIndexValue:{get(){return this.optionsStore.options.sitemap.video.linksPerIndex},set(v){const s=this.validateLinksPerIndex(v);this.optionsStore.options.sitemap.video.linksPerIndex=s}},noOptions(){return this.type==="posts"?this.strings.noOptionsPosts:this.strings.noOptionsTerms}},methods:{processGetPagesPosts(v){return this.optionsStore.getObjects(v).then(s=>{this.pagePostOptions=s.body.posts})}}},pe={class:"aioseo-video-sitemap"},me={class:"aioseo-settings-row aioseo-section-description"},ce=["innerHTML"],ue={class:"aioseo-sitemap-preview"},_e={class:"aioseo-description"},Se=["innerHTML"],ge={class:"aioseo-description"},ye=["innerHTML"],ve={class:"aioseo-description"},he=["innerHTML"],fe={class:"aioseo-description"},xe=["innerHTML"],be={class:"aioseo-description"},ke=["innerHTML"],Te={class:"aioseo-description"},Le={class:"aioseo-description"},Ve=["innerHTML"],Pe={class:"aioseo-description"},we=["innerHTML"];function Ae(v,s,g,e,i,h){const f=S("search-console"),k=S("base-toggle"),w=S("search-console-inline"),y=S("core-settings-row"),O=S("svg-external"),U=S("base-button"),A=S("core-alert"),T=S("core-card"),L=S("base-radio-toggle"),N=S("base-input"),G=S("base-checkbox"),I=S("core-post-type-options"),C=S("core-exclude-posts");return p(),b("div",pe,[e.optionsStore.options.sitemap.video.enable?(p(),u(f,{key:0})):_("",!0),a(T,{slug:"videoSitemap","header-text":i.strings.video},{default:r(()=>[l("div",me,[c(d(i.strings.extendedDescription)+" ",1),l("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"videoSitemaps",!0)},null,8,ce)]),a(y,{name:i.strings.enableSitemap},{content:r(()=>[a(k,{modelValue:e.optionsStore.options.sitemap.video.enable,"onUpdate:modelValue":s[0]||(s[0]=m=>e.optionsStore.options.sitemap.video.enable=m)},null,8,["modelValue"]),e.optionsStore.options.sitemap.video.enable?(p(),u(w,{key:0})):_("",!0)]),_:1},8,["name"]),e.optionsStore.options.sitemap.video.enable?(p(),u(y,{key:0,name:e.GLOBAL_STRINGS.preview},{content:r(()=>[l("div",ue,[a(U,{size:"medium",type:"blue",tag:"a",href:e.rootStore.aioseo.urls.videoSitemapUrl,target:"_blank"},{default:r(()=>[a(O),c(" "+d(i.strings.openSitemap),1)]),_:1},8,["href"])]),l("div",_e,[c(d(i.strings.noIndexDisplayed)+" "+d(i.strings.doYou404)+" ",1),l("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"blankSitemap",!0)},null,8,Se)]),!e.optionsStore.options.deprecated.sitemap.video.advancedSettings.dynamic&&e.rootStore.aioseo.scheduledActions.sitemap&&e.rootStore.aioseo.scheduledActions.sitemap.includes("staticSitemapRegeneration")?(p(),u(A,{key:0,class:"static-regeneration-notice",type:"blue"},{default:r(()=>[c(d(i.strings.warningStaticRegeneration),1)]),_:1})):_("",!0)]),_:1},8,["name"])):_("",!0)]),_:1},8,["header-text"]),e.optionsStore.options.sitemap.video.enable?(p(),u(T,{key:1,slug:"videoSitemapSettings","header-text":i.strings.sitemapSettings},{default:r(()=>[a(y,{name:i.strings.enableSitemapIndexes},{content:r(()=>[a(L,{modelValue:e.optionsStore.options.sitemap.video.indexes,"onUpdate:modelValue":s[1]||(s[1]=m=>e.optionsStore.options.sitemap.video.indexes=m),name:"sitemapIndexes",options:[{label:e.GLOBAL_STRINGS.disabled,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.enabled,value:!0}]},null,8,["modelValue","options"]),l("div",ge,[c(d(i.strings.sitemapIndexes)+" ",1),l("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"sitemapIndexes",!0)},null,8,ye)])]),_:1},8,["name"]),e.optionsStore.options.sitemap.video.indexes?(p(),u(y,{key:0,name:i.strings.linksPerSitemap},{content:r(()=>[a(N,{modelValue:h.linksPerIndexValue,"onUpdate:modelValue":s[2]||(s[2]=m=>h.linksPerIndexValue=m),class:"aioseo-links-per-site",type:"number",size:"medium",min:1,max:5e4},null,8,["modelValue"]),l("div",ve,[c(d(i.strings.maxLinks)+" ",1),l("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"maxLinks",!0)},null,8,he)]),e.optionsStore.options.sitemap.video.indexes&&1e3<e.optionsStore.options.sitemap.video.linksPerIndex?(p(),u(A,{key:0,class:"index-notice",type:"yellow"},{default:r(()=>[c(d(i.strings.warningLinksPerSitemap),1)]),_:1})):_("",!0)]),_:1},8,["name"])):_("",!0),a(y,{name:i.strings.postTypes},{content:r(()=>[a(G,{size:"medium",modelValue:e.optionsStore.options.sitemap.video.postTypes.all,"onUpdate:modelValue":s[3]||(s[3]=m=>e.optionsStore.options.sitemap.video.postTypes.all=m)},{default:r(()=>[c(d(i.strings.includeAllPostTypes),1)]),_:1},8,["modelValue"]),e.optionsStore.options.sitemap.video.postTypes.all?_("",!0):(p(),u(I,{key:0,options:e.optionsStore.options.sitemap.video,type:"postTypes",excluded:["web-story"]},null,8,["options"])),l("div",fe,[c(d(i.strings.selectPostTypes)+" ",1),l("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"selectPostTypesVideo",!0)},null,8,xe)])]),_:1},8,["name"]),a(y,{name:i.strings.taxonomies},{content:r(()=>[a(G,{size:"medium",modelValue:e.optionsStore.options.sitemap.video.taxonomies.all,"onUpdate:modelValue":s[4]||(s[4]=m=>e.optionsStore.options.sitemap.video.taxonomies.all=m)},{default:r(()=>[c(d(i.strings.includeAllTaxonomies),1)]),_:1},8,["modelValue"]),e.optionsStore.options.sitemap.video.taxonomies.all?_("",!0):(p(),u(I,{key:0,options:e.optionsStore.options.sitemap.video,type:"taxonomies",excluded:["category","post_tag","product_attributes"]},null,8,["options"])),l("div",be,[c(d(i.strings.selectTaxonomies)+" ",1),l("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"selectTaxonomiesVideo",!0)},null,8,ke)])]),_:1},8,["name"])]),_:1},8,["header-text"])):_("",!0),e.optionsStore.options.sitemap.video.enable?(p(),u(T,{key:2,slug:"videoAdvancedSettings",toggles:e.optionsStore.options.sitemap.video.advancedSettings.enable},{header:r(()=>[a(k,{modelValue:e.optionsStore.options.sitemap.video.advancedSettings.enable,"onUpdate:modelValue":s[5]||(s[5]=m=>e.optionsStore.options.sitemap.video.advancedSettings.enable=m)},null,8,["modelValue"]),l("span",null,d(i.strings.advancedSettings),1)]),default:r(()=>[a(y,{name:i.strings.excludePostsPages,class:"aioseo-exclude-pages-posts",align:""},{content:r(()=>[a(C,{options:e.optionsStore.options.sitemap.video.advancedSettings,type:"posts"},null,8,["options"])]),_:1},8,["name"]),a(y,{name:i.strings.excludeTerms,class:"aioseo-exclude-terms",align:""},{content:r(()=>[a(C,{options:e.optionsStore.options.sitemap.video.advancedSettings,type:"terms"},null,8,["options"]),l("div",Te,d(i.strings.excludeTermsDescription),1)]),_:1},8,["name"]),e.optionsStore.internalOptions.internal.deprecatedOptions.includes("staticVideoSitemap")?(p(),u(y,{key:0,name:i.strings.dynamicallyGenerate},{content:r(()=>[a(L,{modelValue:e.optionsStore.options.deprecated.sitemap.video.advancedSettings.dynamic,"onUpdate:modelValue":s[6]||(s[6]=m=>e.optionsStore.options.deprecated.sitemap.video.advancedSettings.dynamic=m),name:"dynamic",options:[{label:e.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","options"]),l("div",Le,[c(d(i.strings.dynamicallyGenerateDescription)+" ",1),l("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"dynamicallyGenerateVideo",!0)},null,8,Ve)])]),_:1},8,["name"])):_("",!0),a(y,{name:i.strings.includeCustomFields,align:""},{content:r(()=>[a(L,{modelValue:e.optionsStore.options.sitemap.video.advancedSettings.customFields,"onUpdate:modelValue":s[7]||(s[7]=m=>e.optionsStore.options.sitemap.video.advancedSettings.customFields=m),name:"includeCustomFields",options:[{label:e.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","options"]),l("div",Pe,[c(d(i.strings.includeCustomFieldsDescription)+" ",1),l("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"includeCustomFields",!0)},null,8,we)])]),_:1},8,["name"])]),_:1},8,["toggles"])):_("",!0)])}const Ge=ne(de,[["render",Ae]]),Ie={class:"aioseo-video-sitemap"},To={__name:"VideoSitemap",setup(v){const{shouldShowActivate:s,shouldShowLite:g,shouldShowMain:e,shouldShowUpdate:i}=D({addonSlug:"aioseo-video-sitemap"});return(h,f)=>(p(),b("div",Ie,[n(e)?(p(),u(n(Ge),{key:0})):_("",!0),n(i)||n(s)?(p(),u(n(ae),{key:1})):_("",!0),n(g)?(p(),u(n(le),{key:2})):_("",!0)]))}};export{To as default};