1import{_ as I}from"./CzuXIiXh.js";import{_ as T}from"./D0O8s82g.js";import{H as g,ax as V,e as H,o as v,c as w,h as o,b as a,L as U,a as e,w as m,d as _,t as S,m as C,i as W,k,j as $,ay as G,l as j,p as D,u as F,g as N}from"./BIPz6mNJ.js";import{_ as R}from"./MGuHZo5A.js";import{s as B}from"./n2Eyi3ou.js";function P(){const u=g(""),r=g(""),l=g(!1),t=g("idle"),i=g(""),n=g(""),{trackEvent:b,identifyUser:d}=V();async function h(s){if(u.value){t.value="loading",i.value="";try{const p=await $fetch("/api/resource-download",{method:"POST",body:{email:u.value,name:r.value||void 0,marketing_opt_in:l.value,resource_slug:s}});t.value="success",n.value=p.downloadUrl,b("resource_download_submitted",{resource_slug:s});const[c,f]=B(r.value);d(u.value,{email:u.value,...r.value?{name:r.value}:{},...c?{firstname:c}:{},...f?{lastname:f}:{}})}catch(p){t.value="error";const c=p;i.value=c.data?.message||"Something went wrong. Please try again."}}}function y(){u.value="",r.value="",l.value=!1,t.value="idle",i.value="",n.value=""}return{email:u,name:r,marketingOptIn:l,status:t,errorMessage:i,downloadUrl:n,submit:h,reset:y}}const z={key:0,class:"p-6 bg-green-50 dark:bg-green-900/20 rounded-xl text-center"},E={class:"flex items-start gap-3 cursor-pointer"},L={key:0,class:"text-sm text-red-600 dark:text-red-400"},M=H({__name:"DownloadForm",props:{resourceSlug:{},resourceTitle:{}},setup(u){const r=u,{email:l,name:t,marketingOptIn:i,status:n,errorMessage:b,downloadUrl:d,submit:h}=P();return(y,s)=>{const p=U,c=C,f=R;return v(),w("div",null,[o(n)==="success"?(v(),w("div",z,[a(p,{name:"i-heroicons-check-circle",class:"w-12 h-12 mx-auto text-green-600 dark:text-green-400 mb-3"}),s[4]||(s[4]=e("h3",{class:"text-xl font-semibold mb-2"}," Your guide is ready! ",-1)),s[5]||(s[5]=e("p",{class:"text-neutral-600 dar
1k:text-neutral-400 mb-4"}," We've also added you to the Club Sandwich community so you'll get new episodes and resources. ",-1)),a(c,{href:o(d),target:"_blank",size:"lg",class:"bg-brand-500 hover:bg-brand-600 text-white"},{default:m(()=>[_(' Download "'+S(r.resourceTitle)+'" ',1)]),_:1},8,["href"])])):(v(),w("form",{key:1,class:"space-y-4",onSubmit:s[3]||(s[3]=W(x=>o(h)(r.resourceSlug),["prevent"]))},[a(f,{modelValue:o(t),"onUpdate:modelValue":s[0]||(s[0]=x=>k(t)?t.value=x:null),type:"text",placeholder:"Your name (optional)",size:"lg",disabled:o(n)==="loading"},null,8,["modelValue","disabled"]),a(f,{modelValue:o(l),"onUpdate:modelValue":s[1]||(s[1]=x=>k(l)?l.value=x:null),type:"email",placeholder:"[email protected]",size:"lg",required:"",disabled:o(n)==="loading"},null,8,["modelValue","disabled"]),e("label",E,[$(e("input",{"onUpdate:modelValue":s[2]||(s[2]=x=>k(i)?i.value=x:null),type:"checkbox",class:"mt-1 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500",required:""},null,512),[[G,o(i)]]),s[6]||(s[6]=e("span",{class:"text-sm text-neutral-600 dar
1k:text-neutral-400"}," I agree to receive emails from Club Sandwich with resources, episodes, and community updates. ",-1))]),a(c,{type:"submit",size:"lg",block:"",class:"bg-brand-500 hover:bg-brand-600 text-white",loading:o(n)==="loading",disabled:!o(i)},{default:m(()=>[...s[7]||(s[7]=[_(" Get the Free Guide ",-1)])]),_:1},8,["loading","disabled"]),o(n)==="error"?(v(),w("p",L,S(o(b)),1)):j("",!0)],32))])}}}),O=Object.assign(M,{__name:"ResourceDownloadForm"}),A=D("/images/resources/vera-field-guide-cover.png"),q={class:"pt-6 pb-2"},Y={class:"bg-brand-50 dark:bg-brand-950 py-16"},J={class:"max-w-5xl mx-auto flex flex-col md:flex-row items-center gap-10 md:gap-16"},K={class:"text-center md:text-left"},Q={class:"py-16"},X={class:"max-w-3xl mx-auto"},Z={class:"grid grid-cols-1 sm:grid-cols-2 gap-6"},ee={class:"flex gap-4"},te={class:"shrink-0 w-10 h-10 rounded-full bg-brand-100 dark:bg-brand-900 flex items-center justify-center"},se={class:"flex gap-4"},ae={class:"shrink-0 w-10 h-10 rounded-full bg-brand-100 dark:bg-brand-900 flex items-center justify-center"},ne={class:"flex gap-4"},re={class:"shrink-0 w-10 h-10 rounded-full bg-brand-100 dark:bg-brand-900 flex items-center justify-center"},oe={class:"flex gap-4"},le={class:"shrink-0 w-10 h-10 rounded-full bg-brand-100 dark:bg-brand-900 flex items-center justify-center"},ie={class:"flex gap-4"},de={class:"shrink-0 w-10 h-10 rounded-full bg-brand-100 dark:bg-brand-900 flex items-center justify-center"},ue={class:"flex gap-4"},me={class:"shrink-0 w-10 h-10 rounded-full bg-brand-100 dark:bg-brand-900 flex items-center justify-center"},ce={id:"download",class:"bg-neutral-50 dark:bg-neutral-900 py-16"},xe={class:"max-w-xl mx-auto text-center"},ge={class:"py-12"},we=H({__name:"resources",setup(u){F({title:"Resources",meta:[{name:"description",content:'Free guides for the Sandwich Generation. Download "Home is Where Their Heart Is," a field guide for navigating aged care.'},{property:"og:title",content:"Resources - Club Sandwich"},{property:"og:description",content:'Free guides for the Sandwich Generation, including "Home is Where Their Heart Is."'},{property:"og:image",content:"/og-image.png"}]});const r=[{label:"Home",path:"/"},{label:"Resources",path:"/resources"}];return N([{"@type":"BreadcrumbList",itemListElement:r.map((l,t)=>({"@type":"ListItem",position:t+1,name:l.label,item:`https://clubsandwich.community${l.path}`}))}]),(l,t)=>{const i=I,n=T,b=C,d=U,h=O;return v(),w("main",null,[e("div",q,[a(n,null,{default:m(()=>[a(i,{crumbs:r})]),_:1})]),e("section",Y,[a(n,null,{default:m(()=>[e("div",J,[t[4]||(t[4]=e("div",{class:"shrink-0 w-56 md:w-72"},[e("img",{src:A,alt:"Home is Where Their Heart Is â field guide cover",class:"w-full rounded-lg shadow-xl ring-1 ring-black/10"})],-1)),e("div",K,[t[1]||(t[1]=e("p",{class:"text-sm font-semibold uppercase tracking-wider text-brand-600 dark:text-brand-400 mb-3"}," Free Guide ",-1)),t[2]||(t[2]=e("h1",{class:"text-4xl md:text-5xl font-bold text-neutral-900 dark:text-white mb-4"}," Home is Where Their Heart Is ",-1)),t[3]||(t[3]=e("p",{class:"text-xl text-neutral-700 dark:text-neutral-300 leading-relaxed mb-6"}," A field guide for the Sandwich Generation. Navigate care with clarity, not chaos. ",-1)),a(b,{href:"#download",size:"lg",class:"bg-brand-500 hover:bg-brand-600 text-white"},{default:m(()=>[...t[0]||(t[0]=[_(" Get the Free Guide ",-1)])]),_:1})])])]),_:1})]),e("section",Q,[a(n,null,{default:m(()=>[e("div",X,[t[11]||(t[11]=e("h2",{class:"text-2xl md:text-3xl font-bold mb-6 text-center"}," What's Inside ",-1)),t[12]||(t[12]=e("p",{class:"text-lg text-neutral-600 dar
1k:text-neutral-400 mb-10 text-center leading-relaxed"}," Cut through the jargon, the acronyms, and the alphabet soup. This 10-page guide walks you through everything you need to know â from spotting the signs to getting into the system and choosing a provider. ",-1)),e("div",Z,[e("div",ee,[e("div",te,[a(d,{name:"i-heroicons-eye",class:"w-5 h-5 text-brand-600 dark:text-brand-400"})]),t[5]||(t[5]=e("div",null,[e("h3",{class:"font-semibold text-neutral-900 dark:text-white mb-1"},"Spotting the Early Signs"),e("p",{class:"text-sm text-neutral-600 dark:text-neutral-400"},"What to look for when something starts to shift with your parents.")],-1))]),e("div",se,[e("div",ae,[a(d,{name:"i-heroicons-map",class:"w-5 h-5 text-brand-600 dark:text-brand-400"})]),t[6]||(t[6]=e("div",null,[e("h3",{class:"font-semibold text-neutral-900 dark:text-white mb-1"},"Getting Into the System"),e("p",{class:"text-sm text-neutral-600 dark:text-neutral-400"},"My Aged Care, assessments, and the steps to access support.")],-1))]),e("div",ne,[e("div",re,[a(d,{name:"i-heroicons-home",class:"w-5 h-5 text-brand-600 dark:text-brand-400"})]),t[7]||(t[7]=e("div",null,[e("h3",{class:"font-semibold text-neutral-900 dark:text-white mb-1"},"Home Care Programs"),e("p",{class:"text-sm text-neutral-600 dar
1k:text-neutral-400"},"CHSP vs Support at Home â what they cover and how they differ.")],-1))]),e("div",oe,[e("div",le,[a(d,{name:"i-heroicons-clock",class:"w-5 h-5 text-brand-600 dark:text-brand-400"})]),t[8]||(t[8]=e("div",null,[e("h3",{class:"font-semibold text-neutral-900 dark:text-white mb-1"},"Navigating Wait Times"),e("p",{class:"text-sm text-neutral-600 dark:text-neutral-400"},"What to do while you're in the queue and how to get interim support.")],-1))]),e("div",ie,[e("div",de,[a(d,{name:"i-heroicons-light-bulb",class:"w-5 h-5 text-brand-600 dark:text-brand-400"})]),t[9]||(t[9]=e("div",null,[e("h3",{class:"font-semibold text-neutral-900 dark:text-white mb-1"},"Practical Tips"),e("p",{class:"text-sm text-neutral-600 dark:text-neutral-400"},"Real-world advice for managing the day-to-day alongside your parents' care.")],-1))]),e("div",ue,[e("div",me,[a(d,{name:"i-heroicons-heart",class:"w-5 h-5 text-brand-600 dark:text-brand-400"})]),t[10]||(t[10]=e("div",null,[e("h3",{class:"font-semibold text-neutral-900 dark:text-white mb-1"},"Choosing a Provider"),e("p",{class:"text-sm text-neutral-600 dar
1k:text-neutral-400"},"What to ask, what to look for, and how to find the right fit.")],-1))])])])]),_:1})]),e("section",ce,[a(n,null,{default:m(()=>[e("div",xe,[t[13]||(t[13]=e("h2",{class:"text-2xl md:text-3xl font-bold mb-2"}," Download the Free Guide ",-1)),t[14]||(t[14]=e("p",{class:"text-neutral-600 dark:text-neutral-400 mb-8"}," Enter your details below and we'll give you instant access to the guide. ",-1)),a(h,{"resource-slug":"vera-field-guide-home-care","resource-title":"Home is Where Their Heart Is"})])]),_:1})]),e("section",ge,[a(n,null,{default:m(()=>[...t[15]||(t[15]=[e("div",{class:"max-w-xl mx-auto text-center"},[e("p",{class:"text-sm text-neutral-500 dark:text-neutral-500 mb-2"}," This guide was created in partnership with "),e("p",{class:"text-lg font-semibold text-neutral-700 dark:text-neutral-300"},[e("a",{href:"https://vera.guide",target:"_blank",rel:"noopener noreferrer",class:"hover:text-brand-600 dark:hover:text-brand-400 transition-colors"},"Vera")]),e("p",{class:"text-sm text-neutral-500 dark:text-neutral-500 mt-2"}," The guide for families caring for ageing parents. Built for you. Centred on them. ")],-1)])]),_:1})])])}}});export{we 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.