PageSourceSearch

https://www.machuda.kr/_next/static/chunks/pages/partner/[partnerN…/written/exam-6f80f089c15c5b23.js

js machuda.kr collected 2026-10-05 17:58:41 UTC 4,640 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:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a6da6b10-4674-4e04-90bf-b4d25080763a",e._sentryDebugIdIdentifier="sentry-dbid-a6da6b10-4674-4e04-90bf-b4d25080763a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[273],{68724:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/partner/[partnerName]/[subjectName]/written/exam",function(){return n(10174)}])},95363:function(e,t,n){"use strict";n.d(t,{i2:function(){return l},iz:function(){return d}});var r=n(4480),s=n(86996),o=(n(11163),n(67294)),i=n(22293),a=n(50345),u=n(96637),c=n(66062);function l(e){let{keys:t,loadPrev:n=!0,shouldShuffleOptions:s=!1,loadProblem:a,enabled:l=!0}=e;const[d,f]=(0,o.useState)(!1),b=(0,r.Zl)(i.m3),m=(0,c.Z)({queryKey:["pastExamProblemListQuery",...t],queryFn:async e=>{let{signal:t}=e;return a(t)},refetchOnWindowFocus:!1,refetchOnReconnect:!1,enabled:l&&t.every(Boolean)});return(0,o.useEffect)((()=>{if(m.isSuccess&&!m.isFetching){if(0===m.data.length)return void b([]);const e=m.data.map((e=>{var t,r;const o=null!==(r=null===(t=e.optionList)||void 0===t?void 0:t.map(((t,n)=>({number:n+1,content:t,solution:e.optionSolutionList?e.optionSolutionList[n]:""}))))&&void 0!==r?r:[];var i;return{problem:{...e},solvingInfo:{myAnswer:n&&null!==(i=e.myAnswer)&&void 0!==i?i:0,status:0,mySolution:""},optionList:s?(0,u.Sy)(o):o}}));b(e),f(!0)}}),[n,m.data,m.isFetching,m.isSuccess,m.isLoading,b,s]),{...m,isProblemReady:d}}const d=e=>{const{yearFilter:t,subjectFilter:n,levelFilter:r,subjectName:o,keyword:i,enabled:l=!0}=e,d="string"===typeof o?o:"",f=e=>{const t={"\uc0c1":"3","\uc911":"2","\ud558":"1"};if("string"===typeof e?e=e.split(",").map((e=>e.trim())):Array.isArray(e)||(e=[]),!e.length||e.includes("\uc804\uccb4"))return["1","2","3"];const n=e.map((e=>t[e])).filter((e=>void 0!==e));return n.length>0?n:["1","2","3"]};return(0,c.Z)({queryKey:["searchPracticalProblem",o,i,t,n,r],queryFn:async e=>{let{signal:o}=e,u=[];if("\uc804\uccb4"===t){const e=(new Date).getFullYear()%100;u=Array.from({length:e-7+1},((e,t)=>String(7+t).padStart(2,"0")))}else if(t&&"\uc804\uccb4"!==t){const[e,n]=t.split("-"),r=[];for(let t=parseInt(e,10);t<=parseInt(n,10);t++)r.push(t.toString().slice(-2));u=r}const c={keyword:i,years:u,levels:f(r),chapters:(null!==n&&void 0!==n?n:[]).map((e=>e.toString()))},{response:l}=await(0,a.e$)("/problem/search?subjectName=".concat(encodeURIComponent((0,s.aF)(d))),c,o);return l},refetchOnWindowFocus:!1,refetchOnReconnect:!1,enabled:l&&Boolean(i)&&(0,u.S5)(o)})}},74893:function(e,t,n){"use strict";var r=n(67294),s=n(67312);t.Z=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=(0,r.useRef)(!1);(0,r.useEffect)((()=>{t&&(n.current||(s.j(e),n.current=!0))}),[t,e])}},10174:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var r=n(85893),s=n(67294),o=n(11163),i=n(95363),a=n(50345),u=n(68151),c=n(84704),l=n(51302),d=n(74893),f=n(80674),b=n(27013);function m(){const e=(0,o.useRouter)(),{pastExamId:t,title:n,subjectName:m}=e.query,{isProblemReady:p}=(0,i.i2)({keys:[m,t],loadProblem:"\ub79c\ub364 \ubaa8\uc758\uace0\uc0ac"===n?async()=>{const{response:e}=await(0,a.uL)("pastProblem/cbt/new?subjectName=".concat(m));return e}:async()=>{const{response:e}=await(0,a.uL)("pastProblem/list?pastExamId=".concat(t));return e},loadPrev:!1,shouldShuffleOptions:!0}),y=(0,s.useMemo)((()=>window.innerWidth>1366),[]);return(0,d.Z)("\uae30\ucd9c \ubb38\uc81c \uc2dc\ud5d8 \ubaa8\ub4dc \ud398\uc774\uc9c0 \ubdf0"),p?!u.N&&y?(0,r.jsx)(l.default,{}):(0,r.jsx)(c.default,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.Z,{}),(0,r.jsx)(b.Z,{})]})}},27013:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(85893),s=n(467),o=n(79639);function i(){return(0,r.jsx)(s.Z,{className:"bg-[rgba(35,35,35,0.7)]",loadingComponent:(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center gap-[2rem]",children:[(0,r.jsx)("div",{className:"text-Title2 font-bold text-White",children:"\ubb38\uc81c\ub97c \ubd88\ub7ec\uc624\ub294 \uc911 ..."}),(0,r.jsx)(o.Z,{})]})})}},80674:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(85893),s=n(9008),o=n.n(s);n(67294);function i(){return(0,r.jsx)(o(),{children:(0,r.jsx)("meta",{name:"robots",content:"noindex"})})}}},function(e){e.O(0,[1265,9559,4819,7738,7213,1470,779,532,1302,4704,2888,9774,179],(function(){return t=68724,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.