PageSourceSearch

https://orthomentors.ai/_next/static/chunks/7001-adf5c3223c80ae01.js

js orthomentors.ai collected 2026-10-05 14:29:43 UTC 15,153 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7001],{17015:(e,t,r)=>{"use strict";r.d(t,{cn:()=>n});var a=r(35486),s=r(83455);function n(...e){return(0,s.QP)((0,a.$)(e))}},34934:(e,t,r)=>{"use strict";r.d(t,{ab:()=>l,jj:()=>c,ry:()=>o});let a="examSource",s={qbank:"/student/qbanks","mock-test":"/student/mock-tests","weekly-quest":"/student","histories-qbank":"/student/histories?tab=qbank","histories-mock-test":"/student/histories?tab=mock-test"},n={qbank:"Back to Q-Banks","mock-test":"Back to Mock Tests","weekly-quest":"Back to Dashboard","histories-qbank":"Back to History","histories-mock-test":"Back to History"};function c(e){try{window.localStorage.setItem(a,e)}catch{}}function i(){try{let e=window.localStorage.getItem(a);if("qbank"===e||"mock-test"===e||"weekly-quest"===e||"histories-qbank"===e||"histories-mock-test"===e)return e;return null}catch{return null}}function o(){let e=i();return e?s[e]:"/student"}function l(){let e=i();return e?n[e]:"Back to Dashboard"}},47001:(e,t,r)=>{Promise.resolve().then(r.bind(r,57435))},57435:(e,t,r)=>{"use strict";r.d(t,{default:()=>q});var a=r(39232),s=r(30295),n=r(35851),c=r(61452),i=r(97953),o=r(2723),l=r(96308),d=r(93181),m=r(20562),x=r(55479),u=r(17015),p=r(95901),f=r(89039),b=r(80401),g=r(88140),h=r(61476),y=r(6102);let j=(0,y.createServerReference)("00dcb1ea6a75bccafd4318112cabc1de445c1a264b",y.callServer,void 0,y.findSourceMapURL,"getSubspecialitiesAction"),k=(0,y.createServerReference)("70369b7671d27b2844043b62c369b5839ba508895b",y.callServer,void 0,y.findSourceMapURL,"getAvailableQuestionCountAction"),v=(0,y.createServerReference)("407c355d31c45f15c1404de7a2f86443f58c8a2cee",y.callServer,void 0,y.findSourceMapURL,"getTopicsAction"),N=(0,y.createServerReference)("4058a62f86ef3f2a2e644770b13b73f6c77bfd4d80",y.callServer,void 0,y.findSourceMapURL,"getSubtopicsAction"),w=(0,y.createServerReference)("400ed66b22ba24be4515a2d192c008b3e2e16ebf26",y.callServer,void 0,y.findSourceMapURL,"generateExamAction");var S=r(34934);function q({subs:e,totalMcq:t}){let{loading:r,generating:x,availableSubspecialities:y,availableTopics:q,availableSubtopics:E,selectedSubspecialities:M,setSelectedSubspecialities:R,selectedTopics:T,setSelectedTopics:B,selectedSubtopics:Q,setSelectedSubtopics:$,totalAvailable:L,questionCount:I,setQuestionCount:P,mode:W,setMode:U,handleCheckboxChange:_,handleCreateExam:D,canLaunch:F,minQuestions:G}=function(){let e=(0,h.useRouter)(),[t,r]=(0,g.useState)(!0),[a,s]=(0,g.useState)(!1),[n,c]=(0,g.useState)([]),[i,o]=(0,g.useState)([]),[l,d]=(0,g.useState)([]),[m,x]=(0,g.useState)([]),[u,p]=(0,g.useState)([]),[f,b]=(0,g.useState)([]),[y,q]=(0,g.useState)(0),[A,C]=(0,g.useState)(0),[E,M]=(0,g.useState)("practice");(0,g.useEffect)(()=>{!async function(){r(!0);try{let e=await j();c(e.filter(e=>!!(e.name&&""!==e.name.trim())));let t=await k([],[],[]);q(t)}catch(e){console.error(e)}r(!1)}()},[]),(0,g.useEffect)(()=>{!async function(){m.length>0?o((await v(m)).filter(e=>!!(e.name&&""!==e.name.trim()))):(o([]),p([]))}()},[m]),(0,g.useEffect)(()=>{!async function(){u.length>0?d((await N(u)).filter(e=>!!(e.name&&""!==e.name.trim()))):(d([]),b([]))}()},[u]),(0,g.useEffect)(()=>{!async function(){let e=m.length>0?await k(m,u,f):0;if(q(e),0===m.length)return C(0);if(e<10)return C(e);let t=Math.min(200,e);C(e=>e<10?10:e>t?t:e)}()},[m,u,f]);let R=m.length>0&&y>=10&&A>=10,T=async()=>{if(!R)return;s(!0);let t=await w({subspecialities:m,topics:u,subtopics:f,mode:E,questionCount:A,examDuration:60*A});t.success&&t.examId?((0,S.jj)("qbank"),e.push(`/student/qbanks/${E}/${t.examId}`)):(console.error("Failed to generate exam:",t.error),alert("Failed to generate exam: "+t.error),s(!1))};return{loading:t,generating:a,availableSubspecialities:n,availableTopics:i,availableSubtopics:l,selectedSubspecialities:m,setSelectedSubspecialities:x,selectedTopics:u,setSelectedTopics:p,selectedSubtopics:f,setSelectedSubtopics:b,totalAvailable:y,questionCount:A,setQuestionCount:C,mode:E,setMode:M,handleCheckboxChange:(e,t,r)=>{r(t.includes(e)?t.filter(t=>t!==e):[...t,e])},handleCreateExam:T,canLaunch:R,minQuestions:10}}(),H=M.length>0,V=t>=G,z=V?G:0,O=V?Math.min(200,t):Math.max(0,t);return(0,a.jsx)("div",{className:"space-y-6","data-tutorial-id":"qbank-header",children:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,a.jsx)(b.T,{tone:"inverse",icon:s.A,label:"Total MCQs in Bank",value:t.toLocaleStr
1ing(),hint:"Questions available"}),(0,a.jsx)(b.T,{icon:n.A,label:"Selected for Exam",value:I,hint:`~${I} mins estimated`})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_380px] gap-5 items-start pt-5",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,a.jsx)("div",{"data-tutorial-id":"qbank-list",children:(0,a.jsx)(A,{step:1,title:"Subspecialities",icon:s.A,iconBg:"bg-primary/[0.08]",iconColor:"text-primary",children:(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2.5",children:e.filter(e=>e.count>0).map((e,t)=>(0,a.jsx)(C,{name:e.name,count:e.count,isSelected:M.includes(e.name),onToggle:()=>_(e.name,M,R)},t))})})}),(0,a.jsx)(p.N,{children:q.some(e=>e.count>0)&&(0,a.jsx)(f.P.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.25},"data-tutorial-id":"qbank-filter",children:(0,a.jsx)(A,{step:2,title:"Specific Topics",icon:c.A,iconBg:"bg-complementary/[0.08]",iconColor:"text-complementary",children:(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2.5",children:q.filter(e=>e.count>0).map((e,t)=>(0,a.jsx)(C,{name:e.name,count:e.count,isSelected:T.includes(e.name),onToggle:()=>_(e.name,T,B),accent:"amber"},t))})})})}),(0,a.jsx)(p.N,{children:E.some(e=>e.count>0)&&(0,a.jsx)(f.P.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.25},children:(0,a.jsx)(A,{step:3,title:"Granular Detail",icon:i.A,iconBg:"bg-complementary/[0.08]",iconColor:"text-complementary",children:(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2.5",children:E.filter(e=>e.count>0).map((e,t)=>(0,a.jsx)(C,{name:e.name,count:e.count,isSelected:Q.includes(e.name),onToggle:()=>_(e.name,Q,$),accent:"coral"},t))})})})})]}),(0,a.jsx)("div",{className:"lg:sticky lg:top-6",children:(0,a.jsxs)("div",{className:"rounded-[18px] border border-border bg-card/50 p-5 flex flex-col gap-5",children:[(0,a.jsx)("p",{className:"text-[10px] font-black uppercase tracking-[0.2em] text-muted-foreground",children:"Exam Configuration"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("p",{className:"text-[10px] font-black uppercase tracking-[0.15em] text-muted-foreground",children:"Environment"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-2 rounded-[12px] border border-border bg-muted dark:bg-card/80 p-1",children:[(0,a.jsxs)("button",{onClick:()=>U("practice"),className:(0,u.cn)("flex items-center justify-center gap-1.5 rounded-[9px] py-2.5 text-[11px] font-black uppercase tracking-[0.1em] transition-all","practice"===W?"bg-surface-inverse text-white shadow-sm":"text-muted-foreground hover:text-surface-inverse dark:text-foreground"),children:[(0,a.jsx)(o.A,{className:"h-3.5 w-3.5",strokeWidth:2}),"Practice"]}),(0,a.jsxs)("button",{onClick:()=>U("test"),className:(0,u.cn)("flex items-center justify-center gap-1.5 rounded-[9px] py-2.5 text-[11px] font-black uppercase tracking-[0.1em] transition-all","test"===W?"bg-surface-inverse text-white shadow-sm":"text-muted-foreground hover:text-surface-inverse dark:text-foreground"),children:[(0,a.jsx)(n.A,{className:"h-3.5 w-3.5",strokeWidth:2}),"Test"]})]}),(0,a.jsx)("div",{className:"rounded-[10px] border border-border bg-muted dark:bg-card/80 px-3 py-2",children:(0,a.jsx)("p",{className:"text-[11px] text-muted-foreground leading-relaxed",children:"practice"===W?"Instant feedback after each question. Great for learning.":"Timed exam environment with integrity monitoring. Results at the end."})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex items-end justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-[10px] font-black uppercase tracking-[0.15em] text-muted-foreground mb-1",children:"Question Volume"}),(0,a.jsxs)("p",{className:"text-[32px] font-black text-surface-inverse dark:text-foreground leading-none tracking-tight",children:[I,(0,a.jsx)("span",{className:"text-[14px] font-bold text-muted-foreground ml-1.5",children:"items"})]})]}),(0,a.jsxs)("span",{className:"shrink-0 text-[10px] font-bold text-primary bg-primary/[0.08] border border-primary/[0.2] px-2.5 py-1.5 rounded-[7px]",children:["~",I," min"]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("input",{type:"range",min:z,max:O,value:I,disabled:!V,onChange:e=>P(Number(e.target.value)),className:(0,u.cn)("w-full h-1.5 rounded-full appearance-none cursor-pointer accent-primary",!V&&"opacity-40 cursor-not-allowed"),style:{background:`linear-gradient(to right, #00a896 ${(I-z)/Math.max(O-z,1)*100}%, #e7e2db ${(I-z)/Math.max(O-z,1)*100}%)`}}),(0,a.jsxs)("div",{className:"flex justify-between text-[10px] font-black uppercase tracking-[0.12em] text-muted-foreground",children:[(0,a.jsxs)("span",{children:["Min ",z]}),(0,a.jsxs)("span",{children:["Max ",O||0]})]})]})]}),H&&(0,a.jsxs)("div",{className:"rounded-[12px] border border-border bg-muted dark:bg-card/80 px-3 py-3 flex flex-col gap-2",children:[(0,a.jsx)("p",{className:"text-[10px] font-black uppercase tracking-[0.15em] text-muted-foreground",children:"Selection Summary"}),M.length>0&&(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:M.map(e=>(0,a.jsx)("span",{className:"text-[10px] font-bold text-primary bg-primary/[0.08] border border-primary/[0.2] px-2 py-0.5 rounded-[5px]",children:e},e))})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("button",{onClick:D,disabled:x||!F,"data-tutorial-id":"qbank-start",className:(0,u.cn)("w-full flex items-center justify-center gap-2 rounded-[12px] py-3.5 text-[13px] font-black uppercase tracking-[0.12em] text-white transition-all",F&&!x?"bg-surface-inverse hover:bg-surface-inverse/90 hover:-translate-y-0.5 hover:shadow-lg hover:shadow-surface-inverse/20":"bg-surface-inverse/40 cursor-not-allowed"),children:x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.A,{className:"h-4 w-4 animate-spin"}),"Initialising…"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.A,{className:"h-4 w-4 fill-white",strokeWidth:0}),"Launch Exam Engine"]})}),(0,a.jsx)("div",{className:"flex items-center justify-center gap-1.5",children:H?V?(0,a.jsxs)("p",{className:"inline-flex items-center gap-1 text-[10px] font-bold text-muted-foreground",children:[(0,a.jsx)(m.A,{className:"h-3 w-3 text-primary",strokeWidth:2}
1),"Secure clinical environment"]}):(0,a.jsxs)("p",{className:"text-[10px] font-bold text-complementary text-center",children:["Only ",t," question",1===t?"":"s"," match — need ",G,"+ to launch"]}):(0,a.jsx)("p",{className:"text-[10px] font-bold text-muted-foreground text-center",children:"Pick at least one subspeciality to begin"})})]})]})})]})]})})}function A({step:e,title:t,icon:r,iconBg:s,iconColor:n,children:c}){return(0,a.jsxs)("div",{className:"rounded-[18px] border border-border bg-card/50 p-5 flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:(0,u.cn)("flex h-8 w-8 shrink-0 items-center justify-center rounded-[9px]",s),children:(0,a.jsx)(r,{className:(0,u.cn)("h-4 w-4",n),strokeWidth:1.8})}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("span",{className:"text-[10px] font-black uppercase tracking-[0.2em] text-muted-foreground",children:["Step ",e]}),(0,a.jsx)("span",{className:"h-3 w-px bg-muted"}),(0,a.jsx)("h2",{className:"text-[13px] font-black text-surface-inverse dark:text-foreground",children:t})]})]}),c]})}function C({name:e,count:t,isSelected:r,onToggle:s,accent:n="teal"}){let c={teal:{border:"border-primary/40",bg:"bg-primary/[0.05]",check:"text-primary",badge:"bg-primary/[0.08] border-primary/[0.2] text-primary"},amber:{border:"border-complementary/40",bg:"bg-complementary/[0.05]",check:"text-complementary",badge:"bg-complementary/[0.08] border-complementary/[0.2] text-complementary"},coral:{border:"border-complementary/40",bg:"bg-complementary/[0.05]",check:"text-complementary",badge:"bg-complementary/[0.08] border-complementary/[0.2] text-complementary"}}[n];return(0,a.jsxs)("label",{className:(0,u.cn)("flex items-center justify-between gap-3 rounded-[12px] border px-3 py-3 cursor-pointer transition-all duration-200 hover:-translate-y-0.5",r?`${c.border} ${c.bg}`:"border-border bg-muted dark:bg-card/80 hover:border-primary/30"),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5 min-w-0",children:[(0,a.jsx)("div",{className:(0,u.cn)("flex h-5 w-5 shrink-0 items-center justify-center rounded-[5px] border transition-all",r?"border-transparent bg-card/50":"border-border bg-card/50"),children:r&&(0,a.jsx)(x.A,{className:(0,u.cn)("h-3.5 w-3.5",c.check),strokeWidth:2.5})}),(0,a.jsx)("span",{className:(0,u.cn)("text-[12px] font-bold leading-snug truncate",r?"text-surface-inverse dark:text-foreground":"text-muted-foreground"),children:e})]}),(0,a.jsxs)("span",{className:(0,u.cn)("shrink-0 text-[10px] font-black border rounded-[5px] px-2 py-0.5",r?c.badge:"border-border bg-card/50 text-muted-foreground"),children:[t," Qs"]}),(0,a.jsx)("input",{type:"checkbox",className:"hidden",checked:r,onChange:s})]})}},80401:(e,t,r)=>{"use strict";r.d(t,{T:()=>o});var a=r(39232),s=r(88140),n=r(17015);let c={default:"bg-card border-border text-foreground",primary:"bg-primary-soft border-primary-line text-foreground",success:"bg-success-soft border-success-line text-foreground",error:"bg-error-soft border-error-line text-foreground",complementary:"bg-complementary-soft border-complementary-line text-foreground",inverse:"bg-surface-inverse border-surface-inverse text-surface-inverse-foreground"},i={default:"text-muted-foreground",primary:"text-muted-foreground",success:"text-muted-foreground",error:"text-muted-foreground",complementary:"text-muted-foreground",inverse:"text-surface-inverse-muted"};function o({label:e,value:t,unit:r,icon:o,hint:l,tone:d="default",compact:m=!1,className:x,...u}){let p=s.isValidElement(o)?o:o?s.createElement(o,{className:"size-4"}):null;return(0,a.jsxs)("div",{"data-slot":"stat-tile",className:(0,n.cn)("flex flex-col justify-between gap-1 rounded-xl border text-left",m?"p-3":"p-4",c[d],x),...u,children:[(0,a.jsxs)("div",{className:(0,n.cn)("flex items-center gap-2",i[d]),children:[p,(0,a.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:e})]}),(0,a.jsxs)("p",{className:"flex items-baseline gap-1",children:[(0,a.jsx)("span",{className:(0,n.cn)("font-bold tabular-nums",m?"text-xl":"text-2xl"),children:t}),r&&(0,a.jsx)("span",{className:(0,n.cn)("text-xs font-medium",i[d]),children:r})]}),l&&(0,a.jsx)("p",{className:(0,n.cn)("text-xs",i[d]),children:l})]})}}}]);

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.