1import{_ as P,a as M}from"./k46vdqGh.js";import{u as N}from"./CElwm-g9.js";import{b as B,v as S,r as c,A as T,o as F,c as i,a,e as t,q as o,F as f,k as x,t as u,n as I,x as j}from"./CTAYT8W8.js";const m=P+"#main",h=M+"#main",q={class:"visual--section"},z={class:"img--wrap"},A=["src"],E={class:"detail--container"},L={class:"content--wrap"},R={key:0,class:"loading--wrap"},U={key:1,class:"news--wrap"},V={class:"news--table"},W=["onClick"],Y={class:"ellipsis1"},G={class:"date"},H={class:"view"},J={class:"pagination--wrap"},K=["disabled"],O={fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",style:{"margin-left":"-12px"}},Q=["disabled"],X={class:"pagination--numbers"},Z=["onClick"],tt=["disabled"],st=["disabled"],et={fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",style:{"margin-right":"-12px"}},b=10,at={__name:"INotice",setup(nt){const{getMediaUrl:y}=N(),{apiBase:k}=B();S();const v=c([]),l=c(1),r=c(1),w=c(!1),_=async()=>{w.value=!0;try{const s=await(await fetch(`${k.value}/api/notice/public?page=${l.value}&per_page=${b}`)).json();s.success&&(v.value=s.data.items||[],r.value=s.data.total_pages||1)}catch(n){console.error("ê³µì§ì¬í ë°ì´í°ë¥¼ ë¶ë¬ì¤ëë° ì¤í¨íìµëë¤:",n)}finally{w.value=!1}},$=n=>{if(!n)return"-";const s=new Date(n);return`${s.getFullYear()}.${String(s.getMonth()+1).padStart(2,"0")}.${String(s.getDate()).padStart(2,"0")}`},C=n=>{console.log("ê³µì§ì¬í ìì¸ ì´ë:",n),j(`/company/notice/${n}`)},D=T(()=>{const n=[];let e=Math.max(1,l.value-2),d=Math.min(r.value,e+5-1);d-e<4&&(e=Math.max(1,d-5+1));for(let g=e;g<=d;g++)n.push(g);return n}),p=async n=>{n>=1&&n<=r.value&&(l.value=n,await _(),window.scrollTo({top:0,behavior:"smooth"}))};return F(()=>{_()}),(n,s)=>(a(),i("main",null,[t("section",q,[t("div",z,[t("picture",null,[t("img",{src:o(y)("/img/company/img--about1.jpg"),alt:""},null,8,A)])]),s[4]||(s[4]=t("div",{class:"title--wrap color--white"},[t("h2",null,"Company")],-1))]),t("div",E,[s[14]||(s[14]=t("section",null,[t("div",{class:"desc--section full--type"},[t("h3",{class:"big--title"},"Webon News")])],-1)),t("div",L,[o(w)?(a(),i("div",R,[...s[5]||(s[5]=[t("p",{style:{"text-align":"center",padding:"40px 0"}},"ë¡ë© ì¤...",-1)])])):(a(),i("div",U,[t("table",V,[s[6]||(s[6]=t("colgroup",null,[t("col",{style:{width:"10%"}}),t("col",{style:{width:"60%"}}),t("col",{style:{width:"15%"}}),t("col",{style:{width:"10%"},class:"view"})],-1)),s[7]||(s[7]=t("thead",null,[t("tr",null,[t("th",null,"ë²í¸"),t("th",null,"ì 목"),t("th",null,"ë±ë¡ì¼"),t("th",{class:"view"},"ì¡°íì")])],-1)),t("tbody",null,[(a(!0),i(f,null,x(o(v),(e,d)=>(a(),i("tr",{key:e.id,onClick:g=>C(e.id),style:{cursor:"pointer"}},[t("td",null,u(e.is_notice===1||e.is_notice==="1"?"ê³µì§":(o(l)-1)*b+d+1),1),t("td",Y,u(e.title),1),t("td",G,u($(e.created_at)),1),t("td",H,u(e.views||0),1)],8,W))),128))])])])),t("div",J,[t("button",{class:"pagination--btn first",onClick:s[0]||(s[0]=e=>p(1)),disabled:o(l)===1,title:"ì²ì"},[s[9]||(s[9]=t("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px"},[t("use",{href:m})],-1)),(a(),i("svg",O,[...s[8]||(s[8]=[t("use",{href:m},null,-1)])]))],8,K),t("button",{class:"pagination--btn prev",onClick:s[1]||(s[1]=e=>p(o(l)-1)),disabled:o(l)===1,title:"ì´ì "},[...s[10]||(s[10]=[t("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px"},[t("use",{href:m})],-1)])],8,Q),t("div",X,[(a(!0),i(f,null,x(o(D),e=>(a(),i("button",{key:e,class:I(["pagination--number",{active:e===o(l)}]),onClick:d=>p(e)},u(e),11,Z))),128))]),t("button",{class:"pagination--btn next",onClick:s[2]||(s[2]=e=>p(o(l)+1)),disabled:o(l)===o(r),title:"ë¤ì"},[...s[11]||(s[11]=[t("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px"},[t("use",{href:h})],-1)])],8,tt),t("button",{class:"pagination--btn last",onClick:s[3]||(s[3]=e=>p(o(r))),disabled:o(l)===o(r),title:"ë"},[(a(),i("svg",et,[...s[12]||(s[12]=[t("use",{href:h},null,-1)])])),s[13]||(s[13]=t("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px"},[t("use",{href:h})],-1))],8,st)])])])]))}};export{at 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.