import{U as t,G as o,aI as e,o as a,y as l,I as s,h as n,t as p,u as i,q as r,x as u,z as c,af as d}from"./vendor-jA_NIjzi.js";import{S as m}from"./common-utils-RDWuRZ1M.js";import{_ as f}from"./BtnClose-8jXpWY6_.js";import{_ as g}from"./common-store-kFD1YPwN.js";const h={class:"dialog-box"},v={class:"top"},_={class:"btns"},y=g({__name:"popUpDialog",props:{showValue:{type:Boolean,default:!1},title:{type:String},content:{type:String},confrimText:{type:String,default:""},cancelText:{type:String,default:""},teleport:{type:String,default:"#app"}},emits:["update:dialog","handleConfrim"],setup(g,{emit:y}){const{t:x}=t(),C=g,S=o((()=>C.confrimText||x("确定"))),w=o((()=>C.cancelText||x("取消"))),{showValue:b,title:j,content:T,teleport:U}=e(C),k=y,B=()=>{k("update:dialog",!1)};return(t,o)=>{const e=d;return a(),l(e,{class:"dialog global-popup-dialog",round:"",show:i(b),"onUpdate:show":o[1]||(o[1]=t=>c(b)?b.value=t:null),onClose:B,teleport:i(U)},{default:s((()=>[n("div",h,[n("div",v,[n("h5",null,p(i(j)),1),r(f,{class:"btn-close",onClick:B})]),n("p",null,p(i(T)),1),n("div",_,[r(m,{type:"cancel",onClick:B},{default:s((()=>[u(p(w.value),1)])),_:1}),r(m,{onClick:o[0]||(o[0]=t=>k("handleConfrim"))},{default:s((()=>[u(p(S.value),1)])),_:1})])])])),_:1},8,["show","teleport"])}}},[["__file","popUpDialog.vue"]]);export{y as p};
