1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3122,6009],{471:(e,t,n)=>{e.exports=n(2602)},3045:(e,t,n)=>{"use strict";n.d(t,{j:()=>d});var r=n(83484),a=n(44249),i=n(46407),s=n(26471),o=n(52833),l=n(44896);function d(e,t,n){let{isDisabled:d}=e,c=(0,a.Bi)(),u=(0,a.Bi)(),h=(0,i.wR)(),p=(0,l.useRef)(null),m=(0,l.useCallback)(()=>{p.current=requestAnimationFrame(()=>{n.current&&n.current.setAttribute("hidden","until-found")}),(0,o.flushSync)(()=>{t.toggle()})},[n,t]);(0,r._)(n,"beforematch",m);let g=(0,l.useRef)(null);return(0,s.N)(()=>{if(p.current&&cancelAnimationFrame(p.current),n.current&&!h){let e=n.current;null==g.current||"function"!=typeof e.getAnimations?t.isExpanded?(e.removeAttribute("hidden"),e.style.setProperty("--disclosure-panel-width","auto"),e.style.setProperty("--disclosure-panel-height","auto")):(e.setAttribute("hidden","until-found"),e.style.setProperty("--disclosure-panel-width","0px"),e.style.setProperty("--disclosure-panel-height","0px")):t.isExpanded!==g.current&&(t.isExpanded?(e.removeAttribute("hidden"),e.style.setProperty("--disclosure-panel-width",e.scrollWidth+"px"),e.style.setProperty("--disclosure-panel-height",e.scrollHeight+"px"),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>{e.style.setProperty("--disclosure-panel-width","auto"),e.style.setProperty("--disclosure-panel-height","auto")}).catch(()=>{})):(e.style.setProperty("--disclosure-panel-width",e.scrollWidth+"px"),e.style.setProperty("--disclosure-panel-height",e.scrollHeight+"px"),window.getComputedStyle(e).height,e.style.setProperty("--disclosure-panel-width","0px"),e.style.setProperty("--disclosure-panel-height","0px"),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>e.setAttribute("hidden","until-found")).catch(()=>{}))),g.current=t.isExpanded}},[d,n,t.isExpanded,h]),(0,l.useEffect)(()=>()=>{p.current&&cancelAnimationFrame(p.current)},[]),{buttonProps:{id:c,"aria-expanded":t.isExpanded,"aria-controls":u,onPress:e=>{d||"keyboard"===e.pointerType||t.toggle()},isDisabled:d,onPressStart(e){"keyboard"!==e.pointerType||d||t.toggle()}},panelProps:{id:u,role:"group","aria-labelledby":c,"aria-hidden":!t.isExpanded,hidden:h?!t.isExpanded:void 0}}}},21118:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>f,BZ:()=>w,V9:()=>j});var r=n(33164),a=n(44896),i=n(97393),s=n(47381),o=n(20857),l=n(3045),d=n(60985),c=n(22699),u=n(89575),h=n(30044),p=n(88621),m=n(95060),g=n(80431),x=n(77496),b=n(17283);let f=function(e){let{children:t,labels:n,LabelComponent:l=y,toLabelKey:d=v,PanelComponent:c,expanded:h,onExpandedChange:p,disabledKeys:m,variant:g="default",className:x="",expansionMode:b="single",labelTestIds:f=[],additionalPanelData:j=[{}],extraLabelProps:w={},extraPanelProps:N={},"data-testid":A="",...C}=e,{state:_,reactAriaAccordionProps:E,ref:P,disabledKeySet:S}=function(e){let{labels:t,toLabelKey:n,expansionMode:r,expanded:i,onExpandedChange:s,disabledKeys:o}=e,l=(0,a.useMemo)(()=>new Set(o),[o]),d=(0,a.useCallback)(e=>{if(!s)return;let r=t.filter(t=>e.has(n(t)));null==s||s(r)},[t,n,s]),c=(0,u.r)({allowsMultipleExpanded:"multiple"===r,expandedKeys:null==i?void 0:i.map(e=>n(e)),onExpandedChange:d});return{state:c,reactAriaAccordionProps:{role:"group"},ref:(0,a.useRef)(void 0),disabledKeySet:l}}({labels:n,toLabelKey:d,expansionMode:b,expanded:h,onExpandedChange:p,disabledKeys:m,...C}),{labelProps:F,fieldProps:T}=(0,s.M)({label:t});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{...F,className:"sr-only",children:t}),(0,r.jsx)("div",{...(0,o.v)(E,T),ref:P,className:(0,i.A)(x,"client-dashboard-card"===g&&"flex flex-col gap-3"),"data-testid":A,"data-core-accordion":!0,children:n.map((e,t)=>{let n=d(e);return(0,r.jsx)(k,{variant:g,state:_,LabelComponent:l,PanelComponent:c,extraLabelProps:w,extraPanelProps:N,itemKey:n,label:e,index:t,dataTestId:(null==f?void 0:f[t])||"accordion-".concat(t),additionalPanelData:(null==j?void 0:j[t])||{},disabledKeySet:S},n)})})]})};function y(e){let{label:t,variant:n}=e;return(0,r.jsx)("span",{className:(0,i.A)("client-dashboard-card"===n?"body-md":"body-lg"),children:t})}function v(e){return e}function j(e){let{label:t,variant:n}=e;return(0,r.jsx)("span",{className:(0,i.A)("client-dashboard-card"===n?"body-md":"body-lg"),children:t.translated})}function w(e){return e.key}function k(e){let{variant:t,itemKey:n,label:s,index:o,state:u,dataTestId:f,additionalPanelData:y,disabledKeySet:v,LabelComponent:j,PanelComponent:w,extraLabelProps:k,extraPanelProps:N}=e,A=(0,a.useRef)(void 0),C=(0,a.useRef)(void 0),_=u.expandedKeys.has(n)||!1,E=v.has(n),P=function(e,t){let n=(0,a.useCallback)(()=>
1{if(!t)return[{height:"".concat(e.current.clientHeight,"px")},{height:"0"}];let n=e.current.clientHeight,r=e.current.firstElementChild.clientHeight;return[{height:"".concat(n,"px")},{height:"".concat(r,"px")}]},[t,e]),{accessibilityPreferences:r}=(0,p.SF)();return(0,x.A)(e,n,{animate:{duration:200*!r.prefersReducedMotion,fill:"forwards",easing:"ease-in-out"},shouldCommitStyles:!0,onBeforeStart:()=>{e.current.style.overflow="hidden"},onEnd:()=>{t&&(e.current.style.overflow="visible")}})}(A,_),S=(0,h.E)({isExpanded:_,onExpandedChange(){E||u.toggleKey(n)}}),{buttonProps:F,panelProps:T}=(0,l.j)({isExpanded:_,isDisabled:E},S,A),{buttonProps:B}=(0,d.s)(F,C),{isFocusVisible:R,focusProps:H}=(0,c.o)();var O=P;let{screenSize:L}=(0,p.SF)();(0,a.useEffect)(()=>{O()},[O,L.borderBox.width]),(0,a.useEffect)(()=>(document.fonts.addEventListener("loadingdone",O),()=>{document.fonts.removeEventListener("loadingdone",O)}),[O]);let z="client-dashboard-card"===t?"i":m.A;return(0,r.jsxs)("div",{className:(0,i.A)(["default","copilot-sidebar"].includes(t)&&(0,i.A)("border-t border-gray-300 last:border-b","copilot-sidebar"===t?"bh:border-solid":"bh:border-none bh:mb-5","teencounseling:border-t-0 teencounseling:border-b-0 teencounseling:last:border-b-0","regain:border-t-0 regain:border-b-0 regain:last:border-b-0 regain:mb-4"),"client-dashboard-card"===t&&(0,i.A)("flex flex-col transition-[gap] duration-200",_?"gap-2":"gap-0")),children:[(0,r.jsxs)("button",{...B,...H,ref:C,disabled:E,"data-testid":s["data-testid"]||(0,b.A)(f),"data-core-accordion-label":!0,"data-global-reset":!1,className:(0,i.A)(["default","copilot-sidebar"].includes(t)&&"py-4 body-lg","relative flex items-start justify-between w-full gap-5 teencounseling:gap-0 regain:gap-0 text-left text-gray-900 outline-none group !border-none","bh:px-2.5 bh:py-2 bh:text-sm bh:text-site-gray bh:font-body bh:not-italic bh:leading-6 bh:items-center bh:md:text-base","regain:bg-[#d2eff9] regain:hover:bg-site-brandPrimary regain:hover:text-white regain:text-[18px] regain:text-gray-800 regain:md:hover:text-white","regain:md:text-lg regain:flex-row-reverse regain:justify-end regain:font-body regain:text-sm regain:leading-4 regain:pt-0 regain:items-center regain:p-0 regain:pr-2","teencounseling:hover:text-site-navHoverLink teencounseling:py-0 teencounseling:mb-5 teencounseling:text-sm teencounseling:leading-5 teencounseling:items-center","teencounseling:md:text-lg teencounseling:flex-row-reverse teencounseling:justify-end teencounseling:font-body",_?"teencounseling:text-site-navHoverLink teencounseling:font-bold regain:bg-site-brandPrimary regain:font-bold regain:text-white":"bh:bg-site-green-transparent teencounseling:text-gray-900 regain:font-normal","default"===t&&_?"bh:bg-site-lightblue":"bh:bg-site-green-transparent","copilot-sidebar"===t&&"bh:bg-site-gray-bg !justify-normal !gap-0"),children:["copilot-sidebar"!==t&&(0,r.jsx)(j,{...k,label:s,variant:t}),(0,r.jsx)("div",{"aria-hidden":"true",className:(0,i.A)("copilot-sidebar"===t?"mr-2":"mr-1",["default","copilot-sidebar"].includes(t)&&(0,i.A)("h-6 mt-1","teencounseling:w-6 teencounseling:mr-0 teencounseling:mt-0 teencounseling:md:mt-1","regain:mt-0 regain:text-white regain:bg-site-brandPrimary regain:w-10 regain:h-10 regain:mr-5 regain:mb-0 regain:flex regain:items-center regain:justify-center regain:pl-1",_&&"regain:pt-1")),children:(0,r.jsx)(z,{className:(0,i.A)("fa-regular fa-angle-down","transition duration-200","group-hover:text-primary-900","bh:text-[#699CBB]","regain:w-10 regain:h-10 regain:group-hover:text-white","copilot-sidebar"===t&&"bh:text-[16px]","client-dashboard-card"===t&&"text-base/7","default"===t&&"bh:text-2xl regain:text-2xl teencounseling:text-base",_?"text-gray-900 rotate-0 bh2:-rotate-180":"text-gray-700 -rotate-90 bh2:rotate-0")})}),"copilot-sidebar"===t&&(0,r.jsx)(j,{className:"text-base",...k,label:s,variant:t}),(0,r.jsx)(g.vN,{isFocusVisible:R,className:(0,i.A)("rounded-sm",g.Jk)})]}),(0,r.jsx)("div",{...T,ref:A,"aria-hidden":!_,style:{height:0,overflow:"hidden"},..._?{}:{inert:!0},children:(0,r.jsx)("div",{className:(0,i.A)(["default","copilot-sidebar"].includes(t)&&(0,i.A)("default"===t&&"pt-2 pb-6 bh:px-5 bh:py-2.5","text-gray-700 body-md","bh:text-site-gray bh:leading-6 bh:font-body bh:not-italic","regain:p-2 regain:mb-7")),children:(0,r.jsx)(w,{...N,label:s,index:o,isOpen:_,animateHeight:P,additionalPanelData:y})})})]})}},30044:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(69575),a=n(44896);function i(e){let[t,n]=(0,r.P)(e.isExpanded,e.defaultExpanded||!1,e.onExpandedChange),i=(0,a.useCallback)(()=>{n(!0)},[n]),s=(0,a.useCallback)(()=>{n(!1)},[n]),o=(0,a.useCallback)(()=>{n(!t)},[n,t]);
1return{isExpanded:t,setExpanded:n,expand:i,collapse:s,toggle:o}}},30741:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(33164),a=n(471),i=n.n(a),s=n(88621),o=n(33132),l=n(83864),d=n(37643);let c=JSON.parse('{"description":"${productName} bietet erschwingliche, bequeme psychologische Online-Beratung von qualifizierten, professionellen Berater:innen, wann immer du sie brauchst. Hol dir Hilfe, du hast es verdient, gl\xfccklich zu sein!","keywords":"Psychologische Online-Beratung, psychologische Beratung, Online-Berater:in, Online-Berater:innen, Beratung online, psychische Gesundheit"}');var u=n.t(c,2);let h=JSON.parse('{"description":"${productName} offers affordable, convenient online therapy when you need it from licensed, professional therapists. Get help, you deserve to be happy!","keywords":"online therapy, therapy, online therapist, online therapists, therapy online, mental health"}');var p=n.t(h,2);let m=JSON.parse('{"description":"${productName} propose une th\xe9rapie en ligne abordable et pratique lorsque vous en avez besoin, aupr\xe8s de th\xe9rapeutes professionnels qualifi\xe9.e.s. Obtenez de l\'aide, vous m\xe9ritez d\'\xeatre heureux!","keywords":"th\xe9rapie en ligne, th\xe9rapie, th\xe9rapeute en ligne, th\xe9rapeutes en ligne, th\xe9rapie en ligne, sant\xe9 mentale"}');var g=n.t(m,2);let x=JSON.parse('{"description":"${productName} biedt betaalbare, geschikte online therapie wanneer je het nodig hebt van gediplomeerde, professionele therapeuten. Verkrijg hulp, je verdient het om gelukkig te zijn!","keywords":"online therapie, therapie, online therapeut, online therapeuten, therapie online, geestelijke gezondheid"}');var b=n.t(x,2);let f=JSON.parse('{"description":"${productName} ofrece terapia en l\xednea asequible y \xfatil cuando la necesites de psic\xf3logos cualificados. \xa1Obt\xe9n ayuda, mereces ser feliz!","keywords":"terapia en l\xednea, terapia, terapeuta en l\xednea, terapeutas en l\xednea, terapia en l\xednea, salud mental"}'),y={de:u,en:p,fr:g,nl:b,es:n.t(f,2)};function v(e){let{title:t="",description:n="",keywords:a=""}=e,{conf:c}=(0,s.SF)(),u=(0,o.B)(y),h=null;return h=2===c.default_language_id?(0,r.jsx)("meta",{translate:"no",name:"description",content:""!==n&&n?n:"".concat(c.product_name," ofrece terapia private y asequible online cuando la necesitas, de terapeutas con licencia. Recibe ayuda, mereces ser feliz!")}):62===c.default_language_id?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{translate:"no",name:"description",content:"×§×× ××פ×× ×קצ××¢× ×× ×××ת, ×פר×××ת ×××××ר ×שת××"}),(0,r.jsx)("meta",{property:"og:image",content:(0,l.MZ)("https://".concat(c.cdn_host_assets,"/brand/betterhelp/betterhelp-fb.png"),c.assets_app_version)})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"description",content:""!==n&&n?n:(0,d.t)(u.description,{productName:c.product_name})}),(0,r.jsx)("meta",{name:"keywords",content:""!==a&&a?a:(0,d.t)(u.keywords,{productName:c.product_name})})]}),(0,r.jsxs)(i(),{children:[(0,r.jsx)("meta",{charSet:"utf-8"}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,r.jsx)("title",{children:t||c.product_name}),h,(0,r.jsx)("link",{rel:"shortcut icon",href:"//".concat(c.cdn_host_assets,"/brand/").concat(c.product_code_name,"/favicon-2024.ico"),type:"image/x-icon"}),(0,r.jsx)("link",{rel:"icon",href:"//".concat(c.cdn_host_assets,"/brand/").concat(c.product_code_name,"/favicon-2024.ico"),type:"image/x-icon"})]})}},41594:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/crisis_resources",function(){return n(42391)}])},42391:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>C,default:()=>_});var r=n(33164),a=n(471),i=n.n(a),s=n(17283);let o=e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"mb-5 md:mb-8 teencounseling:-mt-5 teencounseling:md:mt-1 bh2:mt-5 bh2:md:mt-11",children:(0,r.jsx)("h1",{"data-testid":(0,s.A)("crisis-resource-header"),className:"mx-0 text-center md:mx-6 text-[1.5rem] leading-[1.333] md:text-[2rem] md:leading-tight",children:t})})},l=e=>{let{children:t}=e;return(0,r.jsx)("p",{"data-testid":(0,s.A)("crisis-resources-paragraph-text"),className:"mx-0 mb-4 text-center last-of-type:mb-9 md:mx-6 md:mb-8 last-of-type:md:mb-8 body-md",children:t})},d=e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"-mx-8 md:mx-0 bg-white md:bg-transparent shadow-[0px_1px_5px_0px_rgba(37,38,37,0.15),0px_0px_12px_0px_rgba(37,38,37,0.05)] md:shadow-none mb-9 md:mb-0 divide-y md:divide-y-0 text-gray-700",children:t})},c=e=>{let{title:t,description:n=null,children:a=null}=e;return(0,r.jsxs)("div",{className:"mx-6 pb-5 pt-5 last-of-type:pb-6 first:pt-6 text-center md:!py-9 md:px-12 rounded-none md:rounded-[0.625rem] shadow-none md:shadow-[0px_1px_5px_0px_rgba(37,38,37,0.15),0px_0px_12px_0px_rgba(37,38,37,0.05)] flex flex-col items-center [&>*:not(:last-child)]:mb-5 [&>*:not(:last-child)]:md:mb-6 mb-0 md:mb-8 bg-white",children:[(0,r.jsx)("h2",{"data-testid":(0,s.A)("crisis-resource-card-header"),className:"heading-md !font-bold",children:t}),n,a]})};var u=n(88621),h=n(21118);function p(e){let{rejectionText:t,teenFunnel:n}=e,{conf:{product_code_name:a,product_name:i}}=(0,u.SF)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o,{children:"Thank y
1ou for taking the time to share openly and honestly"}),(0,r.jsx)(l,{children:"teencounseling"!==a||n?"We understand it takes a tremendous amount of courage to reach out and ask for help, and you've taken a brave first step by visiting ".concat(i,". Unfortunately, based on the answers given, we feel that online therapy with ").concat(i," is not the best option for you"):"We understand it takes a tremendous amount of courage to reach out and ask for help, and you've taken a brave first step by visiting ".concat(i,". Unfortunately, based on the answers given, we feel that online therapy with ").concat(i," is not the best option for your child")}),t.rejectionTextHeader&&(0,r.jsx)(l,{children:t.rejectionTextHeader}),(0,r.jsx)(d,{children:(0,r.jsx)(c,{title:"Recommended resources",description:t.rejectionTextParagraph&&(0,r.jsx)("div",{children:t.rejectionTextParagraph})})}),(0,r.jsx)(h.Ay,{labels:["When is online therapy not the right fit?"],PanelComponent:m,className:"mx-0 mb-8 md:mx-6",children:"When is online therapy not the right fit?"})]})}let m=()=>(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{children:"Online therapy is still new and is not the most effective form of therapy for everybody. Here are some reasons why online therapy may not be appropriate for your particular mental health needs:"}),(0,r.jsxs)("ul",{className:"pl-8 list-disc",children:[(0,r.jsx)("li",{children:"You have thoughts of hurting yourself or others with a plan or intent"}),(0,r.jsx)("li",{children:"You are in an urgent crisis or an emergency situation"}),(0,r.jsx)("li",{children:"You have been diagnosed with a severe mental illness, or if you have been advised to be in residential intensive treatment"}),(0,r.jsx)("li",{children:"You were required to undergo therapy either by court order or by any other authority"})]})]});var g=n(43554);function x(e){let{teenFunnel:t}=e,{conf:{product_code_name:n,product_name:a}}=(0,u.SF)(),i="teencounseling"===n&&!t;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o,{children:["If ",i?"your child":"you"," ",i?"is":"are"," in a crisis, it's important to get help right away"]}),(0,r.jsx)(d,{children:(0,r.jsx)(c,{title:"Recommended resources",description:(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"mb-4 md:mb-6",children:["If ",i?"your child":"you"," ",i?"is":"are"," in a crisis, or ",i?"your child":"you"," ",i?"needs":"need"," immediate help, please look at ",(0,r.jsx)(g.A,{href:"/gethelpnow",variant:"link",children:"these resources."})]}),(0,r.jsxs)("p",{children:["Alternatively, please consider traditional face-to-face therapy. ",(0,r.jsx)(g.A,{href:"https://www.opencounseling.com/search",variant:"link",children:"Click here "}),"to view available therapists in your area."]})]})})}),(0,r.jsxs)(l,{children:["Thank you for taking the time to share openly and honestly. We understand it takes a tremendous amount of courage to reach out and ask for help, and you've taken a brave first step by visiting ",a,"."]}),(0,r.jsxs)(l,{children:["Unfortunately, ",a," is not appropriate for people who are in a crisis situation. We hope you will consider using some of these resources to get the help you deserve."]})]})}var b=n(97393),f=n(19814),y=n(9974),v=n(90784);function j(e){let{fieldName:t,buttonText:n,pattern:a=null}=e,{conf:{product_code_name:i}}=(0,u.SF)(),{register:o,control:l,handleSubmit:d,formState:{errors:c}}=(0,f.mN)(),h=e=>{window.location.href=" https://www.opencounseling.com/search?zip=".concat(e.mailCode)};return"teencounseling"===i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("form",{className:"flex mx-6",onSubmit:d(h),children:[(0,r.jsx)("input",{type:"text",placeholder:t,inputMode:"numeric",className:(0,b.A)("form-input mr-2 md:mr-4",c.mailCode&&"border !border-site-red-600"),...o("mailCode",{pattern:a})}),(0,r.jsx)("button",{type:"submit",className:"btn btn-primary break-keep",children:n})]}),c.mailCode&&(0,r.jsx)("div",{className:"text-left -bottom-8 text-site-red-600",children:c.mailCode.message})]}):(0,r.jsxs)("form",{className:"flex mx-6",onSubmit:d(h),children:[(0,r.jsx)(f.xI,{name:"mailCode",control:l,defaultValue:"",render:e=>{let{field:{ref:n,...a}}=e;return(0,r.jsx)(v.A,{"data-testid":(0,s.A)("zip-code-input"),className:"mr-2 md:mr-4",errorMessage:c.mailCode&&c.mailCode.message,isInvalid:!!c.mailCode,...a,children:t})},rules:{required:"Please enter a valid ".concat(t.toLowerCase()),pattern:a}}),(0,r.jsx)(y.A,{"data-testid":(0,s.A)("submit-button"),size:"lg",className:"break-keep",type:"submit",children:n})]})}function w(e){let{cameFromEmail:t,crisisTextLineData:n,teenFunnel:a,mailCode:i,countryCode:s}=e,{conf:{product_code_name:h,product_name:p}}=(0,u.SF)(),m="teencounseling"===h&&!a,x="teencounseling"!==h;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o,{children:m?"If your child is in a crisis, it's important to get help right away":"If you are in a crisis, it's important to get help right away"}),(0,r.jsxs)(d,{children:[x&&(0,r.jsx)(c,{title:"GB"===s?"Free Crisis Counseling via ".concat(n.name):"Free Crisis Counseling ".concat(n.name),description:(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"mb-4 md:mb-6",children:m?(0,r.jsxs)(r.Fragment,{children:["If your child is in a crisis, or if your child needs immediate help, text ",(0,r.jsx)("b",{children:t?"BHELP":"BETTERHELP"})," to ",(0,r.jsx)(g.A,{className:"no-underline !text-inherit",href:"tel:".concat(n.number),variant:"link",children:n.number})," to be connected to a Crisis Counselor now. This is a free 24/7 service in ",n.country_name,"."]}):(0,r.jsxs)(r.Fragment,{children:["If you are in a crisis, or if you need immediate help, text ",(0,r.jsx)("b",{children:t?"BHELP":"BETTERHELP"})," to ",(0,r.jsx)(g.A,{className:"no-underline !text-inherit",href:"tel:".concat(n.number),variant:"link",children:n.number})," to be connected to a Crisis Counselor now. This is a free 24/7 service in ",n.country_name,"."]})}),(0,r.jsx)("p",{dangerouslySetInnerHTML:{__html:n.disclaimer}})]})}),(0,r.jsx)(c,{title:x?"Other resources":"Recommended resources",description:(0,r.jsx)("p",{children:x?"Or find a low cost or pro-bono therapist in y
1our area by entering your ".concat(i.mailCodeName.toLowerCase(),":"):"Find a low cost or pro-bono therapist in your area by entering your ".concat(i.mailCodeName.toLowerCase(),":")}),children:(0,r.jsx)(j,{fieldName:i.mailCodeName,buttonText:"Submit",pattern:{value:new RegExp(i.mailCodeRegex),message:"Please enter a valid ".concat(i.mailCodeName.toLowerCase())}})})]}),(0,r.jsxs)(l,{children:["Thank you for taking the time to share openly and honestly. We understand it takes a tremendous amount of courage to reach out and ask for help, and you've taken a brave first step by visiting ",p,"."]}),(0,r.jsxs)(l,{children:["Unfortunately, ",p," is not appropriate for people who are in a crisis situation. We hope you will consider using some of these resources to get the help you deserve."]})]})}function k(e){let{teenFunnel:t,mailCode:n}=e,{conf:{product_code_name:a,product_name:i}}=(0,u.SF)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o,{children:"teencounseling"!==a||t?"If you are in a crisis, it's important to get help right away":"If your child is in a crisis, it's important to get help right away"}),(0,r.jsxs)(d,{children:[(0,r.jsx)(c,{title:"Mental Health Crisis Hotline",description:(0,r.jsxs)("p",{"data-testid":(0,s.A)("crisis-hotline-paragraph-text"),children:["You can call or text ",(0,r.jsx)(g.A,{"data-testid":(0,s.A)("crisis-hotline-link"),href:"tel:988",variant:"link",className:"no-underline !text-inherit",children:(0,r.jsx)("b",{children:"988"})})," to reach trained counselors who can help with your mental health emergency."]})}),(0,r.jsx)(c,{title:"Other resources",description:(0,r.jsx)("p",{"data-testid":(0,s.A)("crisis-other-resources-paragraph-text"),children:"Or find a low cost or pro-bono therapist in your area by entering your zip code:"}),children:(0,r.jsx)(j,{fieldName:n.mailCodeName,buttonText:"Submit",pattern:{value:new RegExp(n.mailCodeRegex),message:"Please enter a valid ".concat(n.mailCodeName.toLowerCase())}})})]}),(0,r.jsxs)(l,{children:["Thank you for taking the time to share openly and honestly. We understand it takes a tremendous amount of courage to reach out and ask for help, and you've taken a brave first step by visiting ",i,"."]}),(0,r.jsxs)(l,{children:["Unfortunately, ",i," is not appropriate for people who are in a crisis situation. We hope you will consider using some of these resources to get the help you deserve."]})]})}var N=n(30741),A=n(79681),C=!0;function _(e){let{crisisResourcesView:t,crisisTextLineData:n=null,rejectionText:a=null,cameFromEmail:s,teenFunnel:o,mailCode:l={mailCodeName:"Zip Code",mailCodeRegex:RegExp("^\\d{5}(?:[-\\s]\\d{4})?$")}}=e,{conf:{product_name:d,fqdn:c}}=(0,u.SF)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i(),{children:(0,r.jsx)("link",{rel:"canonical",href:"https://".concat(c,"/crisis_resources/")})}),(0,r.jsx)(N.default,{title:"Crisis Resources | ".concat(d)}),(0,r.jsxs)("div",{className:"relative flex flex-col justify-between w-full min-h-full text-base text-gray-900 bh2:bg-bg teencounseling:bg-gray-50",children:[(0,r.jsx)("div",{className:"md:max-w-[524px] lg:max-w-[696px] mx-auto px-8",children:(()=>{switch(t){case"US":default:return(0,r.jsx)(k,{mailCode:l,teenFunnel:o});case"GB":case"CA":return(0,r.jsx)(w,{countryCode:t,cameFromEmail:s,crisisTextLineData:n,mailCode:l,teenFunnel:o});case"INT":return(0,r.jsx)(x,{teenFunnel:o});case"EAP":return(0,r.jsx)(p,{rejectionText:a,teenFunnel:o})}})()}),(0,r.jsx)("div",{className:"relative hidden bh2:block",children:(0,r.jsx)(A.A,{variant:"curve.beige"})})]})]})}_.displayName="CrisisResources",_.shortTitle=""},77496:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(44896),a=n(79241),i=n(28884);let s={animate:{},shouldCommitStyles:!0,onBeforeStart:()=>{},onStart:()=>{},onEnd:()=>{}};function o(e,t,n){let{animate:o,shouldCommitStyles:l=!1,onBeforeStart:d,onStart:c,onEnd:u}={...s,...n},[h,p]=(0,r.useState)(!1),m=(0,i.A)(()=>o),g=(0,i.A)(()=>l),x=(0,i.A)(()=>d),b=(0,i.A)(()=>c),f=(0,i.A)(()=>u),y=(0,r.useRef)(void 0);return(0,r.useLayoutEffect)(()=>{var t;return"function"!=typeof(null==(t=e.current)?void 0:t.animate)?()=>{}:(y.current=e.current.animate([{},{}],{duration:1}),y.current.pause(),()=>{y.current.cancel(),y.current=void 0})},[t,h,e]),(0,r.useEffect)(()=>{var n;let r;if(!e.current.animate)return()=>{};let i=new AbortController;null==(n=x.current)||n.call(x);let s=(0,a.A)(()=>{var n;null==(n=b.current)||n.call(b),(r=e.current.animate(t(),m.current)).addEventListener("finish",()=>{var t,n,a;if(null==(t=y.current)||t.finish(),null===e.current.offsetParent){null==(a=f.current)||a.call(f);return}g.current&&r.commitStyles(),null==(n=f.current)||n.call(f)},{signal:i.signal})});return()=>{var e;cancelAnimationFrame(s),null==r||null==(e=r.cancel)||e.call(r),i.abort()}},[t,h,e,m,g,x,b,f]),(0,r.useCallback)(()=>{p(e=>!e)},[])}},79241:(e,t,n)=>{"use strict";function r(e){return requestAnimationFrame(()=>{requestAnimationFrame(e)})}n.d(t,{A:()=>r})},89575:(e,t,n)=>{"use strict";n.d(t,{r:()=>i});var r=n(69575),a=n(44896);function i(e){let{allowsMultipleExpanded:t=!1,isDisabled:n=!1}=e,[i,s]=(0,r.P)((0,a.useMemo)(()=>e.expandedKeys?new Set(e.expandedKeys):void 0,[e.expandedKeys]),(0,a.useMemo)(()=>e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,[e.defaultExpandedKeys]),e.onExpandedChange);return(0,a.useEffect)(()=>
1{if(!t&&i.size>1){let e=i.values().next().value;null!=e&&s(new Set([e]))}}),{allowsMultipleExpanded:t,isDisabled:n,expandedKeys:i,setExpandedKeys:s,toggleKey(e){let n;t?(n=new Set(i)).has(e)?n.delete(e):n.add(e):n=new Set(i.has(e)?[]:[e]),s(n)}}}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=41594)),_N_E=e.O()}]);
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.