import{_ as h,l as c,r as d,o as u,c as x,a as o,b as a,t as _,e as r,w as m,i as f,p as g,q as w}from"./index-d4db3b65.js";const p={2:"0",3:"1",4:"2",5:"3",w:"4",e:"5",r:"6",t:"7",s:"8",d:"9",f:"A",g:"B",x:"C",c:"D",v:"E",b:"F"},v={data(){return{inks:{border:"white",text:"white"},name:"",seed_hex:"",seed_hex_info:"0 of 114"}},methods:{keyup(e){if(!(e.isComposing||e.keyCflavor===229)){this.$refs.seed,this.$refs.seed_hex_count,this.$refs.build_showy_key_button,e.ctrlKey,e.shiftKey,e.metaKey;var t=e.key;this.seed_hex.length<114&&typeof p[t]=="string"&&(this.seed_hex+=p[t],this.seed_hex_info=this.seed_hex.length+" of 114")}},async is_on(){await c({envelope:{name:"is on",fields:{}}})},async build(e){(await c({envelope:{name:"vibes: make ECC 448 2",fields:{name:this.name,seed:this.seed_hex}}})).status}}},y=e=>(g("data-v-cd40bc18"),e=e(),w(),e),C={style:{color:"white"}},V={style:{margin:"10px 0"}},B=y(()=>o("p",null,"vibe name",-1)),S=y(()=>o("p",null,"Keys 2,3,4,5,W,E,R,T,S,D,F,G,X,C,V,B adapt into hexadecimal values.",-1)),I={style:{textAlign:"right"}};function K(e,t,l,G,s,n){const b=d("va-input"),k=d("VaButton");return u(),x("div",C,[o("section",V,[B,a(b,{modelValue:s.name,"onUpdate:modelValue":t[0]||(t[0]=i=>s.name=i),placeholder:"vibe name"},null,8,["modelValue"])]),S,o("div",{tabindex:"0",ref:"seed",seed:"",onKeyup:t[1]||(t[1]=(...i)=>n.keyup&&n.keyup(...i)),style:r([{color:s.inks.text,border:"4px solid "+s.inks.border,cursor:"text"},{"font-size":"2em","font-family":"monospace, sans-serif","font-weight":"bold","letter-spacing":"3px","word-wrap":"break-word","box-sizing":"border-box","min-height":"150px",width:"100%",padding:"20px","border-radius":"6px"}])},_(s.seed_hex),37),o("div",{tabindex:"0",ref:"seed-hex-count",style:r([{color:s.inks.text},{"margin-top":"4px","box-sizing":"border-box","word-wrap":"break-word",width:"100%","min-height":"50px",padding:"10px","border-radius":"6px"}])},_(s.seed_hex_info),5),o("div",I,[a(k,{color:"info",gradient:"",ref:"build-showy-key-button",onClick:n.build,style:r({margin:"12px",color:s.inks.text})},{default:m(()=>[f("make")]),_:1},8,["onClick","style"])])])}const R=h(v,[["render",K],["__scopeId","data-v-cd40bc18"]]),z={},E=o("h1",null,"Instrument",-1);function D(e,t){const l=d("RouterLink");return u(),x("header",null,[E,o("nav",null,[a(l,{to:"/"},{default:m(()=>[f("Home")]),_:1})])])}const A=h(z,[["render",D]]);export{R as G,A as i};
