import{d as h,bk as E,f as w,r as f,V as F,aw as I,c as i,o as t,X as L,w as n,j as c,U as S,h as u,a9 as g,F as _,M as V,S as j,p as r,A as o,l as d,i as m,W as q,v as B}from"./index-9PRMimni.js";import{g as D}from"./noticecircular-BlDTlrlg.js";const R=["href"],A=h({__name:"index",setup(M){const p=E(),b=w(),l=f({}),{t:e}=F(),y=f([{label:e("noticeCircular.general.No"),value:"",key:"noticeNo",span:1},{label:e("noticeCircular.general.type"),value:"",key:p.getLocale==="en"?"labelSubNameEn":"labelSubName",span:1},{label:e("noticeCircular.general.IssuedDept"),value:"",key:p.getLocale==="en"?"objectNameEn":"objectName",span:1},{label:e("noticeCircular.general.IssuedDate"),value:"",key:"submitTime",span:1},{label:e("noticeCircular.general.Validity"),value:"",key:"endEffectiveTime",span:1},{label:e("noticeCircular.general.FeedbackRequired"),value:"",key:"isFeedback",span:5},{label:e("noticeCircular.general.Title"),value:"",key:"noticeTitle",span:7},{label:e("noticeCircular.general.Content"),value:"",key:"noticeContent",span:7}]);async function k(){l.value=await D({id:b.query.id})}return I(()=>{k()}),(W,O)=>{const v=j,s=V,C=S,x=q,N=L;return t(),i(N,null,{default:n(()=>[c(x,{bordered:!1,class:"proCard",size:"small",segmented:{content:!0},"content-style":"padding: 00px 15px 0 15px;"},{default:n(()=>[c(C,{cols:8,class:"detail-content"},{default:n(()=>[(t(!0),u(_,null,g(y.value,a=>(t(),u(_,{key:a.key},[c(s,{class:"flex justify-center items-center font-bold td my-label",span:1},{default:n(()=>[c(v,{class:"w-[200px] truncate text-center"},{default:n(()=>[r(o(a.label),1)]),_:2},1024)]),_:2},1024),a.key=="endEffectiveTime"?(t(),i(s,{key:0,class:"td",span:a.span},{default:n(()=>[r(o(l.value.endEffectiveTime?l.value.endEffectiveTime:d(e)("noticeCircular.general.permanent")),1)]),_:2},1032,["span"])):a.key=="isFeedback"?(t(),i(s,{key:1,class:"td",span:a.span},{default:n(()=>[r(o(l.value.isFeedback===0?d(e)("noticeCircular.general.TrainingorMeetingRequired"):d(e)("noticeCircular.general.AcknowledgeRequired")),1)]),_:2},1032,["span"])):(t(),i(s,{key:2,class:"td",span:a.span},{default:n(()=>[r(o(l.value[a.key]),1)]),_:2},1032,["span"]))],64))),128)),c(s,{class:"flex justify-center items-center font-bold td my-label",span:1},{default:n(()=>[r(o(d(e)("noticeCircular.general.Attachment")),1)]),_:1}),c(s,{class:"td",span:7},{default:n(()=>[m("ul",null,[(t(!0),u(_,null,g(l.value.fileVoList,(a,T)=>(t(),u("li",{key:T},[m("a",{style:{color:"#18a058","text-decoration":"underline"},href:a.fileUrl,target:"_blank"},o(a.fileName),9,R)]))),128))])]),_:1})]),_:1})]),_:1})]),_:1})}}}),P=B(A,[["__scopeId","data-v-72eaee7b"]]);export{P as default};
