import{e as N,r as P,j as e,L as h,u as F}from"./vendor-react-CVHocMAO.js";import{k as R,x as B,dR as A,dS as T,W as E,d8 as D,y as Q,z as $,C as M,bP as U,dQ as I,dT as O,dU as W,dV as z,dW as V,bA as w,bm as _,bN as K,bz as Y,F as p,cx as J}from"./index-DXdAv5n3.js";import{P as X}from"./PageBreadcrumb-CkYp80xu.js";import{W as Z}from"./wrench-DaAxYwBN.js";import{T as C,P as ee}from"./trending-up-D1pV1qtR.js";import{B as L}from"./book-open-Ds9XczHM.js";import{D as te}from"./dollar-sign-BLKPzwbA.js";import{S as se}from"./shield-JErxfbmm.js";import{C as ie}from"./credit-card-CvDNyM_h.js";const oe=()=>{var S;const{user:t,signOutUser:n,loading:i}=R(),a=N(),r=B(),d=A(),l=T(),[u,c]=P.useState(!1),g=P.useRef(null),s=!!t,o=!1,{profilePhoto:m}=E({user:t}),{hasListings:k,isLoading:b,shouldShowBecomeHost:H}=D({isLoggedIn:s,authUser:t,authLoading:i}),j=((S=t==null?void 0:t.attributes)==null?void 0:S.name)||(t==null?void 0:t.email)||"",v=()=>{c(!0)},x=()=>{t?a("/host"):c(!0)},y=r?"66px":"82px",G=y;return e.jsxs(e.Fragment,{children:[e.jsx(Q,{open:u,onOpenChange:c,children:e.jsxs($,{className:"max-w-[600px] max-h-[90vh] overflow-y-auto scrollbar-hide p-0",mobileBottomSheet:!0,children:[e.jsx(M,{className:"sr-only",children:"Authentication"}),e.jsx(U,{className:"sr-only",children:"Sign in or create an account to continue."}),e.jsx(I,{onSuccess:()=>c(!1),showRedirectScreen:!1})]})}),e.jsx(O,{height:G,isProfilePage:!1,showBottomNav:!1}),e.jsx("header",{className:"fixed top-0 left-0 right-0 w-full overflow-hidden bg-gray-50 border-b border-gray-200 shadow-none z-50",style:{height:y,transition:"height 0.4s ease-in-out, background-color 0.3s, border-color 0.3s",willChange:"height"},children:e.jsxs("div",{ref:g,className:"flex flex-nowrap items-center gap-1 sm:gap-2 px-3 sm:px-4 md:px-6 lg:px-8 h-[66px] sm:h-[76px] md:h-[82px] relative overflow-visible min-w-0 border-transparent",children:[e.jsx("div",{className:"shrink-0 pl-2 sm:pl-3",children:e.jsx(h,{to:"/",className:"flex items-center group relative cursor-pointer",children:e.jsx("img",{src:"/logo-black.svg",alt:"PLEC",className:"h-9 sm:h-10 md:h-12 transition-all duration-300 object-contain group-hover:scale-105",loading:"eager",decoding:"async"})})}),e.jsx("div",{className:"flex-1 min-w-0"}),e.jsxs("div",{className:"flex flex-nowrap items-center gap-2 shrink-0 ml-auto pr-2 sm:pr-3",children:[!r&&!d&&e.jsxs(e.Fragment,{children:[e.jsx(W,{isProfilePage:!1,isHostDashboard:!1,isHomePage:o,isScrolled:l,hasListings:k,isLoggedIn:s,isLoading:b,shouldShowBecomeHost:H,onBecomeHostClick:x,isHelpPage:!0,isPoliciesPage:!1}),e.jsx(z,{isLoggedIn:s,profilePhoto:m,isLoading:i||b,isHomePage:o,isScrolled:l,displayName:j,onLoginClick:v})]}),e.jsx(V,{isLoggedIn:s,isLoading:i,isHomePage:o,isScrolled:l,onVenueButtonClick:x,onLoginClick:v,onSignOut:n},(t==null?void 0:t.id)??"logged-out")]})]})})]})},f={guest:{id:"guest",label:"Guest Help",description:"Support articles for guests about bookings, payments, and platform questions",topics:[{id:"booking-guides",label:"Booking Guides",icon:L,description:"Learn how to book venues and manage reservations",articles:[{id:"booking-issues",title:"Get help with a booking issue",description:"Learn how to resolve booking problems, cancellations, and other issues with your reservation.",slug:"booking-issues"},{id:"getting-started",title:"Getting Started Guide",description:"Learn the basics of using our platform and getting the most out of your experience.",slug:"getting-started-guide"},{id:"common-questions",title:"Common Questions",description:"Find answers to the most frequently asked questions about our services.",slug:"common-questions"},{id:"advanced-features",title:"Advanced Features",description:"Discover advanced features and tips to enhance your experience.",slug:"advanced-features"},{id:"troubleshooting",title:"Troubleshooting",description:"Solutions to common issues and how to resolve them quickly.",slug:"troubleshooting"},{id:"best-practices",title:"Best Practices",description:"Expert tips and recommendations for getting the best results.",slug:"best-practices"}],quickLinks:[{label:"Contact Support",href:"/contact"},{label:"Report a Concern",href:"/report-concern"}]},{id:"payment-questions",label:"Payment Questions",icon:ie,description:"Learn about payment processing, refunds, and billing",articles:[{id:"payment-refunds",title:"Payment & Refunds",description:"Learn about payment processing, refund policies, and how to request a refund for your booking.",slug:"payment-refunds"},{id:"getting-started",title:"Getting Started Guide",description:"Learn the basics of payment processing on our platform.",slug:"getting-started-guide"},{id:"common-questions",title:"Common Questions",description:"Find answers to frequently asked questions about payments.",slug:"common-questions"},{id:"advanced-features",title:"Advanced Features",description:"Discover advanced payment features and options.",slug:"advanced-features"},{id:"troubleshooting",title:"Troubleshooting",description:"Solutions to common payment issues.",slug:"troubleshooting"},{id:"best-practices",title:"Best Practices",description:"Expert tips for managing payments.",slug:"best-practices"}],quickLinks:[{label:"Cancellation Policies",href:"/policies/cancellation"}]},{id:"planning-celebration",label:"Planning a Celebration",icon:ee,description:"Tips and guides for planning your event",articles:[{id:"getting-started",title:"Getting Started Guide",description:"Learn how to plan your perfect celebration.",slug:"getting-started-guide"},{id:"common-questions",title:"Common Questions",description:"Find answers to frequently asked questions about event planning.",slug:"common-questions"},{id:"advanced-features",title:"Advanced Features",description:"Discover advanced planning features and tips.",slug:"advanced-features"},{id:"troubleshooting",title:"Troubleshooting",description:"Solutions to common planning issues.",slug:"troubleshooting"},{id:"best-practices",title:"Best Practices",description:"Expert tips for planning successful events.",slug:"best-practices"}]},{id:"faqs",label:"FAQ's",icon:Y,description:"Find answers to frequently asked questions",articles:[{id:"getting-started",title:"Getting Started Guide",description:"Learn the basics of using our platform.",slug:"getting-started-guide"},{id:"common-questions",title:"Common Questions",description:"Find answers to the most frequently asked questions.",slug:"common-questions"},{id:"advanced-features",title:"Advanced Features",description:"Discover advanced features and tips.",slug:"advanced-features"},{id:"troubleshooting",title:"Troubleshooting",description:"Solutions to common issues.",slug:"troubleshooting"},{id:"best-practices",title:"Best Practices",description:"Expert tips and recommendations.",slug:"best-practices"}],quickLinks:[{label:"Planning Guides",href:"/resources/guests"},{label:"Safety & Trust",href:"/safety"}]}]},host:{id:"host",label:"Venue Host",description:"Help for venue hosts and listing management",topics:[{id:"getting-started",label:"Getting Started",icon:w,description:"Learn how to become a host and create your first listing",articles:[{id:"getting-started",title:"Getting Started Guide",description:"Learn how to set up your venue listing and start hosting.",slug:"getting-started-guide"},{id:"common-questions",title:"Common Questions",description:"Find answers to frequently asked questions about hosting.",slug:"common-questions"},{id:"best-practices",title:"Best Practices",description:"Expert tips for successful hosting.",slug:"best-practices"}],quickLinks:[{label:"Host Resources",href:"/help/host/resources"}]},{id:"managing-listings",label:"Managing Listings",icon:_,description:"Guidance for managing your venue listings",articles:[{id:"getting-started",title:"Getting Started Guide",description:"Learn how to manage your listings effectively.",slug:"getting-started-guide"},{id:"common-questions",title:"Common Questions",description:"Find answers about listing management.",slug:"common-questions"},{id:"advanced-features",title:"Advanced Features",description:"Discover advanced listing management features.",slug:"advanced-features"},{id:"troubleshooting",title:"Troubleshooting",description:"Solutions to common listing issues.",slug:"troubleshooting"},{id:"best-practices",title:"Best Practices",description:"Expert tips for managing listings.",slug:"best-practices"}]},{id:"plec-university",label:"PLEC University",icon:K,description:"Self-paced lessons to help hosts master setup, payouts, and growth",articles:[{id:"plec-university",title:"PLEC University",description:"Short practical lessons for Stripe setup, payouts, and hosting workflows.",slug:"plec-university",isStandalonePage:!0,standaloneComponent:"PlecUniversity"}]},{id:"resources",label:"Host Resources",icon:L,description:"Comprehensive guides and resources for venue hosts",articles:[{id:"resources",title:"Host Resources & Guides",description:"Complete guide to hosting on PLEC, including getting started, best practices, and FAQs.",slug:"resources",isStandalonePage:!0,standaloneComponent:"HostResources"}]},{id:"pricing",label:"Pricing & Revenue",icon:te,description:"Learn about pricing strategies and maximizing revenue",articles:[{id:"pricing-guide",title:"Pricing Guide",description:"Complete guide to setting competitive prices, understanding fees, and maximizing your revenue.",slug:"pricing-guide",isStandalonePage:!0,standaloneComponent:"HostPricingGuide"}]},{id:"insurance",label:"Insurance & Protection",icon:se,description:"Learn about insurance and protection for hosts",articles:[{id:"insurance",title:"Insurance & Protection",description:"Complete guide to insurance options, coverage types, and protecting your venue.",slug:"insurance",isStandalonePage:!0,standaloneComponent:"HostInsurance"}]},{id:"success-stories",label:"Success Stories",icon:C,description:"Learn from top-performing hosts",articles:[{id:"success-stories",title:"Success Stories",description:"Read inspiring stories from successful hosts and learn their strategies.",slug:"success-stories",isStandalonePage:!0,standaloneComponent:"HostSuccessStories"}]}]},"service-host":{id:"service-host",label:"Service Host",description:"Help for service providers",topics:[{id:"getting-started",label:"Getting Started",icon:w,description:"Learn how to become a service provider",articles:[{id:"getting-started",title:"Getting Started Guide",description:"Learn how to set up your service listing.",slug:"getting-started-guide"},{id:"common-questions",title:"Common Questions",description:"Find answers to frequently asked questions about service hosting.",slug:"common-questions"},{id:"best-practices",title:"Best Practices",description:"Expert tips for successful service hosting.",slug:"best-practices"}]},{id:"managing-services",label:"Managing Services",icon:Z,description:"Guidance for managing your service listings",articles:[{id:"getting-started",title:"Getting Started Guide",description:"Learn how to manage your services effectively.",slug:"getting-started-guide"},{id:"common-questions",title:"Common Questions",description:"Find answers about service management.",slug:"common-questions"},{id:"advanced-features",title:"Advanced Features",description:"Discover advanced service management features.",slug:"advanced-features"},{id:"troubleshooting",title:"Troubleshooting",description:"Solutions to common service issues.",slug:"troubleshooting"},{id:"best-practices",title:"Best Practices",description:"Expert tips for managing services.",slug:"best-practices"}]},{id:"pricing",label:"Pricing & Revenue",icon:C,description:"Learn about pricing strategies for services",articles:[{id:"getting-started",title:"Getting Started Guide",description:"Learn how to set competitive prices for your services.",slug:"getting-started-guide"},{id:"common-questions",title:"Common Questions",description:"Find answers about service pricing.",slug:"common-questions"},{id:"best-practices",title:"Best Practices",description:"Expert tips for service pricing.",slug:"best-practices"}]}]}},xe=t=>f[t],ne=()=>Object.values(f),ae=(t,n)=>{const i=f[t];return i==null?void 0:i.topics.find(a=>a.id===n)},ye=(t,n,i)=>{const a=ae(t,n);return a==null?void 0:a.articles.find(r=>r.id===i||r.slug===i)},Se=(t,n,i)=>`/help/${t}/${n}/${i}`,Pe=(t,n)=>`/help/${t}/${n}`,we=t=>`/help/${t}`,q=[{id:"resolutions",label:"Resolutions",href:"/help/resolutions",title:"Manage post-booking requests and charges"},{id:"contact",label:"Contact Support",href:"/contact",title:"Get in touch with our team"},{id:"report-concern",label:"Report a Concern",href:"/report-concern",title:"Report safety or policy violations"},{id:"safety",label:"Safety & Trust",href:"/safety",title:"Learn about our safety measures"},{id:"policies",label:"Policies",href:"/policies",title:"Review platform policies"},{id:"legal",label:"Legal",href:"/legal",title:"Terms, policies, and legal information"},{id:"company",label:"Company",href:"/company",title:"About us, ambassadors, referrals, and blog"},{id:"guest-resources",label:"Planning Guides",href:"/resources/guests",title:"Event planning guides and quick resources"}],re=["/about","/ambassador","/referrals","/blog"],ce=["/terms","/privacy","/community-guidelines","/privacy-choices","/cookies"],le=({currentRole:t,className:n})=>{var g;const i=F(),a=ne(),r=t??(()=>{const s=i.pathname.split("/").filter(Boolean);return s[0]==="help"&&s[1]?s[1]:"guest"})(),d=(g=q.find(s=>s.id==="company"?i.pathname===s.href||re.some(o=>i.pathname===o||i.pathname.startsWith(`${o}/`)):s.id==="legal"?i.pathname===s.href||ce.some(o=>i.pathname===o||i.pathname.startsWith(`${o}/`)):i.pathname===s.href||i.pathname.startsWith(`${s.href}/`)))==null?void 0:g.id,l=p("px-4 py-3 text-sm font-medium transition-colors whitespace-nowrap","border-b-2 -mb-px"),u="border-brand-400 text-brand-400",c="border-transparent text-[#4B4B4B] hover:text-[#0F0F0F] hover:border-gray-300";return e.jsx("div",{className:p("border-b border-gray-200",n),children:e.jsxs("nav",{className:"flex gap-1 overflow-x-auto overflow-y-hidden scrollbar-hide","aria-label":"Help center navigation",children:[a.map(s=>{const o=!d&&r===s.id,m=`/help/${s.id}`;return e.jsx(h,{to:m,className:p(l,o?u:c),"aria-current":o?"page":void 0,children:s.label},s.id)}),q.map(s=>{const o=d===s.id;return e.jsx(h,{to:s.href,className:p(l,o?u:c),title:s.title,"aria-current":o?"page":void 0,children:s.label},s.id)})]})})},Ce=({children:t,currentRole:n,hideRoleTabs:i=!1,fullWidth:a=!1})=>e.jsxs("div",{className:"min-h-screen bg-white flex flex-col",children:[e.jsx(oe,{}),e.jsx("main",{className:"flex-grow",children:e.jsx("div",{className:"min-h-screen bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 md:px-8 lg:px-12 py-12 md:py-16",children:[e.jsx(X,{}),!i&&e.jsx(le,{currentRole:n,className:"mt-4 mb-6"}),a?e.jsx("div",{className:"w-screen relative left-1/2 -translate-x-1/2",children:t}):t]})})}),e.jsx(J,{})]});export{Ce as H,le as R,ae as a,Pe as b,we as c,Se as d,ye as e,xe as g,f as h};