import{c as m}from"./index.74b837d9.js";import{d as r,r as d,p as i,c as _,e as f,k as g,E as h}from"./index.0308b213.js";const v=r({props:{modelValue:{type:Boolean},merchantNo:null},emits:["update:modelValue","close"],setup(u,{emit:t}){const a=u,o=d(!1),c=()=>{m({account_no:a.merchantNo}).then(e=>{console.log(e),e.return_code!="01"||e.result_code!="01"?(h.error(e.return_msg),l()):e!=null&&e.contract_url||l()})};i(()=>a.modelValue,e=>{e&&(o.value=e,c())});const l=()=>{t("update:modelValue",!1),t("close")};return(e,n)=>{const s=_("el-dialog");return f(),g(s,{modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=p=>o.value=p),title:"\u8D26\u6237\u9274\u6743",width:"40%",top:"0px",onClose:l},null,8,["modelValue"])}}});export{v as _};
