import{_ as n,a as r,b as o}from"./22.js";import{o as s,c as a,b as c,w as _,d as i,T as g,_ as d}from"./index.js";const p={class:"vignette"};function u(t,l,v,b,e,k){return s(),a("div",p,[c(g,{name:"fade",mode:"out-in",appear:""},{default:_(()=>[(s(),a("div",{class:"vignette__screen",key:e.currentBackgroundIndex,style:i({backgroundImage:`url('${e.backgrounds[`/src/assets/images/vignette/${e.currentBackgroundIndex}.png`]}')`})},null,4))]),_:1})])}const m={name:"Vignette",props:["openParams"],data(){return{currentBackgroundIndex:0,backgrounds:Object.assign({"/src/assets/images/vignette/0.png":n,"/src/assets/images/vignette/1.png":r,"/src/assets/images/vignette/2.png":o})}},created(){this.$data.noAdaptation=!0,this.openParams&&this.setFear(this.openParams[0])},methods:{setFear(t){this.currentBackgroundIndex=Number(t)}}},x=d(m,[["render",u],["__scopeId","data-v-308421bc"]]);export{x as default};
