Sid Gifari File Manager
š Root
/
home2
/
meumer25
/
www
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
dist
/
Lite
/
assets
/
js
/
Editing: LlmsSitemap.d66e336b.js
import{G as y}from"./constants.bc5863fe.js";import{a as Y,e as j,h as Q,i as Z,b as S,$ as E}from"./index.317ad629.js";import{u as ee}from"./CommonSitemap.d3bc15ea.js";import{Y as U,f as te,W as H,c as se,l as i,a2 as n,R as e,a6 as V,o as u,_ as m,$ as r,a7 as p,a1 as c,a4 as g}from"./runtime-core.esm-bundler.ce5add0b.js";import{u as le}from"./MaxCounts.b4988c4d.js";import{B as I}from"./Checkbox.6a913600.js";import{C as z}from"./Index.2a391835.js";import{C as R}from"./Card.b75a3969.js";import{C as O}from"./ExcludePosts.d14452d5.js";import{C as $}from"./HtmlTagsEditor.c93abc5f.js";import{C as G}from"./PostTypeOptions.5b828546.js";import{C as N}from"./ProBadge.e6ec5f9a.js";import{C as x}from"./SettingsRow.35256805.js";import{C as q}from"./Tooltip.23c7170d.js";import{S as M}from"./External.641efa63.js";import"./translations.e71e2202.js";import{_ as o,a as W}from"./default-i18n.65d58dd6.js";import"./helpers.633a054c.js";import"./Checkmark.762f711e.js";import"./_plugin-vue_export-helper.eefbdd86.js";import"./runtime-dom.esm-bundler.dc49ee3e.js";import"./Close.ccd53ef3.js";import"./Caret.cd869c5d.js";import"./Trash.87a7d946.js";import"./Slide.3003ef51.js";import"./JsonValues.a0694556.js";import"./Button.9a301412.js";import"./Select.69906a74.js";import"./AddPlus.39af5a0f.js";import"./Editor.8a5e9531.js";import"./isEqual.59768dc1.js";import"./_baseIsEqual.c0ca09f7.js";import"./_getTag.6fb74b2e.js";import"./_baseClone.cfa156ff.js";import"./_arrayEach.6af5abac.js";import"./Input.f04bee4d.js";import"./Pencil.d82df6a1.js";import"./UnfilteredHtml.f93ca71d.js";import"./PostTypes.4e006733.js";import"./HighlightToggle.51ada893.js";import"./Radio.b8474a23.js";import"./Row.bb9acf3f.js";const X=_=>{const s=Y(),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 Q.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"],pe=["innerHTML"],ue=["innerHTML"],ce={class:"aioseo-description"},ge=["innerHTML"],Te={class:"aioseo-description"},xe=["innerHTML"],ve={class:"aioseo-description"},fe=["innerHTML"],at={__name:"LlmsSitemap",setup(_){const s="all-in-one-seo-pack",T=Z(),A=Y(),t=j(),{maxRecommendedCount:k}=le(),{validateLinksPerIndex:h}=ee(1,5e4),{llmsButtonLocked:L,llmsTxtAccessible:v}=X("enable"),{llmsButtonLocked:f,llmsTxtAccessible:C}=X("enableFull"),b=U(0),F=U(0),J=H(()=>["attachment"]),B=H({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 siteās content quickly without straining your serverās 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 `.md` 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:W(o("Converting posts to markdown is a %1$s feature. %2$s",s),"PRO",S.getUpsellLink("sitemaps","convert-posts-to-markdown",y.learnMore,"liteUpgrade",!0)),llmsFullTxtUpsell:W(o("The llms-full.txt is a %1$s feature. %2$s",s),"PRO",S.getUpsellLink("sitemaps","llms-full-txt",y.learnMore,"liteUpgrade",!0))};return(D,a)=>{const w=V("base-toggle"),P=V("base-button"),K=V("base-input");return u(),se("div",oe,[i(e(R),{slug:"llmsSitemap"},{header:n(()=>[m("span",null,r(l.title),1)]),default:n(()=>[m("div",ne,[p(r(l.description)+" ",1),m("span",{innerHTML:e(S).getDocLink(e(y).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?(u(),c(e(q),{key:0,type:"action",tag:"div",class:"aioseo-llms-txt-tooltip"},{tooltip:n(()=>[p(r(l.llmsTxtTooltip),1)]),default:n(()=>[m("span",null,[e(t).options.sitemap.llms.enable?(u(),c(P,{key:0,disabled:!0,class:"aioseo-llms-txt-button",size:"medium",type:"blue",tag:"button"},{default:n(()=>[i(e(M)),p(" "+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?(u(),c(P,{key:1,class:"aioseo-llms-txt-button",size:"medium",type:"blue",tag:"a",href:e(E)(e(A).aioseo.urls.llmsUrl.url),target:"_blank"},{default:n(()=>[i(e(M)),p(" "+r(l.llmsTxtButton),1)]),_:1},8,["href"])):g("",!0)])]),_:1},8,["name"]),i(e(x),null,{name:n(()=>[p(r(l.llmsTxtFullEnable)+" ",1),e(T).isUnlicensed?(u(),c(e(N),{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)?(u(),c(e(q),{key:0,type:"action",tag:"div",class:"aioseo-llms-txt-tooltip"},{tooltip:n(()=>[p(r(l.llmsTxtFullTooltip),1)]),default:n(()=>[m("span",null,[e(t).options.sitemap.llms.enableFull?(u(),c(P,{key:0,disabled:!0,class:"aioseo-llms-txt-button",size:"medium",type:"blue",tag:"button"},{default:n(()=>[i(e(M)),p(" "+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?(u(),c(P,{key:1,class:"aioseo-llms-txt-button",size:"medium",type:"blue",tag:"a",href:e(E)(e(A).aioseo.urls.llmsFullUrl.url),target:"_blank"},{default:n(()=>[i(e(M)),p(" "+r(l.llmsTxtFullButton),1)]),_:1},8,["href"])):g("",!0)]),e(T).isUnlicensed?(u(),c(e(z),{key:0,type:"blue",innerHTML:l.llmsFullTxtUpsell},null,8,["innerHTML"])):g("",!0)]),_:1}),i(e(x),null,{name:n(()=>[p(r(l.llmsTxtConvertToMd)+" ",1),e(T).isUnlicensed?(u(),c(e(N),{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",null,r(l.llmsTxtConvertToMdDescription),1)]),e(T).isUnlicensed?(u(),c(e(z),{key:0,class:"inline-upsell",type:"blue"},{default:n(()=>[m("div",{innerHTML:l.llmsTxtConvertToMdUpsell},null,8,de)]),_: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($),{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(()=>[p(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($),{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(()=>[p(r(l.llmsAdvancedSettingsClickToAddLlmsDescription),1)]),_:1},8,["modelValue"]),m("div",{class:"max-recommended-count",innerHTML:e(k)(F.value,200)},null,8,ue)]),_:1},8,["name"]),i(e(x),{name:l.llmsAdvancedSettingsLinksPerPostTax},{content:n(()=>[i(K,{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",ce,[p(r(l.llmsAdvancedSettingsLinksPerPostTaxDescription)+" ",1),m("span",{innerHTML:e(S).getDocLink(e(y).learnMore,"llmsTxt",!0)},null,8,ge)])]),_: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(()=>[p(r(l.llmsAdvancedSettingsIncludeAllPostTypes),1)]),_:1},8,["modelValue"]),e(t).options.sitemap.llms.advancedSettings.postTypes.all?g("",!0):(u(),c(e(G),{key:0,options:e(t).options.sitemap.llms.advancedSettings,type:"postTypes",excluded:J.value},null,8,["options","excluded"])),m("div",Te,[p(r(l.llmsAdvancedSettingsSelectPostTypes)+" ",1),m("span",{innerHTML:e(S).getDocLink(e(y).learnMore,"llmsTxt",!0)},null,8,xe)])]),_: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(()=>[p(r(l.llmsAdvancedSettingsIncludeAllTaxonomies),1)]),_:1},8,["modelValue"]),e(t).options.sitemap.llms.advancedSettings.taxonomies.all?g("",!0):(u(),c(e(G),{key:0,options:e(t).options.sitemap.llms.advancedSettings,type:"taxonomies",excluded:[]},null,8,["options"])),m("div",ve,[p(r(l.llmsAdvancedSettingsSelectTaxonomies)+" ",1),m("span",{innerHTML:e(S).getDocLink(e(y).learnMore,"llmsTxt",!0)},null,8,fe)])]),_: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{at as default};
Save
Cancel