PageSourceSearch

https://amle.ie/assets/ActionPage-B3WE8RUr.js

js amle.ie collected 2026-10-04 04:10:28 UTC 25,259 bytes, 1 lines download raw bytes

1import{c as i,j as e,t as o}from"./vendor-ui-DoG2tnCj.js";import{s as De,m as Se}from"./sanitize-BYKsS9js.js";import{aq as $e,ae as Fe,u as Ie,aD as Re,ag as R,ah as A,B as d,L as te,F as ae,j as x,o as Ae,w as T,I as g,m as E,D as re,f as ie,g as ne,h as oe,i as le,P as Te,T as de}from"./index-D5rH5Kj8.js";import{L as m}from"./label-D8bvz-07.js";import{C,d as U}from"./card-DGsoyv2Y.js";import{c as Ee}from"./CalendarBlank.es-BmRJ7Bpm.js";import{n as Ue}from"./Camera.es-CoJ-48ix.js";import{s as ce}from"./Copy.es-CPe1z17P.js";import{l as me}from"./DownloadSimple.es-6L338jis.js";import{p as Ge,s as Be,m as Le}from"./FolderSimple.es-q7OD1gue.js";import{c as Me}from"./FilePdf.es-misUfEZQ.js";import{s as We}from"./FileText.es-b5Q3If4r.js";import{c as xe}from"./FileZip.es-D03lKnJx.js";import{p as Oe}from"./MapPin.es-DgLXjHDb.js";import{h as He}from"./ShieldCheck.es-DDAVxLM-.js";import{m as G}from"./SpinnerGap.es-DH2f9dlw.js";import{n as ue}from"./Trash.es-D7_55eLp.js";import{m as qe}from"./WarningCircle.es-C2NcQMLt.js";import"./vendor-supabase-BwKJ0EQr.js";function xs(){const{slug:z}=$e(),[B]=Fe(),{i18n:p}=Ie(),[r,P]=i.useState(p.language==="ga"?"ga":"en"),c=r==="ga";i.useEffect(()=>{(p.language==="ga"||p.language==="en")&&P(p.language)},[p.language]);const{page:t,loading:ge}=Re(z),[h,y]=i.useState({}),[f,L]=i.useState(""),[D,M]=i.useState(""),[S,W]=i.useState(""),[b,O]=i.useState(null),[H,q]=i.useState(null),[Y,pe]=i.useState(!0),[Z,J]=i.useState(!1),[he,$]=i.useState(!1),[j,fe]=i.useState(null),[be,w]=i.useState(!1),[_,K]=i.useState(""),[V,X]=i.useState(!1),[F,je]=i.useState(null),k=i.useRef(null);i.useEffect(()=>{const s=B.get("withdraw");s&&(K(s),w(!0))},[B]);const Ne=s=>{const n=s.target.files?.[0];if(!n)return;if(!n.type.startsWith("image/")){o.error("Please select an image file (JPEG, PNG, or WebP)");return}if(n.size>5*1024*1024){o.error("Image size must be less than 5 MB");return}O(n);const a=new FileReader;a.onloadend=()=>{q(a.result)},a.readAsDataURL(n)},Q=()=>{O(null),q(null),k.current&&(k.current.value="")},ve=async s=>{if(s.preventDefault(),!t)return;if(!f.trim()||!f.includes("@")){o.error("Please provide a valid email address");return}if(!Y){o.error("Please agree to data processing under EU GDPR");return}const n=(t.form_config?.fields||[]).filter(a=>a.enabled);for(const a of n)if(a.required){if(a.id==="email"&&!f.trim()){o.error(`Please complete: ${a.label}`);return}if(a.id==="full_name"&&!D.trim()){o.error(`Please complete: ${a.label}`);return}if(a.id==="college"&&!S.trim()){o.error(`Please complete: ${a.label}`);return}if(a.id==="user_image"&&!b){o.error(`Please upload: ${a.label}`);return}if(!["email","full_name","college","user_image"].includes(a.id)&&!h[a.id]){o.error(`Please complete: ${a.label}`);return}}J(!0);try{const a=await de.submitSignup({pageId:t.id,email:f.trim(),fullName:D.trim()||void 0,college:S.trim()||void 0,formData:h,imageFile:b,gdprConsent:!0});fe({signupId:a.signupId,deletionToken:a.deletionToken,pageTitle:t.title}),$(!0),o.success("Registration successful! Cryptographic erasure token issued."),L(""),M(""),W(""),y({}),Q()}catch(a){console.error("Signup error:",a),o.error("Registration failed",{description:a.message})}finally{J(!1)}},ye=async()=>{if(!t||!_.trim()){o.error("A valid private withdrawal token is required");return}X(!0);try{const s=await de.withdrawSignup(t.id,_.trim());je({certificateId:s.certificateId,verificationHash:s.verificationHash}),o.success("Your registration and uploaded image were permanently expunged.")}catch(s){console.error("Withdrawal error:",s),o.error("Withdrawal failed",{description:s.message})}finally{X(!1)}},I=(s,n)=>{navigator.clipboard.writeText(s),o.success(`Copied ${n} to clipboard!`)};if(ge)return e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(R,{}),e.jsx("main",{className:"flex-1 flex items-center justify-center",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(G,{size:24,className:"animate-spin text-accent"}),e.jsx("span",{className:"text-muted-foreground font-medium",children:"Loading action page..."})]})}),e.jsx(A,{})]});if(!t)return e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(R,{}),e.jsxs("main",{className:"flex-1 container mx-auto px-6 py-20 text-center max-w-xl space-y-6",children:[e.jsx(qe,{size:64,className:"mx-auto text-amber-500 opacity-80"}),e.jsx("h1",{className:"text-3xl font-bold",children:"Action Page Not Found"}),e.jsx("p",{className:"text-muted-foreground",children:"The campaign or event action page you are looking for does not exist or may have completed its campaign cycle."}),e.jsx(d,{asChild:!0,children:e.jsxs(te,{to:"/events",children:[e.jsx(ae,{size:16,className:"mr-2"}),"Browse All National Events"]})})]}),e.jsx(A,{})]});const we=r==="ga"&&t.title_ga?t.title_ga:t.title,ee=r==="ga"&&t.subtitle_ga?t.subt
1itle_ga:t.subtitle,_e=r==="ga"&&t.content_ga?t.content_ga:t.content,se=r==="ga"&&t.location_ga?t.location_ga:t.location,N=(t.form_config?.fields||[]).filter(s=>s.enabled);return e.jsxs("div",{className:"min-h-screen flex flex-col bg-background selection:bg-accent/20",children:[e.jsx(R,{}),e.jsxs("main",{className:"flex-1 pb-24",children:[e.jsxs("section",{className:"relative overflow-hidden pt-12 pb-16 md:pt-20 md:pb-24 border-b border-border/60 bg-gradient-to-b from-muted/30 via-background to-background",children:[t.hero_image_url&&e.jsx("div",{className:"absolute inset-0 opacity-15 bg-cover bg-center pointer-events-none mix-blend-overlay filter blur-[1px]",style:{backgroundImage:`url(${t.hero_image_url})`}}),e.jsxs("div",{className:"container mx-auto px-6 max-w-5xl relative z-10",children:[e.jsxs("div",{className:"flex items-center justify-between gap-4 mb-8",children:[e.jsxs(te,{to:"/events",className:"inline-flex items-center gap-1.5 text-xs font-medium text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(ae,{size:14}),"Back to Events & Campaigns"]}),e.jsxs("div",{className:"inline-flex rounded-lg border border-border p-0.5 bg-background/80 backdrop-blur-sm",children:[e.jsx("button",{type:"button",onClick:()=>P("en"),className:`px-3 py-1 text-xs font-semibold rounded-md transition-all ${r==="en"?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:"EN"}),e.jsx("button",{type:"button",onClick:()=>P("ga"),className:`px-3 py-1 text-xs font-semibold rounded-md transition-all ${r==="ga"?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:"GA"})]})]}),e.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-6",children:[t.banner_logo_url&&e.jsx("div",{className:"w-24 h-24 md:w-32 md:h-32 rounded-3xl bg-card border-2 border-border p-3 shadow-xl flex items-center justify-center shrink-0",children:e.jsx("img",{src:t.banner_logo_url,alt:`${t.title} logo`,className:"max-h-full max-w-full object-contain"})}),e.jsxs("div",{className:"space-y-3 flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(x,{variant:"outline",className:"border-accent/40 bg-accent/10 text-accent font-semibold px-2.5 py-0.5 text-xs",children:"AMLÉ Action Hub"}),t.event_date&&e.jsxs(x,{variant:"secondary",className:"gap-1 text-xs font-mono",children:[e.jsx(Ee,{size:13}),new Date(t.event_date).toLocaleDateString(r==="ga"?"ga-IE":"en-IE",{weekday:"short",year:"numeric",month:"short",day:"numeric"})]}),se&&e.jsxs(x,{variant:"secondary",className:"gap-1 text-xs",children:[e.jsx(Oe,{size:13}),se]})]}),e.jsx("h1",{className:"text-3xl md:text-5xl font-extrabold tracking-tight text-foreground leading-[1.15]",children:we}),ee&&e.jsx("p",{className:"text-lg md:text-xl text-muted-foreground font-medium leading-relaxed max-w-3xl",children:ee})]})]})]})]}),e.jsx("div",{className:"container mx-auto px-6 max-w-5xl pt-10",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-10",children:[e.jsxs("div",{className:"lg:col-span-7 space-y-8",children:[t.assets&&t.assets.length>0&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-1 border-b border-border/60",children:[e.jsxs("h3",{className:"text-lg font-bold text-foreground flex items-center gap-2",children:[e.jsx(Ge,{size:22,className:"text-primary",weight:"duotone"}),c?"Acmhainní & Doiciméid Gníomhaíochta":"Campaign Resources & Downloads"]}),e.jsxs(x,{variant:"outline",className:"text-xs font-mono font-medium",children:[t.assets.length," ",t.assets.length===1?c?"doiciméad":"document":c?"dhoiciméad":"documents"]})]}),e.jsx("div",{className:"grid grid-cols-1 gap-3.5",children:t.assets.map(s=>{const n=c&&s.title_ga?s.title_ga:s.title,a=c&&s.description_ga?s.description_ga:s.description,l=(s.file_type||s.file_name.split(".").pop()||"file").toLowerCase(),ke=l==="pdf",Ce=l==="doc"||l==="docx",ze=l==="xls"||l==="xlsx"||l==="csv",Pe=l==="zip";let v=e.jsx(We,{size:28,weight:"duotone",className:"text-primary"}),u="bg-primary/10 border-primary/20 text-primary";return ke?(v=e.jsx(Me,{size:28,weight:"duotone",className:"text-rose-500"}),u="bg-rose-500/10 border-rose-500/20 text-rose-500"):Ce?(v=e.jsx(Be,{size:28,weight:"duotone",className:"text-blue-500"}),u="bg-blue-500/10 border-blue-500/20 text-blue-500"):ze?(v=e.jsx(Le,{size:28,weight:"duotone",className:"text-emerald-500"}),u="bg-emerald-500/10 border-emerald-500/20 text-emerald-500"):Pe&&(v=e.jsx(xe,{size:28,weight:"duotone",className:"text-purple-500"}),u="bg-purple-500/10 border-purple-500/20 text-purple-500"),e.jsx(C,{className:"glass border border-border/80 hover:border-primary/50 transition-all shadow-sm hover:shadow-md overflow-hidden group",children:e.jsx(U,{className:"p-4 sm:p-5",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-start gap-3.5 min-w-0",children:[e.jsx("div",{className:`w-12 h-12 rounded-xl border flex items-center justify-center shrink-0 shadow-sm ${u}`,children:v}),e.jsxs("div",{className:"space-y-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("h4",{className:"text-base font-bold text-foreground leading-snug",children:n}),e.jsx(x,{variant:"outline",className:`text-[10px] uppercase font-mono px-1.5 py-0 ${u}`,children:l.toUpperCase()}),s.file_size_bytes&&e.jsx("span",{className:"text-[11px] text-muted-foreground font-mono",children:s.file_size_bytes<1024*1024?`${(s.file_size_bytes/1024).toFixed(0)} KB`:`${(s.file_size_bytes/(1024*1024)).toFixed(1)} MB`})]}),a&&e.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed pt-0.5",children:a})]})]}),e.jsx(d,{asChild:!0,size:"sm",className:"shrink-0 w-full sm:w-auto font-semibold gap-1.5 shadow-sm group-hover:scale-[1.02] transition-transform",children:e.jsxs("a",{href:s.file_url,download:s.file_name||!0,target:"_blank",rel:"noopener noreferrer","aria-label":`Download ${n} (${l.toUpperCase()})`,children:[e.jsx(me,{size:16,weight:"bold"}),e.jsx("span",{children:c?"Íoslódáil":"Download"})]})})]})})},s.id)})})]}),t.zip_pack_url&&e.jsx(C,{className:"glass border-2 border-accent/30 bg-accent/5 overflow-hidden shadow-lg transition-all hover:border-accent/50",children:e.jsx(U,{className:"p-6",children:e.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-14 h-14 roun
1ded-2xl bg-accent/20 border border-accent/40 flex items-center justify-center text-accent shrink-0 shadow-inner",children:e.jsx(xe,{size:32,weight:"duotone"})}),e.jsxs("div",{children:[e.jsx(x,{variant:"outline",className:"text-[10px] uppercase font-mono px-2 py-0 border-accent/40 text-accent mb-1",children:c?"Pacáiste Iomlán Gníomhaíochta (.ZIP)":"Complete Action Pack (.ZIP)"}),e.jsx("h3",{className:"text-base font-bold text-foreground",children:t.zip_pack_name||(c?"Pacáiste Faisnéise Feachtais & Imeachta":"Event & Campaign Briefing Pack")}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:t.zip_pack_size_bytes?`ZIP Archive • ${(t.zip_pack_size_bytes/(1024*1024)).toFixed(1)} MB`:c?"Plaicíní inphriontáilte, grafaicí sóisialta, agus nótaí faisnéise":"Printable placards, social graphics, and briefing notes"})]})]}),e.jsx(d,{asChild:!0,className:"bg-accent text-accent-foreground hover:bg-accent/90 shrink-0 w-full sm:w-auto shadow-md font-semibold",children:e.jsxs("a",{href:t.zip_pack_url,download:!0,target:"_blank",rel:"noopener noreferrer",children:[e.jsx(me,{size:18,className:"mr-2",weight:"bold"}),"Download .ZIP"]})})]})})}),e.jsx("article",{className:"prose prose-slate dark:prose-invert max-w-none text-foreground/90 prose-headings:font-bold prose-headings:tracking-tight prose-a:text-primary hover:prose-a:underline prose-img:rounded-2xl",children:e.jsx("div",{dangerouslySetInnerHTML:{__html:De(Se.parse(_e||""))}})}),e.jsxs("div",{className:"pt-8 border-t border-border flex flex-wrap items-center justify-between gap-4 text-xs text-muted-foreground",children:[e.jsx("div",{className:"flex items-center gap-2",children:e.jsxs(d,{variant:"outline",size:"sm",onClick:()=>I(window.location.href,"Action page URL"),className:"gap-1.5 h-8 text-xs",children:[e.jsx(Ae,{size:14}),"Share Action"]})}),e.jsxs("button",{type:"button",onClick:()=>w(!0),className:"text-muted-foreground hover:text-foreground underline underline-offset-4 flex items-center gap-1 transition-colors",children:[e.jsx(T,{size:13}),"Already registered? 1-Click GDPR Data Withdrawal"]})]})]}),e.jsx("div",{className:"lg:col-span-5",children:t.form_enabled?e.jsx("div",{className:"sticky top-24",children:e.jsxs(C,{className:"glass border-2 border-primary/20 shadow-2xl overflow-hidden",children:[e.jsxs("div",{className:"bg-primary/10 border-b border-primary/20 p-5",children:[e.jsxs("div",{className:"flex items-center gap-2 text-primary text-xs font-bold uppercase tracking-wider mb-1",children:[e.jsx(He,{size:18,weight:"duotone"}),"Verified Student Action"]}),e.jsx("h3",{className:"text-xl font-bold tracking-tight text-foreground",children:r==="ga"&&t.form_config?.title_ga?t.form_config.title_ga:t.form_config?.title||"Register for this Action"}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:r==="ga"&&t.form_config?.description_ga?t.form_config.description_ga:t.form_config?.description||"Your details are encrypted and covered by cryptographic self-service erasure rights."})]}),e.jsx(U,{className:"p-6",children:e.jsxs("form",{onSubmit:ve,className:"space-y-4",children:[N.some(s=>s.id==="full_name")&&e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs(m,{htmlFor:"signup_name",className:"text-xs font-semibold",children:[r==="ga"?"Ainm Iomlán":"Full Name"," ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(g,{id:"signup_name",required:!0,placeholder:r==="ga"?"m.sh. Aoife Ní Bhriain":"e.g. Aoife O’Brien",value:D,onChange:s=>M(s.target.value),className:"text-sm"})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs(m,{htmlFor:"signup_email",className:"text-xs font-semibold",children:[r==="ga"?"Ríomhphost Mic Léinn":"Student / Preferred Email"," ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(g,{id:"signup_email",type:"email",required:!0,placeholder:"[email protected]",value:f,onChange:s=>L(s.target.value),className:"text-sm"}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Used strictly to transmit your cryptographic withdrawal token."})]}),N.some(s=>s.id==="college")&&e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(m,{htmlFor:"signup_college",className:"text-xs font-semibold",children:r==="ga"?"Coláiste / Ollscoil / Aontas":"College / University / Students Union"}),e.jsx(g,{id:"signup_college",placeholder:r==="ga"?"m.sh. TCD, MTU, UCC, DCU...":"e.g. TCD, MTU, UCC, DCU...",value:S,onChange:s=>W(s.target.value),className:"text-sm"})]}),N.some(s=>s.id==="phone")&&e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(m,{htmlFor:"signup_phone",className:"text-xs font-semibold",children:r==="ga"?"Uimhir Ghutháin":"Phone Number (Optional for on-the-day alerts)"}),e.jsx(g,{id:"signup_phone",type:"tel",placeholder:"+353 87 123 4567",value:h.phone||"",onChange:s=>y(n=>({...n,phone:s.target.value})),className:"text-sm"})]}),N.filter(s=>!["full_name","email","college","phone","user_image"].includes(s.id
1)).map(s=>{const n=r==="ga"&&s.label_ga?s.label_ga:s.label;return s.type==="checkbox"?e.jsxs("div",{className:"flex items-start gap-2 pt-1",children:[e.jsx("input",{type:"checkbox",id:s.id,checked:!!h[s.id],onChange:a=>y(l=>({...l,[s.id]:a.target.checked})),className:"mt-1 h-4 w-4 rounded border-border text-primary focus:ring-primary"}),e.jsx(m,{htmlFor:s.id,className:"text-xs font-normal cursor-pointer leading-snug",children:n})]},s.id):e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs(m,{htmlFor:s.id,className:"text-xs font-semibold",children:[n," ",s.required&&e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(g,{id:s.id,value:h[s.id]||"",onChange:a=>y(l=>({...l,[s.id]:a.target.value})),className:"text-sm"})]},s.id)}),N.some(s=>s.id==="user_image")&&e.jsxs("div",{className:"space-y-2 pt-2 border-t border-border",children:[e.jsxs(m,{className:"text-xs font-semibold flex items-center justify-between",children:[e.jsx("span",{children:r==="ga"?"Uaslódáil Grianghraf / Cárta Mic Léinn":"Delegate Photo / Student Card (Optional)"}),e.jsx(x,{variant:"outline",className:"text-[10px] py-0",children:"For Badge"})]}),H?e.jsxs("div",{className:"relative rounded-2xl border-2 border-primary/30 bg-muted/30 p-2 flex items-center gap-3 shadow-inner",children:[e.jsx("img",{src:H,alt:"Preview upload",className:"w-16 h-16 rounded-xl object-cover border border-border"}),e.jsxs("div",{className:"flex-1 min-w-0 text-xs",children:[e.jsx("p",{className:"font-semibold truncate text-foreground",children:b?.name}),e.jsx("p",{className:"text-muted-foreground",children:b&&`${(b.size/1024).toFixed(0)} KB • Ready`})]}),e.jsx(d,{type:"button",variant:"ghost",size:"icon",onClick:Q,className:"h-8 w-8 text-destructive hover:bg-destructive/10 shrink-0",children:e.jsx(ue,{size:16})})]}):e.jsxs("div",{onClick:()=>k.current?.click(),className:"border-2 border-dashed border-border hover:border-primary/50 transition-colors rounded-xl p-4 text-center cursor-pointer bg-muted/10 hover:bg-muted/30",children:[e.jsx(Ue,{size:26,className:"mx-auto text-muted-foreground opacity-60 mb-1"}),e.jsx("p",{className:"text-xs font-medium text-foreground",children:"Click to upload photo or badge"}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"PNG, JPG, or WebP up to 5 MB"}),e.jsx("input",{ref:k,type:"file",accept:"image/*",className:"hidden",onChange:Ne})]})]}),e.jsx("div",{className:"p-3 rounded-xl bg-muted/40 border border-border space-y-2",children:e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("input",{type:"checkbox",id:"gdpr_consent",required:!0,checked:Y,onChange:s=>pe(s.target.checked),className:"mt-0.5 h-4 w-4 rounded border-border text-primary focus:ring-primary"}),e.jsx(m,{htmlFor:"gdpr_consent",className:"text-[11px] leading-snug text-muted-foreground cursor-pointer",children:r==="ga"?"Aontaím le sonraí a phróiseáil faoi GDPR an AE. Tuigim go bhfaighidh mé comhartha scriosta cripteagrafach chun mo shonraí agus mo ghrianghraf a scriosadh go buan tráth ar bith.":"I consent to data processing under EU GDPR. I understand I will receive an immutable cryptographic deletion token allowing 1-click erasure of my details and photo at any time."})]})}),e.jsx(d,{type:"submit",disabled:Z,className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground font-bold shadow-lg h-11",children:Z?e.jsxs(e.Fragment,{children:[e.jsx(G,{size:18,className:"animate-spin mr-2"}),"Securing Registration..."]}):e.jsxs(e.Fragment,{children:[e.jsx(E,{size:18,className:"mr-2",weight:"bold"}),r==="ga"?"Cláraigh don Ghníomh":"Register for Action"]})})]})})]})}):e.jsxs(C,{className:"glass border-border p-6 text-center space-y-3",children:[e.jsx(T,{size:36,className:"mx-auto text-muted-foreground opacity-60"}),e.jsx("h3",{className:"font-bold text-base",children:"Registrations Closed"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Online signups for this action page are currently concluded. Follow AMLÉ news for updates."})]})})]})})]}),e.jsx(A,{}),e.jsx(re,{open:he,onOpenChange:$,children:e.jsxs(ie,{className:"max-w-md p-6 glass",children:[e.jsxs(ne,{children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-emerald-500/10 border border-emerald-500/30 flex items-center justify-center text-emerald-500 mb-2",children:e.jsx(E,{size:28,weight:"duotone"})}),e.jsx(oe,{className:"text-xl font-bold",children:"Registration Confirmed"}),e.jsx(le,{className:"text-xs text-muted-foreground",children:"Your place is confirmed. Below is your private, unguessable GDPR deletion token."})]}),j&&e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"p-3.5 rounded-xl bg-muted/40 border border-border space-y-1.5 font-mono text-xs",children:[e.jsx("span",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-sans font-semibold",children:"Private Deletion Token"}),e.jsxs("div",{className:"flex items-center justify-between gap-2 bg-background p-2 rounded-lg border border-border",children:[e.jsx("span",{className:"truncate text-foreground font-bold",children:j.deletionToken}),e.jsx(d,{size:"icon",variant:"ghost",className:"h-7 w-7 shrink-0",onClick:()=>I(j.deletionToken,"Deletion Token"),children:e.jsx(ce,{size:14})})]})]}),e.jsxs("div",{className:"p-3 rounded-xl bg-primary/5 border border-primary/20 text-xs space-y-1",children:[e.jsx("p",{className:"font-semibold text-foreground",children:"1-Click Self-Service Withdrawal"}),e.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"You can withdraw your registration and permanently delete your submitted photo at any time by visiting:"}),e.jsxs("div",{className:"flex items-center justify-between gap-2 bg-background/80 p-1.5 rounded border border-primary/20 mt-1 font-mono text-[11px]",children:[e.jsx("span",{className:"truncate",children:`${window.location.origin}/hub/${z}
1?withdraw=${j.deletionToken}`}),e.jsx(d,{size:"icon",variant:"ghost",className:"h-6 w-6 shrink-0",onClick:()=>I(`${window.location.origin}/hub/${z}?withdraw=${j.deletionToken}`,"Withdrawal link"),children:e.jsx(ce,{size:12})})]})]})]}),e.jsx(Te,{children:e.jsx(d,{className:"w-full",onClick:()=>$(!1),children:"Done"})})]})}),e.jsx(re,{open:be,onOpenChange:w,children:e.jsxs(ie,{className:"max-w-md p-6 glass",children:[e.jsxs(ne,{children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-destructive/10 border border-destructive/30 flex items-center justify-center text-destructive mb-2",children:e.jsx(T,{size:28,weight:"duotone"})}),e.jsx(oe,{className:"text-xl font-bold",children:"Self-Service GDPR Data Withdrawal"}),e.jsx(le,{className:"text-xs text-muted-foreground",children:"Under EU GDPR, you have the unconditional right to withdraw your consent and permanently expunge your registration and uploaded photo."})]}),F?e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"p-4 rounded-xl bg-emerald-500/10 border border-emerald-500/30 text-emerald-800 dark:text-emerald-300 text-xs space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 font-bold",children:[e.jsx(E,{size:18,weight:"fill",className:"text-emerald-500"}),"Data Verifiably Expunged"]}),e.jsx("p",{className:"text-muted-foreground",children:"Your participant record and uploaded image have been permanently removed. A zero-residual cryptographic proof has been recorded in the immutable GDPR ledger."}),e.jsxs("div",{className:"pt-2 border-t border-emerald-500/20 font-mono text-[10px] space-y-1",children:[e.jsxs("p",{children:[e.jsx("span",{className:"font-semibold",children:"Certificate ID:"})," ",F.certificateId]}),e.jsxs("p",{className:"truncate",children:[e.jsx("span",{className:"font-semibold",children:"SHA-256 Proof:"})," ",F.verificationHash]})]})]}),e.jsx(d,{className:"w-full",onClick:()=>w(!1),children:"Close"})]}):e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(m,{htmlFor:"token_input",className:"text-xs font-semibold",children:"Enter Your Private Deletion Token:"}),e.jsx(g,{id:"token_input",placeholder:"e.g. 550e8400-e29b-41d4-a716-446655440000",value:_,onChange:s=>K(s.target.value),className:"font-mono text-xs"})]}),e.jsx("p",{className:"text-[11px] text-muted-foreground",children:"This action is permanent and irreversible. Your record and image storage file will be immediately expunged from AMLÉ servers."}),e.jsx(d,{onClick:ye,disabled:V||!_.trim(),variant:"destructive",className:"w-full font-bold",children:V?e.jsxs(e.Fragment,{children:[e.jsx(G,{size:18,className:"animate-spin mr-2"}),"Expunging Data..."]}):e.jsxs(e.Fragment,{children:[e.jsx(ue,{size:18,className:"mr-2"}),"Permanently Expunge My Registration"]})})]})]})})]})}export{xs as ActionPage};

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.