import{k as x,e as p,r as h,j as e}from"./vendor-react-DgEFbQIi.js";import{B as u,aP as b,A as g}from"./index-DFVuS8SP.js";import{a as f,H as o,c as j,R as N,d as v}from"./HelpCenterLayout-DixgH0WP.js";import{S as w}from"./standaloneComponents-t57WHdZQ.js";import{u as B}from"./useDocumentTitle-M5i8wF4-.js";import"./vendor-radix-kdo0k_bv.js";import"./vendor-amplify-BBi2B1tW.js";import"./vendor-motion-CzLrDd6y.js";import"./vendor-maps-bOuA10hf.js";import"./PageBreadcrumb-nCACiN0q.js";import"./trending-up-CPKYlz4V.js";import"./book-open-BePocOnz.js";import"./dollar-sign-Cz68EQu2.js";import"./shield-C1NFLCbG.js";import"./credit-card-Cc_cW3L8.js";import"./HeroBanner-CCPLhH1N.js";import"./CTASection-CYKlyqCg.js";import"./accordion-gRKAAV-y.js";import"./message-circle-DUsZlt4V.js";import"./star-C0MTo9W6.js";import"./scale-CYPPggqE.js";import"./circle-check-DeY5-glE.js";import"./rocket-Cy9buXrN.js";const J=()=>{const{role:c,topic:n}=x(),l=p(),s=c||"guest",t=n?f(s,n):null,i=h.useMemo(()=>{if(!t||t.articles.length!==1)return null;const r=t.articles[0];return r.isStandalonePage&&r.standaloneComponent?r:null},[t]),a=i!=null&&i.standaloneComponent?w[i.standaloneComponent]:null;if(B(t?`Help - ${t.label}`:"Help"),!t)return e.jsx(o,{currentRole:s,children:e.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Topic not found"}),e.jsx(u,{onClick:()=>l(j(s)),children:"Return to Help Center"})]})})});if(a&&i)return e.jsx(o,{currentRole:s,children:e.jsx(a,{})});const m=t.icon;return e.jsxs(o,{currentRole:s,hideRoleTabs:!0,children:[e.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-brand-50 flex items-center justify-center",children:e.jsx(m,{className:"w-6 h-6 text-brand-400"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-[#0F0F0F] tracking-tight",style:{lineHeight:"1.2",fontWeight:700,fontSize:"clamp(1.75rem, 3vw, 2.5rem)"},children:t.label}),e.jsx("p",{className:"text-[#4B4B4B] mt-1",style:{fontSize:"0.9375rem",lineHeight:"1.5"},children:t.description})]})]}),e.jsx(N,{currentRole:s,className:"mb-6"}),e.jsx("div",{className:"space-y-4 max-w-4xl",children:t.articles.length>0?t.articles.map(r=>e.jsx("button",{onClick:()=>{l(v(s,n,r.slug))},className:"group w-full bg-white border-2 border-gray-200 rounded-xl p-6 hover:border-brand-400 hover:shadow-lg transition-all duration-300 text-left",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-lg bg-brand-50 flex items-center justify-center group-hover:bg-brand-400 transition-colors",children:e.jsx(b,{className:"w-5 h-5 text-brand-400 group-hover:text-white transition-colors"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-[#0F0F0F] font-semibold mb-2 group-hover:text-brand-400 transition-colors",style:{fontSize:"1.125rem",lineHeight:"1.4"},children:r.title}),e.jsx("p",{className:"text-[#4B4B4B] text-sm",style:{lineHeight:"1.5",letterSpacing:"-0.01em"},children:r.description})]}),e.jsx(g,{className:"w-5 h-5 text-[#4B4B4B] group-hover:text-brand-400 transition-colors flex-shrink-0 mt-1"})]})},r.id)):e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-[#4B4B4B] text-lg",children:"No articles in this topic."})})}),t.quickLinks&&t.quickLinks.length>0&&e.jsxs("div",{className:"mt-12 pt-8 border-t border-gray-200",children:[e.jsx("h3",{className:"text-[#0F0F0F] font-semibold mb-4",children:"Quick Links"}),e.jsx("div",{className:"flex flex-wrap gap-3",children:t.quickLinks.map((r,d)=>e.jsx("a",{href:r.href,className:"px-4 py-2 text-sm text-brand-400 hover:text-brand-500 border border-brand-200 rounded-lg hover:border-brand-400 transition-colors",children:r.label},d))})]})]})};export{J as default};