1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5310],{4153:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/surveys/[surveyType]",function(){return n(31703)}])},71434:function(e,t,n){"use strict";var r=n(85893),s=n(40645),o=n.n(s),i=n(87036),a=n(41420),l=n(45697),u=n.n(l),c=n(67294),d=n(94184),x=n.n(d),m=n(37455),y=n(62464),h=n(41664),v=n.n(h);let p=c.forwardRef(function(e,t){let n,s,l,u,{children:c,className:d="",disabled:h=!1,href:p=null,icon:g,iconOnRight:_=!1,isReversed:b=!1,size:j="",type:f="button",postfixIcon:N=!1,...T}=e,C=(0,y.Z)(),E=j;j===a.i.RESPONSIVE&&(E=C<(0,m.Zg)(i.Bs.MEDIUM)?a.i.SMALL:a.i.LARGE);let{className:w,styles:I}=(E===a.i.LARGE?(n=18,s=43,l=3,u=18):(n=16,s=28,l=2,u=16),{styles:(0,r.jsx)(o(),{id:"9224da3d2a179793",dynamic:[s,n,s,l,u],children:".tertiaryButton.__jsx-style-dynamic-selector{text-decoration:none;font-weight:normal;color:var(--btnTert-text);display:inline-block;height:".concat(s,"px;font-size:").concat(n,"px;line-height:").concat(s,"px;text-align:left;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.tertiaryButton.__jsx-style-dynamic-selector .underline.__jsx-style-dynamic-selector{padding-bottom:").concat(l,"px}.tertiaryButton.__jsx-style-dynamic-selector .icon.__jsx-style-dynamic-selector{font-size:").concat(u,'px;vertical-align:middle;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;padding-right:6px}.tertiaryButton.postfixIcon.__jsx-style-dynamic-selector .icon.__jsx-style-dynamic-selector{padding-right:0;padding-left:6px}.tertiaryButton.__jsx-style-dynamic-selector:hover{text-decoration:none;color:var(--btnTert-text-hover)}.tertiaryButton.__jsx-style-dynamic-selector:focus .underline.__jsx-style-dynamic-selector,.tertiaryButton.__jsx-style-dynamic-selector:hover .underline.__jsx-style-dynamic-selector{border-bottom:2px solid var(--btnTert-text-hover)}.tertiaryButton.withoutIcon.__jsx-style-dynamic-selector::before,.tertiaryButton.withoutIcon.__jsx-style-dynamic-selector::after{content:"";display:inline-block}.tertiaryButton--isReversed.__jsx-style-dynamic-selector{color:var(--btnTert-reversed-text)}.tertiaryButton--isReversed.__jsx-style-dynamic-selector:focus .underline.__jsx-style-dynamic-selector{border-bottom:2px solid var(--btnTert-reversed-text-hover)}.tertiaryButton--isReversed.__jsx-style-dynamic-selector:hover{color:var(--btnTert-reversed-text-hover)}.tertiaryButton--isReversed.__jsx-style-dynamic-selector:hover .underline.__jsx-style-dynamic-selector{border-bottom:2px solid var(--btnTert-reversed-text-hover)}.tertiaryButton.tertiaryButton--disabled.__jsx-style-dynamic-selector,.tertiaryButton.tertiaryButton--disabled.__jsx-style-dynamic-selector:hover{color:var(--btnTert-text-disabled)}.tertiaryButton.tertiaryButton--disabled.tertiaryButton--isReversed.__jsx-style-dynamic-selector,.tertiaryButton.tertiaryButton--disabled.tertiaryButton--isReversed.__jsx-style-dynamic-selector:hover{color:var(--btnTert-reversed-text-disabled)}.tertiaryButton.tertiaryButton--disabled.__jsx-style-dynamic-selector:hover .underline.__jsx-style-dynamic-selector{border-bottom:none}[data-whatinput="mouse"] .tertiaryButton.__jsx-style-dynamic-selector:focus:not(:hover) .underline.__jsx-style-dynamic-selector{border-bottom:none}.flexOrder.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex}.postfixIcon.__jsx-style-dynamic-selector .flexOrder.__jsx-style-dynamic-selector{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-moz-box-orient:horizontal;-moz-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.underline.__jsx-style-dynamic-selector{border-bottom:none!important}')}),className:o().dynamic([["9224da3d2a179793",[s,n,s,l,u]]])}),R={className:x()("tertiaryButton","button--isClear","hideOutlineForMouse","noPrint",w,d,{withoutIcon:!g,"tertiaryButton--isReversed":b,"tertiaryButton--disabled":h,postfixIcon:N}),tabIndex:0,...T},S=null;return(g&&(S=(0,r.jsx)("span",{className:"icon ".concat(w),children:g})),p&&!h)?(0,r.jsxs)(v(),{href:p,ref:t,...R,children:[(0,r.jsxs)("span",{className:"".concat(w," flexOrder"),children:[S,(0,r.jsx)("span",{className:"".concat(w," underline"),children:c})]}),I]}):(0,r.jsxs)("button",{...R,ref:t,type:f,disabled:h,children:[(0,r.jsxs)("span",{className:"".concat(w," flexOrder"),children:[!_&&S,(0,r.jsx)("span",{className:"".concat(w," underline"),children:c}),"\xa0\xa0",_&&S]}),I]})});p.propTypes={children:u().node.isRequired,className:u().string,"data-qa":u().string.isRequired,disabled:u().bool,href:u().string,icon:u().element,isReversed:u().bool,size:u().string,type:u().oneOf(["submit","reset","button",void 0])},t.Z=p},31703:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return U}});var r=n(85893),s=n(40645),o=n.n(s),i=n(11163),a=n(67294),l=n(50319),u=n(28420),c=n(82730),d=n(14e3),x=n(85970),m=n(5418),y=n(48783),h=n(31165),v=n(22878),p=n(41420),g=n(61922),_=JSON.parse('[{"id":1,"questions":[{"prompt":"During the past week or so, how often have you felt completely overwhelmed?","answers":[{"text":"Not at all","value":"NOT_AT_ALL"},{"text":"Sometimes","value":"SOMETIMES"},{"text":"On a Regular Basis","value":"ON_A_REGULAR_BASIS"}]}]},{"id":2,"questions":[{"prompt":"How often do you feel that you lack companionship?","answers":[{"text":"Hardly Ever","value":"HARDLY_EVER"},{"text":"Some of the Time","value":"SOME_OF_TIME"},{"text":"Often","value":"OFTEN"}]}]},{"id":3,"questions":[{"prompt":"How often do you feel left out?","answers":[{"text":"Hardly Ever","value":"HARDLY_EVER"},{"text":"Some of the Time","value":"SOME_OF_TIME"},{"text":"Often","value":"OFTEN"}]}]},{"id":4,"questions":[{"prompt":"How often do you feel isolated from others?","answers":[{"text":"Hardly Ever","value":"HARDLY_EVER"},{"text":"Some of the Time","value":"SOME_OF_TIME"},{"text":"Often","value":"OFTEN"}]}]}]'),b=n(60453),j=n(31445),f=()=>{var e;let t=(0,i.useRouter)(),{siteId:n,surveyId:s,surveyPhase:f}=t.query,{isOpen:N,onOpen:T,onClose:C}=(0,c.q)(),[E,w]=(0,a.useState)(0),[I,R]=(0,a.useState)([]),S=(0,b.Pe)(),[A,M]=(0,a.useState)(_.map(()=>Array.from({length:_[0].questions.length},()=>null))),[k,{loading:B}]=(0,l.D)(u.RR,{onCompleted:()=>{E<_.length&&w(E+1)}}),O=null===(e=A[E])||void 0===e?void 0:e.some(e=>null===e),L=e=>{S({event:b.kM.SURVEY_ACTION,surveyType:h.rv.UCLA,siteId:n,surveyPhase:f,questionNumber:e.length,action:h.z9.UCLA.ANSWER}),k({variables:{input:{id:s,action:h.z9.UCLA.ANSWER,siteId:n,surveyPhase:f,uclaQas:e}}})},q=(e,t)=>
1{let n=[...A];n[E][e]=t,M(n)},H=()=>{I.length<4&&S({event:b.kM.SURVEY_ACTION,surveyType:h.rv.UCLA,siteId:n,surveyPhase:f,questionNumber:I.length+1,action:h.z9.EXIT_CONFIRM}),t.push("/site/".concat(n))};return n?(0,r.jsxs)("div",{className:"jsx-".concat(h.VB.__hash)+" surveyPage",children:[E!==_.length&&(0,r.jsx)(h.J7,{onClick:()=>{S({event:b.kM.SURVEY_ACTION,surveyType:h.rv.UCLA,siteId:n,surveyPhase:f,questionNumber:I.length+1,action:h.z9.EXIT_INTENT}),T()}}),(0,r.jsx)("main",{className:"jsx-".concat(h.VB.__hash)+" "+"surveyContent ".concat(E===_.length?"thankYouUclaContent":""),children:E<_.length?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.Z,{width:185,variant:j.P.STACKED}),(0,r.jsxs)(d.x,{fontSize:"16px",textAlign:"center",color:"var(--gray-500)","data-qa":"survey-questions",children:["Question ",E+1," of ",_.length]}),_[E].questions.map((e,t)=>(0,r.jsxs)(x.NI,{className:"surveyForm",children:[(0,r.jsx)(m.l,{className:"question","data-qa":"survey-prompt",children:e.prompt}),0===E&&(0,r.jsx)(d.x,{fontSize:"16px",lineHeight:"20px",textAlign:"center",paddingBottom:"5px",color:"var(--Generic-Black)",margin:"20px auto","data-qa":"survey-instru
1ctions",children:"Please select the answer that best describes your current feelings."}),(0,r.jsx)(y.g,{direction:"row",spacing:4,sx:{marginTop:"40px"},children:e.answers.map((e,n)=>{var s,o;return(0,r.jsx)(v.Z,{className:(null===(s=A[E][t])||void 0===s?void 0:s.value)===e.value?"surveyButton selected":"surveyButton",size:p.i.LARGE,variant:(null===(o=A[E][t])||void 0===o?void 0:o.value)===e.value?v.c.PRIMARY:v.c.SECONDARY,onClick:()=>q(t,e),"data-qa":"survey-answer",children:e.text},n)})})]},t)),(0,r.jsx)(h.Rg,{onClick:()=>{if(E<_.length){let e=[...I,{q:_[E].questions[0].prompt,a:A[E][0].value}];R(e),L(e)}else w(E+1)},isContinueDisabled:O,loading:B,currentStep:E,surveyQuestionsLength:_.length-1})]}):E===_.length?(0,r.jsx)(h.jS,{thankYouText:"Your feedback is essential in helping us develop solutions that truly support you and those you care about.",onClick:H}):null}),(0,r.jsx)(h.dU,{isOpen:N,onClose:C,handleContinueSurvey:()=>{S({event:b.kM.SURVEY_ACTION,surveyType:h.rv.UCLA,siteId:n,surveyPhase:f,questionNumber:I.length+1,action:h.z9.EXIT_CONTINUE}),C()},handleExitSurvey:H,header:"Your feedback is valuable!"}),(0,r.jsx)(o(),{id:h.VB.__hash,children:h.VB})]}):(0,r.jsx)(g.ZP,{})},N=n(57747),T=n(93717),C=n(57169),E=n(68580),w=n(33090),I=n(35541),R=n(19778),S=n(49163),A=n(66205),M=n(54346),k=n(14253),B=n(25675),O=n.n(B),L=n(71434),q=n(8250),H=n(4162),z=()=>{var e,t,n,s,_,j,f,B,z,U,V,Y;let G=(0,i.useRouter)(),{hasFetchedMyMatchingProfile:P,refetchMyMatchingProfile:D}=(0,q.d)(),{siteId:F,surveyId:Z}=G.query,{matchingQuestionnaire:X,questionnaireLoading:W,fetchQuestionnaire:Q,matchingSurvey:$}=(0,q.d)(),{isOpen:J,onOpen:K,onClose:ee}=(0,c.q)(),[et,en]=(0,a.useState)(null),er=(0,b.Pe)(),[es,eo]=(0,a.useState)(1),[ei,ea]=(0,a.useState)(new Map),[el,eu]=(0,a.useState)(new Map),ec=(0,a.useRef)(null),[ed,ex]=(0,a.useState)(!1),em=(0,a.useRef)(!1),[ey,eh]=(0,a.useState)(new Map),ev=(0,a.useMemo)(()=>{if(!X)return 0;let e=X.totalCount-1;return["CAREGIVER_CURRENT","CAREGIVER_FORMER"].includes(ei.get("CURRENT_SITUATION"))?e-=X.patientCount:e-=X.caregiverCount,e},[ei,X]);(0,a.useEffect)(()=>{if(X){var e,t;en(X.startQuestion),eu(new Map(null!==(t=null===(e=X.questions)||void 0===e?void 0:e.map(e=>[e.id,e]))&&void 0!==t?t:[]))}else Q()},[X,W,Q]),(0,a.useEffect)(()=>{ed&&(ej(),ex(!1))},[ed,ei]),(0,a.useEffect)(()=>{var e;if(null==$?void 0:null===(e=$.answers)||void 0===e?void 0:e.length){let e=new Map($.answers.map(e=>[e.question_key,(0,h.P4)(e.answer)]));ea(e),em.current||(eh(e),em.current=!0)}},[$]);let[ep,{loading:eg}]=(0,l.D)(u.bN,{onCompleted:()=>{en(eb(et)),eo(es+1),ec.current&&ec.current.scrollTo({top:0})}}),e_=()=>Array.from(ei,e=>{let[t,n]=e;return{question_key:t,answer:n}}),eb=e=>{var t,n,r=el.get(e);let s=ei.get(e);var o=null==r?void 0:null===(n=r.options)||void 0===n?void 0:null===(t=n.find(e=>e.value==s))||void 0===t?void 0:t.next;return null!=o?o:null==r?void 0:r.next},ej=()=>{var e=el.get(et);null!=e.type?e.end?eE():ef(e_()):en(eb(et))},ef=e=>{er({event:b.kM.SURVEY_ACTION,surveyType:h.rv.MATCHING,siteId:F,questionNumber:e.length,action:h.z9.MATCHING.ANSWER}),ep({variables:{input:{id:Z,action:h.z9.MATCHING.ANSWER,answers:e}}})},eN=e=>{if(new Set(["CURRENT_SITUATION","CAREGIVER_HEALTH_CONDITION","PATIENT_HEALTH_CONDITION"]).has(et)){let t=e_(),n=new Map(ei);t.slice(es).forEach(e=>{let{question_key:t}=e;return n.delete(t)}),n.set(et,e),ea(n)}else{let t=new Map(ei);t.set(et,e),ea(t)}},eT=e=>{eN(e.value)},eC=(e,t)=>{let n=ei.get(et)||[];if(n.some(e=>e===t.value)){eN(n.filter(e=>e!==t.value));return}{let r=n.length;if(e.max_selections&&r>=e.max_selections)return;eN([...n,t.value])}},eE=()=>{er({event:b.kM.SURVEY_ACTION,surveyType:h.rv.MATCHING,siteId:F,questionNumber:es,action:h.z9.MATCHING.COMPLETE}),ep({variables:{input:{id:Z,action:h.z9.MATCHING.COMPLETE,answers:e_()}}}),P&&D()},ew=e=>{let{step:t,stepColor:n,title:s,text:o}=e;return(0,r.jsxs)(N.xu,{position:"relative",flex:"1",w:"335px",pt:"28px",children:[(0,r.jsx)(T.k,{position:"absolute",top:1.5,left:"50%",transform:"translateX(-50%)",w:"42px",h:"42px",borderRadius:"full",bg:n,border:"1px solid var(--gray-0)",align:"center",justify:"center",children:(0,r.jsx)(d.x,{color:"var(--gray-0)",className:"subHeader",children:t})}),(0,r.jsxs)(N.xu,{bg:"var(--gray-50)",borderRadius:"var(--radius-gentle)",boxShadow:"0 1px 5px rgba(0,0,0,0.05)",p:4,children:[(0,r.jsx)(d.x,{fontWeight:"500",mb:1,children:s}),(0,r.jsx)(d.x,{mt:0,children:o})]})]})};return(0,r.jsxs)(y.g,{className:"surveyPage",gap:0,style:{padding:"0"},children:[Z&&X&&$&&!W?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(T.k,{justifyContent:"INTRO"!==et?"space-between":"end",alignItems:"center",w:"100%",px:2,height:"40px",children:["INTRO"!==et&&(0,r.jsx)(L.Z,{className:"matchingSurveyBackButton",onClick:()=>
1{if(es>1){var e,t=es-1;eo(t),en(null===(e=e_()[t-1])||void 0===e?void 0:e.question_key)}else en(X.startQuestion)},size:p.i.SMALL,icon:(0,r.jsx)("i",{className:"jsx-".concat(h.VB.__hash)+" fa-arrow-left fa-light headerIcons"}),"data-qa":"matching-survey-back-button","data-testid":"matching-survey-back-button",children:"Back"}),null!==et&&(0,r.jsx)(h.J7,{onClick:()=>{er({event:b.kM.SURVEY_ACTION,surveyType:h.rv.MATCHING,siteId:F,questionNumber:es,action:h.z9.EXIT_INTENT}),K()},includeArrow:!1,className:""})]}),(0,r.jsx)(N.xu,{className:"".concat(null===et||null===el.get(et)?"thankYouMatchingContent":""),textAlign:"center",backgroundColor:"var(--gray-0)",paddingY:"4%",paddingX:"4%",flex:{base:1,lg:0},borderTop:{base:"1px solid var(--gray-200)",lg:"none"},borderRadius:{base:0,lg:"var(--radius-gentle)"},width:"100%",children:null!==et&&null!==el.get(et)?(0,r.jsxs)(y.g,{className:"surveyContentInner",ref:ec,gap:5,children:[(0,r.jsx)(O(),{src:"/img/caringbridge-connect.svg",width:170,height:83,alt:"CaringBridge Connect Logo"}),"INTRO"===et&&(0,r.jsx)(O(),{src:"/img/chatting-phones.svg",width:202,height:158,alt:"Phones with messages",style:{marginTop:"24px",marginBottom:"24px"}}),(0,r.jsxs)(x.NI,{children:[(null===(e=el.get(et))||void 0===e?void 0:e.type)!=null&&(0,r.jsx)(d.x,{textAlign:"center",className:"bodyTextExtraSmall",color:"var(--gray-500)",marginBottom:0,children:"Question ".concat(es," of ").concat(ev)}),"INTRO"===et&&(0,r.jsx)(d.x,{color:"var(--gray-500)",className:"bodyTextExtraSmall",children:"Estimated Completion Time: 10 minutes"}),(0,r.jsx)(m.l,{className:"question",mb:4,children:null===(t=el.get(et))||void 0===t?void 0:t.prompt}),(null===(n=el.get(et))||void 0===n?void 0:n.type)===h.j$.MULTI_SELECT&&(null!==(Y=null===(s=el.get(et))||void 0===s?void 0:s.max_selections)&&void 0!==Y?Y:0)>0&&(0,r.jsxs)(d.x,{className:"bodyTextMedium",m:0,children:["Select up to"," ",null===(_=el.get(et))||void 0===_?void 0:_.max_selections]}),(null===(j=el.get(et))||void 0===j?void 0:j.subprompt)&&(0,r.jsx)(d.x,{className:"bodyTextMedium",m:0,whiteSpace:"pre-line",children:el.get(et).subprompt}),(null===(f=el.get(et))||void 0===f?void 0:f.type)===h.j$.SINGLE_SELECT&&(0,r.jsx)(h.UC,{curStep:el.get(et),selectedCondition:e=>e===ei.get(et),onClick:e=>eT(e)}),(null===(B=el.get(et))||void 0===B?void 0:B.type)===h.j$.MULTI_SELECT&&(0,r.jsx)(h.UC,{curStep:el.get(et),selectedCondition:e=>{var t;return null===(t=ei.get(et))||void 0===t?void 0:t.some(t=>t===e)},onClick:e=>eC(el.get(et),e),multiSelect:!0}),(null===(z=el.get(et))||void 0===z?void 0:z.type)===h.j$.TEXT&&(0,r.jsx)(C.g,{value:ei.get(et)||"",onChange:e=>eN(e.target.value.slice(0,el.get(et).max_length)),placeholder:"Type your answer here",marginTop:"20px",className:"matchingInput"}),(null===(U=el.get(et))||void 0===U?void 0:U.type)===h.j$.NUMBER_RANGE&&(0,r.jsxs)(E.Y2,{min:el.get(et).range[0],max:el.get(et).range[1],value:ei.get(et)||"",onChange:e=>eN(e),margin:"40px auto auto",className:"matchingInput",children:[(0,r.jsx)(E.zu,{}),(0,r.jsxs)(E.Fi,{children:[(0,r.jsx)(E.WQ,{}),(0,r.jsx)(E.Y_,{})]})]}),(null===(V=el.get(et))||void 0===V?void 0:V.type)===h.j$.ZIPCODE&&(0,r.jsx)(w.I,{type:"text",inputMode:"numeric",maxLength:5,value:ei.get(et)||"",onChange:e=>{eN(e.target.value.replace(/\D/g,""))},placeholder:"12345",display:"block",margin:"40px auto auto",className:"matchingInput"}),(0,r.jsx)(h.Rg,{onClick:ej,isContinueDisabled:(()=>{let e=el.get(et);if(e.end)return!1;switch(e.type){case h.j$.SINGLE_SELECT:return!ei.get(et);case h.j$.MULTI_SELECT:{var t;let n=(null===(t=ei.get(et))||void 0===t?void 0:t.length)||[],r=e.min_selections?e.min_selections:1;if(!n||n<r||e.max_selections&&n>e.max_selections)return!0;return!1}case h.j$.NUMBER_RANGE:{let t=parseInt(ei.get(et));if(t&&t>=e.range[0]&&t<=e.range[1])return!1;return!0}case h.j$.ZIPCODE:{let e=ei.get(et);if((null==e?void 0:e.length)===5)return!1;return!0}case h.j$.TEXT:{let e=ei.get(et);if((null==e?void 0:e.length)>0)return!1;return!0}default:if("INTRO"===et)return!1;return!0}})(),loading:eg,currentStep:es,surveyQuestionsLength:ev}),"INTRO"===et&&(0,r.jsx)(d.x,{color:"var(--gray-500)",className:"bodyTextExtraSmall",children:"You can change your answers anytime."})]},et),el.get(et).optional&&(0,r.jsx)("button",{onClick:()=>{eN(null),ex(!0)},className:"jsx-".concat(h.VB.__hash)+" button--asLink button--isClear displayBlock preferNotToAnswerButton",children:"I prefer not to answer this question"})]}):null===et||null===el.get(et)?(0,r.jsxs)(y.g,{justifyContent:"center",children:[(0,r.jsx)(d.x,{className:"question",margin:0,children:"You Have Taken The First Step"}),(0,r.jsx)(d.x,{className:"bodyTextSmall",width:"80%",children:"You now have access to your Community Hub, a place to connect one to one with others who truly understand your journey. You can visit your Community Hub anytime from your CaringBridge homepage or profile menu."}),(0,r.jsx)(d.x,{className:"question",children:"What to Expect"}
1),(0,r.jsxs)(T.k,{flexDir:{base:"column",lg:"row"},gap:2,pb:4,children:[(0,r.jsx)(ew,{step:1,stepColor:"var(--berry-bridge-500)",title:"We're Finding Your Connections",text:"Thanks for completing your responses. Matches can appear quickly, though it may take up to 1â2 weeks as more people join.",className:"jsx-".concat(h.VB.__hash)}),(0,r.jsx)(ew,{step:2,stepColor:"var(--brave-blue-500)",title:"You'll Be Notified",text:"We'll email and notify you when suggested connections are ready to review in your Community Hub.",className:"jsx-".concat(h.VB.__hash)}),(0,r.jsx)(ew,{step:3,stepColor:"var(--navy)",title:"Visit Your Community Hub",text:"Access your Hub from the CaringBridge homepage or your profile menu while you wait for new connections.",className:"jsx-".concat(h.VB.__hash)})]}),(0,r.jsx)(v.Z,{className:"surveyButton",variant:v.c.PRIMARY,size:p.i.MEDIUM,onClick:()=>G.push(H.Z6.CONNECT_HOME),"data-qa":"survey-exit-survey",style:{marginTop:"20px"},children:"Visit My Community Hub"}),(0,r.jsxs)(d.x,{children:["Questions? Visit our"," ",(0,r.jsx)("a",{href:H.yt.GET_HELP,className:"jsx-".concat(h.VB.__hash),children:"Help Center"})]})]}):null}),(0,r.jsxs)(I.u_,{isOpen:J,onClose:ee,isCentered:!0,children:[(0,r.jsx)(R.Z,{}),(0,r.jsxs)(S.h,{maxW:"613px",w:"90%",gap:5,children:[(0,r.jsx)(A.o,{"data-qa":"closeModal",children:(0,r.jsx)("i",{className:"jsx-".concat(h.VB.__hash)+" fa-thin fa-times"})}),(0,r.jsx)(O(),{src:"/img/laptop-with-people.svg",width:296,height:198,alt:"Laptop showing two people","data-qa":"exit-matching-survey-image",style:{marginTop:"48px",maxWidth:"100%",height:"auto"}}),(0,r.jsx)(d.x,{className:"question",margin:0,children:"You're Almost There"}),(0,r.jsx)(M.f,{className:"bodyTextSmall",children:"Answering these questions helps us connect you with someone who truly understands. Complete them to start building your support network."}),(0,r.jsxs)(k.m,{p:0,flexDirection:{base:"column",sm:"row"},gap:2,children:[(0,r.jsx)(v.Z,{className:"surveyButton",size:p.i.SMALL,onClick:()=>{er({event:b.kM.SURVEY_ACTION,surveyType:h.rv.MATCHING,siteId:F,questionNumber:es,action:h.z9.EXIT_CONTINUE}),ee()},"data-qa":"exit-modal-continue-survey",children:"Continue Questions"}),(0,r.jsx)(L.Z,{onClick:()=>{er({event:b.kM.SURVEY_ACTION,surveyType:h.rv.MATCHING,siteId:F,questionNumber:es,action:h.z9.MATCHING.EXIT});let e=$.completedAt?Array.from(ey,e=>{let[t,n]=e;return{question_key:t,answer:n}}):e_();ep({variables:{input:{id:Z,action:h.z9.MATCHING.EXIT,answers:e}}}),G.back()},alt:"Come back later",size:p.i.SMALL,"data-testid":"exit-survey-modal","data-qa":"exit-survey-modal",style:{color:"var(--brave-blue-600)"},children:(0,r.jsx)(d.x,{margin:0,textDecoration:"underline",className:"bodyTextMedium",children:"Come back later"})})]})]})]})]}):(0,r.jsx)(g.ZP,{}),(0,r.jsx)(o(),{id:h.VB.__hash,children:h.VB})]})};function U(){let{surveyType:e}=(0,i.useRouter)().query;return e==h.rv.MATCHING.toLowerCase()?(0,r.jsx)(z,{}):e==h.rv.UCLA.toLowerCase()?(0,r.jsx)(f,{}):null}},62464:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(67294);function s(){let[e,t]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let e=()=>{requestAnimationFrame(()=>t(window.innerWidth))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}},37455:function(e,t,n){"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?"number"==typeof e&&null!==e&&isFinite(e):!(String(e).search(/[^0-9e.-]+/)>-1)&&!isNaN(parseFloat(e))}function s(e){let t=String(e).match(/[\d.]+/);return Array.isArray(t)?Number(t[0]):NaN}function o(e){return"number"!=typeof e?"NaN":e>999999999?"1B+":e>999999?(Math.floor(e/1e5)/10).toString()+"M":e>999?(Math.floor(e/100)/10).toString()+"K":e<1e3?e.toString():void 0}n.d(t,{Zg:function(){return s},eQ:function(){return o},kE:function(){return r}})}},function(e){e.O(0,[576,1445,1165,2888,9774,179],function(){return e(e.s=4153)}),_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.