import{_ as h}from"./basicModal.vue_vue_type_script_setup_true_lang-CsJydKhW.js";import"./basicModal.vue_vue_type_style_index_0_lang-8QZP7ApW.js";import{d as C,V as M,bk as R,r as p,c as $,o as O,l as t,w as o,j as r,B as V,p as _,A as c,H as N,i as S}from"./index-9PRMimni.js";import{u as b}from"./useModal-CO65vga3.js";const j={class:"text-center"},L={name:"Tooltip"},W=C({...L,emits:["success"],setup(A,{expose:m,emit:u}){const{t:n}=M(),f=R(),d=p(),i=p(""),k=u,[x,{openModal:g,closeModal:y}]=b({title:n("crewTraining.reviewConfirmation"),width:500});async function w(s,e){i.value=f.getLocale==="en"?`Please confirm the approval result of the crew  ${e}'s evaluation report.`:`请确认船员${s}评价报告的审核结果`,g()}function a(s){k("success",s),y()}return m({handleOpenModal:w}),(s,e)=>{const l=V,v=N,B=h;return O(),$(B,{ref_key:"modalRef",ref:d,onRegister:t(x),"ok-text":t(n)("common.okText"),onOk:a},{default:o(()=>[S("p",j,c(t(i)),1)]),action:o(()=>[r(v,{class:"flex-1",justify:"center"},{default:o(()=>[r(l,{secondary:"",type:"primary",onClick:e[0]||(e[0]=T=>a(2))},{default:o(()=>[_(c(t(n)("crewTraining.refuses")),1)]),_:1}),r(l,{type:"primary",onClick:e[1]||(e[1]=T=>a(1))},{default:o(()=>[_(c(t(n)("crewTraining.approved")),1)]),_:1})]),_:1})]),_:1},8,["onRegister","ok-text"])}}});export{W as _};
