1import{_ as L,u as V,R as $,b as B,r as v,A as m,o as I,c as o,a as l,e as t,q as k,j as p,t as i,d as S,F,k as H,h as T,n as f,l as y,g as h,i as j}from"./CTAYT8W8.js";/* empty css */import{u as N}from"./CElwm-g9.js";const R={class:"visual--section"},O={class:"img--wrap"},J=["src"],P={class:"detail--container"},U={class:"content--wrap"},q={key:0,class:"view--wrap"},z={key:1,class:"view--wrap"},W={style:{"text-align":"center",padding:"40px 0",color:"red"}},Y={key:2,class:"view--wrap"},G={class:"title--wrap"},K={class:"meta--info"},Q={key:0,class:"event--period"},X={class:"cont--wrap"},Z=["innerHTML"],tt={key:0,class:"event--links"},et={class:"link--buttons"},st=["href"],nt={class:"post--navigation"},at={class:"nav--title"},lt={key:1,class:"nav--link disabled"},ot={class:"nav--title"},it={key:1,class:"nav--link disabled"},rt={__name:"[id]",setup(ut){const{getMediaUrl:x}=N(),b=V(),w=$(),C=S(),{apiBase:_}=B(),s=v(null),c=v(!0),u=v(null),D=n=>{if(!n)return"";const e=n.lastIndexOf("."),a=e>0?n.substring(0,e):n,r=e>0?n.substring(e):"";return a.length<=20?n:a.substring(0,20)+"..."+r},g=m(()=>{if(!s.value||!s.value.link)return[];try{return(Array.isArray(s.value.link)?s.value.link:JSON.parse(s.value.link||"[]")).filter(e=>e&&e.trim()!=="")}catch(n){return console.error("ë§í¬ íì± ì¤ë¥:",n),[]}});m(()=>{if(!s.value||!s.value.file_urls)return[];try{return(Array.isArray(s.value.file_urls)?s.value.file_urls:JSON.parse(s.value.file_urls||"[]")).map(e=>{let a=e.url||e;const r=e.name||e;return a.startsWith("/")&&(a=_.value+a),{text:D(r),url:a,target:"_blank",class:"pl--0",title:r}})}catch(n){return console.error("íì¼ íì± ì¤ë¥:",n),[]}});const d=n=>{if(!n)return"-";const e=new Date(n);return`${e.getFullYear()}.${String(e.getMonth()+1).padStart(2,"0")}.${String(e.getDate()).padStart(2,"0")}`},M=async()=>{try{c.value=!0,u.value=null;const n=b.params.id,a=await(await fetch(`${_.value}/api/event/public/${n}`)).json();console.log("[Event Detail] API ìëµ:",a),a.success?a.data?(s.value=a.data,console.log("[Event Detail] ë¡ë ì±ê³µ:",s.value)):u.value="ì´ë²¤í¸ ì 보를 ì°¾ì ì ììµëë¤.":(u.value=a.message||"ì´ë²¤í¸ ì 보를 ë¶ë¬ì¬ ì ììµëë¤.",console.error("[Event Detail] API ìë¬:",a))}catch(n){console.error("[Event Detail] ë¡ë ì¤í¨:",n),u.value="ì´ë²¤í¸ ì 보를 ë¶ë¬ì¤ë ì¤ ì¤ë¥ê° ë°ìíìµëë¤."}finally{c.value=!1}},E=()=>{w.push("/company/event")};return I(()=>{M()}),(n,e)=>{const a=j;return l(),o("main",null,[t("section",R,[t("div",O,[t("picture",null,[t("img",{src:k(x)("/img/company/img--about1.jpg"),alt:""},null,8,J)])]),e[0]||(e[0]=t("div",{class:"title--wrap color--white"},[t("h2",null,"Company")],-1))]),t("div",P,[e[8]||(e[8]=t("section",null,[t("div",{class:"desc--section full--type"},[t("h3",{class:"big--title"},"EVENT")])],-1)),t("div",U,[c.value?(l(),o("div",q,[...e[1]||(e[1]=[t("p",{style:{"text-align":"center",padding:"40px 0"}},"ë¡ë© ì¤...",-1)])])):u.value?(l(),o("div",z,[t("p",W,i(u.value),1)])):s.value?(l(),o("div",Y,[t("div",G,[t("h2",null,i(s.value.title),1),t("div",K,[t("p",null,i(d(s.value.created_at)),1),s.value.start_date&&s.value.end_date?(l(),o("p",Q," 기ê°: "+i(d(s.value.start_date))+" ~ "+i(d(s.value.end_date)),1)):p("",!0)])]),t("div",X,[t("div",{class:"suneditor-content",innerHTML:s.value.content},null,8,Z),k(C).public.company==="i"&&g.value.length>0?(l(),o("div",tt,[e[3]||(e[3]=t("div",{class:"link--title"},"ê´ë ¨ ë§í¬",-1)),t("div",et,[(l(!0),o(F,null,H(g.value,(r,A)=>(l(),o("div",{key:A,class:"link--item"},[t("a",{href:r,target:"_blank",rel:"noopener noreferrer",class:"link--button"},[e[2]||(e[2]=t("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M7.33333 8.66667L12.6667 3.33333M12.6667 3.33333H9.33333M12.6667 3.33333V6.66667M6.66667 2H4C3.46957 2 2.96086 2.21071 2.58579 2.58579C2.21071 2.96086 2 3.46957 2 4V12C2 12.5304 2.21071 13.0391 2.58579 13.4142C2.96086 13.7893 3.46957 14 4 14H12C12.5304 14 13.0391 13.7893 13.4142 13.4142C13.7893 13.0391 14 12.5304 14 12V9.33333",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),T(" "+i(r),1)],8,st)]))),128))])])):p("",!0)]),t("div",nt,[t("div",{class:f(["nav--item prev",{disabled:!s.value.prev_post}])},[s.value.prev_post?(l(),y(a,{key:0,to:`/company/event/${s.value.prev_post.id}`,class:"nav--link"},{default:h(()=>[e[4]||(e[4]=t("span",{class:"nav--label"}
1,"ì´ì ê¸",-1)),t("span",at,i(s.value.prev_post.title),1)]),_:1},8,["to"])):(l(),o("div",lt,[...e[5]||(e[5]=[t("span",{class:"nav--label"},"ì´ì ê¸",-1),t("span",{class:"nav--title"},"ì´ì ê¸ì´ ììµëë¤.",-1)])]))],2),t("div",{class:f(["nav--item next",{disabled:!s.value.next_post}])},[s.value.next_post?(l(),y(a,{key:0,to:`/company/event/${s.value.next_post.id}`,class:"nav--link"},{default:h(()=>[e[6]||(e[6]=t("span",{class:"nav--label"},"ë¤ìê¸",-1)),t("span",ot,i(s.value.next_post.title),1)]),_:1},8,["to"])):(l(),o("div",it,[...e[7]||(e[7]=[t("span",{class:"nav--label"},"ë¤ìê¸",-1),t("span",{class:"nav--title"},"ë¤ìê¸ì´ ììµëë¤.",-1)])]))],2)]),t("div",{class:"btn--wrap",style:{"margin-top":"40px","text-align":"center"}},[t("button",{onClick:E,class:"btn--primary",style:{padding:"12px 40px",background:"#000",color:"#fff",border:"none",cursor:"pointer"}}," 목ë¡ì¼ë¡ ")])])):p("",!0)])])])}}},pt=L(rt,[["__scopeId","data-v-3d44f428"]]);export{pt 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.