import{_ as w}from"./basicModal.vue_vue_type_script_setup_true_lang-CsJydKhW.js";import"./basicModal.vue_vue_type_style_index_0_lang-8QZP7ApW.js";import{B as k}from"./Table-0PViRYCf.js";import{V as r,Z as I,bk as x,d as b,r as v,c as T,o as M,w as i,j as l,B as g,l as t,p as q,A as B}from"./index-9PRMimni.js";import{f as D}from"./hook-C9rOLWu_.js";import{u as R}from"./useModal-CO65vga3.js";const S=x(),{t:o}=r(),C=[{title:o("hsqe.auditInspection.vesselInspection.shipVisitReport.certificateSMS.no"),key:"no",width:50,render:(e,n)=>n+1},{title:o("hsqe.auditInspection.vesselInspection.deficiency.description"),key:"desc",width:150},{title:o("hsqe.auditInspection.vesselInspection.deficiency.pic"),key:"owner",width:150,render(e){return I("span",{},{default:()=>S.getLocale==="en"?e.ownerEn:e.owner})}},{title:o("hsqe.auditInspection.vesselInspection.deficiency.dateRectify"),key:"dueDate",width:150,render:e=>D(new Date(e.dueDate))},{title:o("hsqe.auditInspection.vesselInspection.deficiency.confirmation"),key:"verifier",width:150}],O=b({__name:"Modal",emits:["success"],setup(e,{expose:n}){const{t:s}=r(),a=v([]);async function d(){return{list:a.value||[],total:a.value.length||0}}const[u,{openModal:p,closeModal:m}]=R({title:s("hsqe.auditInspection.vesselInspection.deficiency.totalText"),subBtuText:s("common.okText"),cancelText:s("common.cancelText"),width:1050});async function f(c){p(),a.value=c}return n({showModal:f}),(c,V)=>{const h=g,_=w;return M(),T(_,{ref:"modalRef",onRegister:t(u),class:"basicModal basicFormModal"},{default:i(()=>[l(t(k),{columns:t(C),request:d,"row-key":y=>y.id,showTableSetting:!1,pagination:!1},null,8,["columns","row-key"])]),action:i(()=>[l(h,{onClick:t(m)},{default:i(()=>[q(B(t(s)("common.closeText")),1)]),_:1},8,["onClick"])]),_:1},8,["onRegister"])}}});export{O as _,C as c};
