import{M as c}from"./index.a696a3d7.js";import{d as v,r,A as x,a6 as _,o as V,c as B,w as u,a as n,b as i,j as m,ad as g,e as w,l as h}from"./index.6c36cb53.js";import{i as o,o as C,c as y,s as f}from"./hooks.886f9bd2.js";const D={class:"px-3"},M={class:"px-2"},k=n("span",{class:""},"\u6587\u5B57\u5185\u5BB9:",-1),b=n("span",{class:""},"\u65CB\u8F6C\u89D2\u5EA6:",-1),I=v({__name:"index",setup(A){const a=r(""),s=r(0);x(o,e=>{e||(a.value="",s.value=0)});const d=[{name:"\u786E\u5B9A",fun:()=>{y({text:a.value,angle:s.value*(Math.PI/180)}),a.value=""},primary:!0},{name:"\u5173\u95ED",fun:()=>f(!1)}];C((e={})=>{typeof e.text=="string"&&(a.value=e.text),typeof e.angle=="number"&&(s.value=_(e.angle*(180/Math.PI),2))});const p={esc:()=>f(!1),enter:d[0].fun};return(e,t)=>(V(),B(c,{title:"\u5355\u884C\u6587\u5B57","max-width":"360",modelValue:w(o),"onUpdate:modelValue":t[2]||(t[2]=l=>h(o)?o.value=l:null),footerBtnList:d,persistent:"",keys:p},{default:u(()=>[n("div",D,[i(g,{title:"\u6587\u5B57\u53C2\u6570"},{default:u(()=>[n("div",M,[i(m,{class:"mt-1",modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=l=>a.value=l),autofocus:""},{prepend:u(()=>[k]),_:1},8,["modelValue"]),i(m,{class:"mt-1 w-50",modelValue:s.value,"onUpdate:modelValue":t[1]||(t[1]=l=>s.value=l),type:"number"},{prepend:u(()=>[b]),_:1},8,["modelValue"])])]),_:1})])]),_:1},8,["modelValue"]))}});export{I as default};