import"./modulepreload-polyfill-B5Qt9EMX.js";import{d as i,r as m,p as n,c as o,a,e as c,x as s,f as d,y as _,b as v,t as f,z as g}from"./vendor-nt8ldNfT.js";const y={key:0},C=i({__name:"page2",setup(x){const t=m(""),l=()=>{window.alert(`Greetings, ${t.value}!`)};return(N,e)=>{const r=n("n-input"),p=n("n-button");return a(),o("div",null,[e[2]||(e[2]=c("h1",null,"This is Page 2",-1)),s(r,{value:t.value,"onUpdate:value":e[0]||(e[0]=u=>t.value=u),placeholder:"What's your name?"},null,8,["value"]),s(p,{style:{"margin-top":"1rem"},onClick:l},{default:_(()=>e[1]||(e[1]=[v("Greet")])),_:1}),t.value?(a(),o("p",y,"👋 Hello, "+f(t.value)+"!",1)):d("",!0)])}}}),k=g(C);k.mount("#app");
