1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0e6c3-58f6-74e1-90bc-190de18c7a5b")}catch(e){}}();import{u as c,a as l,r as d,j as e}from"./index-DKp-dPqd.js";import{a as u}from"./api-C5Dyql1X.js";import{H as m,F as b}from"./header-VH8attz7.js";import"./localized-link-C0fUAZzo.js";function p(){const{email:r,locale:t}=c({from:"/unsubscribe"}),n=l(u.marketing.drip.actions.unsubscribe),[a,s]=d.useState("idle"),o=t==="es",i=async()=>{if(r)try{await n({email:r}),s("done")}catch{s("error")}};return e.jsxs("main",{children:[e.jsx(m,{}),e.jsx("section",{style:{maxWidth:480,margin:"80px auto",padding:"0 24px",textAlign:"center"},children:a==="done"?e.jsxs(e.Fragment,{children:[e.jsx("h1",{style:{fontSize:24,fontWeight:700,marginBottom:12},children:o?"Te has dado de baja":"You've been unsubscribed"}),e.jsx("p",{style:{color:"#666",lineHeight:1.6},children:o?"No recibirás más correos de este tipo. Si ha sido un error, responde a cualquier correo anterior y lo revisamos.":"You won't receive any more emails from us. If this was a mistake, just reply to any previous email and we'll re-add you."})]}):e.jsxs(e.Fragment,{children:[e.jsx("h1",{style:{fontSize:24,fontWeight:700,marginBottom:12},children:o?"Darse de baja":"Unsubscribe"}),e.jsx("p",{style:{color:"#666",lineHeight:1.6,marginBottom:24},children:o?`Haz clic abajo para dejar de recibir correos${r?` en ${r}`:""}.`:`Click below to stop receiving emails${r?` at ${r}`:""}.`}),e.jsx("button",{onClick:i,disabled:!r,style:{background:"#18181b",color:"#fff",border:"none",borderRadius:8,padding:"12px 32px",fontSize:15,fontWeight:600,cursor:r?"pointer":"not-allowed",opacity:r?1:.5},children:o?"Darme de baja":"Unsubscribe"}),a==="error"&&e.jsx("p",{style:{color:"#dc2626",marginTop:12},children:o?"Algo ha fallado. Inténtalo de nuevo o responde a cualquier correo para darte de baja manualmente.":"Something went wrong. Try again or reply to any email to unsubscribe manually."})]})}),e.jsx(b,{})]})}const y=p;export{y as component}; 2 3//# chunkId=01a0e6c3-58f6-74e1-90bc-190de18c7a5b
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.