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

2 lines
13 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{b as X,y as J,a3 as Y,h as Z,c as y,G as S,a8 as H}from"./app-core.b862f9c8.js";import{u as ee}from"./CommonSitemap.d3bc15ea.js";import{b as te,r as U,aq as V,f as p,i as se,a0 as i,R as n,j as m,ae as u,U as r,v as e,Q as c,M as g,u as E}from"./vendor-vue-ui.f00a1236.js";import{u as le}from"./MaxCounts.56235a1f.js";import{B as I}from"./Checkbox.e62f1ba4.js";import{C as z}from"./Index.3967c277.js";import{C as R}from"./Card.482ec741.js";import{C as O}from"./ExcludePosts.1e83dc59.js";import{C as G}from"./HtmlTagsEditor.fc0c6398.js";import{C as N}from"./PostTypeOptions.8c36ae5c.js";import{C as $}from"./ProBadge.838818f5.js";import{C as x}from"./SettingsRow.1722e16a.js";import{C as q}from"./Tooltip.cb3a78f6.js";import{S as M}from"./External.e3085be4.js";import{a as j,_ as o}from"./vendor-other.7b559694.js";import"./vendor-lodash.d3ad8b99.js";import"./Checkmark.af3294f4.js";import"./_plugin-vue_export-helper.eefbdd86.js";import"./Close.de45e465.js";import"./Caret.e6c9f7cc.js";import"./Trash.c3e8db0b.js";import"./Slide.805812ec.js";import"./JsonValues.a0694556.js";import"./Button.6c09d515.js";import"./Select.952b21a0.js";import"./AddPlus.f0e1a4b0.js";import"./Editor.ce4b47c1.js";import"./vendor-quill.e1eec88c.js";import"./Input.af82b72e.js";import"./Pencil.1ca5815a.js";import"./UnfilteredHtml.d98e0104.js";import"./vendor-emoji.92c96208.js";import"./PostTypes.54ea30b8.js";import"./HighlightToggle.ff63a064.js";import"./Radio.b5155ca9.js";import"./Row.2a7735dd.js";const Q=_=>{const s=X(),T=J(),A=U(!0),t=U(!1),k=()=>{A.value=!1,h()},h=()=>{if(!T.options.sitemap.llms[_]){t.value=!1;return}_==="enableFull"?t.value=s.aioseo.urls.llmsFullUrl.isAccessible:t.value=s.aioseo.urls.llmsUrl.isAccessible};return te(()=>{window.aioseoBus.$on("changes-saved",async()=>{if(k(),T.options.sitemap.llms[_])try{const L=_==="enableFull"?s.aioseo.urls.llmsFullUrl.url:s.aioseo.urls.llmsUrl.url;let v=0;const f=10,C=2e4;for(;v<f;){try{const{status:b}=await Y.get(L);if(b===200){t.value=!0;break}}catch{}v++,v<f&&await new Promise(b=>setTimeout(b,C))}v>=f&&(t.value=!1)}catch{t.value=!1}}),h()}),{llmsButtonLocked:A,llmsTxtAccessible:t,processChangesSaved:k,checkLlmsTxtAccessibility:h}},oe={class:"aioseo-llms-sitemap"},ne={class:"aioseo-settings-row aioseo-section-description"},ie=["innerHTML"],ae={class:"aioseo-description aioseo-llms-txt-description"},me={class:"aioseo-description aioseo-llms-txt-description"},re={class:"aioseo-description aioseo-llms-txt-description"},de=["innerHTML"],ue=["innerHTML"],pe=["innerHTML"],ce=["innerHTML"],ge={class:"aioseo-description"},Te=["innerHTML"],xe={class:"aioseo-description"},ve=["innerHTML"],fe={class:"aioseo-description"},be=["innerHTML"],st={__name:"LlmsSitemap",setup(_){const s="all-in-one-seo-pack",T=Z(),A=X(),t=J(),{maxRecommendedCount:k}=le(),{validateLinksPerIndex:h}=ee(1,5e4),{llmsButtonLocked:L,llmsTxtAccessible:v}=Q("enable"),{llmsButtonLocked:f,llmsTxtAccessible:C}=Q("enableFull"),b=U(0),F=U(0),K=E(()=>["attachment"]),B=E({get(){return t.options.sitemap.llms.advancedSettings.linksPerPostTax},set(D){const a=h(D);t.options.sitemap.llms.advancedSettings.linksPerPostTax=a}}),l={title:o("LLMs.txt",s),description:o("The llms.txt is a specialized file designed to help AI engines (such as language models) discover the content on your site more easily. Similar to how XML sitemaps assist search engines, the llms.txt file guides AI crawlers by providing important details about the available site content, improving visibility and discoverability across AI-driven tools.",s),llmsTxtEnable:o("Enable llms.txt",s),llmsTxt:o("llms.txt",s),llmsTxtDescription:o("Generate an llms.txt file to help AI engines discover the content on your site more easily.",s),llmsTxtButton:o("Open llms.txt",s),llmsTxtTooltip:o("To view the llms.txt file, enable the setting, save changes and wait a minute for the file to be generated.",s),llmsTxtFullEnable:o("Enable llms-full.txt",s),llmsTxtFullDescription:o("Generate a detailed llms-full.txt file to help AI engines index all of your sites content quickly without straining your servers resources.",s),llmsTxtFullButton:o("Open llms-full.txt",s),llmsTxtFullTooltip:o("To view the llms-full.txt file, enable the setting, save changes and wait a minute for the file to be generated.",s),llmsTxtConvertToMd:o("Convert Posts to Markdown",s),llmsTxtConvertToMdDescription:o("Generate a markdown version of your posts when <code>.md</code> is appended to their permalink. This provides AI engines with clean version of your pages that can be crawled more quickly.",s),llmsAdvancedSettings:o("LLMs.txt Settings",s),llmsAdvancedSettingsExcludePostsPages:o("Exclude Posts / Pages",s),llmsAdvancedSettingsExcludeTerms:o("Exclude Terms",s),llmsAdvancedSettingsPostTypes:o("Post Types",s),llmsAdvancedSettingsTaxonomies:o("Taxonomies",s),llmsAdvancedSettingsSelectPostTypes:o("Select which Post Types to include in the llms.txt file.",s),llmsAdvancedSettingsSelectTaxonomies:o("Select which Taxonomies to include in the llms.txt file.",s),llmsAdvancedSettingsIncludeAllPostTypes:o("Include All Post Types",s),llmsAdvancedSettingsIncludeAllTaxonomies:o("Include All Taxonomies",s),llmsAdvancedSettingsLinksPerPostTax:o("URLs per Post Type / Taxonomy",s),llmsAdvancedSettingsLinksPerPostTaxDescription:o("Allows you to specify the maximum number of pages per post type/taxonomy in your llms.txt file.",s),llmsAdvancedSettingsTitle:o("Title",s),llmsAdvancedSettingsDescription:o("The title of the llms.txt file.",s),llmsAdvancedSettingsClickToAddLlmsTitle:o("Click on the tags below to insert variables into your title.",s),llmsAdvancedSettingsClickToAddLlmsDescriptionTitle:o("Description",s),llmsAdvancedSettingsClickToAddLlmsDescription:o("Click on the tags below to insert variables into your description.",s),llmsTxtConvertToMdUpsell:j(o("Converting posts to markdown is a %1$s feature. %2$s",s),"PRO",y.getUpsellLink("sitemaps","convert-posts-to-markdown",S.learnMore,"liteUpgrade",!0)),llmsFullTxtUpsell:j(o("The llms-full.txt is a %1$s feature. %2$s",s),"PRO",y.getUpsellLink("sitemaps","llms-full-txt",S.learnMore,"liteUpgrade",!0))};return(D,a)=>{const w=V("base-toggle"),P=V("base-button"),W=V("base-input");return p(),se("div",oe,[i(e(R),{slug:"llmsSitemap"},{header:n(()=>[m("span",null,r(l.title),1)]),default:n(()=>[m("div",ne,[u(r(l.description)+" ",1),m("span",{innerHTML:e(y).getDocLink(e(S).learnMore,"llmsTxt",!0)},null,8,ie)]),i(e(x),{name:l.llmsTxtEnable},{content:n(()=>[i(w,{modelValue:e(t).options.sitemap.llms.enable,"onUpdate:modelValue":a[0]||(a[0]=d=>e(t).options.sitemap.llms.enable=d)},null,8,["modelValue"]),m("div",ae,[m("div",null,r(l.llmsTxtDescription),1),!(e(v)&&e(t).options.sitemap.llms.enable)||e(L)&&!e(t).options.sitemap.llms.enable?(p(),c(e(q),{key:0,type:"action",tag:"div",class:"aioseo-llms-txt-tooltip"},{tooltip:n(()=>[u(r(l.llmsTxtTooltip),1)]),default:n(()=>[m("span",null,[e(t).options.sitemap.llms.enable?(p(),c(P,{key:0,disabled:!0,class:"aioseo-llms-txt-button",size:"medium",type:"blue",tag:"button"},{default:n(()=>[i(e(M)),u(" "+r(l.llmsTxtButton),1)]),_:1})):g("",!0)])]),_:1})):g("",!0),!e(L)&&e(v)&&e(t).options.sitemap.llms.enable||e(L)&&e(v)&&e(t).options.sitemap.llms.enable?(p(),c(P,{key:1,class:"aioseo-llms-txt-button",size:"medium",type:"blue",tag:"a",href:e(H)(e(A).aioseo.urls.llmsUrl.url),target:"_blank"},{default:n(()=>[i(e(M)),u(" "+r(l.llmsTxtButton),1)]),_:1},8,["href"])):g("",!0)])]),_:1},8,["name"]),i(e(x),null,{name:n(()=>[u(r(l.llmsTxtFullEnable)+" ",1),e(T).isUnlicensed?(p(),c(e($),{key:0})):g("",!0)]),content:n(()=>[i(w,{modelValue:e(t).options.sitemap.llms.enableFull,"onUpdate:modelValue":a[1]||(a[1]=d=>e(t).options.sitemap.llms.enableFull=d),disabled:e(T).isUnlicensed},null,8,["modelValue","disabled"]),m("div",me,[m("div",null,r(l.llmsTxtFullDescription),1),!e(T).isUnlicensed&&(!(e(C)&&e(t).options.sitemap.llms.enableFull)||e(f)&&!e(t).options.sitemap.llms.enableFull)?(p(),c(e(q),{key:0,type:"action",tag:"div",class:"aioseo-llms-txt-tooltip"},{tooltip:n(()=>[u(r(l.llmsTxtFullTooltip),1)]),default:n(()=>[m("span",null,[e(t).options.sitemap.llms.enableFull?(p(),c(P,{key:0,disabled:!0,class:"aioseo-llms-txt-button",size:"medium",type:"blue",tag:"button"},{default:n(()=>[i(e(M)),u(" "+r(l.llmsTxtFullButton),1)]),_:1})):g("",!0)])]),_:1})):g("",!0),!e(f)&&e(C)&&e(t).options.sitemap.llms.enableFull||e(f)&&e(C)&&e(t).options.sitemap.llms.enableFull?(p(),c(P,{key:1,class:"aioseo-llms-txt-button",size:"medium",type:"blue",tag:"a",href:e(H)(e(A).aioseo.urls.llmsFullUrl.url),target:"_blank"},{default:n(()=>[i(e(M)),u(" "+r(l.llmsTxtFullButton),1)]),_:1},8,["href"])):g("",!0)]),e(T).isUnlicensed?(p(),c(e(z),{key:0,type:"blue",innerHTML:l.llmsFullTxtUpsell},null,8,["innerHTML"])):g("",!0)]),_:1}),i(e(x),null,{name:n(()=>[u(r(l.llmsTxtConvertToMd)+" ",1),e(T).isUnlicensed?(p(),c(e($),{key:0})):g("",!0)]),content:n(()=>[i(w,{modelValue:e(t).options.sitemap.llms.convertToMd,"onUpdate:modelValue":a[2]||(a[2]=d=>e(t).options.sitemap.llms.convertToMd=d),disabled:e(T).isUnlicensed},null,8,["modelValue","disabled"]),m("div",re,[m("div",{innerHTML:l.llmsTxtConvertToMdDescription},null,8,de)]),e(T).isUnlicensed?(p(),c(e(z),{key:0,class:"inline-upsell",type:"blue"},{default:n(()=>[m("div",{innerHTML:l.llmsTxtConvertToMdUpsell},null,8,ue)]),_:1})):g("",!0)]),_:1})]),_:1}),i(e(R),{slug:"llmsSitemapAdvancedSettings"},{header:n(()=>[m("span",null,r(l.llmsAdvancedSettings),1)]),default:n(()=>[m("div",null,[i(e(x),{name:l.llmsAdvancedSettingsTitle,align:""},{content:n(()=>[i(e(G),{modelValue:e(t).options.sitemap.llms.advancedSettings.title,"onUpdate:modelValue":a[3]||(a[3]=d=>e(t).options.sitemap.llms.advancedSettings.title=d),"line-numbers":!1,single:"",onCounter:a[4]||(a[4]=d=>b.value=d.length),"tags-context":"llmsTitle","default-tags":["site_title","tagline"],"show-all-tags-link":!1},{"tags-description":n(()=>[u(r(l.llmsAdvancedSettingsClickToAddLlmsTitle),1)]),_:1},8,["modelValue"]),m("div",{class:"max-recommended-count",innerHTML:e(k)(b.value,95)},null,8,pe)]),_:1},8,["name"]),i(e(x),{name:l.llmsAdvancedSettingsClickToAddLlmsDescriptionTitle,align:""},{content:n(()=>[i(e(G),{modelValue:e(t).options.sitemap.llms.advancedSettings.description,"onUpdate:modelValue":a[5]||(a[5]=d=>e(t).options.sitemap.llms.advancedSettings.description=d),"line-numbers":!1,description:"",onCounter:a[6]||(a[6]=d=>F.value=d.length),"tags-context":"llmsDescription","default-tags":["site_title","tagline"],"show-all-tags-link":!1},{"tags-description":n(()=>[u(r(l.llmsAdvancedSettingsClickToAddLlmsDescription),1)]),_:1},8,["modelValue"]),m("div",{class:"max-recommended-count",innerHTML:e(k)(F.value,200)},null,8,ce)]),_:1},8,["name"]),i(e(x),{name:l.llmsAdvancedSettingsLinksPerPostTax},{content:n(()=>[i(W,{modelValue:B.value,"onUpdate:modelValue":a[7]||(a[7]=d=>B.value=d),class:"aioseo-links-per-post-tax",type:"number",size:"medium",min:1,max:5e4},null,8,["modelValue"]),m("div",ge,[u(r(l.llmsAdvancedSettingsLinksPerPostTaxDescription)+" ",1),m("span",{innerHTML:e(y).getDocLink(e(S).learnMore,"llmsTxt",!0)},null,8,Te)])]),_:1},8,["name"]),i(e(x),{name:l.llmsAdvancedSettingsPostTypes},{content:n(()=>[i(e(I),{size:"medium",modelValue:e(t).options.sitemap.llms.advancedSettings.postTypes.all,"onUpdate:modelValue":a[8]||(a[8]=d=>e(t).options.sitemap.llms.advancedSettings.postTypes.all=d)},{default:n(()=>[u(r(l.llmsAdvancedSettingsIncludeAllPostTypes),1)]),_:1},8,["modelValue"]),e(t).options.sitemap.llms.advancedSettings.postTypes.all?g("",!0):(p(),c(e(N),{key:0,options:e(t).options.sitemap.llms.advancedSettings,type:"postTypes",excluded:K.value},null,8,["options","excluded"])),m("div",xe,[u(r(l.llmsAdvancedSettingsSelectPostTypes)+" ",1),m("span",{innerHTML:e(y).getDocLink(e(S).learnMore,"llmsTxt",!0)},null,8,ve)])]),_:1},8,["name"]),i(e(x),{name:l.llmsAdvancedSettingsTaxonomies},{content:n(()=>[i(e(I),{size:"medium",modelValue:e(t).options.sitemap.llms.advancedSettings.taxonomies.all,"onUpdate:modelValue":a[9]||(a[9]=d=>e(t).options.sitemap.llms.advancedSettings.taxonomies.all=d)},{default:n(()=>[u(r(l.llmsAdvancedSettingsIncludeAllTaxonomies),1)]),_:1},8,["modelValue"]),e(t).options.sitemap.llms.advancedSettings.taxonomies.all?g("",!0):(p(),c(e(N),{key:0,options:e(t).options.sitemap.llms.advancedSettings,type:"taxonomies",excluded:[]},null,8,["options"])),m("div",fe,[u(r(l.llmsAdvancedSettingsSelectTaxonomies)+" ",1),m("span",{innerHTML:e(y).getDocLink(e(S).learnMore,"llmsTxt",!0)},null,8,be)])]),_:1},8,["name"]),i(e(x),{name:l.llmsAdvancedSettingsExcludePostsPages,class:"aioseo-exclude-pages-posts",align:""},{content:n(()=>[i(e(O),{options:e(t).options.sitemap.llms.advancedSettings,type:"posts"},null,8,["options"])]),_:1},8,["name"]),i(e(x),{name:l.llmsAdvancedSettingsExcludeTerms,class:"aioseo-exclude-terms",align:""},{content:n(()=>[i(e(O),{options:e(t).options.sitemap.llms.advancedSettings,type:"terms"},null,8,["options"])]),_:1},8,["name"])])]),_:1})])}}};export{st as default};