PageSourceSearch

https://likelion.net/_next/static/chunks/pages/courses/technology/…/[resourceId]-2e01c0975743f812.js

js likelion.net collected 2026-10-03 20:31:19 UTC 5,953 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="92892f91-52a9-4786-9b31-30bfc673a82c",e._sentryDebugIdIdentifier="sentry-dbid-92892f91-52a9-4786-9b31-30bfc673a82c")}catch(n){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5995],{11550:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/courses/technology/[id]/[chapterId]/[resourceId]",function(){return n(96349)}])},96349:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return D}});var s,o,t=n(85893),c=n(32876),i=n(27484),a=n.n(i),u=n(3790),l=n(3305),d=n(24011),f=n(78903),m=n(94165),p=n(47568),h=n(20414),g=n(36492),b=n(87066),y=n(79379),x=(s=(0,p.Z)(function(e){var r;return(0,h.__generator)(this,function(n){switch(n.label){case 0:return[4,b.Z.get("".concat(window.apiEndpoint,"/my/progress/v1/").concat(e))];case 1:return r=n.sent(),[2,(0,y._b)(r.data,y.xb.CAMEL)]}})}),function(e){return s.apply(this,arguments)}),w=(o=(0,p.Z)(function(e,r){var n;return(0,h.__generator)(this,function(s){switch(s.label){case 0:return[4,b.Z.get("".concat(window.apiEndpoint,"/my/progress/v3/kdt-progresses/curriculums?course_id=").concat(e,"&basic_course_id=").concat(r))];case 1:return n=s.sent(),[2,(0,y._b)(n.data,y.xb.CAMEL)]}})}),function(e,r){return o.apply(this,arguments)}),v=n(54531),I=n(5822),_=n(96486),C=n(11163),j=n(67294),E=n(96759),N=n(58696),k=n(39703),D=function(){var e,r,n,s=(0,C.useRouter)(),o=(0,j.useMemo)(function(){var e,r=s.query,n=r.id,o=r.chapterId;return{courseId:n,chapterId:o,resourceId:r.resourceId,randomCourseId:r.randomCourseId}},[s]),i=o.courseId,p=o.resourceId,h=o.randomCourseId,b=(0,E.aC)(),y=b.isSigned,D=b.profile,M=b.role,O=(0,m.B)(h||i,y).data,R=(0,g.a)({queryKey:["progress",i],queryFn:function(){return h?w(h,i):x(i)}}),T=R.data,Z=R.refetch,A=R.isLoading,P=(0,I.n)(i,p,T),S=P.klassInfo,L=P.playList,q=P.curriculum,U=P.curAllResourceIdx,Y=L.curResource,B=L.nextResource,H=(null==D?void 0:D.id)?String(D.id):void 0,X=(null==T?void 0:T.courseType)==="kdc"||(null==T?void 0:T.courseType)==="kdc_employer_training",F=(0,f.U)(p,i,h,H,X).data,K=(0,k.R)(),W=K.isDialogOpened,z=K.onDialogOpenHandler,G=K.onDialogCloseHandler,J=(0,d.W)(),Q=(0,j.useCallback)(function(){if("bc"===s.query.from){window.location.href="".concat(window.bootcampDomain,"/my/courses");return}return s.replace("/my/courses").then(function(){return window.scrollTo(0,0)})},[s]),V=function(e,r){var n=s.query,o=n.from,t=n.randomCourseId;if(e&&r){var c=new URLSearchParams;"bc"===o&&c.set("from","bc"),t&&c.set("randomCourseId",String(t));var a="/courses/technology/".concat(i,"/").concat(e,"/").concat(r),u=c.toString(),l=u?"".concat(a,"?").concat(u):a;s.push(l,l)}},$=O&&"".concat(a()(O.startAt).format("YY.MM.DD.")," ~ ").concat(a()(O.expireAt).format("YY.MM.DD."));(0,j.useEffect)(function(){G()},[p]);var ee=(0,j.useRef)(void 0);(0,j.useEffect)(function(){ee.current&&ee.current!==p&&Z(),ee.current=p},[p,Z]),(0,j.useEffect)(function(){s.beforePopState(function(e){var r=e.url,n=e.as;return!(!r.includes("randomCourseId")&&r.includes("/courses/technology/[id]/[chapterId]/[resourceId]")||n.includes("#"))||(s.replace("/my/courses","/my/courses",{shallow:!0}).then(function(){return window.scrollTo(0,0)}),!1)})},[s]);var er=(0,j.useState)(!1),en=er[0],es=er[1],eo=y&&(null==T?void 0:T.isOffline)===!0;return(0,j.useEffect)(function(){eo&&es(!0)},[eo]),(0,l.M)({isAccessInvalid:Y&&!Y.openStatus,redirectUrl:"/",message:"나중에 영상이 공개 될 예정입니다."}),(0,l.M)({isAccessInvalid:O&&!O.havePermission,redirectUrl:"/my/courses",message:"수강권한이 없습니다."}),(0,t.jsxs)(N.Z,{children:[(0,t.jsx)(c.Z,{isOpen:en,onClose:function(){es(!1),s.replace("/")},title:"접근 불가",message:"오프라인 강의는 온라인으로 수강할 수 없습니다.",hideCloseIcon:!0}),A&&(0,t.jsx)(u.Z,{}),O&&O.havePermission&&T&&S&&L&&q&&$&&D&&(0,t.jsx)(v.Z,{profile:D,role:M,clientIp:J.data,courseId:i,resourceId:p,progress:T,refetchProgress:Z,klassInfo:S,playList:L,curriculum:q,curAllResourceIdx:U,klassPermission:O,goToMyCourses:
1Q,handleResourceRouter:V,onDialogOpenHandler:z,randomCourseId:h,isCompleted:null!==(e=null==F?void 0:F.isCompleted)&&void 0!==e?e:null==Y?void 0:Y.isCompleted}),B&&W&&(null==Y?void 0:Y.type)==="video"&&(0,t.jsx)(c.Z,{transition:!1,isOpen:W,onClose:G,customButtonEvent:function(){G(),V(null==B?void 0:B.chapterId,null==B?void 0:B.id)},title:"다음 스텝",message:(0,t.jsxs)("div",{className:"rounded-md bg-gray-100 p-4",children:[(0,t.jsxs)("h4",{className:"text-xs text-gray-500 xl:text-sm",children:["챕터 ",B.chapterOrder,"-",B.order]}),(0,t.jsx)("p",{className:"mt-1 text-sm font-bold xl:text-base",children:B.title})]}),buttonText:"다음 스텝보기",buttonClassName:"bg-primary-normal text-sm text-white border-none font-semibold"}),(0,_.isEmpty)(B)&&W&&(0,t.jsx)(c.Z,{transition:!1,isOpen:W,onClose:G,title:"마지막 스텝",message:"마지막 스텝입니다.",customButton:(0,t.jsxs)("div",{className:"flex w-full gap-2",children:[(0,t.jsx)("button",{className:"w-full whitespace-nowrap rounded-md border border-primary-normal py-3",onClick:Q,children:(0,t.jsxs)("span",{className:"text-sm font-semibold text-primary-normal",children:[(0,t.jsx)("p",{className:"lg:hidden",children:"내 강의실 가기"}),(0,t.jsx)("p",{className:"hidden lg:block",children:"내 강의실로 돌아가기"})]})}),(0,t.jsx)("button",{className:"w-full whitespace-nowrap rounded-md bg-primary-normal py-3",onClick:G,children:(0,t.jsx)("span",{className:"text-sm font-semibold text-white",children:"다시 복습하기"})})]})})]})}}},function(e){e.O(0,[8151,5826,3365,594,4232,9317,5675,4653,6492,5966,3991,7536,2004,7303,9911,6929,8146,3703,949,584,6227,9774,2888,179],function(){return e(e.s=11550)}),_N_E=e.O()}]);

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.