1import{r as u,j as e,L as P}from"./index-BILcQT6w.js";import{u as W}from"./useServerFn-BTx7ha0z.js";import{H,F as q}from"./Footer-DUMftqfH.js";import{R as D}from"./Reveal-_nuPf3yv.js";import{s as M,D as E,R,S as Y,C as F,p as L}from"./professional-application.functions-DKMjD72e.js";import{C as N}from"./check-Cp8Am98r.js";import{L as B}from"./loader-circle-B0u4232B.js";import"./utils-BQHNewu7.js";import"./button-CSutoQmi.js";import"./index-BPsO834a.js";import"./index-cKkOEyUT.js";import"./index-LHNt3CwB.js";import"./aia-logo.webp.asset-BgfipsCL.js";import"./chevron-down-D9UBnqNF.js";import"./x-DBxgM2CY.js";import"./email-hygiene-DNurGI6i.js";const b=[{title:"Your relationship with ayahuasca",intro:"This directory is for practitioners whose work is genuinely devoted to ayahuasca â the plant, the people who drink it, and the long work that follows.",fields:[{id:"devotion",kind:"radio",required:!0,label:"Is ayahuasca a central part of your work?",options:E},{id:"ayaPlace",kind:"textarea",required:!0,rows:6,label:"Describe the place ayahuasca holds in your life and in your work."},{id:"ayaYears",kind:"text",required:!0,label:"How many years have you worked with ayahuasca personally, and professionally?"},{id:"ceremonyCounts",kind:"textarea",rows:3,label:"Approximately how many ayahuasca ceremonies have you attended, assisted in, or led?"},{id:"traditions",kind:"textarea",rows:4,label:"Which traditions, communities, lineages or teachers have shaped your work with this medicine?"},{id:"otherMedicines",kind:"textarea",rows:4,label:"Do you work with other plant medicines or modalities? If so, how does ayahuasca sit within that?"}]},{title:"Your practice and the people you support",fields:[{id:"roles",kind:"checkboxes",required:!0,label:"Which of these describe your work? Select all that apply.",options:R},{id:"rolesOther",kind:"text",label:"If you chose âOtherâ, please describe it."},{id:"stages",kind:"checkboxes",label:"At which stages do you support people? Select all that apply.",options:Y},{id:"process",kind:"textarea",required:!0,rows:6,label:"Describe your process with someone, from the first conversation to the closing of your work together."},{id:"preparation",kind:"textarea",rows:5,label:"What does preparation involve when you work with someone before ceremony?"},{id:"integrationSupport",kind:"textarea",rows:5,label:"What does integration support look like in the weeks and months after a retreat?"},{id:"whoYouWorkWith",kind:"textarea",rows:5,label:"Who do you work with â and who do you not work with?"},{id:"professionalYears",kind:"textarea",rows:3,label:"How many years have you supported others in this work, and roughly how many people?"},{id:"howOffered",kind:"textarea",rows:4,label:"How is your support offered â online, in person, one-to-one, groups, retreats? In which languages, and at what fees?"}]},{title:"Training and professional experience",fields:[{id:"training",kind:"textarea",rows:6,label:"What training, education or qualifications inform your work?"},{id:"specificTraining",kind:"textarea",rows:4,label:"Have you completed training specific to psychedelic preparation, facilitation or integration? Please describe it."},{id:"license",kind:"text",label:"Do you hold a professional licence or registration? If so, where, and in what?"},{id:"centers",kind:"textarea",rows:4,label:"Which retreat centers, organisations or teachers have you worked with?"},{id:"supervision",kind:"textarea",rows:4,label:"Do you receive supervision, mentoring or peer consultation for this work? Please describe it."}]},{title:"Your own integration journey",intro:"We ask because how you tend your own path shapes how you hold someone else's.",fields:[{id:"ownJourney",kind:"textarea",rows:6,label:"Tell us about your own integration journey."},{id:"ownSupport",kind:"textarea",rows:4,label:"What support have you sought for yourself along the way?"},{id:"challengingIntegration",kind:"textarea",rows:5,label:"Describe a challenging integration of your own and what it taught you."},{id:"selfAwareness",kind:"textarea",rows:5,label:"How do you recognise when your own material is present in the work?"}]},{title:"Boundaries, responsibility and care",fields:[{id:"rightPerson",kind:"textarea",rows:5,label:"How do you decide whether you are the right person to support someone?"},{id:"distressResponse",kind:"textarea",required:!0,rows:6,label:"How would you respond to someone in severe distress after a ceremony â psych
1ologically, emotionally or spiritually?"},{id:"boundaries",kind:"textarea",rows:5,label:"How do you hold boundaries around consent, touch, confidentiality and romantic or sexual contact?"},{id:"differingInterpretation",kind:"textarea",rows:4,label:"How do you hold an experience whose meaning you interpret differently from the person you support?"},{id:"harmResponse",kind:"textarea",rows:5,label:"If someone told you they had been harmed by a facilitator or center, how would you respond?"},{id:"complaints",kind:"textarea",rows:4,label:"How can someone raise a concern or complaint about your work?"},{id:"restrictions",kind:"textarea",rows:4,label:"Have you ever had a professional restriction, finding or formal complaint made against you? If so, please tell us about it."}]},{title:"Your public work and references",fields:[{id:"whereLearnMore",kind:"textarea",rows:3,label:"Where can people learn more about you â website, profiles, links?"},{id:"publicContent",kind:"textarea",rows:4,label:"Have you written, recorded or taught publicly about ayahuasca and integration? Please share links."},{id:"publicProfile",kind:"text",label:"Which public page best represents your work?"},{id:"references",kind:"textarea",rows:4,label:"Please give two professional references â name, role, relationship to you, and how we may reach them."}]},{title:"Your contribution to the Alliance",intro:"The Alliance is a living community, not a listing service. Membership is free; what holds it together is what members give.",fields:[{id:"whyJoin",kind:"textarea",required:!0,rows:6,label:"Why do you want to be part of the Ayahuasca Integration Alliance?"},{id:"contributions",kind:"checkboxes",label:"How would you like to contribute? Select all that apply.",options:F},{id:"contributionsOther",kind:"text",label:"If you chose âAnother contributionâ, please describe it."},{id:"sustainableContribution",kind:"textarea",rows:4,label:"What can you realistically sustain over a year?"},{id:"introCall",kind:"radio",required:!0,label:"Are you willing to have an introductory conversation with us?",options:["Yes","No"]}]},{title:"Your details and confirmation",fields:[{id:"name",kind:"text",required:!0,label:"Full name"},{id:"practiceName",kind:"text",label:"Practice or organisation name"},{id:"email",kind:"text",required:!0,label:"Email address"},{id:"location",kind:"text",label:"Country and time zone"},{id:"languages",kind:"text",label:"Languages you work in"},{id:"publicName",kind:"text",label:"The name you would like shown publicly"},{id:"anythingElse",kind:"textarea",rows:5,label:"Anything else you would like us to know"}]}],w=[{id:"confirmAccurate",label:"The information I have given is accurate and my own."},{id:"confirmFocus",label:"My work is genuinely focused on ayahuasca preparation, facilitation or integration."},{id:"confirmFree",label:"I understand that membership is free, and that the Alliance is held together by contribution."},{id:"confirmCompetence",label:"I work within my competence and refer on when something is beyond it."},{id:"confirmNoGuarantee",label:"I understand that submitting this application does not guarantee a listing."},{id:"confirmContact",label:"The Alliance may contact me about this application."}];function $(){const r={roles:[],stages:[],contributions:[]};for(const s of b)for(const d of s.fields)d.kind==="checkboxes"?r[d.id]=r[d.id]??[]:r[d.id]="";for(const s of w)r[s.id]=!1;return r}function ne(){const r=W(M),[s,d]=u.useState($),[l,m]=u.useState(0),[h,a]=u.useState({}),[c,g]=u.useState(!1),[S,T]=u.useState(!1),[k,A]=u.useState(""),I=u.useRef(Date.now()),p=b.length,v=u.useMemo(()=>Math.round((l+1)/p*100),[l,p]);function y(t,o){d(i=>({...i,[t]:o})),a(i=>i[t]?{...i,[t]:""}:i)}function C(t,o){const i=s[t]??[];y(t,i.includes(o)?i.filter(n=>n!==o):[...i,o])}function j(t){const o={};for(const i of b[t].fields){if(!i.required)continue;const n=s[i.id];(Array.isArray(n)?n.length===0:!String(n??"").trim())&&(o[i.id]="This one we do need.")}if(t===p-1){const i=String(s.email??"");i&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)&&(o.email="Please enter a valid email.");for(const n of w)s[n.id]||(o[n.id]="Please confirm.")}return a(o),Object.keys(o).length>0?(window.scrollTo({top:0,behavior:"smooth"}),!1):!0}async function O(){if(!j(p-1))return;const t=L.safeParse(s);if(!t.success){const o={};for(const n of t.error.issues){const x=String(n.path[0]??"");x&&!o[x]&&(o[x]=n.message)}a(o);const i=b.findIndex(n=>n.fields.some(x=>o[x.id]));i>=0&&m(i),window.scrollTo({top:0,behavior:"smooth"});return}g(!0);try{(await r({data:{...t.data,company:k,elapsedMs:Date.now()-I.current}})).ok?(T(!0),window.scrollTo({top:0,behavior:"smooth"})):a({form:"Something went wrong sending your application. Please try again."})}catch{a({form:"Something went wrong sending your application. Please try again."})}finally{g(!1)}}const f=b[l];return e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(H,{}),e.jsxs("main",{className:"flex-1",children:[e.jsx("section",{className:"mx-auto max-w-3xl px-6 pt-24 pb-10 lg:pt-32",children:e.jsxs(D,{children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-terracotta mb
1-6",children:"Alliance Membership"}),e.jsx("h1",{className:"font-display text-4xl md:text-6xl text-forest leading-[1.05] text-balance",children:"Apply to join the Ayahuasca Integration Alliance"}),e.jsx("p",{className:"mt-8 text-lg text-foreground/75 leading-relaxed",children:"This directory exists for practitioners whose work is truly devoted to ayahuasca â preparation, ceremony, and the long integration that follows. Membership is free. Take your time with these questions; the depth of your answers is what we read."})]})}),S?e.jsx("section",{className:"mx-auto max-w-3xl px-6 pb-28",children:e.jsxs("div",{className:"rounded-3xl border border-border bg-card p-10 text-center",children:[e.jsx("div",{className:"mx-auto flex h-14 w-14 items-center justify-center rounded-full bg-moss/15 text-moss",children:e.jsx(N,{className:"h-7 w-7"})}),e.jsx("h2",{className:"mt-6 font-display text-3xl text-forest",children:"Thank you for your application"}),e.jsx("p",{className:"mt-4 text-foreground/75 leading-relaxed",children:"We read every application with care. We will review what you have shared and come back to you â we may invite you into a conversation, or ask for a little more information before we decide."}),e.jsx(P,{to:"/professionals",className:"mt-8 inline-flex rounded-full bg-forest px-6 py-3 text-sm font-medium text-bone hover:bg-moss",children:"Back to the directory"})]})}):e.jsxs("section",{className:"mx-auto max-w-3xl px-6 pb-28",children:[e.jsxs("div",{className:"sticky top-[68px] z-20 -mx-6 mb-8 border-y border-border/40 bg-bone/90 px-6 py-4 backdrop-blur",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs uppercase tracking-[0.2em] text-foreground/60",children:[e.jsxs("span",{children:["Step ",l+1," of ",p]}),e.jsxs("span",{children:[v,"%"]})]}),e.jsx("div",{className:"mt-3 h-1.5 w-full overflow-hidden rounded-full bg-sand",children:e.jsx("div",{className:"h-full rounded-full bg-terracotta transition-all duration-500",style:{width:`${v}%`}})})]}),e.jsxs("div",{className:"rounded-3xl border border-border bg-card p-6 md:p-10",children:[e.jsx("h2",{className:"font-display text-2xl md:text-3xl text-forest",children:f.title}),f.intro&&e.jsx("p",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:f.intro}),e.jsxs("div",{className:"mt-8 space-y-8",children:[f.fields.map(t=>e.jsx(V,{field:t,value:s[t.id],error:h[t.id],onChange:o=>y(t.id,o),onToggle:o=>C(t.id,o)},t.id)),l===p-1&&e.jsxs("div",{className:"rounded-2xl bg-sand/50 p-5",children:[e.jsx("p",{className:"text-sm font-medium text-forest",children:"Before you send"}),e.jsx("div",{className:"mt-4 space-y-3",children:w.map(t=>e.jsxs("label",{className:"flex gap-3 text-sm text-foreground/80",children:[e.jsx("input",{type:"checkbox",checked:!!s[t.id],onChange:o=>y(t.id,o.target.checked),className:"mt-1 h-4 w-4 shrink-0 accent-[color:var(--color-forest,#2f4a3c)]"}),e.jsxs("span",{children:[t.label,h[t.id]&&e.jsx("span",{className:"ml-2 text-xs text-terracotta",children:h[t.id]})]})]},t.id))})]}),e.jsx("input",{type:"text",tabIndex:-1,autoComplete:"off",value:k,onChange:t=>A(t.target.value),className:"hidden","aria-hidden":"true"})]}),h.form&&e.jsx("p",{className:"mt-6 rounded-xl border border-clay/30 bg-clay/10 p-4 text-sm text-foreground/80",children:h.form}),e.jsxs("div",{className:"mt-10 flex flex-wrap items-center justify-between gap-3",children:[e.jsx("button",{type:"button",onClick:()=>{m(t=>Math.max(0,t-1)),window.scrollTo({top:0,behavior:"smooth"})},disabled:l===0,className:"rounded-full border border-border px-5 py-2.5 text-sm text-foreground/80 hover:bg-sand disabled:opacity-40",children:"Back"}),l<p-1?e.jsx("button",{type:"button",onClick:()=>{j(l)&&(m(t=>t+1),window.scrollTo({top:0,behavior:"smooth"}))},className:"rounded-full bg-forest px-7 py-3 text-sm font-medium text-bone hover:bg-moss",children:"Continue"}):e.jsxs("button",{type:"button",onClick:O,disabled:c,className:"inline-flex items-center gap-2 rounded-full bg-forest px-7 py-3 text-sm font-medium text-bone hover:bg-moss disabled:opacity-60",children:[c&&e.jsx(B,{className:"h-4 w-4 animate-spin"}),"Submit application"]})]})]})]})]}),e.jsx(q,{})]})}function V({field:r,value:s,error:d,onChange:l,onToggle:m}){const h=e.jsxs("span",{className:"block text-sm font-medium text-forest",children:[r.label,r.required&&e.jsx("span",{className:"ml-1 text-terracotta",children:"*"})]});return e.jsxs("div",{children:[h,r.help&&e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:r.help}),r.kind==="text"&&e.jsx("input",{type:"text",value:String(s??""),onChange:a=>l(a.target.value),className:"mt-3 w-full rounded-xl border border-border bg-background px-4 py-3 text-sm"}),r.kind==="textarea"&&e.jsx("textarea",{rows:r.rows??4,value:String(s??""),onChange:a=>l(a.target.value),className:"mt-3 w-full rounded-xl border border-border bg-background px-4 py-3 text-sm leading-relaxed"}),r.kind==="radio"&&e.jsx("div",{className:"mt-3 space-y-2",children:(r.options??[]).map(a=>{const c=s===a;return e.jsx("button",{type:"button",onClick:()=>l(a),className:`block w-full rounded-2xl border px-4 py-3 text-left text-sm transition-colors ${c?"border-forest bg-forest/5 text-forest":"border-border bg-background text-foreground
1/80 hover:bg-sand/60"}`,children:a},a)})}),r.kind==="checkboxes"&&e.jsx("div",{className:"mt-3 space-y-2",children:(r.options??[]).map(a=>{const c=Array.isArray(s)&&s.includes(a);return e.jsxs("button",{type:"button",onClick:()=>m(a),className:`flex w-full items-center gap-3 rounded-2xl border px-4 py-3 text-left text-sm transition-colors ${c?"border-forest bg-forest/5 text-forest":"border-border bg-background text-foreground/80 hover:bg-sand/60"}`,children:[e.jsx("span",{className:`flex h-4 w-4 shrink-0 items-center justify-center rounded border ${c?"border-forest bg-forest text-bone":"border-border"}`,children:c&&e.jsx(N,{className:"h-3 w-3"})}),a]},a)})}),d&&e.jsx("p",{className:"mt-2 text-xs text-terracotta",children:d})]})}export{ne as component};
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.