PageSourceSearch

https://wakingdreamswellnessretreat.com/assets/GuestStoryForm-pXcPPvdH.js

js wakingdreamswellnessretreat.com collected 2026-10-04 07:34:31 UTC 9,834 bytes, 1 lines download raw bytes

1import{r as m,j as e}from"./vendor-react-DKqPgjep.js";import{a as F}from"./vendor-ui-CKHum-wz.js";import{t as u}from"./index-CGxUor7o.js";import{B as j}from"./button-D7W3yy3b.js";import{T as v}from"./textarea-D9DpU7Ib.js";import{I as n}from"./input-D_12_OGf.js";import{L as d}from"./label-txEATKn0.js";import{L as x,r as G,W as w,Y as E}from"./vendor-lucide-wOhzIz24.js";import"./vendor-radix-DyzjmB17.js";import"./dialog-E1yQXI6c.js";const o="#162035",y="oklch(0.65 0.12 75)",W=[{key:"overallExperience",label:"Overall Experience",placeholder:"How would you describe your stay overall? What made it memorable?"},{key:"treatmentExperience",label:"EECP Treatment Experience",placeholder:"What was it like to go through the EECP sessions? How did you feel during and after treatments?"},{key:"benefitsNoticed",label:"Benefits or Changes You Noticed",placeholder:"Did you notice any changes in how you felt physically or mentally during or after your stay?"},{key:"dailyRoutine",label:"Daily Life at the Retreat",placeholder:"What did your days look like between sessions? How did you spend your time?"},{key:"staffHospitality",label:"Staff & Hospitality",placeholder:"How was your experience with the staff? Is there anyone you'd like to mention?"},{key:"overallImpression",label:"Overall Impression & Recommendation",placeholder:"Would you recommend Waking Dreams to others? What would you tell a friend who was considering it?"},{key:"pullQuote",label:"One Sentence That Captures It (optional)",placeholder:'If you had to describe your experience in one sentence, what would you say? e.g. "I came hoping for improvement — I left feeling like myself again."',isShort:!0}];function P(){const[,p]=F("/guest-story/:token"),c=p?.token??"",{data:a,isLoading:g,error:h}=u.guestStories.getStoryRequest.useQuery({token:c},{enabled:!!c}),l=u.guestStories.submitStory.useMutation(),[s,f]=m.useState({}),[b,S]=m.useState(!1),i=(t,r)=>f(N=>({...N,[t]:r})),k=async t=>{if(t.preventDefault(),!!a)try{await l.mutateAsync({token:c,guestName:s.guestName||a.guestFirstName,guestLocation:s.guestLocation||void 0,programLabel:"18-day program guest",overallExperience:s.overallExperience||void 0,treatmentExperience:s.treatmentExperience||void 0,benefitsNoticed:s.benefitsNoticed||void 0,dailyRoutine:s.dailyRoutine||void 0,staffHospitality:s.staffHospitality||void 0,overallImpression:s.overallImpression||void 0,pullQuote:s.pullQuote||void 0}),S(!0)}catch{}};return c?g?e.jsx("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:109",className:"min-h-screen flex items-center justify-center",style:{background:"oklch(0.97 0.01 80)"},children:e.jsx(x,{"data-loc":"client/src/pages/GuestStoryForm.tsx:110",className:"animate-spin text-gray-400",size:32})}):h||!a?e.jsx("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:117",className:"min-h-screen flex items-center justify-center p-6",style:{background:"oklch(0.97 0.01 80)"},children:e.jsxs("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:118",className:"text-center max-w-md",children:[e.jsx("p",{"data-loc":"client/src/pages/GuestStoryForm.tsx:119",className:"text-lg font-semibold mb-2",style:{color:o},children:"Link Not Found"}),e.jsx("p",{"data-loc":"client/src/pages/GuestStoryForm.tsx:120",className:"text-sm text-gray-500",children:"This link may have expired or already been used. Please contact us if you believe this is an error."})]})}):b||a.status==="submitted"?e.jsx("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:130",className:"min-h-screen flex items-center justify-center p-6",style:{background:"oklch(0.97 0.01 80)"},children:e.jsxs("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:131",className:"text-center max-w-md",children:[e.jsx(G,{"data-loc":"client/src/pages/GuestStoryForm.tsx:132",size:48,className:"mx-auto mb-4",style:{color:"oklch(0.50 0.14 145)"}}),e.jsxs("h1",{"data-loc":"client/src/pages/GuestStoryForm.tsx:133",className:"text-2xl font-bold mb-3",style:{color:o},children:["Thank you, ",a.guestFirstName,"!"]}),e.jsx("p",{"data-loc":"client/src/pages/GuestStoryForm.tsx:136",className:"text-sm text-gray-600 leading-relaxed",children:"Your experience has been received. With your permission, we may share your story to help others considering EECP understand what to expect. We are grateful you chose Waking Dreams."}),e.jsx("p",{"data-loc":"client/src/pages/GuestStoryForm.tsx:140",className:"mt-6 text-xs text-gray-400",children:"You can close this window."})]})}):e.jsxs("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:149",className:"min-h-screen",style:{background:"oklch(0.97 0.01 80)"},children:[e.jsxs("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:151",className:"py-10 px-6 text-center",style:{background:o},children:[e.jsxs("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:152",className:"flex items-center justify-center gap-2 mb-3",children:[e.jsx(w,{"data-loc":"client/src/pages/GuestStoryForm.tsx:153",size:20,style:{color:y}}),e.jsx("span",{"data-loc":"client/src/pages/GuestStoryForm.tsx:154",className:"text-xs font-semibold tracking-widest uppercase",style:{color:y},children:"Waking Dreams Wellness Retreat"})]}),e.jsx("h1",{"data-loc":"client/src/pages/GuestStoryForm.tsx:158",className:"text-2xl font-bold text-white mb-2",children:"Share Your Experience"}),e.jsxs("p",{"data-loc":"client/src/pages/GuestStoryForm.tsx:161",className:"text-sm max-w-lg mx-auto",style:{color:"oklch(0.80 0.02 250)"},children:["Hi ",a.guestFirstName," — thank you for completing your program. Your story helps others understand what to expect and decide if Waking Dreams is right for them. Answer as much or as little as you like — every detail matters."]}),a.adminNote&&e.jsxs("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:167",className:"mt-4 max-w-lg mx-auto rounded-lg px-4 py-3 text-sm text-left",style:{background:"rgba(255,255,255,0.08)",color:"oklch(0.88 0.02 80)"},children:[e.jsx("span",{"data-loc":"client/src/pages/GuestStoryForm.tsx:168",className:"font-semibold",children:"A note from Jack: "}),a.adminNote]})]}),e.jsx("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:174",className:"max-w-2xl mx-auto px-6 py-10",children:e.jsxs("form",{"data-loc":"client/src/pages/GuestStoryForm.tsx:175",onSubmit:k,className:"space-y-8",children:[e.jsxs("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:177",className:"rounded-xl p-6 bg-white shadow-sm space-y-4",style:{border:"1px solid oklch(0.90 0.01 80)"},children:[e.jsx("h2",{"data-loc":"client/src/pages/GuestStoryForm.tsx:178",className:"text-sm font-bold uppercase tracking-wide",style:{color:o},children:"About You"}),e.jsxs("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:179",className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:180",children:[e.jsx(d,{"data-loc":"client/src/pages/GuestStoryForm.tsx:181",className:"text-xs font-semibold mb-1 block",style:{color:o}
1,children:"Your Name (as you'd like it displayed)"}),e.jsx(n,{"data-loc":"client/src/pages/GuestStoryForm.tsx:184",value:s.guestName??a.guestFirstName,onChange:t=>i("guestName",t.target.value),placeholder:a.guestFirstName,className:"text-sm"}),e.jsx("p",{"data-loc":"client/src/pages/GuestStoryForm.tsx:190",className:"text-xs text-gray-400 mt-1",children:"First name only is fine if you prefer privacy."})]}),e.jsxs("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:192",children:[e.jsx(d,{"data-loc":"client/src/pages/GuestStoryForm.tsx:193",className:"text-xs font-semibold mb-1 block",style:{color:o},children:"Where are you from? (optional)"}),e.jsx(n,{"data-loc":"client/src/pages/GuestStoryForm.tsx:196",value:s.guestLocation??"",onChange:t=>i("guestLocation",t.target.value),placeholder:"e.g. Florida, Texas, Ontario",className:"text-sm"})]})]})]}),W.map(t=>e.jsxs("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:208",className:"rounded-xl p-6 bg-white shadow-sm",style:{border:"1px solid oklch(0.90 0.01 80)"},children:[e.jsx(d,{"data-loc":"client/src/pages/GuestStoryForm.tsx:209",className:"text-sm font-bold mb-2 block",style:{color:o},children:t.label}),"isShort"in t&&t.isShort?e.jsx(n,{"data-loc":"client/src/pages/GuestStoryForm.tsx:213",value:s[t.key]??"",onChange:r=>i(t.key,r.target.value),placeholder:t.placeholder,className:"text-sm"}):e.jsx(v,{"data-loc":"client/src/pages/GuestStoryForm.tsx:220",value:s[t.key]??"",onChange:r=>i(t.key,r.target.value),placeholder:t.placeholder,rows:4,className:"text-sm resize-none"})]},t.key)),e.jsxs("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:232",className:"rounded-lg px-4 py-3 text-xs",style:{background:"oklch(0.95 0.02 145)",border:"1px solid oklch(0.85 0.06 145)",color:"oklch(0.40 0.10 145)"},children:[e.jsx(E,{"data-loc":"client/src/pages/GuestStoryForm.tsx:233",size:12,className:"inline mr-1"}),"Your story will be reviewed before being shared publicly. We will never use your last name or any identifying health details without your explicit permission."]}),l.error&&e.jsx("p",{"data-loc":"client/src/pages/GuestStoryForm.tsx:238",className:"text-sm text-red-600",children:l.error.message}),e.jsx(j,{"data-loc":"client/src/pages/GuestStoryForm.tsx:241",type:"submit",disabled:l.isPending,className:"w-full py-3 text-sm font-semibold",style:{background:o,color:"white"},children:l.isPending?e.jsxs(e.Fragment,{children:[e.jsx(x,{"data-loc":"client/src/pages/GuestStoryForm.tsx:248",size:16,className:"mr-2 animate-spin"}),"Submitting..."]}):"Submit My Story →"})]})})]}):e.jsx("div",{"data-loc":"client/src/pages/GuestStoryForm.tsx:101",className:"min-h-screen flex items-center justify-center",style:{background:"oklch(0.97 0.01 80)"},children:e.jsx("p",{"data-loc":"client/src/pages/GuestStoryForm.tsx:102",className:"text-gray-500",children:"Invalid link."})})}export{P as default};

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.