관리-도구
편집 파일: GeneralSitemap.l7jv2l5e.js
import{F as N,P as C,G as H}from"./constants.dnzd2kuo.js";import{j as w,u as U,l as E}from"./index.lqcu3hi3.js";import{S as q,a as z,u as J}from"./SearchConsoleInline.fyt6v8d8.js";import F from"./AdditionalPages.n5pv3wrl.js";import{B as Y}from"./Checkbox.cv4w58s0.js";import{B as j}from"./RadioToggle.cler7vn3.js";import{C as X}from"./Caret.g6s6s7gs.js";import{C as K}from"./Card.nubn9etl.js";import{C as W}from"./ExcludePosts.i12q2f67.js";import{C as Q}from"./PostTypeOptions.oeuoxlz8.js";import{u as Z}from"./JsonValues.g6ep3o3z.js";import{T as $,a as ee}from"./Row.ld0va2bo.js";import"./translations.e22mvhfh.js";import{_ as M}from"./_plugin-vue_export-helper.oebm7xum.js";import{_ as o,s as oe}from"./default-i18n.bz7purh4.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.h3clfjuw.js";import{C as ie}from"./SettingsRow.d9u0swi1.js";import{S as se}from"./External.h5te4wqm.js";import"./cleanForSlug.etvx808q.js";import"./GoogleSearchConsole.mrngyubh.js";import"./params.k8e95b6q.js";import"./Actionable.n0qjh7er.js";import"./CheckSolid.ktze41sq.js";import"./ExclamationSolid.jc4spp6p.js";import"./WpTable.ku0ajsnd.js";import"./ScrollTo.ntqtkazp.js";import"./index.cw7tfyil.js";import"./Index.gtlvh3ar.js";import"./Table.fw94frzs.js";import"./numbers.oc93q9ut.js";import"./Tooltip.i4md1nj9.js";import"./Slide.dop8j51m.js";import"./Download.cmimu09k.js";import"./date.cp76fgkd.js";import"./Url.mx7n0tnd.js";import"./DatePicker.ns06gy6o.js";import"./Calendar.fbofsn3b.js";import"./pick.gnbqgz74.js";import"./_getTag.k19irihw.js";import"./debounce.lmahs4m3.js";import"./toNumber.o3a8s20t.js";import"./isEqual.izz0yjhb.js";import"./_baseIsEqual.btyep0ht.js";import"./Exclamation.f0pmbpi9.js";import"./Checkmark.d5kkjaf5.js";import"./AddPlus.i4qcrr9e.js";import"./PostTypes.k189gg5t.js";import"./HighlightToggle.dpi9oeof.js";import"./Radio.n2kbmrhz.js";import"./Row.h4gujlzc.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:j,CoreAlert:X,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 Ro=M(me,[["render",Me]]);export{Ro as default};