import{G as _}from"./GameNotifications.js";import{r as l,o as f,c as d,b as u,_ as C,y as c,H as E}from"./index.js";import"./bg.js";import"./Button3.js";/* empty css                                                      */import"./Button.js";import"./telegram-authenticator.js";import"./close2.js";import"./donate.js";import"./money.js";import"./ButtonContainer.js";/* empty css                                                               */import"./colors.js";const N={class:"mini-game-notification"};function v(n,r,s,t,m,i){const a=l("GameNotifications");return f(),d("div",N,[u(a,{visible:t.isVisible,isSuccess:t.isSuccess,text:t.notificationText,onClose:t.handleClose},null,8,["visible","isSuccess","text","onClose"])])}const x={FAIL:0,COMPLETED:1},T={props:{openParams:Object},components:{GameNotifications:_},data(){return{noAdaptation:!0}},setup(n){const r=c(!0),s=c(!1),t=c(""),m=o=>{const[e,p=""]=typeof o=="string"?JSON.parse(o):o;i(e,p)},i=(o,e="")=>{s.value=o===x.COMPLETED,t.value=e},a=()=>{sendClientEvent(gm.EVENT_EXECUTE_PUBLIC,"MiniGame_OnContinue"),window.closeInterface("MiniGameNotification")};return E(()=>{if(n.openParams){const[o,e=""]=n.openParams;i(o,e)}}),{isVisible:r,isSuccess:s,notificationText:t,updateCard:m,setState:i,handleClose:a}}},B=C(T,[["render",v],["__scopeId","data-v-a7fb9400"]]);export{B as default};
