PageSourceSearch

https://country-connect.co.uk/assets/EasterDone-CFf3xf_7.js

js country-connect.co.uk collected 2026-10-04 10:25:44 UTC 5,165 bytes, 2 lines download raw bytes

1import{cA as k,b as v,c as x,j as e,C as m,cy as C,cC as E,c7 as L,aA as S,B as u,aj as H,L as B,br as T}from"./index-Dt_fZ0DR.js";import{S as h}from"./skeleton-C9AxFwjo.js";function z({dashboard:r=!1,basePath:F="/easter2026"}){const{user:o,idToken:g}=k(),{toast:d}=v(),{data:a,isLoading:p}=x({queryKey:["/api/easter-hunt/my-progress"],enabled:!!o&&!!g}),s=a==null?void 0:a.participant,c=(a==null?void 0:a.progress)||[],{data:f,isLoading:j}=x({queryKey:["/api/easter-hunt/clues"],enabled:!!o}),w=async()=>{const t="I completed the CountryConnect Easter Egg Hunt 2026! Can you find all the eggs?",l=`${window.location.origin}/easter2026`;if(navigator.share)try{await navigator.share({title:"Easter Egg Hunt 2026",text:t,url:l})}catch{}else try{await navigator.clipboard.writeText(`${t}
2${l}`),d({title:"Copied!",description:"Link copied to clipboard"})}catch{d({title:"Error",description:"Could not copy link",variant:"destructive"})}};if(p||j){const t=e.jsxs("div",{className:"max-w-md mx-auto px-4 py-12 space-y-4",children:[e.jsx(h,{className:"h-8 w-48 mx-auto"}),e.jsx(h,{className:"h-24 w-full rounded-2xl"})]});return r?t:e.jsx("div",{className:"min-h-screen bg-gradient-to-b from-green-50 via-yellow-50 to-pink-50 dark:from-green-950/30 dark:via-yellow-950/20 dark:to-pink-950/20",children:t})}const y=(f||[]).slice().sort((t,l)=>t.orderIndex-l.orderIndex),n=(s==null?void 0:s.secretWord)||y.map(t=>t.letter).join(""),b=c.length,N=c.filter(t=>t.photoUrl).length,i=e.jsxs("div",{className:"max-w-md mx-auto px-4 py-10 space-y-8 text-center",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-green-800 dark:text-green-300","data-testid":"text-done-title",children:"Thank You!"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["We hope you enjoyed the Easter Egg Hunt, ",(s==null?void 0:s.familyName)||"hunter","!"]})]}),e.jsxs(m,{className:"p-5 rounded-2xl shadow-md","data-testid":"card-summary",children:[e.jsx("h2",{className:"text-sm font-semibold text-purple-800 dark:text-purple-300 mb-4",children:"Hunt Summary"}),e.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-green-100 dark:bg-green-900 flex items-center justify-center",children:e.jsx(C,{className:"w-5 h-5 text-green-700 dark:text-green-300"})}),e.jsx("span",{className:"text-lg font-bold text-foreground",children:b}),e.jsx("span",{className:"text-xs text-muted-foreground",children:"Eggs Found"})]}),e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-100 dark:bg-yellow-900 flex items-center justify-center",children:e.jsx(E,{className:"w-5 h-5 text-yellow-700 dark:text-yellow-300"})}),e.jsx("span",{className:"text-lg font-bold text-foreground",children:N}),e.jsx("span",{className:"text-xs text-muted-foreground",children:"Photos"})]}),e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-purple-100 dark:bg-purple-900 flex items-center justify-center",children:e.jsx(L,{className:"w-5 h-5 text-purple-700 dark:text-purple-300"})}),e.jsx("span",{className:"text-lg font-bold text-foreground",children:n.length}),e.jsx("span",{className:"text-xs text-muted-foreground",children:"Letters"})]})]}),n&&e.jsxs("div",{className:"mt-4 pt-4 border-t",children:[e.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:"Secret Word"}),e.jsx("p",{className:"text-xl font-bold text-green-800 dark:text-green-300 tracking-widest",children:n})]})]}),(s==null?void 0:s.completionCode)&&e.jsxs(m,{className:"p-5 rounded-2xl shadow-md bg-yellow-50 dark:bg-yellow-950/30 border-yellow-200 dark:border-yellow-800","data-testid":"card-collect-prize",children:[e.jsx("div",{className:"w-12 h-12 mx-auto rounded-full bg-yellow-100 dark:bg-yellow-900 flex items-center justify-center mb-3",children:e.jsx(S,{className:"w-6 h-6 text-yellow-700 dark:text-yellow-300"})}),e.jsx("h2",{className:"font-semibold text-foreground",children:"Collect Your Prize"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1 mb-3",children:"Meet outside Ye Olde Bull Inn, between 09:00 and 12:00 on Easter Sunday to collect your chocolate egg"}),e.jsx("p",{className:"text-2xl font-mono font-bold text-green-800 dark:text-green-300 tracking-widest","data-testid":"text-completion-code",children:s.completionCode})]}),e.jsxs("div",{className:"space-y-3 pt-2",children:[e.jsxs(u,{variant:"outline",className:"w-full rounded-2xl",onClick:w,"data-testid":"button-share",children:[e.jsx(H,{className:"w-4 h-4 mr-2"}),"Share with Friends"]}),e.jsx(B,{href:r?"/dashboard/feed":"/",children:e.jsxs(u,{size:"lg",className:"w-full bg-green-600 border-green-700 text-white rounded-2xl","data-testid":"button-home",children:[e.jsx(T,{className:"w-4 h-4 mr-2"}),r?"Back to Dashboard":"Back to Home"]})})]})]});return r?i:e.jsx("div",{className:"min-h-screen bg-gradient-to-b from-green-50 via-yellow-50 to-pink-50 dark:from-green-950/30 dark:via-yellow-950/20 dark:to-pink-950/20",children:i})}export{z 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.