PageSourceSearch

https://path-client-hbwdj.ondigitalocean.app/assets/ExportView-DA8PdadC.js

js path-client-hbwdj.ondigitalocean.app collected 2026-10-03 14:54:33 UTC 3,660 bytes, 3 lines download raw bytes

1import{a as f,r,o as $,c as x,b as e,k as m,t as c,w as y,E as D,m as C,p as g}from"./index-B1nPZB43.js";const S={class:"mb:my-0 container mx-auto my-8 px-4"},k={class:"card bg-base-100 border-primary w-full border shadow-xl md:w-[650px]"},I={class:"card-body"},M={class:"card-title"},N=e("button",{class:"btn btn-circle btn-sm",onclick:"exportInfoModal.showModal()"},"?",-1),V={id:"exportInfoModal",class:"modal"},E={class:"modal-box"},U=e("form",{method:"dialog"},[e("button",{class:"btn btn-sm btn-circle btn-ghost absolute right-2 top-2"},"✕")],-1),q={class:"text-lg font-bold"},A={class:"py-4"},B={class:"","mr-4":""},H=e("div",{class:"modal",role:"dialog"},[e("div",{class:"modal-box text-center"},[e("h3",{class:"text-lg font-bold"},"Creating CSV file, please wait."),e("progress",{class:"progress progress-info w-56"})])],-1),j={__name:"ExportView",setup(z){const d=f();r("organization"),r(""),r(""),r(""),d.hasOrganization,r("");const a=r(!1),u=async()=>{if(d.getUserData&&d.getUserData.org_id)try{a.value=!0;let o=new Date().toISOString().substring(0,10),n=await C.get("user_test/export_data/test_organisation"),s="data:text/csv;charset=utf-8,",l="Test ID;Counselor ID;Country;Gender;Birthday;Insitution;Completed;Declared_1;Declared_2;Declared_3;",p=n.data[0].questions.map(t=>t.question_number).join(";");l=l+p+";"+"Spatial imagination raw score;Spatial imagination correct;Spatial imagination incorrect;Memory raw score;Memory correct;Numerical reasoning raw score;Numerical reasoning correct;Numerical reasoning incorrect;Numerical reasoning time left;Concentration raw score;Concentration correct;Concentration incorrect;Concentration all identified; Concentration time left;Divided attention raw score;Divided attention correct;Divided attention incorrect;Divided attention foot count"+`;
2`,s+=l,n.data.forEach(t=>{let w=t.questions.map(b=>b.question_answer).join(";"),_=`${t.test_id};${t.counsellor_id};${t.country};${t.gender};${t.date_of_birth};${t.institution};${t.done_date};${t.preferred_1};${t.preferred_2};${t.preferred_3};`,h=`${t.cognitive_data[0].score_raw};${t.cognitive_data[0].correct_answers};${t.cognitive_data[0].incorrect_answers};${t.cognitive_data[1].score_raw};${t.cognitive_data[1].correct_answers};${t.cognitive_data[2].score_raw};${t.cognitive_data[2].correct_answers};${t.cognitive_data[2].incorrect_answers};${t.cognitive_data[2].time_left};${t.cognitive_data[3].score_raw};${t.cognitive_data[3].correct_answers};${t.cognitive_data[3].incorrect_answers};${t.cognitive_data[3].all_identified};${t.cognitive_data[3].time_left};${t.cognitive_data[4].score_raw};${t.cognitive_data[4].correct_answers};${t.cognitive_data[4].incorrect_answers};${t.cognitive_data[4].foot_found_count};`;_=_+w+";"+h+`;
3`,s+=_});const v=encodeURI(s),i=document.createElement("a");i.setAttribute("href",v),i.setAttribute("download",`Path data export - ${o}.csv`),document.body.appendChild(i),i.click(),document.body.removeChild(i),a.value=!1}catch(o){console.log(o),a.value=!1,g.error("Something went wrong")}else a.value=!1,g.error("Failed to find organisation")};return(o,n)=>($(),x("main",S,[e("section",null,[e("div",k,[e("div",I,[e("h1",M,[m(c(o.$t("export.export_data"))+" ",1),N,e("dialog",V,[e("div",E,[U,e("h2",q,c(o.$t("export.how_to_export")),1),e("p",A,c(o.$t("export.export_description")),1)])])]),e("div",null,[e("p",null,c(o.$t("export.export_by_organization")),1)]),e("div",B,[e("button",{class:"btn btn-primary mr-4",onClick:u},c(o.$t("export.export_results")),1)])])]),y(e("input",{type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=s=>a.value=s),class:"modal-toggle"},null,512),[[D,a.value]]),H])]))}};export{j 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.