PageSourceSearch

https://recoverytrauma.lovable.app/assets/CrisisDialog-Bts2V_md.js

js recoverytrauma.lovable.app collected 2026-10-03 03:42:23 UTC 5,099 bytes, 2 lines download raw bytes

1import{j as e,Q as o,X as c,c2 as m,o as x,V as f,a6 as u,aI as h,ar as p,L as l,bL as b}from"./index-70yz1Rcc.js";function j({onClose:s,footerNote:r}){return e.jsx("div",{className:"fixed inset-0 z-[80] flex items-end justify-center bg-[#2a1e3f]/40 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:s,role:"dialog","aria-modal":"true","aria-labelledby":"crisis-dialog-title",children:e.jsx("div",{className:"relative max-h-[90vh] w-full max-w-lg overflow-y-auto rounded-t-3xl border border-[#d9c8f5]/70 bg-gradient-to-br from-white via-[#faf5fc] to-[#f3e7f7] text-[#2a1e3f] shadow-2xl sm:rounded-3xl dark:border-border dark:from-card dark:via-card dark:to-background dark:text-foreground",onClick:a=>a.stopPropagation(),children:e.jsxs("div",{className:"px-6 py-7 sm:px-8 sm:py-8",children:[e.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full bg-white/80 px-3 py-1 text-xs font-medium text-[#7a5cb0]",children:[e.jsx(o,{className:"h-3.5 w-3.5"}),"You are not alone"]}),e.jsx("button",{onClick:s,className:"rounded-full p-1.5 text-muted-foreground hover:bg-black/5 hover:text-foreground dark:hover:bg-white/10","aria-label":"Close",children:e.jsx(c,{className:"h-4 w-4"})})]}),e.jsx("h2",{id:"crisis-dialog-title",className:"font-serif text-2xl text-[#2a1e3f] dark:text-foreground sm:text-3xl",children:"🤍 Your safety matters."}),e.jsxs("p",{className:"mt-4 text-sm leading-relaxed text-[#2a1e3f]/85 dark:text-foreground/90",children:[e.jsx("span",{className:"font-semibold",children:"Recovery Trauma™ is not a crisis service."})," ","If you are in immediate danger, experiencing thoughts of self-harm, or require urgent support, contact local emergency services or an appropriate crisis service."]}),e.jsxs("div",{className:"mt-6 space-y-3",children:[e.jsxs("div",{className:"rounded-2xl border border-[#d9c8f5]/70 bg-white/80 p-4 dark:border-border dark:bg-background/70",children:[e.jsxs("div",{className:"mb-1 inline-flex items-center gap-1.5 text-[11px] font-medium uppercase tracking-wider text-[#7a5cb0]",children:[e.jsx(m,{className:"h-3.5 w-3.5"}),"Crisis resources"]}),e.jsxs("ul",{className:"mt-2 space-y-2 text-sm text-[#2a1e3f]/90 dark:text-foreground/90",children:[e.jsxs("li",{children:[e.jsx("span",{className:"font-medium",children:"US & Canada:"})," Call or text"," ",e.jsx("a",{href:"tel:988",className:"font-semibold text-[#7a5cb0] underline underline-offset-2",children:"988"})," ","(Suicide & Crisis Lifeline)"]}),e.jsxs("li",{children:[e.jsx("span",{className:"font-medium",children:"UK & ROI:"})," Call"," ",e.jsx("a",{href:"tel:116123",className:"font-semibold text-[#7a5cb0] underline underline-offset-2",children:"116 123"})," ","(Samaritans)"]}),e.jsxs("li",{children:[e.jsx("span",{className:"font-medium",children:"Worldwide:"})," ",e.jsx("a",{href:"https://findahelpline.com",target:"_blank",rel:"noreferrer",onClick:a=>x("https://findahelpline.com",a),className:"font-medium text-[#7a5cb0] underline underline-offset-2",children:"findahelpline.com"})]}),e.jsxs("li",{children:[e.jsx("span",{className:"font-medium",children:"Emergency:"})," ",e.jsx("a",{href:"tel:911",className:"underline underline-offset-2",children:"911"})," (US),"," ",e.jsx("a",{href:"tel:112",className:"underline underline-offset-2",children:"112"})," (EU),"," ",e.jsx("a",{href:"tel:999",className:"underline underline-offset-2",children:"999"})," (UK)"]})]})]}),e.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[e.jsx(t,{to:"/grounding",icon:f,label:"Grounding exercise"}),e.jsx(t,{to:"/breathing",icon:u,label:"Breathing now"}),e.jsx(t,{to:"/therapists",icon:h,label:"Find a therapist"}),e.jsx(t,{href:"mailto:[email protected]?subject=I%20need%20support&body=Hi%20Recovery%20Trauma%20team%2C%20I%27m%20reaching%20out%20because%20I%27m%20struggling%20and%20could%20use%20some%20support.",icon:p,label:"Email Recovery Trauma™"})]})]}),e.jsxs("div",{className:"mt-6 flex flex-col-reverse items-stretch gap-2 sm:flex-row sm:justify-end",children:[e.jsx("button",{onClick:s,className:"rounded-full px-4 py-2.5 text-sm text-muted-foreground hover:text-foreground",children:"Continue"}),e.jsxs(l,{to:"/crisis",onClick:s,className:"inline-flex items-center justify-center gap-2 rounded-full bg-gradient-to-r from-[#9b7cc7] to-[#c48bb8] px-5 py-2.5 text-sm font-medium text-white shadow-md transition-transform hover:scale-[1.02]",children:[e.jsx(b,{className:"h-4 w-4"}),"Open crisis support"]})]}),r&&e.jsx("p",{className:"mt-5 text-center text-xs text-muted-foreground",children:r})]})})})}function t({to:s,href:r,icon:a,label:d}){const i="inline-flex items-center justify-center gap-2 rounded-2xl border border-[#d9c8f5]/70 bg-card/80 px-4 py-3 text-sm font-medium text-foreground transition hover:bg-card dark:border-[#9b7cc7]/40",n=e.jsxs(e.Fragment,{children:[e.jsx(a,{className:"h-4 w-4 text-[#7a5cb0]"}),d]});return r?e.jsx("a",{href:r,className:i,children:n}):e.jsx(l,{to:s,className:i,children:n})}export{j as C};
2//# sourceMappingURL=CrisisDialog-Bts2V_md.js.map

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.