|
|
|
|
+import{_ as e,u as a,r as s,o as l,$ as t,b as n,e as o,f as u,g as c,i as r,j as v,k as i,l as f,n as p,t as m,x as _,z as d,D as w}from"./index-DnnxUWW3.js";import{_ as b}from"./cwg-page-wrapper.CiaPLP20.js";const g=e({__name:"cwg-confirm-popup",setup(e){const{t:g}=a(),C=s(!1);let k=null,x=!1;const h=s(""),j=s(""),y=s(""),B=s(""),I=e=>{x||C.value||(x=!0,k=e.eventId,h.value=e.title||g("Msg.SystemPrompt"),j.value=e.content||"",y.value=e.confirmText||g("Btn.Confirm"),B.value=e.cancelText||g("Btn.Cancel"),C.value=!0)},T=e=>{C.value=!1,x=!1,k&&w(`confirmResult_${k}`,e),k=null,h.value="",j.value="",y.value="",B.value=""},$=()=>T(!0),z=()=>T(!1);return l(()=>{t("showConfirm",I)}),n(()=>{o("showConfirm",I),C.value=!1,x=!1,k=null}),(e,a)=>{const s=_,l=d,t=u(c("cwg-popup"),b);return r(),v(t,{visible:C.value,"onUpdate:visible":a[0]||(a[0]=e=>C.value=e),type:"center","mask-click":!1,"show-footers":!0},{footer:i(()=>[f(l,{onClick:z},{default:i(()=>[p(m(B.value),1)]),_:1}),f(l,{class:"btn btn-secondary btn-shadow waves-effect",onClick:$},{default:i(()=>[p(m(y.value),1)]),_:1})]),default:i(()=>[f(s,{class:"popup-content"},{default:i(()=>[f(s,{class:"confirm-title"},{default:i(()=>[p(m(h.value),1)]),_:1}),f(s,{class:"confirm-content"},{default:i(()=>[p(m(j.value),1)]),_:1})]),_:1})]),_:1},8,["visible"])}}},[["__scopeId","data-v-82c9e96e"]]);export{g as _};
|