1import{N as R}from"./NoData.df96c810.js";import{P as K}from"./Pagination.3ed7f1a4.js";import{_ as U}from"./nuxt-link.4550c25e.js";import{_ as Y,g as I,f as L,A as G,o,c as a,a as t,j as h,m as r,F as q,k as D,s as i,t as x,E as W,p as J,e as Q,r as w,h as X,G as Z,i as ee,b as k,d as A,v as te,B as se,H as oe,q as E,w as ae}from"./entry.0546232b.js";import{f as le}from"./formateDate.e79d8e1d.js";import{_ as re}from"./search.af99fe93.js";import{s as V}from"./style.6fc4cd5a.js";import{S as ne}from"./SelectBox.dafec6f9.js";import{_ as j,a as $,b as z,c as ce,d as ie}from"./paper-clip-replace.188ea7b2.js";import{_ as pe}from"./paper-clip.32aa800f.js";import{u as ue}from"./auth.6559527d.js";import{a as de}from"./checkArticleAccess.85cd01ba.js";import{T as xe}from"./Title.4168b6d7.js";import{u as S}from"./useSgBbsData.87aacbe5.js";import{S as _e}from"./SmallFooterEmail.ff22f5ce.js";import"./next.232c7239.js";import"./arow.4eb3c231.js";const g=u=>(J("data-v-a9580886"),u=u(),Q(),u),he={class:"hidden overflow-x-auto md:block"},fe={class:"w-full xl:table-fixed"},ge=g(()=>t("caption",null,null,-1)),me=g(()=>t("col",{class:"w-[7%]"},null,-1)),we=g(()=>t("col",{class:"max-w-[200px]"},null,-1)),ye=g(()=>t("col",{class:"w-[14%]"},null,-1)),ve={key:0,class:"w-[7%]"},be=g(()=>t("col",{class:"w-[14%]"},null,-1)),ke=g(()=>t("col",{class:"w-[7%]"},null,-1)),Pe={key:1,class:"w-[7%]"},Fe={class:"bg-[#F2F2F2]"},Te={class:"border-t-[3px] border-t-[#353535] border-b-[1px] bg-[#F2F2F2]"},Ce=g(()=>t("tfoot",null,null,-1)),Ne=["onClick"],qe={class:"zoom-text truncate"},De={key:0,alt:"icons8-lock",class:"w-3 h-3",src:j},Ae={key:1,class:"w-2 h-2 ml-1",alt:"ic_new",src:$},Ve=["onClick"],Ee={key:0,alt:"Paperclip",class:"object-cover w-6 h-6 overflow-hidden",src:z},Se={key:1,alt:"Paperclip",class:"object-cover w-6 h-6 overflow-hidden",src:ce},Ie={class:"block md:hidden"},Le=["onClick"],je={key:1,class:"w-[56px] h-[30px] flex justify-center items-center bg-[#A72018] text-[#FFFFFF]"},$e={class:"flex gap-4"},ze={class:"min-w-[90%] mt-2 space-y-2"},Be={class:"text-[#454545] text-[16px] font-[500] flex items-center"},Oe=["innerHTML"],He={key:0,alt:"icons8-lock",class:"w-3 h-3",src:j},Me={key:1,class:"w-2 h-2 ml-1",alt:"icon-new",src:$},Re={class:"flex items-center gap-2"},Ke={class:"text-[#727272] text-[12px] font-normal"},Ue=g(()=>t("div",{class:"h-3 w-[1px] bg-[#727272]"},null,-1)),Ye={class:"text-[#727272] text-[12px] font-normal"},Ge=g(()=>t("div",{class:"h-3 w-[1px] bg-[#727272]"},null,-1)),We={class:"text-[#727272] text-[12px] font-normal"},Je={key:0,class:"flex w-full items-start justify-end"},Qe={key:0,class:"line-height-140"},Xe={key:0,alt:"Paperclip",class:"object-contain w-6 h-6 hidden lg:block",src:z},Ze={key:1,alt:"paper-clip-replace",class:"object-contain w-6 h-6 lg:hidden mt-2",src:ie},et={key:2,alt:"paper-clip",class:"object-contain w-6 h-6",src:pe},tt={__name:"TableActivity",props:{className:{type:String,required:!1},tableHeaders:{type:Array,require:!0},tableData:{type:Array,require:!0},currentPage:{type:Number,require:!0},namePage:{type:Boolean,default:!1},pageSize:{type:Number},qaresponse:{type:Boolean,default:!1},isPhotoView:{type:Boolean,default:!1}},emits:["click"],setup(u,{emit:d}){const m=u;ue();const F=I(),f=L(),y=async n=>{if(!n.secret&&!W("token")&&f.name!=="Participant"){await F.push({name:"Login",query:{redirect:f.fullPath}});return}const _=await de(n.pkId,"V");if((_==null?void 0:_.data)===!1){alert("ì½ìì ìë ê¶íì´ ììµëë¤.");return}d("click",n)},p=G(()=>{var n;return((n=m.tableData[0])==null?void 0:n.isPhotoTopView)===!1?m.tableHeaders.filter((_,e)=>e!=3):m.tableHeaders});return(n,_)=>(o(),a("div",null,[t("div",he,[t("table",fe,[ge,t("colgroup",null,[me,we,ye,h(p)[3]=="첨ë¶íì¼"||h(p)[3]=="File"?(o(),a("col",ve)):r("",!0),be,ke,h(p)[6]?(o(),a("col",Pe)):r("",!0)]),t("thead",Fe,[t("tr",Te,[(o(!0),a(q,null,D(h(p),(e,v)=>(o(),a("th",{key:v,class:i([u.className,"text-[16px] font-medium text-[#212121] lg:px-6 py-4 text-center whitespace-nowrap zoom-text"]),scope:"col"},x(e),3))),128))])]),Ce,t("tbody",null,[(o(!0),a(q,null,D(u.tableData,(e,v)=>(o(),a("tr",{class:i([e.isTop?"bg-[#FDF5F4]":"bg-white","transition duration-300 ease-in-out border-b cursor-pointer hover:bg-gray-100"]),onClick:b=>y(e)},[t("td",{class:i([e.isTop?"text-[#861F1C]":"","px-6 py-4 whitespace-nowrap text-[16px] font-normal text-[#757575] text-center zoom-text"])},x(e.isTop?"TOP":e.no||e.rownum),3),t("td",{class:i([e.isTop?"text-[#861F1C]":"","py-4 lg:px-6 whitespace-nowrap text-[16px] font-normal text-[#757575] text-start"])},[t("div",{class:i([u.qaresponse?"xl:w-[534px] md:w-[182px]":"xl:w-[630px] md:w-[278px]","flex items-center min-w-full"])}
1,[t("p",qe,x(e==null?void 0:e.title),1),!e.secret&&h(f).name!=="Participant"?(o(),a("img",De)):r("",!0),e.isNew?(o(),a("img",Ae)):r("",!0)],2)],2),t("td",{class:i([e.isTop?"text-[#861F1C]":"","lg:px-6 py-4 whitespace-nowrap text-[16px] font-normal text-[#757575] text-center md:w-[100px] lg:w-[8%] zoom-text"])},x(e.userName),3),e.isPhotoTopView===!0||e.isPhotoTopView===null?(o(),a("td",{key:0,class:i([e.isTop?"text-[#861F1C]":"","lg:px-6 py-4 whitespace-nowrap text-[16px] font-normal text-[#757575] text-center"])},[e.files.length>0?(o(),a("div",{key:0,class:"flex items-center justify-center gap-1",onClick:b=>y(e)},[e.isTop?(o(),a("img",Ee)):(o(),a("img",Se))],8,Ve)):r("",!0)],2)):r("",!0),t("td",{class:i([e.isTop?"text-[#861F1C]":"","lg:px-6 py-4 whitespace-nowrap text-[16px] font-normal text-[#757575] text-center w-[8%] zoom-text"])},x(e.regDate),3),t("td",{class:i([e.isTop?"text-[#861F1C]":"","px-6 py-4 whitespace-nowrap text-[16px] font-normal text-[#757575] text-center zoom-text"])},x(e.viewCount.toLocaleString()),3),u.qaresponse?(o(),a("td",{key:1,class:i([[e.isTop?"text-[#861F1C]":"",e.qaresponse?"lg:px-6":"px-6"],"py-4 whitespace-nowrap text-[16px] font-normal text-[#757575] flex justify-center text-center"])},[t("div",{class:i([e.qaresponse?"bg-[#A72018]":"bg-[#A8A8A8]","w-[56px] h-[30px] flex justify-center items-center text-[#FFFFFF] zoom-text"])},x(e.qaresponse?"ìë£":"ë기"),3)],2)):r("",!0)],10,Ne))),256))])])]),t("div",Ie,[(o(!0),a(q,null,D(u.tableData,(e,v)=>(o(),a("div",{key:e.id,class:i([[v==0?"border-t-[3px] border-t-[#353535]":"",e.isTop?"bg-[#FDF5F4]":""],"border-b-[1px] cursor-pointer border-b-[#D3D3D3] py-4"]),onClick:b=>y(e)},[u.qaresponse?(o(),a("div",{key:0,class:i([e.qaresponse?"bg-[#A72018]":"bg-[#A8A8A8]","w-[56px] h-[30px] flex justify-center items-center text-[#FFFFFF]"])},x(e.qaresponse?"ìë£":"ë기"),3)):r("",!0),e.isTop?(o(),a("div",je," TOP ")):r("",!0),t("div",$e,[t("div",ze,[t("div",Be,[t("p",{class:i([e.isTop?"font-bold":"","break-all truncate"]),innerHTML:e.title},null,10,Oe),!e.secret&&h(f).name!=="Participant"?(o(),a("img",He)):r("",!0),e.isNew?(o(),a("img",Me)):r("",!0)]),t("div",Re,[t("div",Ke,x(e.regDate),1),Ue,t("div",Ye,x(e.userName),1),Ge,t("div",We," ì¡°í "+x(e.viewCount),1)])]),e.isPhotoTopView===!0||e.isPhotoTopView===null?(o(),a("div",Je,[e.files.length>0?(o(),a("div",Qe,[e.isTop?(o(),a("img",Xe)):r("",!0),e.isTop?(o(),a("img",Ze)):(o(),a("img",et))])):r("",!0)])):r("",!0)])],10,Le))),128))])]))}},st=Y(tt,[["__scopeId","data-v-a9580886"]]),ot={class:"container mx-auto mb-[160px]"},at={class:"flex flex-col md:gap-4 md:pb-4 md:flex-row md:justify-between md:items-center"},lt={class:"text-[#595959] text-[16px] font-normal mt-[40px] md:mt-0 order-2 md:order-1 zoom-text"},rt={class:"text-[#861F1C]"},nt={class:"flex flex-col order-1 gap-2 md:flex-row md:order-2"},ct={class:"relative"},it=["onKeyup"],pt={class:"md:mt-[78px] mt-[40px] relative"},ut={key:0},dt={key:1,class:"md:absolute btn-primary md:-top-[18px] md:right-0 md:mt-0 mt-[40px]"},Dt={__name:"index",setup(u){const d=L(),m=I(),F=w([{value:"TITLE",label:"ì 목"},{value:"CONTENT",label:"ë´ì©"},{value:"USERNAME",label:"ìì±ì"}]),f=X(),y=w(0),p=w(d.query.keyword||""),n=w(d.query.option||"TITLE"),_=w(""),e=w({totalPages:1,currentPage:Number(d.query.page)||1}),v=["ë²í¸","ì 목","ìì±ì","첨ë¶íì¼","ë±ë¡ì¼","ì¡°íì"],b=async()=>{try{const{data:l}=await S.getBoardList({pageNum:e.value.currentPage,pageSize:16,bbsConfigFk:1,category:"",regDateFrom:"01-01-2018",title:n.value=="TITLE"?p.value.trim():"",content:n.value=="CONTENT"?p.value.trim():"",username:n.value=="USERNAME"?p.value.trim():""}),c=l.list.map(s=>({no:s.rownum,title:s.title,secret:(s==null?void 0:s.secret)=="Y",userName:s.displayName,regDate:le(s.regDate),viewCount:s.viewCount,isPhotoTopView:(s==null?void 0:s.isPhotoTopView)=="Y",isTop:(s==null?void 0:s.isTop)=="Y",pkId:s.pkId,isNew:(s==null?void 0:s.isNew)=="ON",files:[s.fileValue1,s.fileValue2,s.fileValue3,s.fileValue4,s.fileValue5].filter(P=>!!P&&P)}));e.value.totalPages=l.pages,y.value=l.total,_.value=c.filter(s=>s!==null)}catch(l){l.statusCode==404&&alert("ì´ì©ì ì§ë ê²ìíì
ëë¤."),console.log("err",l)}},B=async l=>{const c={tab:d.query.tab,page:l,option:n.value,keyword:p.value};
1Object.keys(c).forEach(s=>{c[s]||delete c[s]}),m.push({query:c}),e.value.currentPage=l,await b()},T=async()=>{e.value.currentPage=1;const l={tab:d.query.tab,page:e.value.currentPage,option:n.value,keyword:p.value};Object.keys(l).forEach(c=>{l[c]||delete l[c]}),m.push({query:l}),f.setIsLoading(!0),await b(),f.setIsLoading(!1)};Z(p,l=>{l||T()});const O=l=>{m.push({name:"NoticeDetail",params:{pkId:l.pkId},query:{bbsConfigFk:1,namepage:d.name,text:d.meta.namePage,title:"ì¼ë°ê³µì§",redirect:d.fullPath}})},C=w(!1),H=async()=>{try{const{data:l}=await S.checkAuthKo({configId:1,bbsAuth:"W"});C.value=l}catch(l){C.value=!1,console.log("err",l)}};return ee(async()=>{f.setIsLoading(!0),await Promise.all([H(),b()]),f.setIsLoading(!1)}),(l,c)=>{const s=R,P=K,M=U;return o(),a("div",ot,[k(xe,{text:"ì¼ë°ê³µì§"}),t("div",at,[t("div",lt,[A(" ì´ "),t("span",rt,x(y.value),1),A("ê±´ì ê²ìë¬¼ì´ ììµëë¤ ")]),t("div",nt,[k(ne,{options:F.value,modelValue:n.value,"onUpdate:modelValue":c[0]||(c[0]=N=>n.value=N),"class-selected":h(V).label,"class-wrap-option":h(V).wrapOption,"class-option":h(V).option,placeholder:"ì 목",placement:"bottomLeft"},null,8,["options","modelValue","class-selected","class-wrap-option","class-option"]),t("div",ct,[te(t("input",{id:"sogang",type:"text","onUpdate:modelValue":c[1]||(c[1]=N=>p.value=N),placeholder:"ê²ìì´ë¥¼ ì
ë ¥í´ì£¼ì¸ì",onKeyup:oe(T,["enter"]),class:"focus:outline-none px-4 py-[10px] zoom-text text-[14px] focus:border-[#1E1E1E] text-[#1E1E1E] border-[1px] border-[#D3D3D3] md:w-[300px] h-[42px] w-full"},null,40,it),[[se,p.value]]),t("img",{src:re,alt:"search",class:"absolute -translate-y-1/2 right-3 top-1/2 cursor-pointer",onClick:T})])])]),_.value.length>0?(o(),E(st,{key:0,"table-headers":v,"table-data":_.value,currentPage:e.value.currentPage,"name-page":!0,onClick:O},null,8,["table-data","currentPage"])):r("",!0),_.value.length==0?(o(),E(s,{key:1,content:"ë±ë¡ë ì ë³´ê° ììµëë¤."})):r("",!0),t("div",pt,[_.value.length>0?(o(),a("div",ut,[k(P,{totalPages:e.value.totalPages,currentPage:e.value.currentPage,onPageChanged:B},null,8,["totalPages","currentPage"])])):r("",!0),C.value?(o(),a("div",dt,[k(M,{to:{name:"NoticeRegister",query:{configPkId:1,namepage:h(d).name,text:h(d).meta.namePage,title:"ì¼ë°ê³µì§"}},class:"px-[60px] py-5 w-full text-center bg-[#861F1C] hover:bg-[#791C19] zoom-text text-white font-bold text-[16px] inline-block cursor-pointer"},{default:ae(()=>[A(" ë±ë¡í기 ")]),_:1},8,["to"])])):r("",!0)]),k(_e,{phone:"ë°ì íë³´í([email protected]) ë¶ì ë©ì¼ ì ì"})])}}};export{Dt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.