PageSourceSearch

https://cloze-gpt.vercel.app/_next/static/chunks/pages/course/[courseTopic]-4eebe30218fe7ddc.js

js cloze-gpt.vercel.app collected 2026-10-03 05:17:34 UTC 9,193 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[391],{7036:function(e,r,t){"use strict";var s=t(4836);r.Z=void 0;var o=s(t(4938)),n=t(5893),i=(0,o.default)((0,n.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");r.Z=i},4117:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/course/[courseTopic]",function(){return t(3048)}])},5876:function(e,r,t){"use strict";var s=t(5893),o=t(4184),n=t.n(o),i=t(7294),a=t(175),l=t.n(a),c=t(7036),u=t(8608);function d(e,r){if(null==e)return{};var t,s,o=function(e,r){if(null==e)return{};var t,s,o={},n=Object.keys(e);for(s=0;s<n.length;s++)t=n[s],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(s=0;s<n.length;s++)t=n[s],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}r.Z=function(e){var r=e.small,t=e.value,o=e.noLabel,a=e.labelPosition,f=e.animated,p=e.isBackgroundWhite,x=e.isAlwaysCircularProgress,m=d(e,["small","value","noLabel","labelPosition","animated","isBackgroundWhite","isAlwaysCircularProgress"]),h=(0,i.useState)(0),v=(h[0],h[1]);(0,i.useEffect)((function(){v(t)}),[]);var k=r?20:24;return 100!==t||x?(0,s.jsxs)("div",{className:n()("flex flex-row items-center",{"gap-5":!r,"gap-3":r,"flex-row-reverse":"start"===a},m.className),children:[(0,s.jsx)("div",{className:"",style:{transform:"translate(-".concat(k,"px,-").concat(k,"px)")},children:(0,s.jsx)(l(),{className:"w-6 h-6",progress:t,radius:r?12:16,strokeWidth:r?4:5,strokeColor:u.YQ,trackStrokeWidth:r?4:5,initialAnimation:f,initialAnimationDelay:100,trackStrokeColor:p?"#aaaaaa50":"#ffffff50",transition:"1.5s ease",trackTransition:"1.5s ease"})}),!o&&(0,s.jsxs)("p",{className:n()("",{"text-xl":!r,"text-sm":r}),children:[Math.round(t),"%"]})]}):(0,s.jsx)(c.Z,{className:m.className,fontSize:r?"medium":"large",sx:{color:u.YQ}})}},7735:function(e,r,t){"use strict";var s=t(7294),o=t(5950),n=t(1163);r.Z=function(){var e=(0,n.useRouter)().query.courseTopic,r=(0,o.Z)().courses,t=(0,s.useState)(),i=t[0],a=t[1];return(0,s.useEffect)((function(){if(r&&e){var t=r.find((function(r){return r.topic.toLowerCase()===e}));a(t)}}),[r,e]),console.log({useCourse:{courseTopic:e,course:i,courses:r}}),{course:i}}},3048:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return p}});var s=t(5893),o=(t(7294),t(9045)),n=t(7735),i=function(e){var r=e.course;return(0,s.jsxs)("div",{className:"relative flex flex-col items-center gap-4",children:[(0,s.jsx)("img",{className:"w-20",alt:r.topic,src:r.icon}),(0,s.jsx)("h1",{className:"text-4xl font-bold",children:r.topic})]})},a=t(5876),l=function(e){var r=e.chapter,t=e.index,o=e.onClick;return(0,s.jsxs)("div",{className:"flex flex-row gap-4 hover:cursor-pointer",onClick:o,children:[(0,s.jsxs)("p",{className:"text-lg",children:["Chapter ",t+1]}),(0,s.jsx)(a.Z,{small:!0,value:r.progress})]})},c=t(8608),u=function(e){var r=e.lesson,t=e.index,o=e.onChapterClick,n=e.onFinalQuizClick;return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex flex-row items-center gap-6 hover:cursor-pointer",onClick:function(){return o(function(e){return e.chapters.find((function(e){return e.progress<c.ZW}))}(r))},children:[(0,s.jsx)("div",{className:"gap-2 p-2 overflow-hidden border-4 rounded-full bg-slate-300",children:(0,s.jsx)("img",{className:"w-12",alt:r.subtopic,src:r.icon})}),(0,s.jsxs)("div",{className:"flex flex-col gap-0",children:[(0,s.jsxs)("p",{className:"text-sm",style:{marginBottom:-4},children:["Lesson ",t+1]}),(0,s.jsx)("h2",{className:"text-2xl font-bold",children:r.subtopic})]}),(0,s.jsx)(a.Z,{value:r.progress})]}),r.chapters.map((function(e,r){return(0,s.jsxs)("div",{className:"flex flex-row items-end h-10 gap-4 ml-8",children:[(0,s.jsxs)("div",{className:"flex flex-col h-full",children:[(0,s.jsx)("div",{className:"relative flex w-12 h-full border-b-2 border-l-2",children:(0,s.jsx)("div",{className:"absolute bottom-0 right-0 w-2 h-2 bg-white rounded-full",style:{transform:"translate(0.3rem, 0.3rem)"}})}),(0,s.jsx)("div",{className:"flex w-12 h-4 border-l-2"})]}),(0,s.jsx)(l,{chapter:e,index:r,onClick:function(){return o(e)}})]},r)})),(0,s.jsxs)("div",{className:"flex flex-row items-end h-10 gap-4 ml-8",children:[(0,s.jsxs)("div",{className:"flex flex-col h-full",children:[(0,s.jsx)("div",{className:"relative flex w-12 h-full border-b-2 border-l-2 rounded-bl-lg",children:(0,s.jsxs)("svg",{className:"absolute bottom-0 right-0",style:{transform:"translate(0.5rem, 0.55rem)"}
1,fill:"white",height:"16px",width:"16px",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"-6.6 -6.6 343.20 343.20",stroke:"white",strokeWidth:"11.220068000000001",children:[(0,s.jsx)("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),(0,s.jsx)("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsxs)("g",{id:"SVGRepo_iconCarrier",children:[" ",(0,s.jsx)("path",{id:"XMLID_103_",d:"M233.252,155.997L120.752,6.001c-4.972-6.628-14.372-7.97-21-3c-6.628,4.971-7.971,14.373-3,21 l105.75,140.997L96.752,306.001c-4.971,6.627-3.627,16.03,3,21c2.698,2.024,5.856,3.001,8.988,3.001 c4.561,0,9.065-2.072,12.012-6.001l112.5-150.004C237.252,168.664,237.252,161.33,233.252,155.997z"})," "]})]})}),(0,s.jsx)("div",{className:"flex w-12 h-4"})]}),(0,s.jsxs)("div",{className:"flex flex-row gap-4",children:[(0,s.jsx)("p",{className:"text-lg hover:cursor-pointer",onClick:n,children:"Final Quiz"}),r.quizDone&&(0,s.jsx)(a.Z,{value:100,small:!0})]})]})]})},d=t(1163),f=function(){var e=(0,d.useRouter)().push,r=(0,n.Z)().course;return r?(console.log({Course:{course:r}}),(0,s.jsxs)("div",{className:"flex flex-col gap-12 px-8 pt-8 pb-8",children:[(0,s.jsx)(i,{course:r}),(0,s.jsx)(a.Z,{className:"absolute top-0 right-12",labelPosition:"start",value:r.progress,isAlwaysCircularProgress:!0}),r.lessons.map((function(t,o){return(0,s.jsx)(u,{index:o,lesson:t,onChapterClick:function(s){return function(t,s){e("/course/".concat(r.topic.toLowerCase(),"/").concat(t.subtopic.toLowerCase(),"/").concat(s.index))}(t,s)},onFinalQuizClick:function(){return function(t){e("/course/".concat(r.topic.toLowerCase(),"/").concat(t.subtopic.toLowerCase(),"/final-quiz"))}(t)}},t.subtopic)}))]})):(0,s.jsx)(s.Fragment,{})},p=function(){return(0,o.Z)(),(0,s.jsx)(f,{})}},175:function(e,r,t){var s;e.exports=(s=t(7294),(()=>{"use strict";var e={297:e=>{e.exports=s}},r={};function t(s){var o=r[s];if(void 0!==o)return o.exports;var n=r[s]={exports:{}};return e[s](n,n.exports,t),n.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var s in r)t.o(r,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:r[s]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{t.r(o),t.d(o,{default:()=>n});var e=t(297),r=t.n(e);const s=({radius:t,progress:s,steps:o,cut:n,rotate:i,strokeWidth:a,strokeColor:l,fillColor:c,strokeLinecap:u,transition:d,pointerRadius:f,pointerStrokeWidth:p,pointerStrokeColor:x,pointerFillColor:m,trackStrokeColor:h,trackStrokeWidth:v,trackStrokeLinecap:k,trackTransition:g,counterClockwise:j,inverse:w,initialAnimation:b,initialAnimationDelay:C,className:N,children:y})=>{const[_,S]=(0,e.useState)(!1);(0,e.useEffect)((()=>{let e;return b&&(e=setTimeout((()=>S(!0)),C)),()=>clearTimeout(e)}),[]);const L=()=>b&&!_?0:s,P=()=>{const e=f+p;return e>a&&e>v?2*e:a>v?2*a:2*v},O=2*t,W=O+P(),$=2*Math.PI*t,E=$/360*(360-n);return r().createElement("div",{className:`RCP ${N}`,style:{position:"relative",width:`${W}px`}},r().createElement("svg",{width:W,height:W,viewBox:`0 0 ${W} ${W}`,style:{transform:`rotate(${i}deg)`}},v>0&&r().createElement("circle",{cx:W/2,cy:W/2,r:t,fill:"none",stroke:h,strokeWidth:v,strokeDasharray:((e,r)=>b&&!_?`0, ${r}`:`${e}, ${r}`)(E,$),strokeLinecap:k,className:"RCP__track",style:{transition:g}}),a>0&&r().createElement("circle",{cx:W/2,cy:W/2,r:t,fill:c,stroke:l,strokeWidth:a,strokeDasharray:((e,r)=>{const t=L();return w?`${e/o*(o-t)}, ${r}`:j?`${e*(t/100)}, ${r}`:`${e}, ${r}`})(E,$),strokeDashoffset:(e=>{const r=L(),t=e/o*(o-r);return w?j?0:t-e:j?-1*t:t})(E),strokeLinecap:u,className:"RCP__progress",style:{transition:d}}),f>0&&r().createElement("circle",{cx:O,cy:"50%",r:f,fill:m,stroke:x,strokeWidth:p,className:"RCP__pointer",style:{transformOrigin:"50% 50%",transform:`rotate(${(()=>{const e=L();return j?(360-n)/o*(o-e):(360-n)/o*e})()}deg) translate(${P()/2}px)`,transition:d}})),y||null)};s.defaultProps={radius:100,progress:0,steps:100,cut:0,rotate:-90,strokeWidth:20,strokeColor:"indianred",fillColor:"none",strokeLinecap:"round",transition:".3s ease",pointerRadius:0,pointerStrokeWidth:20,pointerStrokeColor:"indianred",pointerFillColor:"white",trackStrokeColor:"#e6e6e6",trackStrokeWidth:20,trackStrokeLinecap:"round",trackTransition:".3s ease",counterClockwise:!1,inverse:!1,initialAnimation:!1,initialAnimationDelay:0,className:""};const n=s})(),o})())}},function(e){e.O(0,[9,774,888,179],(function(){return r=4117,e(e.s=r);var r}));var r=e.O();_N_E=r}]);

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.