PageSourceSearch

https://workexe.co/assets/help.seo-glossary._slug-B1jII41X.js

js workexe.co collected 2026-10-02 00:16:52 UTC 9,604 bytes, 2 lines download raw bytes

1import{ac as e,d as L,w as T,a9 as I,aa as q,a7 as S,af as g,P as E,i as G,l as u}from"./index-DqMSRlLJ.js";import{D as A}from"./DetailsFaq-BMKSkKXQ.js";import{L as R}from"./list-DtBzh5MN.js";import{a as d,I as C,b as D}from"./InternalLinkSuggestions-BuO_g8MD.js";import{P}from"./PageBreadcrumb-CK2pnTEu.js";import{A as j}from"./arrow-left-CRFTgykZ.js";import{A as N}from"./arrow-right-Dw7Qy7xl.js";import"./arrow-up-right-BgOgcU0B.js";import"./chevron-right-DPoGj8BK.js";const w="term-heading";function M(t){return t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/gi,"-").replace(/^-+|-+$/g,"")}function v(t,s,l){const r=M(s);return r?`${t}--${r}`:`${t}--h3-${l}`}function F(t){const s=[{id:"overview",label:t.overviewLabel},...t.sections.map(l=>({id:l.id,label:l.heading,children:l.subsections&&l.subsections.length>0?l.subsections.map((r,n)=>({id:v(l.id,r.heading,n),label:r.heading})):void 0}))];return t.hasExample&&s.push({id:"example",label:t.exampleLabel}),t.hasFaq&&s.push({id:"faq",label:t.faqLabel}),t.hasRelated&&s.push({id:"related-terms",label:t.relatedLabel}),t.hasInWorkexe&&s.push({id:"in-workexe",label:t.inWorkexeLabel}),{id:w,label:t.termTitle,children:s}}const y="text-muted-foreground underline-offset-4 transition hover:text-foreground hover:underline",W={1:"list-decimal space-y-2 pl-5 text-sm marker:font-medium marker:text-foreground/80",2:"mt-1.5 list-decimal space-y-1.5 pl-5 text-sm marker:text-muted-foreground/80",3:"mt-1 list-disc space-y-1 pl-5 text-sm text-muted-foreground marker:text-muted-foreground/60"};function k({nodes:t,depth:s}){return e.jsx("ol",{className:W[s],children:t.map(l=>e.jsxs("li",{className:"leading-snug",children:[e.jsx("a",{href:`#${l.id}`,className:s===1?`${y} font-medium text-foreground`:y,children:l.label}),l.children&&l.children.length>0?e.jsx(k,{nodes:l.children,depth:s===1?2:3}):null]},l.id))})}function B({title:t,termTitle:s,overviewLabel:l,exampleLabel:r,faqLabel:n,relatedLabel:a,inWorkexeLabel:x,sections:c,hasExample:i,hasFaq:h,hasRelated:f,hasInWorkexe:p}){const b=F({termTitle:s,overviewLabel:l,exampleLabel:r,faqLabel:n,relatedLabel:a,inWorkexeLabel:x,sections:c,hasExample:i,hasFaq:h,hasRelated:f,hasInWorkexe:p});return e.jsx("nav",{className:"mt-6","aria-label":t,children:e.jsxs("details",{className:"group rounded-xl border border-border bg-muted/40",defaultOpen:!0,children:[e.jsxs("summary",{className:"flex w-full cursor-pointer list-none items-center gap-2 rounded-xl px-5 py-4 text-left [&::-webkit-details-marker]:hidden",children:[e.jsx(R,{className:"h-4 w-4 shrink-0 text-foreground"}),e.jsx("span",{className:"flex-1 text-sm font-semibold text-foreground",children:t}),e.jsx(L,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform group-open:rotate-180"})]}),e.jsx("div",{className:"border-t border-border/60 px-5 pb-5 pt-4",children:e.jsx(k,{nodes:[b],depth:1})})]})})}const H="text-lg font-semibold tracking-tight text-foreground md:text-xl";function _({sections:t}){return t.length===0?null:e.jsx(e.Fragment,{children:t.map(s=>e.jsxs("section",{id:s.id,className:"scroll-mt-28 mt-10",children:[e.jsx("h2",{className:H,children:s.heading}),s.body?e.jsx("p",{className:"mt-3 text-base leading-relaxed text-foreground/90",children:e.jsx(d,{text:s.body,segmentId:`${s.id}-body`})}):null,s.subsections&&s.subsections.length>0?e.jsx("div",{className:"mt-5 space-y-5",children:s.subsections.map((l,r)=>e.jsxs("div",{children:[e.jsx("h3",{id:v(s.id,l.heading,r),className:"scroll-mt-28 text-base font-semibold text-foreground",children:l.heading}),e.jsx("p",{className:"mt-2 text-sm leading-relaxed text-foreground/85 md:text-base",children:e.jsx(d,{text:l.body,segmentId:`${s.id}-sub-${r}`})})]},l.heading))}):null,s.bullets&&s.bullets.length>0?e.jsx("ul",{className:"mt-3 list-disc space-y-2 pl-5 text-base leading-relaxed text-foreground/90",children:s.bullets.map((l,r)=>e.jsx("li",{children:e.jsx(d,{text:l,segmentId:`${s.id}-bullet-${r}`})},l))}):null]},s.id))})}function O(t){const s=[];t.long&&s.push({segmentId:"overview",text:t.long,linkScope:"overview",allowEngine:!0,allowGlossary:!1}),t.example&&s.push({segmentId:"example",text:t.example,linkScope:"example",allowEngine:!0,allowGlossary:!1});for(const l of t.sections)l.body&&s.push({segmentId:`${l.id}-body`,text:l.body,linkScope:l.id,allowEngine:!0,allowGlossary:!0}),l.subsections?.forEach((r,n)=>{s.push({segmentId:`${l.id}-sub-${n}`,text:r.body,linkScope:`${l.id}-sub-${n}`,allowEngine:!0,allowGlossary:!0})}),l.bullets?.forEach((r,n)=>{s.push({segmentId:`${l.id}-bullet-${n}`,text:r,linkScope:`${l.id}-bullet`,allowEngine:!0,allowGlossary:!1})});return t.faq.forEach((l,r)=>{s.push({segmentId:`faq-${r}`,text:l.a,linkScope:`faq-${r}`,allowEngine:!1,allowGlossary:!1})}),s}function ee(){const{slug:t,lang:s,inlineAnchors:l,pageKey:r}=T.useLoaderData(),n=G[s],a=I(t,s);if(!a)return null;const{prev:x,next:c}=q(t,s),i=S(t,s),h=g.useMemo(()=>[a.term,a.short,a.long,a.example??"",...a.sections.flatMap(o=>[o.heading,o.body??"",...o.bullets??[],...(o.subsections??[]).flatMap(m=>[m.heading,m.body])]),...a.faq.flatMap(o=>[o.q,o.a])].join(` 
2 `),[a]),f=g.useMemo(()=>[r],[r]),p=g.useMemo(()=>[r,...i.map(o=>`/help/seo-glossary/${o.slug}/`)],[r,i]),b=g.useMemo(()=>E(h,s).filter(o=>o.slug!==a.slug&&!i.some(m=>m.slug===o.slug)),[h,s,a.slug,i]),$=g.useMemo(()=>O({long:a.long,example:a.example,sections:a.sections,faq:a.faq}),[a]);return e.jsxs(e.Fragment,{children:[e.jsx(P,{items:[{label:n.helpCenter,to:"/help"},{label:n.title,to:"/help/seo-glossary"},{label:a.term}]}),e.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-10 md:px-6 md:py-14",children:[e.jsxs(u,{to:"/help/seo-glossary",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground",children:[e.jsx(j,{className:"h-3.5 w-3.5"}),n.backToGlossary]}),e.jsx(C,{segments:$,engineAnchors:l,glossaryTerms:b,excludePaths:f,children:e.jsxs("article",{className:"mt-4 min-w-0 max-w-3xl",children:[e.jsx("h1",{id:w,className:"scroll-mt-28 text-3xl font-bold tracking-tight md:text-4xl",children:a.term}),e.jsx("p",{className:"mt-3 text-base text-muted-foreground",children:a.short}),e.jsx(B,{title:n.onThisPageDetail,termTitle:a.term,overviewLabel:n.overview,exampleLabel:n.example,faqLabel:n.faq,relatedLabel:n.relatedTerms,inWorkexeLabel:n.inWorkexe,sections:a.sections,hasExample:!!a.example,hasFaq:a.faq.length>0,hasRelated:i.length>0,hasInWorkexe:!!a.moduleSlug}),e.jsxs("section",{id:"overview",className:"scroll-mt-28 mt-8",children:[e.jsx("h2",{className:"text-lg font-semibold tracking-tight text-foreground md:text-xl",children:n.overview}),e.jsx("p",{className:"glossary-overview mt-3 text-base leading-relaxed text-foreground
2/90",children:e.jsx(d,{text:a.long,segmentId:"overview"})})]}),e.jsx(_,{sections:a.sections}),a.example?e.jsxs("section",{id:"example",className:"scroll-mt-28 mt-10",children:[e.jsx("h2",{className:"text-lg font-semibold tracking-tight text-foreground md:text-xl",children:n.example}),e.jsx("div",{className:"mt-3 rounded-xl border border-primary/20 bg-primary/5 px-4 py-4 text-sm leading-relaxed text-foreground/90",children:e.jsx(d,{text:a.example,segmentId:"example"})})]}):null,e.jsx(D,{pageKey:r,lang:s,variant:"glossary",excludePaths:p}),a.faq.length>0?e.jsxs("section",{id:"faq",className:"scroll-mt-28 mt-10",children:[e.jsx("h2",{className:"text-lg font-semibold tracking-tight text-foreground md:text-xl",children:n.faq}),e.jsx(A,{items:a.faq,className:"mt-4 w-full",triggerClassName:"text-left text-sm font-medium",answerClassName:"faq-answer pb-4 text-sm text-muted-foreground",renderAnswer:(o,m)=>e.jsx(d,{text:o.a,segmentId:`faq-${m}`})})]}):null,i.length>0?e.jsxs("section",{id:"related-terms",className:"scroll-mt-28 mt-10",children:[e.jsx("h2",{className:"text-lg font-semibold tracking-tight text-foreground md:text-xl",children:n.relatedTerms}),e.jsx("ul",{className:"mt-3 space-y-2",children:i.map(o=>e.jsxs("li",{children:[e.jsx(u,{to:"/help/seo-glossary/$slug",params:{slug:o.slug},className:"text-sm font-medium text-primary hover:underline",children:o.term}),e.jsx("p",{className:"mt-0.5 text-sm text-muted-foreground",children:o.short})]},o.slug))})]}):null,a.moduleSlug?e.jsxs("section",{id:"in-workexe",className:"scroll-mt-28 mt-10",children:[e.jsx("h2",{className:"text-lg font-semibold tracking-tight text-foreground md:text-xl",children:n.inWorkexe}),e.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:e.jsxs(u,{to:"/modules/$slug",params:{slug:a.moduleSlug},className:"inline-flex items-center gap-1 font-medium text-primary hover:underline",children:[n.moduleCta,e.jsx(N,{className:"h-3.5 w-3.5"})]})})]}):null]})},r),e.jsxs("nav",{className:"mt-12 max-w-3xl flex flex-col gap-3 border-t border-border pt-8 sm:flex-row sm:justify-between","aria-label":"Term navigation",children:[x?e.jsxs(u,{to:"/help/seo-glossary/$slug",params:{slug:x.slug},className:"inline-flex items-center gap-2 text-sm font-medium text-muted-foreground hover:text-foreground",children:[e.jsx(j,{className:"h-4 w-4"}),e.jsxs("span",{children:[n.prevTerm,": ",e.jsx("span",{className:"text-foreground",children:x.term.split("(")[0].trim()})]})]}):e.jsx("span",{}),c?e.jsxs(u,{to:"/help/seo-glossary/$slug",params:{slug:c.slug},className:"inline-flex items-center gap-2 text-sm font-medium text-muted-foreground hover:text-foreground sm:text-right",children:[e.jsxs("span",{children:[n.nextTerm,": ",e.jsx("span",{className:"text-foreground",children:c.term.split("(")[0].trim()})]}),e.jsx(N,{className:"h-4 w-4"})]}):null]})]})]})}export{ee as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.