import{a as o,b as d}from"./QuestsInfo.js";import{o as _,c as i,a as e,t as n,_ as k}from"./index.js";const c={class:"quests-talks"},r={class:"quests-talks__background"},I={class:"talk-title"},p={class:"talk-text"};function u(s,t,a,l,m,x){return _(),i("div",c,[e("div",r,[e("div",I,n(this.talksNames[this.talkNameIndex]),1),e("div",p,n(this.talksList[this.talkIndex][this.talkMessageIndex]),1)])])}const h={name:"quests-talks",props:["openParams"],data(){return{talksList:o,talksNames:d,talkIndex:0,talkMessageIndex:0,talkNameIndex:0}},created(){this.openParams&&this.getTalkInfo(this.openParams)},methods:{getTalkInfo(s){let t=typeof s=="object"?s:JSON.parse(s);this.talkIndex=t[0],this.talkMessageIndex=t[1],this.talkNameIndex=t[2];let a=this.talkIndex+1,l=this.talkMessageIndex+1;playSound("quests/"+a+"-"+l+".ogg",!1,7,0,!0,()=>{sendClientEvent(gm.EVENT_EXECUTE_PUBLIC,"OnPlayerQuestEndSound")})}}},S=k(h,[["render",u],["__scopeId","data-v-a0407a89"]]);export{S as default};
