import{e as A,r as P,j as e,L as h,u as N}from"./vendor-react-DgEFbQIi.js";import{V as B,u as R,eE as E,eF as T,t as D,d8 as Q,aw as W,ax as M,ah as U,ai as $,cz as I,eG as O,eH as z,eI as V,eJ as _,aP as S,bv as J,cd as K,bU as Y,b9 as X,d6 as Z,aO as ee,a as p,ct as te}from"./index-DFVuS8SP.js";import{P as se}from"./PageBreadcrumb-nCACiN0q.js";import{T as k}from"./trending-up-CPKYlz4V.js";import{B as C}from"./book-open-BePocOnz.js";import{D as ie}from"./dollar-sign-Cz68EQu2.js";import{S as oe}from"./shield-C1NFLCbG.js";import{C as ne}from"./credit-card-Cc_cW3L8.js";const ae=()=>{var w;const{user:t,signOutUser:n,loading:i}=B(),a=A(),r=R(),d=E(),c=T(),[u,l]=P.useState(!1),g=P.useRef(null),s=!!t,o=!1,{profilePhoto:m}=D({user:t}),{hasListings:q,isLoading:f,shouldShowBecomeHost:H,isPlatformStaff:j}=Q({isLoggedIn:s,authUser:t,authLoading:i}),G=((w=t==null?void 0:t.attributes)==null?void 0:w.name)||(t==null?void 0:t.email)||"",v=()=>{l(!0)},y=()=>{t?a("/host"):l(!0)},x=r?"66px":"82px",F=x;return e.jsxs(e.Fragment,{children:[e.jsx(W,{open:u,onOpenChange:l,children:e.jsxs(M,{className:"max-w-[600px] max-h-[90vh] overflow-y-auto scrollbar-hide p-0",mobileBottomSheet:!0,children:[e.jsx(U,{className:"sr-only",children:"Authentication"}),e.jsx($,{className:"sr-only",children:"Sign in or create an account to continue."}),e.jsx(I,{onSuccess:()=>l(!1),showRedirectScreen:!1})]})}),e.jsx(O,{height:F,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:x,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(z,{isProfilePage:!1,isHostDashboard:!1,isHomePage:o,isScrolled:c,hasListings:q,isLoggedIn:s,isLoading:f,shouldShowBecomeHost:H,isPlatformStaff:j,onBecomeHostClick:y,isHelpPage:!0,isPoliciesPage:!1}),e.jsx(V,{isLoggedIn:s,profilePhoto:m,isLoading:i||f,isHomePage:o,isScrolled:c,displayName:G,onLoginClick:v})]}),e.jsx(_,{isLoggedIn:s,isLoading:i,isHomePage:o,isScrolled:c,onVenueButtonClick:y,onLoginClick:v,onSignOut:n},(t==null?void 0:t.id)??"logged-out")]})]})})]})},b={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:C,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:ne,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:Z,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:ee,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:S,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:K,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:"website-widget",label:"Website booking widget",icon:Y,description:"Add the PLEC booking widget to your own website and take bookings directly",articles:[{id:"add-to-website",title:"Add the PLEC booking widget to your website",description:"What the widget is, what you need to use it, and how to generate your embed key and paste the snippet.",slug:"add-to-website"},{id:"install-guides",title:"Install guides: WordPress, Squarespace, Wix, Webflow",description:"Step by step instructions for adding the widget on the most popular website builders.",slug:"install-guides"},{id:"fees",title:"How widget fees work",description:"The guest pays your exact price, PLEC fees are tiered by monthly widget bookings, and card processing is passed through.",slug:"fees"},{id:"troubleshooting",title:"Widget troubleshooting",description:'Fixes for a widget that will not appear, a "booking temporarily unavailable" message, and code text issues.',slug:"troubleshooting"},{id:"faq",title:"Widget FAQ",description:"Quick answers about guest accounts, the badge, supported listing types, refunds, multiple sites, and theming.",slug:"faq"}]},{id:"plec-university",label:"PLEC University",icon:X,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:C,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:ie,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:oe,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:k,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:S,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:J,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:k,description:"Learn about pricing strategies for services",articles:[{id:"getting-started",title:"Getting Started Guide",description:"Understand fixed, hourly, per-person, package, and custom-quote pricing.",slug:"getting-started-guide"},{id:"common-questions",title:"Common Questions",description:"Find answers about packages, billing methods, fees, and custom quotes.",slug:"common-questions"},{id:"best-practices",title:"Best Practices",description:"Make service prices easier for guests to understand and compare.",slug:"best-practices"}]}]}},xe=t=>b[t],re=()=>Object.values(b),le=(t,n)=>{const i=b[t];return i==null?void 0:i.topics.find(a=>a.id===n)},we=(t,n,i)=>{const a=le(t,n);return a==null?void 0:a.articles.find(r=>r.id===i||r.slug===i)},Pe=(t,n,i)=>`/help/${t}/${n}/${i}`,Se=(t,n)=>`/help/${t}/${n}`,ke=t=>`/help/${t}`,L=[{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"}],ce=["/about","/ambassador","/referrals","/blog"],de=["/terms","/privacy","/community-guidelines","/privacy-choices","/cookies"],ue=({currentRole:t,className:n})=>{var g;const i=N(),a=re(),r=t??(()=>{const s=i.pathname.split("/").filter(Boolean);return s[0]==="help"&&s[1]?s[1]:"guest"})(),d=(g=L.find(s=>s.id==="company"?i.pathname===s.href||ce.some(o=>i.pathname===o||i.pathname.startsWith(`${o}/`)):s.id==="legal"?i.pathname===s.href||de.some(o=>i.pathname===o||i.pathname.startsWith(`${o}/`)):i.pathname===s.href||i.pathname.startsWith(`${s.href}/`)))==null?void 0:g.id,c=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",l="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(c,o?u:l),"aria-current":o?"page":void 0,children:s.label},s.id)}),L.map(s=>{const o=d===s.id;return e.jsx(h,{to:s.href,className:p(c,o?u:l),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(ae,{}),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(se,{}),!i&&e.jsx(ue,{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(te,{})]});export{Ce as H,ue as R,le as a,Se as b,ke as c,Pe as d,we as e,xe as g,b as h};