1import{H as b,k as y,w as k,l as S,o as a,e as n,f as e,t as l,q as B,r as N,_ as Q,M as A,N as C,B as u,d as E,G as d}from"./CiTww14s.js";import{u as P,a as R}from"./D21owdHY.js";const $=b("placementResult",{state:()=>({placementQuestions:[]}),actions:{async getPlacementQuestions(p){console.log("aaaa>>>");try{console.log("xxx>>>");const o=await $fetch("https://backend.deutschtests.com/api/user-quizes-test",{headers:{Authorization:`Bearer ${p}`}});console.log("bbbb>>>"),this.placementQuestions=o.data.quizes_answers,console.log(this.placementQuestions),console.log("ssssss>>>")}catch(o){console.log(o)}}}}),M={key:0,class:"row home-main-section p-5 container-fluid"},L={class:"col-lg text-center"},T={class:"col-lg text-center"},V={class:"col-lg text-center"},D={key:1,class:"row home-main-section p-5 container-fluid"},F={class:"col-lg text-center"},G={class:"questions m-4",style:{direction:"ltr","text-align":"left"}},H={class:"row"},j={class:"row ml-3"},I={class:"row ml-3"},J={class:"row ml-3"},K={class:"row ml-3"},W={__name:"placement-result",async setup(p){let o,h;const c=y(),m=$(),{metaByType:q}=([o,h]=k(()=>R()),o=await o,h(),o);P({title:"Einstufungstest â Ergebnis"},q("placement-result"));const v=d(null),w=d(null),f=d(null),g=d(null);function r(t,i,_){return t===_?"quize-succes":t===i?"quize-rong":""}async function x(){try{const t=await $fetch("https://backend.deutschtests.com/api/quizes-result",{headers:{Authorization:`Bearer ${c.token}`}});v.value=t.data,t.data&&(w.value=t.data.levelName,f.value=t.data.type,g.value=t.data.correct)}catch(t){console.log(t)}}return S(async()=>{await c.restoreSession(),c.isAuthenticated&&(await x(),await m.getPlacementQuestions(c.token))}),(t,i)=>{const _=Q;return a(),n("div",null,[v.value?(a(),n("section",M,[e("div",L,[e("p",null,"level: "+l(w.value),1)]),e("div",T,[e("p",null,"type: "+l(f.value),1)]),e("div",V,[e("p",null,"correct answer: "+l(g.value),1)])])):(a(),n("section",D,[e("div",F,[B(_,{to:"/placement-questions",class:"a-link"},{default:N(()=>[...i[0]||(i[0]=[e("div",{class:"level w-50 text-center text-light mt-1 pt-2 pb-2"}," Start Test ",-1)])]),_:1})])])),e("section",G,[(a(!0),n(A,null,C(E(m).placementQuestions,(s,z)=>(a(),n("div",{key:s.id,class:"mcq p-2"},[e("div",H,[e("h6",null,l(z+1)+" - "+l(s.quizes.title),1)]),e("div",j,[e("div",{class:u(["col-md-4 multi-item border p-2 pl-3 pr-3 mr-5 mb-3",r(s.quizes.first_choice,s.answer,s.quizes.expected_answer)])},[e("label",null,l(s.quizes.first_choice),1)],2)]),e("div",I,[e("div",{class:u(["col-md-4 multi-item border p-2 pl-3 pr-3 mr-5 mb-3",r(s.quizes.second_choice,s.answer,s.quizes.expected_answer)])},[e("label",null,l(s.quizes.second_choice),1)],2)]),e("div",J,[e("div",{class:u(["col-md-4 multi-item border p-2 pl-3 pr-3 mr-5 mb-3",r(s.quizes.third_choice,s.answer,s.quizes.expected_answer)])},[e("label",null,l(s.quizes.third_choice),1)],2)]),e("div",K,[e("div",{class:u(["col-md-4 multi-item border p-2 pl-3 pr-3 mr-5 mb-3",r(s.quizes.fourth_choice,s.answer,s.quizes.expected_answer)])},[e("label",null,l(s.quizes.fourth_choice),1)],2)])]))),128))])])}}};export{W 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.