import{r as i,o as d,c as _,a as e,t as m,w as v,v as f,A as l,m as s}from"./index.js";const h={id:"CertificateIndex",class:"page-container"},g={class:"panel-container"},C=e("h3",{class:"panel-title"},"Update Certificate",-1),x={class:"panel-content"},U={__name:"certificate",setup(D){const n="CertificateIndex",c=i("");function r(){l.Certificate.get().then(t=>{console.log(n,"getData res:",t),c.value=t}).catch(t=>{console.log(n,"getData err:",t)})}r();const a=i("");function u(){if(a.value=="")return s.warning("The cert inputs is empty");l.Common.certSet({[a.value]:""}).then(()=>{s.success("Success")}).catch(()=>{s.error("Failure")})}return(t,o)=>(d(),_("div",h,[e("pre",null,m(c.value),1),e("div",g,[C,e("div",x,[v(e("textarea",{"onUpdate:modelValue":o[0]||(o[0]=p=>a.value=p),placeholder:"Please input Cert"},null,512),[[f,a.value]]),e("button",{type:"button",class:"primary",onClick:u},"Update")])])]))}};export{U as default};
