PageSourceSearch

https://www.goglobal.to/assets/HelpCenterPage-TEnf8czf.js

js goglobal.to collected 2026-10-01 23:45:18 UTC 28,380 bytes, 7 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PublicFooter-C5W5WFtf.js","assets/react-vendor-COA9LC9C.js","assets/index-DNOAzpau.js","assets/ui-vendor-DZhVfNUY.js","assets/data-vendor-DLQwpBlT.js","assets/index-DocwdKH4.css"])))=>i.map(i=>d[i]);
2import{a2 as J,aM as ee,aL as te,ad as F,aE as L,e as I,r as y,I as U,X as re,c as se,n as oe,_ as ne}from"./index-DNOAzpau.js";import{e as j,j as e}from"./react-vendor-COA9LC9C.js";import{P as ae}from"./PublicNavbar-DcArCecd.js";import{K as ie}from"./KnowledgeHubTabs-DAx-oD1J.js";import{C as le}from"./CreditUsageGuideTable-TLhly4xD.js";import{f as de}from"./marketingSeo-kYeCKj9H.js";import{R as ce,S as me,g as ue,a as he}from"./helpContent.seo-XzF0NR32.js";import{M as B}from"./menu-CLrNOlIf.js";import{C as H}from"./chevron-down-D5Z2D8kh.js";import{S as pe}from"./search-B6MVwT69.js";import{C as xe}from"./clock-wB7lCu2r.js";import{B as fe}from"./book-open-DhhX0AjK.js";import{Z as ge}from"./zap-C7RC9V8k.js";import{C as be}from"./credit-card-DEK3oxgN.js";import{W as je}from"./wrench-CO8BMyYH.js";import{F as Ne}from"./folder-open-B6oFWz34.js";import{S as ve}from"./shield-3Ef5BYMk.js";import{C as we}from"./code-xml-CD_tbr5u.js";import"./ui-vendor-DZhVfNUY.js";import"./data-vendor-DLQwpBlT.js";import"./dropdown-menu-oQesQaJ4.js";import"./globe-CSaBHd2c.js";import"./arrow-right-Bzu1Zj0d.js";import"./card-Bhwb9Q_i.js";import"./planCatalog-BVgRsrvT.js";/**
3 * @license lucide-react v0.542.0 - ISC
4 *
5 * This source code is licensed under the ISC license.
6 * See the LICENSE file in the root directory of this source tree.
7 */const ye=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]],Se=J("plug",ye),V=["/blog/best-replyagent-alternative-2026","/blog/best-replyagent-alternative-2026-zh","/help/getting-started/campaign-setup-demo","/help/getting-started/write-post-demo","/help/getting-started/order-post-demo","/help/reference/integration/reddit-api","/help/reference/integration/api-key-security","/help/features/analytics-reporting","/help/features/library-documents","/help/api/api-errors-rate-limits","/help/api/api-order-workflows","/help/api/api-authentication-security","/help/api/api-reference","/help/api/api-platform-overview","/help/other-information/choose-workflow","/help/other-information/product-profile"],Ee=["/blog/best-time-to-post-on-reddit-2026-en","/blog/reddit-shadowban-recovery-guide-2026-en","/blog/reddit-anti-shadowban-techniques-2026-en","/blog/how-to-avoid-getting-banned-on-reddit-2026","/blog/subreddit-research-framework","/guides/best-time-to-post-on-reddit","/faq/what-is-reddit-shadowban","/help/getting-started/connect-reddit-account","/help/features/best-time-to-post-tool","/help/tools/best-time-to-post-tool","/help/features/find-my-subreddits-tool","/help/tools/find-my-subreddits-tool","/help/features/reddit-shadowban-detector-tool","/help/tools/reddit-shadowban-detector-tool","/partner",...V];new Set(Ee);const O=new Set(V);function ke(t){return(t.startsWith("/")?t:`/${t}`).replace(/^\/(?:de|en|es|fr|it|ja|ko|pt|ru|zh|zh-tw)(?=\/|$)/i,"")||"/"}function Ae(t){if(!t)return"/";let r=t;try{r=new URL(t,"https://www.goglobal.to").pathname}catch{r=t}const n=r.split("?")[0]?.split("#")[0]??"/",s=n.startsWith("/")?n:`/${n}`;return s==="/"?"/":s.replace(/\/+$/,"")}function Ie(t){const r=Ae(t),n=ke(r);return O.has(r)||O.has(n)}const _e=j.lazy(()=>ne(()=>import("./PublicFooter-C5W5WFtf.js"),__vite__mapDeps([0,1,2,3,4,5])));function u(t,r){return t?typeof t=="string"?t:t[r]??t.en??"":""}function C(t,r){return t==="getting-started"?`/help/getting-started/${r}`:t==="integration"?`/help/reference/integration/${r}`:t==="features"?`/help/features/${r}`:t==="tools"?`/help/tools/${r}`:t==="api"?`/help/api/${r}`:`/help/${t}/${r}`}function R(t){return t.split("?")[0]?.split("#")[0]??t}function Pe(t){const r=L(R(t)),n=r.match(/^\/help\/getting-started\/([^/]+)/);if(n)return{categoryId:"getting-started",slug:n[1]};const s=r.match(/^\/help\/reference\/integration\/([^/]+)/);if(s)return{categoryId:"integration",slug:s[1]};const c=r.match(/^\/help\/features\/([^/]+)/);if(c)return{categoryId:"features",slug:c[1]};const m=r.match(/^\/help\/tools\/([^/]+)/);if(m)return{categoryId:"tools",slug:m[1]};const d=r.match(/^\/help\/api\/([^/]+)/);if(d)return{categoryId:"api",slug:d[1]};const x=r.match(/^\/help\/([^/]+)\/([^/]+)/);return x&&x[1]!=="reference"?{categoryId:x[1],slug:x[2]}:null}function Ce(t){const r=L(R(t));if(r==="/help/getting-started")return"getting-started";if(r==="/help/reference/integration")return"integration";if(r==="/help/features")return"features";if(r==="/help/tools")return"tools";if(r==="/help/api")return"api";const n=r.match(/^\/help\/([^/]+)$/);return n&&n[1]!=="reference"?n[1]:null}function T(){return typeof window>"u"?"":new URLSearchParams(window.location.search).get("q")?.trim()??""}function E(t,r){if(!t)return[];if(typeof t=="string")return[t];const n=t[r]??t.en??"",s=t.en??"";return n===s?[n]:[n,s]}function P(t,r,n,s,c){return t.reduce((m,d)=>{const x=d.toLowerCase();let f=0;
7return x.includes(r)&&(f+=s),n.forEach(l=>{x.includes(l)&&(f+=c)}),m+f},0)}function Te(t,r,n){const s=n.trim().toLowerCase();if(!s)return[];const c=s.split(/\s+/).filter(Boolean);return t.flatMap(m=>m.articles.map(d=>{const x=E(m.label,r),f=E(d.title,r),l=E(d.description,r),g=d.sections.flatMap(h=>E(h.heading,r)),o=d.sections.flatMap(h=>[...E(h.body,r),...E(h.tip,r),...(h.steps??[]).flatMap(p=>E(p,r))]),a=P(f,s,c,140,28)+P(l,s,c,80,16)+P(x,s,c,50,12)+P(g,s,c,36,8)+P(o,s,c,18,4);return a>0?{article:d,categoryId:m.id,categoryLabel:u(m.label,r),score:a}:null})).filter(Boolean).sort((m,d)=>d.score!==m.score?d.score-m.score:u(m.article.title,r).localeCompare(u(d.article.title,r)))}const $=["campaign-overview","write-a-post","order-post","roadmap-overview","reddit-monitor"],$e=["library-documents","analytics-reporting","workspace-account-settings"],ze=["bulk-generate-reddit-posts","remove-ai-slop","campaign-overview","order-post"],Le=["workspace-account-settings","analytics-reporting"],Re="agent-workspace",Me=new Set(["create-campaign"]),Ue=new Set,z=new Set(["campaign-setup-demo","write-post-demo","order-post-demo"]),G=new Set(["geo-growth-strategy","agency-getting-started","agency-bulk-campaign-content","agency-batch-distribution","agency-team-tips-tools"]);function Q(t,r){if(t.id==="getting-started"){const i=t.articles.filter(w=>z.has(w.slug)),b=t.articles.filter(w=>!z.has(w.slug)),N=b.filter(w=>!G.has(w.slug)),k=b.filter(w=>G.has(w.slug));return[{id:"getting-started-demos",label:r==="zh"?"演示视频":"Demo Videos",articles:i},{id:"getting-started-single-user",label:r==="zh"?"单人使用":"For Single User",articles:N},{id:"getting-started-agency",label:r==="zh"?"代理团队":"For Agency",articles:k}].filter(w=>w.articles.length>0)}if(t.id!=="features")return[{id:`${t.id}-all`,label:null,articles:t.articles}];const n=t.articles.filter(i=>!Me.has(i.slug)),s=$.map(i=>n.find(b=>b.slug===i)).filter(Boolean),c=$e.map(i=>n.find(b=>b.slug===i)).filter(Boolean),m=n.find(i=>i.slug===Re),d=[...s,...c,...m?[m]:[]],x=ze.map(i=>n.find(b=>b.slug===i)).filter(Boolean),f=Le.map(i=>n.find(b=>b.slug===i)).filter(Boolean),l=[...x,...f],g=n.filter(i=>Ue.has(i.slug)),o=new Set(g.map(i=>i.slug)),a=new Set([...d.map(i=>i.slug),...l.map(i=>i.slug),...g.map(i=>i.slug)]),h=n.filter(i=>!a.has(i.slug)&&!o.has(i.slug)),p=[...l,...h,...m?[m]:[]];return[{id:"features-single-user",label:r==="zh"?"单人使用":"For single user",articles:d},{id:"features-agency",label:r==="zh"?"代理团队":"For Agency",articles:p},{id:"features-geo-mode",label:"GEO mode",articles:g}]}function D({categories:t,activeCategoryId:r,activeSlug:n,lang:s,onClose:c}){const[m,d]=j.useState(()=>{const l={};return t.forEach(g=>{l[g.id]=g.id===r||g.articles.some(o=>o.slug===n)}),l}),x=l=>{d(g=>({...g,[l]:!g[l]}))},f=l=>l==="getting-started"?e.jsx(fe,{className:"w-4 h-4 flex-shrink-0"}):l==="features"?e.jsx(ge,{className:"w-4 h-4 flex-shrink-0"}):l==="billing-and-usage"?e.jsx(be,{className:"w-4 h-4 flex-shrink-0"}):l==="tools"?e.jsx(je,{className:"w-4 h-4 flex-shrink-0"}):l==="other-information"?e.jsx(Ne,{className:"w-4 h-4 flex-shrink-0"}):l==="safety"?e.jsx(ve,{className:"w-4 h-4 flex-shrink-0"}):l==="api"?e.jsx(we,{className:"w-4 h-4 flex-shrink-0"}):e.jsx(Se,{className:"w-4 h-4 flex-shrink-0"});return e.jsxs("nav",{className:"w-full",children:[c&&e.jsx("div",{className:"flex justify-end mb-4 lg:hidden",children:e.jsx("button",{onClick:c,className:"p-1 rounded hover:bg-muted",children:e.jsx(re,{className:"w-5 h-5"})})}),e.jsx("div",{className:"mb-6",children:e.jsxs(y,{href:"/help",className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(se,{className:"w-3.5 h-3.5"}),"Help Center"]})}),e.jsx("div",{className:"space-y-1",children:t.map(l=>{const g=m[l.id]??!1,o=Q(l,s);return e.jsxs("div",{children:[e.jsxs("button",{onClick:()=>x(l.id),className:"w-full flex items-center justify-between gap-2 px-3 py-2 rounded-md text-sm font-medium text-foreground hover:bg-muted transition-colors",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[f(l.id),u(l.label,s)]}),g?e.jsx(H,{className:"w-3.5 h-3.5 text-muted-foreground"}):e.jsx(I,{className:"w-3.5 h-3.5 text-muted-foreground"})]}),g&&e.jsx("div",{className:"ml-4 mt-1 space-y-0.5 border-l border-border pl-3",children:o.map(a=>e.jsx("div",{className:"space-y-0.5",children:(l.id==="getting-started"||l.id==="features")&&a.label?e.jsxs("details",{open:a.articles.some(h=>h.slug===n)||!r&&a.id!=="getting-started-agency"&&a.id!=="features-agency"&&a.id!=="features-geo-mode",className:"group",children:[e.jsxs("summary",{className:"flex cursor-pointer list-none items-center justify-between gap-2 rounded px-2 pb-1 pt-2 text-sm font-medium text-foreground transition-colors marker:hidden hover:bg-muted [&::-webkit-details-marker]:hidden",children:[e.jsx("span",{children:a.label}),e.jsx(H,{className:"w-3.5 h-3.5 text-muted-foreground transition-transform group-open:rotate-180"})]}),a.articles.length>0?a.articles.map(h=>{const p=r===l.id&&n===h.slug,i=$.indexOf(h.slug),b=i!==-1,N=i===0;return e.jsxs(y,{href:C(l.id,h.slug),onClick:c,className:`mt-0.5 flex items-start gap-2 rounded px-2 py-2 text-sm transition-colors ${p?"bg-primary/8 font-semibold text-primary":b?N?"bg-primary/5 font-bold text-foreground hover:bg-primary/10 hover:text-primary":"font-semibold text-foreground hover:bg-muted hover:text-primary":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[l.id==="features"&&b?e.jsx("span",{className:`mt-0.5 inline-flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full text-[11px] font-semibold ${p||N?"bg-primary/12 text-primary":"bg-muted text-muted-foreground"}`,children:i+1}):null,e.jsx("span",{className:"min-w-0 leading-snug",children:u(h.title,s)})]},h.slug)}):l.id==="features"?e.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:s==="zh"?"暂未添加文档":"No articles yet"}):null]}):e.jsxs(e.Fragment,{children:[a.label&&e.jsx("div",{className:"px-2 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-[0.12em] text-muted-foreground",children:a.label}),a.articles.map(h=>{const p=r===l.id&&n===h.slug,i=$.indexOf(h.slug),b=i!==-1,N=i===0;return e.jsxs(y,{href:C(l.id,h.slug),onClick:c,className:`flex items-start gap-2 rounded px-2 py-2 text-sm transition-colors ${p?"bg-primary/8 font-semibold text-primary":b?N?"bg-primary/5 font-bold text-foreground hover:bg-primary/10 hover:text-primary":"font-semibold text-foreground hover:bg-muted hover:text-primary":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[b?e.jsx("span",{className:`mt-0.5 inline-flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full text-[11px] font-semibold ${p||N?"bg-primary/12 text-primary":"bg-muted text-muted-foreground"}`,children:i+1}):null,e.jsx("span",{className:"min-w-0 leading-snug",children:u(h.title,s)})]},h.slug)})]})},a.id))})]},l.id)})})]})}function He({article:t,categories:r,categoryId:n,lang:s}){const c=r.flatMap(o=>o.articles.map(a=>({...a,categoryId:o.id}))),m=u(r.find(o=>o.id===n)?.label,s)||n.replace(/-/g," "),d=(t.relatedSlugs??[]).map(o=>c.find(a=>
7a.slug===o)).filter(Boolean),x=t.slug==="credits-billing-usage",f=j.useMemo(()=>t.sections.map((o,a)=>`help-section-${a+1}`),[t.slug,t.sections.length]),[l,g]=j.useState(0);return j.useEffect(()=>{if(typeof window>"u")return;const o=f.map(h=>document.getElementById(h)).filter(Boolean);if(o.length===0)return;const a=()=>{const h=window.scrollY+180;let p=0;o.forEach((i,b)=>{i.offsetTop<=h&&(p=b)}),g(p)};return a(),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a)}},[t.slug,f]),e.jsxs("div",{className:"grid gap-8 xl:grid-cols-[minmax(0,1fr)_240px]",children:[e.jsxs("article",{className:"min-w-0 max-w-2xl",children:[e.jsxs("nav",{className:"mb-6 flex items-center gap-1.5 text-xs text-muted-foreground",children:[e.jsx(y,{href:"/help",className:"hover:text-foreground transition-colors",children:"Help"}),e.jsx(I,{className:"w-3 h-3"}),e.jsx("span",{children:m}),e.jsx(I,{className:"w-3 h-3"}),e.jsx("span",{className:"text-foreground",children:u(t.title,s)})]}),e.jsxs("header",{className:"mb-8",children:[e.jsx("h1",{className:"mb-3 text-2xl font-bold text-foreground",children:u(t.title,s)}),e.jsx("p",{className:"leading-relaxed text-muted-foreground",children:u(t.description,s)}),t.heroVideo&&e.jsxs("figure",{className:"mt-5 overflow-hidden rounded-2xl border border-border bg-card shadow-sm",children:[t.heroVideo.embedUrl?e.jsx("iframe",{src:t.heroVideo.embedUrl,title:u(t.heroVideo.title,s)||u(t.title,s),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"aspect-video w-full border-0 bg-black"}):t.heroVideo.src?e.jsx("video",{src:t.heroVideo.src,controls:!0,preload:"metadata",playsInline:!0,className:"aspect-video w-full bg-black object-cover",children:u(t.heroVideo.title,s)}):null,t.heroVideo.caption&&e.jsxs("figcaption",{className:"border-t border-border px-4 py-2.5 text-xs leading-relaxed text-muted-foreground",children:[e.jsx("span",{children:u(t.heroVideo.caption,s)}),t.heroVideo.href?e.jsxs(e.Fragment,{children:[" ",e.jsx("a",{href:t.heroVideo.href,target:"_blank",rel:"noreferrer",className:"font-medium text-primary hover:underline",children:s==="zh"?"在 YouTube 中打开":"Open on YouTube"})]}):null]})]}),e.jsxs("div",{className:"mt-3 flex items-center gap-1.5 text-xs text-muted-foreground",children:[e.jsx(xe,{className:"w-3.5 h-3.5"}),t.readTime]})]}),e.jsx("hr",{className:"mb-8 border-border"}),e.jsx("div",{className:"space-y-10",children:t.sections.map((o,a)=>e.jsxs("section",{id:f[a],className:"scroll-mt-24",children:[e.jsx("h2",{className:"mb-3 text-lg font-semibold text-foreground",children:u(o.heading,s)}),e.jsx("p",{className:"mb-4 leading-relaxed text-muted-foreground",children:u(o.body,s)}),o.steps&&o.steps.length>0&&e.jsx("ol",{className:"mb-4 space-y-2",children:o.steps.map((h,p)=>e.jsxs("li",{className:"flex gap-3 text-sm text-foreground",children:[e.jsx("span",{className:"mt-0.5 flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full bg-primary/10 text-xs font-semibold text-primary",children:p+1}),e.jsx("span",{className:"leading-relaxed",children:u(h,s)})]},p))}),o.image&&e.jsxs("figure",{className:"my-5 overflow-hidden rounded-xl border border-border shadow-sm",children:[e.jsx("img",{src:o.image.src,alt:u(o.image.alt,s),className:"w-full object-cover",loading:"lazy"}),o.image.caption&&e.jsx("figcaption",{className:"bg-muted px-4 py-2.5 text-xs leading-relaxed text-muted-foreground",children:u(o.image.caption,s)})]}),o.code&&e.jsx("pre",{className:"mb-4 overflow-x-auto rounded-lg bg-muted p-4 font-mono text-xs text-foreground",children:o.code}),o.tip&&e.jsxs("div",{className:"flex gap-3 rounded-lg border border-amber-200 bg-amber-50 p-4 text-sm",children:[e.jsx("span",{className:"mt-0.5 flex-shrink-0 text-amber-500",children:"💡"}),e.jsx("p",{className:"leading-relaxed text-amber-900",children:u(o.tip,s)})]})]},a))}),x&&e.jsx("div",{className:"mt-10",children:e.jsx(le,{className:"border border-border bg-card shadow-sm"})}),d.length>0&&e.jsxs("div",{className:"mt-12 border-t border-border pt-8",children:[e.jsx("h3",{className:"mb-4 text-sm font-semibold text-foreground",children:s==="zh"?"相关文章":"Related articles"}),e.jsx("div",{className:"space-y-2",children:d.map(o=>e.jsxs(y,{href:C(o.categoryId,o.slug),className:"group flex items-center justify-between gap-3 rounded-lg border border-border p-3 transition-colors hover:border-primary/40 hover:bg-primary/4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-foreground transition-colors group-hover:text-primary",children:u(o.title,s)}),e.jsx("p",{className:"mt-0.5 line-clamp-1 text-xs text-muted-foreground",children:u(o.description,s)})]}),e.jsx(oe,{className:"h-3.5 w-3.5 flex-shrink-0 text-muted-foreground"})]},o.slug))})]})]}),e.jsx("aside",{className:"hidden xl:block",children:e.jsxs("div",{className:"sticky top-24 rounded-xl border border-border bg-card p-4",children:[e.jsxs("div",{className:"mb-3 flex items-center gap-2 text-sm font-semibold text-foreground",children:[e.jsx(B,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{children:s==="zh"?"本页内容":"On this page"})]}),e.jsx("div",{className:"space-y-1",children:t.sections.map((o,a)=>{const h=a===l;return e.jsx("a",{href:`#${f[a]}`,className:`block rounded-lg px-3 py-2 text-sm leading-snug transition-colors ${h?"bg-muted text-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:e.jsx("span",{className:h?"font-medium":void 0,children:u(o.heading,s)})},`${f[a]}-progress`)})})]})})]})}function Oe({categories:t,lang:r}){const n=F(),s=[{label:"Campaign",href:"/help/features/campaign-overview"},{label:r==="zh"?"下单发帖":"Order posts",href:"/help/features/order-post"},{label:r==="zh"?"批量生成帖子":"Bulk generate posts",href:"/help/features/bulk-generate-reddit-posts"},{label:r==="zh"?"写单篇帖子":"Write a post",href:"/help/features/write-a-post"}];return e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs("h1",{className:"text-3xl font-bold text-foreground mb-3",children:[n," Help Center."]}),e.jsx("p",{className:"text-muted-foreground text-lg mb-10",children:r==="zh"?`这里汇集了帮助你充分使用 ${n} 的所有指南、教程和集成参考文档。`:`Everything you need to get the most out of ${n}. Browse guides, tutorials, and integration references.`}),e.jsx("div",{className:"mb-10 grid gap-4 md:grid-cols-3",children:s.map(c=>e.jsx(y,{href:c.href,className:"flex min-h-28 items-center justify-center rounded-2xl border border-border bg-card px-5 py-6 text-center text-base font-semibold text-foreground transition-all hover:-translate-y-0.5 hover:border-primary/40 hover:bg-primary/4 hover:text-primary",children:c.label},c.href))}),e.jsx("div",{className:"grid gap-6",children:t.map(c=>e.jsxs("div",{className:"border border-border rounded-xl p-6",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx("span",{className:"text-xl",children:c.icon}),e.jsx("h2",{className:"text-lg font-semibold text-foreground",children:u(c.label,r)})]}),e.jsx("div",{className:"grid gap-3",children:Q(c,r).map(m=>e.jsxs("div",{className:"space-y-2",children:[m.label?e.jsx("div",{className:"px-1 text-xs font-semibold uppercase tracking-[0.12em] text-muted-foreground",children:m.label}):null,m.articles.length>0?m.articles.map(d=>{const x=z.has(d.slug),f=$.indexOf(d.slug),l=c.id==="features"&&f!==-1;return e.jsxs(y,{href:C(c.id,d.slug),className:`flex items-center justify-between gap-3 rounded-lg p-3 transition-colors group hover:bg-muted ${x?"border border-primary/20 bg-primary/3":""}`,children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-foreground group-hover:text-primary transition-colors",children:u(d.title,r)}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 line-clamp-1",children:u(d.description,r)})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[l?e.jsx("span",{className:"inline-flex h-5 w-5 items-center justify-center rounded-full bg-primary/10 text-[11px] font-semibold text-primary",children:f+1}):null,x?e.jsx("span",{className:"text-[10px] font-semibold px-1.5 py-0.5 rounded bg-primary/10 text-primary",children:r==="zh"?"视频":"VIDEO"}):null,e.jsx("span",{className:"text-xs text-muted-foreground",children:d.readTime}),e.jsx(I,{className:"w-3.5 h-3.5 text-muted-foreground"})]})]},d.slug)}):c.id==="features"?e.jsx("div",{className:"rounded-lg border border-dashed border-border px-3 py-2 text-xs text-muted-foreground",children:r==="zh"?"暂未添加文档":"No articles yet"}):null]},m.id))})]},c.id))})]})}function Ge({inputValue:t,setInputValue:r,lang:n,hasActiveSearch:s,onSearch:c,onClear:m}){return e.jsx("div",{className:"mb-8",children:e.jsxs("form",{onSubmit:d=>{d.preventDefault(),c()},className:"flex flex-col gap-3 sm:flex-row",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(pe,{className:"pointer-events-none absolute left-4 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx("input",{type:"search",value:t,onChange:d=>r(d.target.value),placeholder:n==="zh"?"搜索帮助文档、功能、工具或 API...":"Search help articles, features, tools, or API docs...",className:"h-12 w-full rounded-xl border border-border bg-background pl-11 pr-4 text-sm text-foreground outline-none transition-colors placeholder:text-muted-foreground focus:border-primary"})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx("button",{type:"submit",className:"h-12 rounded-xl bg-primary px-5 text-sm font-medium text-primary-foreground transition-opacity hover:opacity-90",children:n==="zh"?"搜索":"Search"}),s&&e.jsx("button",{type:"button",onClick:m,className:"h-12 rounded-xl border border-border px-5 text-sm font-medium text-foreground transition-colors hover:bg-muted",children:n==="zh"?"清除":"Clear"})]})]})})}function De({results:t,query:r,lang:n}){return e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h1",{className:"text-3xl font-bold text-foreground",children:n==="zh"?"搜索结果":"Search results"}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:t.length>0?n==="zh"?`找到 ${t.length} 条与 “${r}” 相关的结果。`:`${t.length} result${t.length===1?"":"s"} for "${r}".`:n==="zh"?`没有找到与 “${r}” 相关的内容。`:`No help articles matched "${r}".`})]}),t.length>0?e.jsx("div",{className:"grid gap-4",children:t.map(s=>e.jsx(y,{href:C(s.categoryId,s.article.slug),className:"rounded-xl border border-border p-5 transition-colors hover:border-primary/40 hover:bg-primary/4",children:e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"mb-2 inline-flex rounded-full bg-muted px-2.5 py-1 text-xs font-medium text-muted-foreground",children:s.categoryLabel}),e.jsx("h2",{className:"text-base font-semibold text-foreground",children:u(s.article.title,n)}),e.jsx("p",{className:"mt-2 text-sm leading-relaxed text-muted-foreground",children:u(s.article.description,n)})]}),e.jsxs("div",{className:"flex flex-shrink-0 items-center gap-2 text-xs text-muted-foreground",children:[e.jsx("span",{children:s.article.readTime}),e.jsx(I,{className:"h-3.5 w-3.5"})]})]})},`${s.categoryId}:${s.article.slug}`))}):e.jsx("div",{className:"rounded-xl border border-dashed border-border p-6 text-sm leading-relaxed text-muted-foreground",children:n==="zh"?"试试更短的关键词,或者用功能名、工具名、集成名、API 关键词重新搜索。":"Try a shorter keyword, or search by feature name, tool name, integration, or API topic."})]})}function pt({categoryId:t,slug:r}){const[n,s]=ee(),[c,m]=j.useState(!1),[d,x]=j.useState(()=>T()),[f,l]=j.useState(()=>T()),{language:g}=te(),o=g==="zh"?"zh":"en",a=U?ce:me,h=U?ue:he,p=F(),i=t&&r?{categoryId:t,slug:r}:Pe(n),b=i?.categoryId??Ce(n),N=i?h(i.categoryId,i.slug):null,k=b??null,w=i?.slug??null,S=f.length>0,W=j.useMemo(()=>Te(a,o,f),[a,o,f]),A=j.useMemo(()=>a.find(v=>v.id===k)??null,[k,a]),_=j.useMemo(()=>L(R(n||"/help")),[n]),Y=j.useMemo(()=>_==="/help/tools"||_.startsWith("/help/tools/")||Ie(_)?"noindex, nofollow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":void 0,[_]),X=j.useMemo(()=>
7{if(S)return o==="zh"?`搜索 ${p} 帮助中心中的功能文档、工具说明、API 参考和集成教程。`:`Search the ${p} Help Center for feature docs, tool guides, API references, and integration tutorials.`;if(N)return u(N.description,o);if(A){const v=u(A.label,o);return o==="zh"?`浏览 ${p} 帮助中心中的 ${v} 文档、教程与操作说明。`:`Browse ${v} documentation, tutorials, and workflow guidance in the ${p} Help Center.`}return o==="zh"?`浏览 ${p} 帮助中心,查看功能说明、工具教程、API 文档和集成指南。`:`Browse the ${p} Help Center for feature guides, tool tutorials, API docs, and integration references.`},[N,A,S,o,p]),q=j.useMemo(()=>S?o==="zh"?`帮助中心搜索结果 | ${p}`:`Help Center Search Results | ${p}`:N?`${u(N.title,o)} | ${p} Help Center`:A?`${u(A.label,o)} | ${p} Help Center`:`${p} Help Center`,[N,A,S,o,p]);de({path:_,title:q,description:X,locale:g,robots:Y}),j.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[n]),j.useEffect(()=>{m(!1)},[n]),j.useEffect(()=>{const v=T();l(v),x(v)},[n]),j.useEffect(()=>{n==="/help/features/create-campaign"&&s("/help/features/campaign-overview",{replace:!0})},[n,s]),j.useEffect(()=>{if(typeof window>"u")return;const v=()=>{const M=T();l(M),x(M)};return window.addEventListener("popstate",v),()=>window.removeEventListener("popstate",v)},[]);const K=()=>{const v=d.trim();if(x(v),l(v),!v){s("/help");return}s(`/help?q=${encodeURIComponent(v)}`)},Z=()=>{x(""),l(""),s("/help")};return e.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[e.jsx(ae,{}),e.jsx(ie,{current:"help",language:o}),e.jsxs("div",{className:"lg:hidden sticky top-16 z-30 bg-background border-b border-border px-4 py-2 flex items-center gap-3",children:[e.jsxs("button",{onClick:()=>m(!0),className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(B,{className:"w-4 h-4"}),o==="zh"?"浏览目录":"Browse topics"]}),N&&e.jsxs(e.Fragment,{children:[e.jsx(I,{className:"w-3.5 h-3.5 text-muted-foreground"}),e.jsx("span",{className:"text-sm text-foreground font-medium truncate",children:u(N.title,o)})]})]}),c&&e.jsxs("div",{className:"fixed inset-0 z-50 lg:hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-black/40",onClick:()=>m(!1)}),e.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-72 bg-background p-6 overflow-y-auto shadow-xl",children:e.jsx(D,{categories:a,activeCategoryId:k,activeSlug:w,lang:o,onClose:()=>m(!1)})})]}),e.jsxs("div",{className:"flex flex-1 max-w-6xl mx-auto w-full px-4 py-8 gap-10",children:[e.jsx("aside",{className:"hidden lg:block w-60 flex-shrink-0 sticky top-24 self-start max-h-[calc(100vh-6rem)] overflow-y-auto",children:e.jsx(D,{categories:a,activeCategoryId:k,activeSlug:w,lang:o})}),e.jsxs("main",{className:"flex-1 min-w-0",children:[e.jsx(Ge,{inputValue:d,setInputValue:x,lang:o,hasActiveSearch:S,onSearch:K,onClear:Z}),S?e.jsx(De,{results:W,query:f,lang:o}):N&&i?e.jsx(He,{article:N,categories:a,categoryId:i.categoryId,lang:o}):e.jsx(Oe,{categories:a,lang:o}),!S&&!N&&i&&e.jsxs("div",{className:"text-center py-20",children:[e.jsx("p",{className:"text-muted-foreground text-lg mb-4",children:o==="zh"?"文章未找到。":"Article not found."}),e.jsxs(y,{href:"/help",className:"text-primary hover:underline text-sm",children:["← ",o==="zh"?"返回帮助中心":"Back to Help Center"]})]})]})]}),e.jsx(j.Suspense,{fallback:null,children:e.jsx(_e,{})})]})}export{pt as default};

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.