1import{_ as j}from"./header.8bbe9232.js";import{_ as z}from"./drawer.c9759867.js";import{_ as w,g as O,h as N,u as P,k as F,L as X,M as K}from"./entry.4f696db5.js";import{r as S,h,u as p,G as _,H as l,X as x,$ as T,U as C,R as g,a as G,Q as I,L as A,_ as E,Z as Q,Y as $,K as R,w as W,I as v,F as U,ad as M,M as Z}from"./swiper-vue.ec62e897.js";import{_ as H}from"./nuxt-link.1927493c.js";import{_ as q}from"./sticky.fe42f227.js";import{_ as J}from"./footer.f1847319.js";import{u as tt}from"./probability.b77a011b.js";import"./index.946ab93b.js";import"./sign.318db0b4.js";const et={class:"text"},st={class:"shadow"},it={class:"gradient"},at={__name:"visual",setup(L){const{sitemap:i}=O(),d=N(),{isMobile:c}=P(),s=S({activeCategoryText:h(()=>d.path.split("/")[1]),activeCategory:h(()=>i.find(u=>u.name===s.activeCategoryText)),visualText:h(()=>{var u;return(u=s.activeCategory)==null?void 0:u.text})});return(u,r)=>{var n;return p(c)?g("",!0):(_(),l("div",{key:0,class:C(["the-visual",(n=p(s).activeCategory)==null?void 0:n.name])},[x("h1",et,[x("div",st,T(p(s).visualText),1),x("div",it,T(p(s).visualText),1)])],2))}}},nt=w(at,[["__scopeId","data-v-0b2fbf35"]]);const ot=["depth"],ct=["depth"],_t=["href"],rt=["is-open"],lt={class:"depth3"},pt={__name:"item",props:{navi:{type:Object,default:()=>{}}},setup(L){const i=L,d=G(null),c=S({isSearchItem:h(()=>{var r,n;return(n=(r=i.navi)==null?void 0:r.path)==null?void 0:n.startsWith("/search")}),itemheight:h(()=>{switch(i.navi.depth){case 2:return 47;case 3:return 32;default:return 0}}),itemsPaddingBlock:h(()=>{switch(i.navi.depth){case 3:return 16;default:return 0}}),maxHeight:h(()=>{var r,n;return(r=i.navi.items)!=null&&r.length?((n=i.navi.items)==null?void 0:n.length)*c.itemheight+c.itemsPaddingBlock:0})}),s=()=>{i.navi.isOpen=!i.navi.isOpen},u=r=>{const n=d.value,a=document.createElement("span"),t=Math.max(n.clientWidth,n.clientHeight),e=t/2;a.style.width=a.style.height=`${t}px`,a.style.left=`${r.clientX-n.offsetLeft-e}px`,a.style.top=`${r.clientY-n.offsetTop-e}px`,a.classList.add("ripple");const o=n.getElementsByClassName("ripple")[0];o&&o.remove(),n.appendChild(a)};return(r,n)=>{var e,o,m;const a=H,t=V;return _(),l("div",{class:"lnb-item",depth:i.navi.depth},[x("div",{ref_key:"itemRef",ref:d,class:C(["item",{active:i.navi.isActive}]),depth:i.navi.depth},[(e=i.navi.path)!=null&&e.startsWith("http")?(_(),l("a",{key:0,class:"new-window",href:i.navi.path,target:"_blank"},T(i.navi.text),9,_t)):(_(),I(a,{key:1,to:i.navi.path,onClick:u},{default:A(()=>[E(T(i.navi.text)+" "+T(p(c).isSearchItem?" ("+i.navi.docCount+")":""),1)]),_:1},8,["to"])),!p(c).isSearchItem&&((o=i.navi.items)!=null&&o.length)?(_(),l("button",{key:2,"is-open":i.navi.isOpen,class:"toggle-arrow",onClick:s}," íì ë©ë´ ì´ê¸° ",8,rt)):g("",!0)],10,ct),!p(c).isSearchItem&&((m=i.navi.items)!=null&&m.length)&&i.navi.isOpen?(_(),l("div",{key:0,class:"items",style:Q({"--max-height":`${p(c).maxHeight}px`})},[x("ul",lt,[(_(!0),l($,null,R(i.navi.items,b=>(_(),I(t,{navi:b},null,8,["navi"]))),256))])],4)):g("",!0)],8,ot)}}},V=w(pt,[["__scopeId","data-v-c723ddcc"]]);const dt=["depth"],ht={class:"inner"},ut=["href"],mt=["depth"],vt={class:"inner"},ft={class:C(["navi","active"])},yt={__name:"mobile",props:{depth:{type:Number,default:0},naviList:{type:Array,default:[]},isTitle:{type:Boolean,default:!1},titleText:{type:String,default:""}},setup(L){const i=L;F();const d=N(),c=G(null),{x:s}=X(c,{behavior:"smooth"}),{width:u}=K(c);return W(()=>d.path,()=>{if(c.value){const r=c.value.getElementsByClassName("active");if(!(r!=null&&r.length))return;setTimeout(()=>{const n=r[0];if(!n)return;const a=[Math.round(s.value),Math.round(u.value+s.value)],t=[Math.round(n.offsetLeft),Math.round(n.offsetWidth+n.offsetLeft)];a[0]>t[0]&&(s.value=t[0]-20),a[1]<t[1]&&(s.value=t[1]-u.value+20)})}}),(r,n)=>{const a=H;return i.isTitle?(_(),l("div",{key:1,class:"lnb-mobile",depth:i.depth},[x("div",vt,[x("div",ft,[v(a,null,{default:A(()=>[E(T(i.titleText),1)]),_:1})])])],8,mt)):(_(),l($,{key:0},[i.naviList.length?(_(),l("div",{key:0,class:"lnb-mobile",depth:i.depth,ref_key:"naviListRef",ref:c},[x("div",ht,[(_(!0),l($,null,R(i.naviList,t=>{var e;return _(),l("div",{class:C(["navi",{active:t.isActive}])},[(e=t.path)!=null&&e.startsWith("http")?(_(),l("a",{key:0,class:"new-window",href:t.path,target:"_blank"},T(t.text),9,ut)):(_(),I(a,{key:1,to:t.path},{default:A(()=>[E(T(t.text),1)]),_:2},1032,["to"]))],2)}),256))])],8,dt)):g("",!0)],64))}}},xt=w(yt,[["__scopeId","data-v-71f982a8"]]);const bt={class:"the-lnb"},gt={key:0,class:"depth2"},Tt={__name:"lnb",setup(L){const{sitemap:i}=O(),d=N(),{isMobile:c}=P(),s=S({activeDepth1Text:h(()=>d.path.split("/")[1]),activeDepth2Text:h(()=>d.path.split("/")[2]),activeDepth3Text:h(()=>d.path.split("/")[3]),activeDepth1:h(()=>i.find(a=>a.name===s.activeDepth1Text)),depth2List:h(()=>{var a;return(a=s.activeDepth1)==null?void 0:a.items.filter(t=>!t.terminated)}),activeDepth2:h(()=>{var a;return(a=s.depth2List)==null?void 0:a.find(t=>t.isActive)}),depth3List:h(()=>{var a;return(a=s.activeDepth2)==null?void 0:a.items}),activeDepth3:h(()=>{var a;return(a=s.depth3List)==null?void 0:a.find(t=>t.isActive)}),depth4List:h(()=>{var a;return(a=s.activeDepth3)==null?void 0:a.items})}),u=["news","event","guide","ranking","crusade","sss","media","community","help"],r=["mypage","policy"],n=(a,t=1)=>
1{a==null||a.forEach(e=>{var o;t++,e.depth=t,t===2&&(e.name==="index"?e.isActive=s.activeDepth2Text===void 0:e.name==="probability2"?e.isActive=s.activeDepth2Text==="probability":e.isActive=e.name===s.activeDepth2Text,e.isOpen=e.name===s.activeDepth2Text,e.name==="probability2"&&(e.isOpen=s.activeDepth2Text==="probability")),s.activeDepth1Text==="guide"&&(t===3&&(e.isActive=e.itemIds.includes(Number(s.activeDepth3Text)),e.isOpen=e.itemIds.includes(Number(s.activeDepth3Text))),t===4&&(e.isActive=e.articleId==s.activeDepth3Text)),(o=e.items)!=null&&o.length&&n(e.items,t),t--})};return W(()=>d.path,()=>{n(s.depth2List)}),U(()=>{n(s.depth2List)}),(a,t)=>{const e=V,o=xt;return _(),l("nav",bt,[p(c)?g("",!0):(_(),l("div",gt,[(_(!0),l($,null,R(p(s).depth2List,m=>(_(),I(e,{navi:m,key:m},null,8,["navi"]))),128))])),p(c)?(_(),l($,{key:1},[u.includes(p(s).activeDepth1Text)?(_(),l($,{key:0},[v(o,{depth:2,naviList:p(s).depth2List},null,8,["naviList"]),v(o,{depth:3,naviList:p(s).depth3List},null,8,["naviList"]),v(o,{depth:4,naviList:p(s).depth4List},null,8,["naviList"])],64)):g("",!0),r.includes(p(s).activeDepth1Text)?(_(),l($,{key:1},[v(o,{depth:2,isTitle:!0,titleText:p(s).activeDepth1.text},null,8,["titleText"]),v(o,{depth:3,naviList:p(s).depth2List},null,8,["naviList"])],64)):g("",!0)],64)):g("",!0)])}}},$t=w(Tt,[["__scopeId","data-v-f9f5a2a7"]]);const Lt={class:"layout-lnb"},kt={class:"the-container"},wt={class:"the-contents"},Dt={__name:"lnb",async setup(L){var a;let i,d;const c=O(),s=tt(),u=S({probabilityBoardCategories:[{boardCategoryId:1,boardCategoryName:"ìì´í
íë¥ ",articles:[]}]}),r=async()=>{try{const{data:t,code:e}=await c.getGuideTree();if(e!==200)throw e;return t}catch{}},n=async()=>{try{const{data:t,code:e}=await s.getProbabilityList();if(e!==200)throw e;t.forEach(o=>{u.probabilityBoardCategories[0].articles.push(o)})}catch{}};if(!c.isGuideLnb){const t=([i,d]=M(()=>r()),i=await i,d(),i);if([i,d]=M(()=>n()),await i,d(),t.length>0){t.filter(o=>o.boardSlug!=="guideProbability").forEach(({boardSlug:o,boardCategories:m})=>{const b=m.map(({boardCategoryId:y})=>y),f=c.getBoardBySlug(o);f.boardCategories=b,f.items=m==null?void 0:m.filter(({articles:y})=>y&&y.length).map(({boardCategoryId:y,boardCategoryName:k,articles:B})=>({boardCategoryId:y,text:k,articleId:0,path:`${f.path}/${B[0].articleId}`,itemIds:B.map(({articleId:D})=>D),items:B.map(({articleId:D,title:Y})=>({text:Y,path:`${f.path}/${D}`,articleId:D}))}))});const e=c.getBoardBySlug("guideProbability2");e.items=(a=u.probabilityBoardCategories)==null?void 0:a.filter(({articles:o})=>o&&o.length).map(({boardCategoryId:o,boardCategoryName:m,articles:b})=>({boardCategoryId:o,text:m,articleId:0,path:`${e.path}/${b[0].probabilityId}`,itemIds:b.map(({probabilityId:f})=>f),items:b.map(({probabilityId:f,filenameKR:y,filename:k})=>({text:y,path:`${e.path}/${f}`,articleId:f,filename:k}))}))}c.isGuideLnb=!0}return(t,e)=>{const o=j,m=z,b=nt,f=$t,y=q,k=J;return _(),l("div",Lt,[v(o),v(m),v(b),x("div",kt,[v(f),x("div",wt,[Z(t.$slots,"default",{},void 0,!0)])]),v(y),v(k)])}}},Pt=w(Dt,[["__scopeId","data-v-4a17290f"]]);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.