1import{_ as w}from"./DiM2u0_B.js";import{q as h,v as x,f as q,x as C,z as m,c as d,m as T,g as p,a as e,b as a,w as l,y as k,o as c,d as f,j as A}from"./CYcDCs_x.js";import{u as _}from"./B8iSwtP1.js";import"./Arnm_6rH.js";const B={class:"max-w-5xl mx-auto pb-24"},N={key:0},V={class:"mt-4 px-6"},H={__name:"index",props:{questions:{type:Object,required:!0},endpointConfig:{type:Object,required:!0}},async setup(j){let t,i;const o=h(),n=x(!1),r=([t,i]=q(()=>_("assessments/detail").read(o.params.id)),t=await t,i(),t);console.log("Assessment:",r.value),C(()=>{r.value?.termsAccepted&&m(`/assessments/${o.params.id}/1`)});const v=async u=>{try{n.value=!0,await _(`assessments/start/${o.params.id}`).create({}),await m(`/assessments/${o.params.id}/1`)}catch(s){console.error("Error saving terms acceptance:",s)}finally{n.value=!1}};return(u,s)=>{const g=w,y=A,b=k("FormKit");return c(),d("div",B,[p(r).termsAccepted?T("",!0):(c(),d("main",N,[s[2]||(s[2]=e("div",{class:"text-lg font-bold mb-4"},null,-1)),a(g,null,{header:l(()=>s[0]||(s[0]=[e("div",{class:"text-2xl font-bold"}," Before you get started, please review the following: ",-1)])),default:l(()=>[s[1]||(s[1]=e("div",{class:"text-sm prose-md max-h-[600px] overflow-y-scroll bg-white p-6 rounded-lg"},[e("p",null,[e("strong",null,"Welcome to your Benefits and Housing Review!"),e("br"),f("This review will help us understand your needs and preferences better. ")]),e("br"),e("p",null,[e("strong",null,"Tips for completing this review:")]),e("br"),e("ul",{class:"list-disc pl-6 mb-4"},[e("li",null,"Take your time and answer each question honestly"),e("li",null,"There are no right or wrong answers"),e("li",null,"You can save your progress and return later if needed"),e("li",null," Your responses will help us provide more personalized recommendations "),e("li",null,"All information you provide is kept confidential")]),e("br"),e("p",null,[e("strong",null,"What to expect:"),f(" The review consists of multiple sections covering different aspects of your housing needs and preferences. Most questions are multiple-choice, but some may ask for additional details. ")]),e("br"),e("p",null," If you have any questions during the review, please don't hesitate to contact our support team. ")],-1))]),_:1,__:[1]}),e("section",V,[a(b,{type:"form",onSubmit:v,value:u.form,actions:!1},{default:l(({form:S})=>[a(y,{type:"submit",label:"Start Assessment",loading:p(n)},null,8,["loading"])]),_:1},8,["value"])])]))])}}};export{H as default}; 2//# sourceMappingURL=ChwxAbyQ.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.