import{d as x,r as C,b as s,e as n,w as t,j as a,f as e,J as u,K as p,L as i,E as r,Q as c,l as y,U as k,R as g,M as f,D as R,s as w,_ as Q}from"./DrjE4E2T.js";import{l as d}from"./Cay67bh1.js";import{_ as q}from"./C82PRyG_.js";const O={class:"flex gap-2"},V={key:1,class:"text-sm text-muted-foreground text-center py-8"},z=x({__name:"qr-generator",setup(h){const o=C("");return(N,l)=>{const _=Q;return n(),s(_,{name:"default",path:["QR Generator"]},{default:t(()=>[a(e(u),null,{default:t(()=>[a(e(p),null,{default:t(()=>[a(e(i),null,{default:t(()=>l[1]||(l[1]=[r("Enter QR Code")])),_:1})]),_:1}),a(e(c),null,{default:t(()=>[y("form",O,[a(e(k),{modelValue:e(o),"onUpdate:modelValue":l[0]||(l[0]=m=>g(o)?o.value=m:null),placeholder:"https://example.com"},null,8,["modelValue"])])]),_:1})]),_:1}),a(e(u),{class:"flex-grow"},{default:t(()=>[a(e(p),null,{default:t(()=>[a(e(i),null,{default:t(()=>l[2]||(l[2]=[r("QR Code")])),_:1}),e(o)?(n(),s(e(f),{key:0},{default:t(()=>[r('QR code is "'+R(e(o))+'" when scanned.',1)]),_:1})):(n(),s(e(f),{key:1},{default:t(()=>l[3]||(l[3]=[r("When a QR code is entered, it will appear beneath.")])),_:1}))]),_:1}),a(e(c),null,{default:t(()=>[e(o)?(n(),s(e(q),{width:512,height:512,value:e(o),key:e(o),"qr-options":{errorCorrectionLevel:"H"},dotsOptions:{color:e(d).zinc[50],type:"square"},backgroundOptions:{color:e(d).zinc[950]},cornersSquareOptions:{color:e(d).zinc[50],type:"square"},class:"max-w-96"},null,8,["value","dotsOptions","backgroundOptions","cornersSquareOptions"])):(n(),w("p",V,"No QR code yet."))]),_:1})]),_:1})]),_:1})}}});export{z as default};
