관리-도구
편집 파일: GeneralSitemap.9837227b.js
import{F as N,P as C,G as H}from"./constants.2019bcb3.js";import{b as w,u as U,l as E}from"./index.20192476.js";import{S as q,a as z,u as J}from"./SearchConsoleInline.0d1ab0ee.js";import F from"./AdditionalPages.bc3e541c.js";import{B as Y}from"./Checkbox.e983780b.js";import{B as X}from"./RadioToggle.64619d6b.js";import{C as j}from"./Caret.662da1f3.js";import{C as K}from"./Card.46af096e.js";import{C as W}from"./ExcludePosts.b381d3f6.js";import{C as Q}from"./PostTypeOptions.c8d435f9.js";import{u as Z}from"./JsonValues.892a7505.js";import{T as $,a as ee}from"./Row.2d496066.js";import"./translations.12335a6a.js";import{_ as M}from"./_plugin-vue_export-helper.249dac1d.js";import{_ as o,s as oe}from"./default-i18n.54b5d8cd.js";import{v as g,o as u,c as I,C as t,l as a,x as d,t as m,F as te,J as ne,k as S,b as y,a as p}from"./runtime-dom.esm-bundler.6789c400.js";import{C as ie}from"./SettingsRow.1934f141.js";import{S as se}from"./External.c84e4310.js";import"./helpers.f95d5840.js";import"./GoogleSearchConsole.9e8ca525.js";import"./params.764403f6.js";import"./Actionable.602042a5.js";import"./CheckSolid.9e151b0e.js";import"./ExclamationSolid.8e60a4a3.js";import"./WpTable.46584896.js";import"./ScrollTo.97c9805f.js";import"./index.ee8124c6.js";import"./Index.de83b4aa.js";import"./Table.963c11c7.js";import"./numbers.b55b32c5.js";import"./Tooltip.b6b45c85.js";import"./Slide.d0517fb0.js";import"./Download.6a0d8455.js";import"./date.839db266.js";import"./datetime.cb3980ce.js";import"./Url.0ccd8549.js";import"./DatePicker.fd6399b7.js";import"./Calendar.4686ac3f.js";import"./pick.231724a9.js";import"./_baseSet.32e7a763.js";import"./toString.1401d490.js";import"./_getTag.8dc22eac.js";import"./debounce.40834200.js";import"./toNumber.30f8b529.js";import"./_baseTrim.940c51cf.js";import"./isEqual.51bf23f5.js";import"./_baseIsEqual.6bc92395.js";import"./Exclamation.bf79561a.js";import"./Checkmark.32f79576.js";import"./AddPlus.9574d780.js";import"./PostTypes.d6c1987b.js";import"./HighlightToggle.6ee9eb70.js";import"./Radio.e92f8160.js";import"./Row.f01f32cd.js";const T="all-in-one-seo-pack",ae={setup(){const{getJsonValue:r,setJsonValue:i}=Z();return{getJsonValue:r,optionsStore:w(),setJsonValue:i}},components:{TableColumn:$,TableRow:ee},props:{priority:{type:Object,required:!0},rows:{type:Array,required:!0},labels:{type:Object,default(){return{}}}},data(){return{strings:{postTypes:o("Post Types",T),taxonomies:o("Taxonomies",T),priority:o("Priority",T),frequency:o("Frequency",T),homePage:o("Home Page",T),archive:o("Date Archive Pages",T),author:o("Author Pages",T)}}},computed:{getFrequencyOptions(){return[{label:o("default",T),value:"default"}].concat(N)},getPriorityOptions(){return[{label:o("default",T),value:"default"}].concat(C)},filteredRows(){let r=this.rows;return this.optionsStore.options.sitemap.general.date||(r=r.filter(i=>i!=="archive")),this.optionsStore.options.sitemap.general.author||(r=r.filter(i=>i!=="author")),r}},methods:{getLabel(r){return this.labels[r]||this.strings[r]}}},re={class:"aioseo-priority-score"};function le(r,i,L,e,n,_){const x=g("table-column"),h=g("table-row"),k=g("base-select");return u(),I("div",re,[t(h,{class:"header-row"},{default:a(()=>[t(x),t(x,null,{default:a(()=>[d(m(n.strings.priority),1)]),_:1}),t(x,null,{default:a(()=>[d(m(n.strings.frequency),1)]),_:1})]),_:1}),(u(!0),I(te,null,ne(_.filteredRows,(c,A)=>(u(),S(h,{key:A},{default:a(()=>[t(x,null,{default:a(()=>[d(m(_.getLabel(c)),1)]),_:2},1024),t(x,null,{default:a(()=>[t(k,{size:"medium",options:_.getPriorityOptions,modelValue:e.getJsonValue(L.priority[c].priority),"onUpdate:modelValue":f=>L.priority[c].priority=e.setJsonValue(f)},null,8,["options","modelValue","onUpdate:modelValue"])]),_:2},1024),t(x,null,{default:a(()=>[t(k,{size:"medium",options:_.getFrequencyOptions,modelValue:e.getJsonValue(L.priority[c].frequency),"onUpdate:modelValue":f=>L.priority[c].frequency=e.setJsonValue(f)},null,8,["options","modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024))),128))])}const pe=M(ae,[["render",le]]),s="all-in-one-seo-pack",me={setup(){const{validateLinksPerIndex:r}=J();return{optionsStore:w(),rootStore:U(),validateLinksPerIndex:r,GLOBAL_STRINGS:H,links:E}},components:{AdditionalPages:F,BaseCheckbox:Y,BaseRadioToggle:X,CoreAlert:j,CoreCard:K,CoreExcludePosts:W,CorePostTypeOptions:Q,CorePriorityScore:pe,CoreSettingsRow:ie,SearchConsole:q,SearchConsoleInline:z,SvgExternal:se},data(){return{pagePostOptions:[],strings:{general:o("General Sitemap",s),description:oe(o("An XML Sitemap is a list of all your content that search engines use when they crawl your site. This is an essential part of SEO because it contains some important pieces of information that search engines need when crawling your site. The XML Sitemap created by %1$s tells search engines where to find all of the content on your site.",s),"All in One SEO"),enableSitemap:o("Enable Sitemap",s),sitemapSettings:o("Sitemap Settings",s),enableSitemapIndexes:o("Enable Sitemap Indexes",s),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.",s),linksPerSitemap:o("Links Per Sitemap",s),noIndexDisplayed:o("Noindexed content will not be displayed in your sitemap.",s),doYou404:o("Do you get a blank sitemap or 404 error?",s),openSitemap:o("Open Sitemap",s),maxLinks:o("Allows you to specify the maximum number of posts in a sitemap (up to 50,000).",s),automaticallyPingSearchEngines:o("Automatically Ping Search Engines",s),postTypes:o("Post Types",s),taxonomies:o("Taxonomies",s),dateArchiveSitemap:o("Date Archive Sitemap",s),includeDateArchives:o("Include Date Archives in your sitemap.",s),authorSitemap:o("Author Sitemap",s),includeAuthorArchives:o("Include Author Archives in your sitemap.",s),includeAllPostTypes:o("Include All Post Types",s),selectPostTypes:o("Select which Post Types appear in your sitemap.",s),includeAllTaxonomies:o("Include All Taxonomies",s),selectTaxonomies:o("Select which Taxonomies appear in your sitemap.",s),advancedSettings:o("Advanced Settings",s),excludePostsPages:o("Exclude Posts / Pages",s),excludeTerms:o("Exclude Terms",s),excludeTermsDescription:o("Any posts that are assigned to these terms will also be excluded from your sitemap.",s),priorityScore:o("Priority Score",s),grouped:o("Grouped",s),priorityScorePostTypes:o("Post Type Priority Score",s),priorityScoreTaxonomies:o("Taxonomy Priority Score",s),excludeImages:o("Exclude Images",s),excludeImagesDescription:o("Exclude Images from your sitemap.",s),dynamicallyGenerate:o("Dynamically Generate",s),dynamicallyGenerateDescription:o("Dynamically creates the XML Sitemap instead of using a static file.",s),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.",s),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.",s)}}},computed:{getPostTypeRows(){return this.rootStore.aioseo.postData.postTypes.map(r=>r.name)},getPostTypeLabels(){const r={};return this.rootStore.aioseo.postData.postTypes.forEach(i=>{r[i.name]=i.label}),r},getTaxonomyRows(){return this.rootStore.aioseo.postData.taxonomies.map(r=>r.name)},getTaxonomyLabels(){const r={};return this.rootStore.aioseo.postData.taxonomies.forEach(i=>{r[i.name]=i.label}),r}}},ce={class:"aioseo-general-sitemap"},de={class:"aioseo-settings-row aioseo-section-description"},ue=["innerHTML"],ge={class:"aioseo-sitemap-preview"},Se={class:"aioseo-description"},ye=["innerHTML"],_e={class:"aioseo-description"},Te=["innerHTML"],xe={class:"aioseo-description"},he=["innerHTML"],Le={class:"aioseo-description"},fe=["innerHTML"],be={class:"aioseo-description"},ve=["innerHTML"],ke={class:"aioseo-description"},Ae=["innerHTML"],Pe={class:"aioseo-description"},Ie=["innerHTML"],Ve={class:"aioseo-description"},Ge={class:"aioseo-description"},Oe=["innerHTML"],Re={class:"aioseo-description"},we=["innerHTML"];function Me(r,i,L,e,n,_){const x=g("search-console"),h=g("base-toggle"),k=g("search-console-inline"),c=g("core-settings-row"),A=g("svg-external"),f=g("base-button"),V=g("core-alert"),P=g("core-card"),b=g("base-radio-toggle"),D=g("base-input"),G=g("base-checkbox"),O=g("core-post-type-options"),B=g("AdditionalPages"),R=g("core-exclude-posts"),v=g("core-priority-score");return u(),I("div",ce,[e.optionsStore.options.sitemap.general.enable?(u(),S(x,{key:0})):y("",!0),t(P,{slug:"generalSitemap","header-text":n.strings.general},{default:a(()=>[p("div",de,[d(m(n.strings.description)+" ",1),p("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"xmlSitemaps",!0)},null,8,ue)]),t(c,{name:n.strings.enableSitemap},{content:a(()=>[t(h,{modelValue:e.optionsStore.options.sitemap.general.enable,"onUpdate:modelValue":i[0]||(i[0]=l=>e.optionsStore.options.sitemap.general.enable=l)},null,8,["modelValue"]),e.optionsStore.options.sitemap.general.enable?(u(),S(k,{key:0})):y("",!0)]),_:1},8,["name"]),e.optionsStore.options.sitemap.general.enable?(u(),S(c,{key:0,name:e.GLOBAL_STRINGS.preview},{content:a(()=>[p("div",ge,[t(f,{size:"medium",type:"blue",tag:"a",href:e.rootStore.aioseo.urls.generalSitemapUrl,target:"_blank"},{default:a(()=>[t(A),d(" "+m(n.strings.openSitemap),1)]),_:1},8,["href"])]),p("div",Se,[d(m(n.strings.noIndexDisplayed)+" "+m(n.strings.doYou404)+" ",1),p("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"blankSitemap",!0)},null,8,ye)]),!e.optionsStore.options.deprecated.sitemap.general.advancedSettings.dynamic&&e.rootStore.aioseo.scheduledActions&&e.rootStore.aioseo.scheduledActions.sitemap&&e.rootStore.aioseo.scheduledActions.sitemap.includes("staticSitemapRegeneration")?(u(),S(V,{key:0,class:"static-regeneration-notice",type:"blue"},{default:a(()=>[d(m(n.strings.warningStaticRegeneration),1)]),_:1})):y("",!0)]),_:1},8,["name"])):y("",!0)]),_:1},8,["header-text"]),e.optionsStore.options.sitemap.general.enable?(u(),S(P,{key:1,slug:"generalSitemapSettings","header-text":n.strings.sitemapSettings},{default:a(()=>[t(c,{name:n.strings.enableSitemapIndexes},{content:a(()=>[t(b,{modelValue:e.optionsStore.options.sitemap.general.indexes,"onUpdate:modelValue":i[1]||(i[1]=l=>e.optionsStore.options.sitemap.general.indexes=l),name:"sitemapIndexes",options:[{label:e.GLOBAL_STRINGS.disabled,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.enabled,value:!0}]},null,8,["modelValue","options"]),p("div",_e,[d(m(n.strings.sitemapIndexes)+" ",1),p("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"sitemapIndexes",!0)},null,8,Te)])]),_:1},8,["name"]),e.optionsStore.options.sitemap.general.indexes?(u(),S(c,{key:0,name:n.strings.linksPerSitemap},{content:a(()=>[t(D,{modelValue:e.optionsStore.options.sitemap.general.linksPerIndex,"onUpdate:modelValue":i[2]||(i[2]=l=>e.optionsStore.options.sitemap.general.linksPerIndex=l),class:"aioseo-links-per-site",type:"number",size:"medium",min:1,max:5e4,onKeyup:e.validateLinksPerIndex},null,8,["modelValue","onKeyup"]),p("div",xe,[d(m(n.strings.maxLinks)+" ",1),p("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"maxLinks",!0)},null,8,he)]),e.optionsStore.options.sitemap.general.indexes&&1e3<e.optionsStore.options.sitemap.general.linksPerIndex?(u(),S(V,{key:0,class:"index-notice",type:"yellow"},{default:a(()=>[d(m(n.strings.warningLinksPerSitemap),1)]),_:1})):y("",!0)]),_:1},8,["name"])):y("",!0),t(c,{name:n.strings.postTypes},{content:a(()=>[t(G,{size:"medium",modelValue:e.optionsStore.options.sitemap.general.postTypes.all,"onUpdate:modelValue":i[3]||(i[3]=l=>e.optionsStore.options.sitemap.general.postTypes.all=l)},{default:a(()=>[d(m(n.strings.includeAllPostTypes),1)]),_:1},8,["modelValue"]),e.optionsStore.options.sitemap.general.postTypes.all?y("",!0):(u(),S(O,{key:0,options:e.optionsStore.options.sitemap.general,type:"postTypes"},null,8,["options"])),p("div",Le,[d(m(n.strings.selectPostTypes)+" ",1),p("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"selectPostTypes",!0)},null,8,fe)])]),_:1},8,["name"]),t(c,{name:n.strings.taxonomies},{content:a(()=>[t(G,{size:"medium",modelValue:e.optionsStore.options.sitemap.general.taxonomies.all,"onUpdate:modelValue":i[4]||(i[4]=l=>e.optionsStore.options.sitemap.general.taxonomies.all=l)},{default:a(()=>[d(m(n.strings.includeAllTaxonomies),1)]),_:1},8,["modelValue"]),e.optionsStore.options.sitemap.general.taxonomies.all?y("",!0):(u(),S(O,{key:0,options:e.optionsStore.options.sitemap.general,type:"taxonomies"},null,8,["options"])),p("div",be,[d(m(n.strings.selectTaxonomies)+" ",1),p("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"selectPostTypes",!0)},null,8,ve)])]),_:1},8,["name"]),t(c,{name:n.strings.dateArchiveSitemap},{content:a(()=>[t(b,{modelValue:e.optionsStore.options.sitemap.general.date,"onUpdate:modelValue":i[5]||(i[5]=l=>e.optionsStore.options.sitemap.general.date=l),name:"dateArchiveSitemap",options:[{label:e.GLOBAL_STRINGS.disabled,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.enabled,value:!0}]},null,8,["modelValue","options"]),p("div",ke,[d(m(n.strings.includeDateArchives)+" ",1),p("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"includeArchivePages",!0)},null,8,Ae)])]),_:1},8,["name"]),t(c,{name:n.strings.authorSitemap},{content:a(()=>[t(b,{modelValue:e.optionsStore.options.sitemap.general.author,"onUpdate:modelValue":i[6]||(i[6]=l=>e.optionsStore.options.sitemap.general.author=l),name:"authorSitemap",options:[{label:e.GLOBAL_STRINGS.disabled,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.enabled,value:!0}]},null,8,["modelValue","options"]),p("div",Pe,[d(m(n.strings.includeAuthorArchives)+" ",1),p("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"includeArchivePages",!0)},null,8,Ie)])]),_:1},8,["name"])]),_:1},8,["header-text"])):y("",!0),t(B),e.optionsStore.options.sitemap.general.enable?(u(),S(P,{key:2,slug:"advancedSettings",toggles:e.optionsStore.options.sitemap.general.advancedSettings.enable},{header:a(()=>[t(h,{modelValue:e.optionsStore.options.sitemap.general.advancedSettings.enable,"onUpdate:modelValue":i[7]||(i[7]=l=>e.optionsStore.options.sitemap.general.advancedSettings.enable=l)},null,8,["modelValue"]),p("span",null,m(n.strings.advancedSettings),1)]),default:a(()=>[t(c,{name:n.strings.excludePostsPages,class:"aioseo-exclude-pages-posts"},{content:a(()=>[t(R,{options:e.optionsStore.options.sitemap.general.advancedSettings,type:"posts"},null,8,["options"])]),_:1},8,["name"]),t(c,{name:n.strings.excludeTerms,class:"aioseo-exclude-terms"},{content:a(()=>[t(R,{options:e.optionsStore.options.sitemap.general.advancedSettings,type:"terms"},null,8,["options"]),p("div",Ve,m(n.strings.excludeTermsDescription),1)]),_:1},8,["name"]),t(c,{name:n.strings.priorityScore,align:""},{content:a(()=>[t(v,{priority:e.optionsStore.options.sitemap.general.advancedSettings.priority,rows:["homePage","archive","author"]},null,8,["priority"])]),_:1},8,["name"]),t(c,{name:n.strings.priorityScorePostTypes,align:""},{content:a(()=>[t(h,{modelValue:e.optionsStore.options.sitemap.general.advancedSettings.priority.postTypes.grouped,"onUpdate:modelValue":i[8]||(i[8]=l=>e.optionsStore.options.sitemap.general.advancedSettings.priority.postTypes.grouped=l)},{default:a(()=>[d(m(n.strings.grouped),1)]),_:1},8,["modelValue"]),e.optionsStore.options.sitemap.general.advancedSettings.priority.postTypes.grouped?(u(),S(v,{key:0,priority:e.optionsStore.options.sitemap.general.advancedSettings.priority,rows:["postTypes"]},null,8,["priority"])):y("",!0),e.optionsStore.options.sitemap.general.advancedSettings.priority.postTypes.grouped?y("",!0):(u(),S(v,{key:1,priority:e.optionsStore.dynamicOptions.sitemap.priority.postTypes,rows:_.getPostTypeRows,labels:_.getPostTypeLabels},null,8,["priority","rows","labels"]))]),_:1},8,["name"]),t(c,{name:n.strings.priorityScoreTaxonomies,align:""},{content:a(()=>[t(h,{modelValue:e.optionsStore.options.sitemap.general.advancedSettings.priority.taxonomies.grouped,"onUpdate:modelValue":i[9]||(i[9]=l=>e.optionsStore.options.sitemap.general.advancedSettings.priority.taxonomies.grouped=l)},{default:a(()=>[d(m(n.strings.grouped),1)]),_:1},8,["modelValue"]),e.optionsStore.options.sitemap.general.advancedSettings.priority.taxonomies.grouped?(u(),S(v,{key:0,priority:e.optionsStore.options.sitemap.general.advancedSettings.priority,rows:["taxonomies"]},null,8,["priority"])):y("",!0),e.optionsStore.options.sitemap.general.advancedSettings.priority.taxonomies.grouped?y("",!0):(u(),S(v,{key:1,priority:e.optionsStore.dynamicOptions.sitemap.priority.taxonomies,rows:_.getTaxonomyRows,labels:_.getTaxonomyLabels},null,8,["priority","rows","labels"]))]),_:1},8,["name"]),e.optionsStore.internalOptions.internal.deprecatedOptions.includes("staticSitemap")?(u(),S(c,{key:0,name:n.strings.dynamicallyGenerate},{content:a(()=>[t(b,{modelValue:e.optionsStore.options.deprecated.sitemap.general.advancedSettings.dynamic,"onUpdate:modelValue":i[10]||(i[10]=l=>e.optionsStore.options.deprecated.sitemap.general.advancedSettings.dynamic=l),name:"dynamic",options:[{label:e.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","options"]),p("div",Ge,[d(m(n.strings.dynamicallyGenerateDescription)+" ",1),p("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"dynamicallyGenerate",!0)},null,8,Oe)])]),_:1},8,["name"])):y("",!0),t(c,{name:n.strings.excludeImages},{content:a(()=>[t(b,{modelValue:e.optionsStore.options.sitemap.general.advancedSettings.excludeImages,"onUpdate:modelValue":i[11]||(i[11]=l=>e.optionsStore.options.sitemap.general.advancedSettings.excludeImages=l),name:"excludeImages",options:[{label:e.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","options"]),p("div",Re,[d(m(n.strings.excludeImagesDescription)+" ",1),p("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"excludeImages",!0)},null,8,we)])]),_:1},8,["name"])]),_:1},8,["toggles"])):y("",!0)])}const Bo=M(me,[["render",Me]]);export{Bo as default};