1import{u as x,r as u,B as h,E as f,o as p,c as d,a as t,t as o,n as v,l as i,h as y,k as g,G as b}from"./index-be1fe3aa.js";const _={class:"container mx-auto"},z={class:"mb-6"},q={class:"flex items-center mb-6"},k=t("a",{class:"shrink",href:"/psyexpert"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"})])],-1),S={class:"text-center grow pr-6 whitespace-nowrap"},T={class:"card w-full bg-secondary text-center p-6 border border-solid border-neutral-700"},A={class:"mb-3"},B={class:"text-xl"},$={class:"flex gap-10 justify-center mb-3 mt-10"},E={key:0,class:"mb-5"},M={class:"text-xl"},N={class:"flex gap-20 justify-center"},I={__name:"PsyExpertQuizPageSixView",setup(Q){const{t:w}=x(),l=u("true"),e=u(""),n=u(w("expertpsy.userTwo.quizModule.pageSix.questionOne")),c=s=>{if(e.value!=="")return;e.value=s;const r={question:n.value,correctAnswer:l.value,selectedAnswer:e.value};if(localStorage.getItem("psyExpertQuiz")===null){const a=[];a.push(r),localStorage.setItem("psyExpertQuiz",JSON.stringify(a))}else{const a=JSON.parse(localStorage.getItem("psyExpertQuiz"));a.push(r),localStorage.setItem("psyExpertQuiz",JSON.stringify(a))}};return h(()=>{const s=JSON.parse(localStorage.getItem("psyExpertQuiz"));if(s){const r=s.find(a=>a.question===n.value);r?e.value=r.selectedAnswer:e.value=""}else e.value=""}),(s,r)=>{const a=f("router-link");return p(),d("main",_,[t("section",z,[t("div",q,[k,t("h1",S,o(s.$t("expertpsy.userTwo.landingPage.quizTitle")),1)])]),t("div",T,[t("h2",A,o(s.$t("expertpsy.userTwo.quizModule.general.statementTitle")),1),t("p",B,o(n.value),1),t("div",$,[t("button",{class:v(["btn border-none normal-case",{"bg-green-500":e.value==="true"&&e.value===l.value,"bg-red-400":e.value==="true"&&e.value!==l.value,"bg-neutral-400":e.value==="false","text-white":e.value&&e.value!=="","hover:bg-neutral-800":!e.value,"bg-blue-500":!e.value||e.value===""}]),onClick:r[0]||(r[0]=m=>e.value?null:c("true"))},o(s.$t("expertpsy.userTwo.quizModule.general.trueButton")),3),t("button",{class:v(["btn border-none normal-case",{"bg-green-500":e.value==="false"&&e.value===l.value,"bg-red-400":e.value==="false"&&e.value!==l.value,"bg-neutral-400":e.value==="true","text-white":e.value&&e.value!=="","hover:bg-neutral-800":!e.value,"bg-blue-500":!e.value||e.value===""}]),onClick:r[1]||(r[1]=m=>e.value?null:c("false"))},o(s.$t("expertpsy.userTwo.quizModule.general.falseButton")),3)]),e.value?(p(),d("p",E,[i(o(s.$t("expertpsy.userTwo.quizModule.general.correctAnswer"))+" ",1),t("span",M,o(l.value),1)])):y("",!0),t("div",N,[g(a,{class:"btn rounded-full bg-neutral-700 text-white border-none normal-case grow md:grow-0 hover:bg-neutral-800",to:"/psyexpert/quiz/five"},{default:b(()=>[i(o(s.$t("expertpsy.userTwo.navigation.backButton")),1)]),_:1}),g(a,{class:"btn rounded-full bg-neutral-700 text-white border-none normal-case grow md:grow-0 hover:bg-neutral-800",to:"/psyexpert/quiz/seven"},{default:b(()=>[i(o(s.$t("expertpsy.userTwo.navigation.nextButton")),1)]),_:1})])])])}}};export{I as default};
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.