import{k as p,e as x,r as h,j as e}from"./vendor-react-CVHocMAO.js";import{B as u,bA as b}from"./index-Daf0Yezg.js";import{a as g,H as n,c as f,R as j,d as N}from"./HelpCenterLayout-T6Amwuq7.js";import{S as v}from"./standaloneComponents-DWX8N5SB.js";import{u as w}from"./useDocumentTitle-Gqwy-xKG.js";import{A as B}from"./arrow-right-ByhqabwU.js";import"./vendor-radix-ChuwBYq6.js";import"./vendor-amplify-BttVyssp.js";import"./vendor-motion-CP2nHqR4.js";import"./vendor-maps-BX5dXCaZ.js";import"./PageBreadcrumb-Dgppgyi_.js";import"./wrench-C-OXa5rb.js";import"./trending-up-BlhyWECK.js";import"./book-open-IIAAT4wK.js";import"./dollar-sign-_Uz635KA.js";import"./shield-C3AOzgJG.js";import"./credit-card-B6W2O8dz.js";import"./HeroBanner-BLK7NozC.js";import"./CTASection-h5-8ktI8.js";import"./accordion-Bdjw5b_F.js";import"./camera-BvTAdJYf.js";import"./message-circle-DPVuiwYz.js";import"./star-2doyMJlo.js";import"./scale-BzehWmBR.js";import"./feeConstants-CrxPuE4C.js";import"./landmark-CN60WPX4.js";import"./circle-check-CM6pvw8G.js";import"./rocket-DqLUKcmR.js";import"./loader-circle-DvugmlQi.js";const Z=()=>{const{role:c,topic:o}=p(),l=x(),s=c||"guest",t=o?g(s,o):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?v[i.standaloneComponent]:null;if(w(t?`Help - ${t.label}`:"Help"),!t)return e.jsx(n,{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(f(s)),children:"Return to Help Center"})]})})});if(a&&i)return e.jsx(n,{currentRole:s,children:e.jsx(a,{})});const m=t.icon;return e.jsxs(n,{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(j,{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(N(s,o,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(B,{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{Z as default};