1import{j as t}from"./index-BX6Pva6D.js";import{u as a}from"./ui-Cky5J-mv.js";import{F as T}from"./Footer-jvq9bg0r.js";import{N as P,a as g,W as S}from"./img-sba-Dxm7jSSe.js";import{f as A,r as d,d as C,u as D,L}from"./vendor-KNAfka6Y.js";import{a as b,A as w}from"./constants-ryXU4rhF.js";import{e as E}from"./util-function-C4ESYedQ.js";import{D as v}from"./browser-D4X4hviq.js";/* empty css *//* empty css */import{P as I}from"./PaddingWraps-Cypr6iTd.js";import{T as W}from"./Title-D70-46R2.js";import{D as M}from"./Dividers-vBb59lbJ.js";const rt=()=>{var u;const{postId:x}=A(),[n,j]=d.useState(null),f=C(),k=((u=D().state)==null?void 0:u.fromMain)||!1,[l,N]=d.useState(""),[c,_]=d.useState();return d.useEffect(()=>{N(sessionStorage.getItem("lang")||"ko"),(async()=>{try{const p=await b.get(`${w}/board/${x}`),r=await b.get(`${w}/manage/main`);j(p.data.data),_(r.data.data)}catch(p){console.error("Can't fetch the post:",p)}})()},[x]),d.useEffect(()=>{const h=()=>{const r=document.querySelectorAll(".bn-toggle-button");r.forEach((o,s)=>{o._toggleHandler&&o.removeEventListener("click",o._toggleHandler);const m=()=>{const e=o.closest(".bn-toggle-wrapper");if(e){const y=e.getAttribute("data-show-children")==="true"?"false":"true";e.setAttribute("data-show-children",y);const i=e.querySelector("p");i&&(i.style.display="block",i.style.visibility="visible",i.style.opacity="1",i.style.height="auto",i.style.overflow="visible")}};o._toggleHandler=m,o.addEventListener("click",m),console.log(`Notice í ê¸ ${s}ì ì´ë²¤í¸ 리ì¤ë ì¶ê°ë¨`)}),r.forEach(o=>{const s=o.closest(".bn-toggle-wrapper");if(s){const m=s.getAttribute("data-show-children"),e=s.querySelector("p");e&&(e.style.display="block",e.style.visibility="visible",e.style.opacity="1",e.style.height="auto",e.style.overflow="visible")}})},p=setTimeout(()=>{h();const r=new MutationObserver(()=>{h()});return document.querySelectorAll(".bn-container").forEach(s=>{r.observe(s,{childList:!0,subtree:!0})}),()=>r.disconnect()},500);return()=>clearTimeout(p)},[n]),n?t.jsxs(t.Fragment,{children:[t.jsx("title",{children:l==="en"?`SEOULCon-${c==null?void 0:c.textEn.title}`:`ìì¸ì½-${c==null?void 0:c.textKo.title}`}),t.jsx(P,{}),t.jsx(F,{children:t.jsx(K,{children:l==="en"?"Notice":"ê³µì§ì¬í"})}),t.jsx($,{children:t.jsx(q,{children:t.jsxs("div",{className:"content-box",children:[t.jsxs(H,{children:[t.jsx("div",{className:"title",children:l==="en"?n.titleEn:n.titleKo}),t.jsxs("div",{className:"box",children:[t.jsx("div",{className:"date",children:E(n.createdAt)}),t.jsx("div",{className:"seperate",children:"|"}),t.jsxs("div",{className:"views",children:[t.jsx("div",{className:"viewsText",children:l==="en"?"Count":"ì¡°íì"}),t.jsx("div",{children:":"}),t.jsx("div",{children:n.views})]})]})]}),t.jsx(B,{}),t.jsx(R,{children:t.jsx("div",{className:"bn-container bn-default-styles",children:t.jsx("div",{dangerouslySetInnerHTML:{__html:l==="en"?v.sanitize(n.contentEn,{ADD_TAGS:["video","audio","source","iframe","embed","details","summary"],ADD_ATTR:["src","controls","width","height","frameborder","allowfullscreen","allow","autoplay","muted","loop","preload","poster","data-text-alignment","data-content-type","data-level","data-background-color","data-text-color","style","class","open"]}):v.sanitize(n.contentKo,{ADD_TAGS:["video","audio","source","iframe","embed","details","summary"],ADD_ATTR:["src","controls","width","height","frameborder","allowfullscreen","allow","autoplay","muted","loop","preload","poster","data-text-alignment","data-content-type","data-level","data-background-color","data-text-color","style","class","open"]})}})})}),t.jsx(L,{to:"/notice",children:t.jsx(z,{onClick:()=>{f(k?"/":-1)},children:l==="en"?"Back":"ëìê°ê¸°"})})]})})}),t.jsx(T,{})]}):t.jsx("div",{children:"Loading..."})},$=a(S).withConfig({displayName:"NoticePage__Wrap",componentId:"sc-1jw84k4-0"})([""]),q=a(I).withConfig({displayName:"NoticePage__PaddingWrap",componentId:"sc-1jw84k4-1"})([".content-box{padding:40px 20px;background-color:#ffffff;border:2px solid #000000;box-shadow:0px 4px 1px rgba(0,0,0,0.8);}margin-bottom:100px;@media (min-width:768px){margin-bottom:200px;.content-box{padding:40px;}}@media (min-width:1440px){max-width:1200px;}"]);a(W).withConfig({displayName:"NoticePage__Title",componentId:"sc-1jw84k4-2"})(["@media (min-width:768px){line-height:60px;}"]);const B=a(M).withConfig({displayName:"NoticePage__Divider",componentId:"sc-1jw84k4-3"})(["border-bottom:2px solid #1f2328;"]),H=a.div.withConfig({displayName:"NoticePage__List",componentId:"sc-1jw84k4-4"})([".title{",";}.box{display:flex;",";margin-top:8px;gap:5px;font-weight:500;}
1.views{display:flex;gap:2px;}"],g("primary",2),g("primary",6)),R=a.div.withConfig({displayName:"NoticePage__Contents",componentId:"sc-1jw84k4-5"})(['position:relative;padding-bottom:32px;p{line-height:1.5 !important;min-height:1.5em !important;white-space:pre-wrap !important;}p:empty,p:has(br:only-child){display:block !important;height:1.5em !important;}p:empty::before{content:"\\00a0" !important;visibility:hidden !important;}br{display:block !important;margin:6px 0 !important;content:"" !important;}img{max-width:100% !important;height:auto !important;}video{max-width:100% !important;height:auto !important;}iframe{max-width:100% !important;height:auto !important;aspect-ratio:16 / 9 !important;}h1,h2,h3,h4,h5,h6{margin:16px 0 8px 0 !important;font-weight:bold !important;}ul,ol{margin:12px 0 !important;padding-left:24px !important;}li{margin:4px 0 !important;line-height:1.5 !important;}blockquote{margin:12px 0 !important;padding:12px 16px !important;border-left:4px solid #ccc !important;background-color:#f9f9f9 !important;}code{background-color:#f1f1f1 !important;padding:2px 4px !important;border-radius:3px !important;font-family:monospace !important;}input[type="checkbox"]{margin-right:8px !important;}[data-text-alignment="left"]{text-align:left !important;}[data-text-alignment="center"]{text-align:center !important;}[data-text-alignment="right"]{text-align:right !important;}@media (min-width:768px){padding-bottom:60px;}']),z=a.button.withConfig({displayName:"NoticePage__Button",componentId:"sc-1jw84k4-6"})(["",";width:100%;height:50px;background:#363c45;color:#f9f8f8;cursor:pointer;border:none;&:hover{background:#1f2328;border:none;transition:0.3s;}@media (min-width:768px){width:188px;}"],g("primary",7)),F=a.div.withConfig({displayName:"NoticePage__SubTop",componentId:"sc-1jw84k4-7"})(["width:100%;margin-top:104px;padding:110px 0px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:url('/sub_back.png') no-repeat top center;background-size:cover;background-position:center;"]),K=a.h1.withConfig({displayName:"NoticePage__SubTopTitle",componentId:"sc-1jw84k4-8"})(["",";font-weight:700;color:#000;margin:0;"],g("primary",1));export{rt 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.