1import{d as $,O as N,aT as Q,z as o,c as a,a as n,h as s,b as _,x as V,m as t,e as z,t as p,w as P,f as q,v as F,aJ as L,F as y,i as O,p as j,j as D,_ as E}from"./CBb99Q15.js";import{u as G}from"./CKuPJeRW.js";const J=c=>(j("data-v-e79d6dd9"),c=c(),D(),c),U={class:"question__header-bottom"},A=["data-testid"],H={key:0,class:"question__step-label","data-testid":"step-label"},K={key:0,class:"question__progress-track","data-testid":"progress-track"},M={class:"question__container"},W={class:"question__body","data-testid":"question-body"},X={key:0,class:"question__error","data-testid":"question-error"},Y=J(()=>s("p",{class:"question__error-text"},[q(" ç¡å¹ãªURLã§ãã"),s("br"),q(" æåããããç´ãã¦ãã ããã ")],-1)),Z=[Y],tt={class:"question__title","data-testid":"question-text"},et={class:"question__options"},st=["data-testid","onClick"],ot={class:"question__option-label"},at={class:"question__back-wrap"},nt=$({__name:"questions",setup(c){const v=N(),d=Q(),{findQuestion:f,isResultId:g,getTotalSteps:S,getProgressPercent:w,getCurrentStep:C,saveResultToCookie:I}=G(),h=o(()=>C(r.value,b.value)),i=o(()=>S(r.value)),x=o(()=>w(h.value,r.value)),B=o(()=>h.value>1),l=o(()=>f(b.value)),r=o(()=>{const e=v.query.from;return typeof e=="string"&&e.length>0?e:null}),b=o(()=>{const e=v.query.current;return typeof e=="string"&&e.length>0?e:"q1"}),u=o(()=>!!(!l.value||r.value&&!f(r.value))),R=e=>{g(e)?(I(e),d.push(`/tire-shindan/result/${e}/`)):r.value?d.push({path:"/tire-shindan/questions/",query:{from:r.value,current:e}}):d.push({path:"/tire-shindan/questions/",query:{from:e,current:e}})},T=()=>{d.back()};return(e,rt)=>(n(),a("div",null,[s("div",U,[s("div",{class:V(["question__header-row",{"question__header-row--no-label":t(i)===null||t(u)}]),"data-testid":t(i)===null||t(u)?"question-header-row-no-label":"question-header-row"},[t(i)!==null&&!t(u)?(n(),a("span",H," 質å "+p(t(h))+"/"+p(t(i)),1)):_("",!0),z(F,{class:"question__cancel-btn",href:"/tire-shindan/","data-testid":"cancel-btn"},{default:P(()=>[q(" 診æãããã«æ»ã ")]),_:1})],10,A),t(i)!==null&&!t(u)?(n(),a("div",K,[s("div",{class:"question__progress-bar",style:L({width:`${t(x)}%`}),"data-testid":"progress-bar"},null,4)])):_("",!0)]),s("div",M,[s("div",W,[t(u)?(n(),a("div",X,Z)):t(l)?(n(),a(y,{key:1},[s("h2",tt,p(t(l).text),1),s("div",et,[(n(!0),a(y,null,O(t(l).options,(m,k)=>(n(),a("div",{key:k,class:"question__option-btn","data-testid":`option-btn-${k}`,onClick:it=>R(m.next)},[s("span",ot,p(m.label),1)],8,st))),128))]),s("div",at,[t(B)?(n(),a("div",{key:0,class:"question__back-btn","data-testid":"back-btn",onClick:T}," â åã®è³ªåã«æ»ã ")):_("",!0)])],64)):_("",!0)])])]))}}),dt=E(nt,[["__scopeId","data-v-e79d6dd9"]]);export{dt 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.