1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3026],{9766:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/class-material/history/common-learning",function(){return n(12632)}])},64194:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var o=n(26042),r=n(69396),s=n(29815),a=n(67294),i=n(11163),d=n(40913),l=n(87420);function c(e,t){var n=(0,a.useRef)(!1),c=(0,i.useRouter)(),u=(0,d.qe)().sendUrlLog,f=(0,l.Vd)(),C=f.selectedCurriculumValue,v=f.selectedGrade,k=f.selectedSemester,p=f.currentMainMenuCode,m=f.currentSubMenuCode,I=(0,a.useMemo)((function(){if(!Array.isArray(e)||e.length<1||1===e.length)return 0;var n=null===e||void 0===e?void 0:e.findIndex((function(e){return(e.textId||e.textbookId||e.dpDetailId||e.classMaterialsId)===t}));return"CD13116"===p&&"CD13120"===m&&n<0?1:n<0?0:n}),[e,t,p,m]),g=(0,a.useMemo)((function(){if(Array.isArray(e)&&!(e.length<1)){var n,o=null===e||void 0===e?void 0:e.find((function(e){return(e.textId||e.textbookId||e.dpDetailId||e.classMaterialsId)===t}));return o||"CD13116"!==p||"CD13120"!==m?null!==o&&void 0!==o?o:e[0]:null!==(n=e[1])&&void 0!==n?n:e[0]}}),[e,t,p,m]),h=(0,a.useCallback)((function(e){var t=new URLSearchParams((0,r.Z)((0,o.Z)({},c.query),{id:e.textId||e.textbookId||e.dpDetailId||e.classMaterialsId}));t.delete("classMaterialsDetailId"),c.replace({query:t.toString()},void 0,{shallow:!0})}),[c]);return(0,a.useEffect)((function(){if(e){var t=document.querySelectorAll("ul.booklist > li");I<0||0===t.length||(t.forEach((function(e){return e.classList.remove("selected")})),(0,s.Z)(t)[I].className="selected")}}),[e,I]),(0,a.useEffect)((function(){g&&(n.current=!1)}),[g]),(0,a.useEffect)((function(){if(g&&!n.current){n.current=!0;var e=g.textId||g.textbookId||g.dpDetailId||g.classMaterialsId,t=new URLSearchParams({id:e,gradeCd:v,semesterCd:k,courseCd:C}),o=c.pathname.replace("/[id]",""),r=d.TA.some((function(e){return o.startsWith(e)}))?"?id=".concat(t.get("id")):"?".concat(t.toString());u("".concat(o).concat(r))}}),[c,g,v,k,C,u]),{selectedBook:g,selectedBookIndex:I,changeBook:h}}},12632:function(e,t,n){"use strict";n.r(t);var o=n(85893),r=n(67294),s=n(11163),a=n(95853),i=n(52122),d=n(80250),l=n(32296),c=n(48207),u=n(64194),f=n(53885),C=n(70787);t.default=(0,i.Z)(a.Z,{guide:{contents:['<span class="colorPink">\ucd5c\uace0 \uc218\uc900\uc758 \uc5ed\uc0ac \ub0b4\uc2e0\ub300\ube44 \uc790\ub8cc</span>\uc640 \uae30\ubcf8 \uac1c\ub150\uc744 \uc775\ud790 \uc218 \uc788\ub294 \ub2e4\uc591\ud55c \uc720\ud615\uc758 \ubb38\uc81c \ud480\uc774, \ub2e8\uc6d0\ud3c9\uac00 \ubb38\uc81c\uc9c0\uac00 \uc81c\uacf5\ub429\ub2c8\ub2e4.'],hasCatsTag:!0}})((function(e){var t,n=e.selectedClassSubject,a=e.selectedCurriculum,i=e.selectedGrade,v=e.selectedSemester,k=(0,s.useRouter)(),p=(0,c.Z)(),m=p.hasLoggedIn,I=p.openNonLoginUserConfirmModal,g=(0,l.ZP)(),h=g.hasPermissionOfClassMaterials,b=g.openHasNotPermissionsUserConfirmModal,M=(0,C.w6c)({courseCd:a,gradeCd:i,semesterCd:v,subjectCd:n,dpScreenTypeCd:"CD14911",dpTypeCd:"CD13201"}).data,x=(0,r.useMemo)((function(){return(null===M||void 0===M?void 0:M.list.filter((function(e){return"Y"===e.dpYn})))||[]}),[M]),w=(0,u.Z)(x,null===(t=k.query)||void 0===t?void 0:t.id),D=w.selectedBook,_=(w.selectedBookIndex,w.changeBook,(0,C.caV)({classMaterialsId:(null===D||void 0===D?void 0:D.classMaterialsId)||(null===D||void 0===D?void 0:D.dpDetailId),courseCd:a,gradeCd:i,semesterCd:v,subjectCd:n,textbookTypeCd:"CD11599"},!0).data),y=(0,f.Z)(null===_||void 0===_?void 0:_.list),S=y.tableOfContentsTree,T=y.sectionsMapOfBook,Z=(0,r.useCallback)((function(e){if(m)if(h(n)){var t=new URLSearchParams({isMarketTextbook:"Y",detailTextId:(null===e||void 0===e?void 0:e.textbookId)||(null===e||void 0===e?void 0:e.dpDetailId)});window.open("".concat(window.location.origin,"/textbook-previewer?").concat(t.toString()),"_blank")}else b();else I()}),[m,n,I,h,b]);return x.length<1?null:(0,o.jsx)(o.Fragment,{children:D&&_&&(0,o.jsx)(d.Z,{book:D,title:_.classMaterialNm,tableOfContentsTree:S,sectionsMapOfBook:T,openTextbookViewer:Z})})}))}},function(e){e.O(0,[9412,5675,935,5454,1013,5853,2005,7005,451,905,2044,8274,9558,3954,9774,2888,179],(function(){return t=9766,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.