1import{a as b,t as I,v as w,w as D,r as d,j as a,c as E,x as j,U as u,C as r,R as P,A as S}from"./index-KBQjLg1z.js";import{s as T}from"./index.module-BjS_kccu.js";import{B as k}from"./Button-BXEpNmxL.js";import y from"./QuickQnAWidget-vrHgzhBR.js";const t=E.bind(T),A="cate",B="nm",L="faqCtgryId";function G(){const{id:f}=b(),[n]=I(),m=w(),[C]=D(),[s,N]=d.useState(),[q,v]=d.useState(),l=n.get(A)??"",i=n.get(L)??"",p=n.get(B)??"",x=()=>{const c=n.get("page");m(`${j}/support/faq?page=${c}&cate=${l}&faqCtgryId=${i}`),window.scrollTo({top:0,left:0,behavior:"auto"})},$=async(c,o)=>{const F={allYn:u.isNullOrEmpty(l)?r.yes:r.no},e=await P.Api.get(`${S.mgmtFaq.detail}${c}/${o}`,F);if(e.code!==r.apiSuccess||u.isNullOrEmpty(e==null?void 0:e.content)){alert("ê²ìê¸ì´ ì¡´ì¬íì§ ììµëë¤. 목ë¡ì¼ë¡ ì´ëí©ëë¤."),x();return}N(e.content.detailFaq),v(e.content.faqListByCtgry)},g=c=>{const o=c?s.nextFaqId:s.prevFaqId,h=n.get("page");o&&(m(`${j}/support/faq/${o}?page=${h}&cate=${l}&faqCtgryId=${i}${p&&l?`&nm=${p}`:r.empty}`),window.scrollTo({top:0,left:0,behavior:"auto"}))};return d.useEffect(()=>{$(f,i)},[f,i]),a.jsx("div",{className:t("faq","inner"),children:s&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:t("faq-detail"),children:[a.jsxs("section",{className:t("faq-detail-left"),children:[a.jsxs("div",{className:t("faq-detail-head"),children:[a.jsx("span",{children:"Q. "}),a.jsx("h3",{children:s.faqTitl})]}),a.jsxs("div",{className:t("faq-detail-cont"),children:[a.jsx("b",{className:t("cont-badge"),children:"A."}),a.jsx("div",{dangerouslySetInnerHTML:{__html:s.faqRplyCtnt},className:t("faq-cont")}),C&&a.jsx(y,{faqListByCtgry:q})]}),a.jsxs("ul",{className:t("faq-detail-bottom"),children:[a.jsxs("li",{onClick:()=>g(!0),children:[a.jsx("i",{className:t("faq-next")}),a.jsx("span",{children:"ë¤ìê¸"}),a.jsx("p",{"data-placeholder":"ë¤ìê¸ì´ ììµëë¤.",children:s.nextFaqTitl})]}),a.jsxs("li",{onClick:()=>g(!1),children:[a.jsx("i",{className:t("faq-prev")}),a.jsx("span",{children:"ì´ì ê¸"}),a.jsx("p",{"data-placeholder":"ì´ì ê¸ì´ ììµëë¤.",children:s.prevFaqTitl})]})]})]}),a.jsx("section",{className:t("faq-detail-right"),children:a.jsx(y,{faqListByCtgry:q})})]}),a.jsx("div",{className:t("faq-button-wrap"),children:a.jsx(k,{addClass:t("faq-list-btn"),onClick:x,children:"목ë¡"})})]})})}export{G 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.