import{C as h}from"./Button.js";import{B as C}from"./ButtonContainer.js";import{_ as c,o as n,c as i,a as o,r as s,s as f,k as E,f as r,b as a,t as w,h as x,w as v,n as B}from"./index.js";import{_ as P}from"./circle.js";import"./telegram-authenticator.js";import"./close2.js";import"./donate.js";import"./money.js";/* empty css                                                               */const g={},S={width:"12",height:"28",viewBox:"0 0 12 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b=o("path",{d:"M12.0009 0H0.000976562L3.42952 17.1427H8.57234L12.0009 0Z",fill:"#F8F6ED"},null,-1),k=o("path",{d:"M9.55045 24.1278C9.55045 26.0213 8.01544 27.5563 6.12191 27.5563C4.22837 27.5563 2.69336 26.0213 2.69336 24.1278C2.69336 22.2342 4.22837 20.6992 6.12191 20.6992C8.01544 20.6992 9.55045 22.2342 9.55045 24.1278Z",fill:"#F8F6ED"},null,-1),y=[b,k];function D(l,_){return n(),i("svg",S,y)}const M=c(g,[["render",D]]),I={class:"tutorial__container"},T={key:0,class:"tutorial__circle",src:P},A={class:"tutorial__content"},F={class:"tutorial__content-text"};function N(l,_,V,H,t,e){const u=s("IconExclamationPoint"),d=s("ControlsButton"),m=s("ControlsButtonContainer"),p=f("touch");return E((n(),i("div",{class:B(["tutorial iface-container",{"tutorial_full-screen":!t.isShowCircle}])},[o("div",I,[t.isShowCircle?(n(),i("img",T)):r("",!0),o("div",A,[a(u,{class:"tutorial__content-warning"}),o("div",F,w(t.text),1),e.isMobile?r("",!0):(n(),x(m,{key:0,class:"tutorial__content-controls",text:t.button},{default:v(()=>[a(d,{text:"Space",keyCode:t.KEY_CODE_SPACE,onPressed:e.close},null,8,["keyCode","onPressed"])]),_:1},8,["text"]))])])],2)),[[p,()=>e.isMobile?e.close():"","release"]])}const O={props:["openParams"],components:{ControlsButton:h,ControlsButtonContainer:C,IconExclamationPoint:M},data(){return{KEY_CODE_SPACE:window.KEY_CODE_SPACE,text:"Далеко-далеко за словесными горами в стране гласных и согласных живут рыбные тексты.",button:"Понятно",isShowCircle:!0}},computed:{isMobile(){return this.$root.isMobile}},created(){this.$data.noAdaptation=!0,this.openParams&&(this.text=this.openParams[0],this.button=this.openParams[1],this.isShowCircle=this.openParams[2],window.playSound("tutorial/tutorial.wav"))},methods:{close(){sendClientEvent(gm.EVENT_EXECUTE_PUBLIC,"OnTrainingHintsClose")}}},q=c(O,[["render",N],["__scopeId","data-v-fada49f6"]]);export{q as default};
