import{_ as a,a as i,b as c}from"./icon_pdd_preview.js";import{o as d,c as _,a as e,t as h,p as l,g as p,_ as T}from"./index.js";const r=t=>(l("data-v-9311c549"),t=t(),p(),t),m={class:"driving-exam-theory"},x={class:"background"},v={class:"background-inside-header"},y=r(()=>e("img",{class:"icon-pdd",src:a},null,-1)),u=r(()=>e("div",{class:"icon-pdd-text"},"Теория ПДД",-1)),E={class:"background-content"},I={class:"theory-title"},g=["innerHTML"];function f(t,s,C,k,o,n){return d(),_("div",m,[e("div",x,[e("div",v,[e("div",{class:"drive-exam-close",onClick:s[0]||(s[0]=P=>n.sendDriveExamTheoryClose())},"X"),y,u]),e("div",E,[e("div",I,h(o.theoryTitles[o.currentTheoryIndex].text),1),e("div",{class:"theory-text",innerHTML:o.theoryText[o.currentTheoryIndex].text},null,8,g)])])])}const D={name:"driving-exam-theory",props:["openParams"],data(){return{theoryTitles:i,theoryText:c,currentTheoryIndex:1}},created(){this.$data.noAdaptation=!0,this.openParams&&this.updateDriveExamTheoryInfo(this.openParams[0])},methods:{sendDriveExamTheoryClose(){sendClientEvent(gm.EVENT_EXECUTE_PUBLIC,"Autoschool_OnPlayerExamTheoryClose")},updateDriveExamTheoryInfo(t){this.currentTheoryIndex=t}}},A=T(D,[["render",f],["__scopeId","data-v-9311c549"]]);export{A as default};
