var t=Vue.createApp({el:"#app",data(){return{visible:!1,index:0,items:[]}},async created(){},mounted(){fetch("http://localhost/ostal/wp-json/wp/v2/realizacje"),fetch().then(e=>e.json()).then(e=>this.items=e)},methods:{showImg(e){this.index=e,this.visible=!0},handleHide(){this.visible=!1}},computed:{images(){return this.items.map(e=>e.acf.zdjecia.map(s=>s.sizes.large))}}});t.use(VueEasyLightbox);t.mount("#app");
