PageSourceSearch

https://gradmate.ai/_next/static/chunks/39340.eb3f15c30d52103a.js

js gradmate.ai collected 2026-10-05 15:35:38 UTC 12,610 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39340],{4005:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(74217).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},39340:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var a=r(23804),o=r(44976),n=r(70613),s=r(21739),i=r(4005),d=r(76935),c=r(51547),l=r(71988),u=r(10866),p=r(66139),m=r(81762);let x=[{questionType:"reading_comprehension",topic:"reading_comprehension",label:"Reading Comprehension",description:"Short and long passages — single-answer, multiple-answer, and select-in-passage questions.",difficulties:["easy","medium","hard"]},{questionType:"text_completion",topic:"text_completion",label:"Text Completion",description:"Fill 1–3 blanks in academic sentences. Three or five options per blank.",difficulties:["easy","medium","hard"]},{questionType:"sentence_equivalence",topic:"sentence_equivalence",label:"Sentence Equivalence",description:"Select exactly two answers that complete the sentence with the same meaning.",difficulties:["easy","medium","hard"]}],f=[{topic:"arithmetic",label:"Arithmetic",description:"Number properties, operations, fractions, decimals, ratios, exponents, and QC questions.",difficulties:["easy","medium","hard"]},{topic:"algebra",label:"Algebra",description:"Linear/quadratic equations, inequalities, polynomials, functions, and select-all questions.",difficulties:["easy","medium","hard"]},{topic:"geometry",label:"Geometry",description:"Lines, angles, triangles, circles, area, volume, and coordinate geometry.",difficulties:["easy","medium","hard"]},{topic:"data_analysis",label:"Data Analysis",description:"Statistics, probability, frequency distributions, and data interpretation.",difficulties:["easy","medium","hard"]},{topic:"word_problems",label:"Word Problems",description:"Applied problems on rate, work, distance, mixture, and interest.",difficulties:["easy","medium","hard"]}],b=[{questionType:"analyze_issue",topic:"analyze_issue",label:"Analyze an Issue",description:"Discuss the extent to which you agree or disagree with a claim. Build and defend a position.",difficulties:["easy","medium","hard"]},{questionType:"analyze_argument",topic:"analyze_argument",label:"Analyze an Argument",description:"Examine the logical soundness of an argument. Identify assumptions and evaluate evidence.",difficulties:["easy","medium","hard"]}];function h(e){let{section:t,onBack:r,onStartPractice:h,embedded:g=!1}=e,y="quant"===t?f:"verbal"===t?x:b,v="quant"===t?n.A:s.A,[N,j]=(0,o.useState)({}),[w,k]=(0,o.useState)({}),[_,q]=(0,o.useState)("");(0,o.useEffect)(()=>{A()},[t]);let A=async()=>{try{let e=new URLSearchParams({mode:"topics",section:t}),r=await fetch("/api/gre/questions?".concat(e)),a=await r.json();if(a.success){let e={},t={},r={};(a.topicGroups||[]).forEach(a=>{var o,n,s;let i=null!=(s=null!=(n=null==(o=a._count)?void 0:o.id)?n:a._count)?s:0,d="".concat(a.questionType,"__").concat(a.topic);e[d]=(e[d]||0)+i;let c="__".concat(a.topic);e[c]=(e[c]||0)+i,t[d]=a.sets||[],r[c]||(r[c]={}),(a.sets||[]).forEach(e=>{let t="".concat(e.difficulty,"|||").concat(e.setNumber);r[c][t]=(r[c][t]||0)+e.count})});let o={...t};Object.entries(r).forEach(e=>{let[t,r]=e;o[t]=Object.entries(r).map(e=>{let[t,r]=e,[a,o]=t.split("|||");return{setNumber:parseInt(o),difficulty:a,count:r}})}),j(e),k(o)}}catch(e){}},E=y.filter(e=>e.label.toLowerCase().includes(_.toLowerCase())||e.description.toLowerCase().includes(_.toLowerCase())),C=(e,r)=>{r&&h({topic:e.topic,questionType:"quant"===t?"":e.questionType,difficulty:r.difficulty,label:"".concat(e.label," — Practice ").concat(r.practiceNumber),setNumber:r.setNumber})},S=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"".concat(g?"px-4 py-3":"px-4 md:px-6 py-3"," border-b border-border flex items-center gap-3"),children:(0,a.jsxs)("div",{className:"relative flex-1 min-w-0",children:[(0,a.jsx)(i.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground",strokeWidth:1.5}),(0,a.jsx)("input",{type:"text",value:_,onChange:e=>q(e.target.value),placeholder:"Search topics…",className:"w-full pl-8 pr-3 py-1.5 text-xs border border-border rounded-lg bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-foreground
1/30"})]})}),(0,a.jsxs)("div",{className:"px-4 md:px-6 py-4 flex flex-col gap-2",children:[0===y.length&&(0,a.jsxs)("div",{className:"text-center py-16",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-foreground mb-1",children:"Coming Soon"}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:"Practice questions for Analytical Writing are not available yet."})]}),y.length>0&&0===E.length&&(0,a.jsxs)("div",{className:"text-center py-16 text-sm text-muted-foreground",children:["No topics match “",_,"”"]}),E.map((e,r)=>{let o="quant"===t?N["__".concat(e.topic)]||0:N["".concat(e.questionType,"__").concat(e.topic)]||N["__".concat(e.topic)]||0,n=(e=>{let r="quant"===t?w["__".concat(e.topic)]||[]:w["".concat(e.questionType,"__").concat(e.topic)]||w["__".concat(e.topic)]||[];return(0,m.mO)(r)})(e),s=n.length>1;return(0,a.jsxs)("div",{className:"rounded-xl border border-border overflow-hidden flex-shrink-0",children:[(0,a.jsxs)("div",{role:s?void 0:"button",tabIndex:s?void 0:0,onClick:s?void 0:()=>C(e,n[0]),onKeyDown:s?void 0:t=>("Enter"===t.key||" "===t.key)&&C(e,n[0]),className:"w-full text-left px-4 py-3.5 flex items-center gap-4 transition-colors duration-150 bg-card group ".concat(s?"":"hover:bg-muted/30 cursor-pointer"),children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center flex-shrink-0 text-xs font-bold border bg-muted border-border text-foreground group-hover:bg-foreground group-hover:text-background group-hover:border-foreground transition-colors",children:r+1}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-0.5 flex-wrap",children:[(0,a.jsx)("span",{className:"text-sm font-semibold text-foreground",children:e.label}),o>0?(0,a.jsxs)(p.E,{variant:"outline",className:"text-[10px] border-border font-bold px-1.5",children:[o," Q"]}):(0,a.jsx)("span",{className:"text-[10px] font-medium px-1.5 py-0.5 rounded bg-muted text-muted-foreground border border-border",children:"No questions yet"}),s&&(0,a.jsxs)("span",{className:"text-[10px] font-medium px-1.5 py-0.5 rounded-full bg-foreground
1/10 text-foreground border border-foreground/20",children:[n.length," practices"]})]}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:e.description})]}),!s&&(0,a.jsx)(d.A,{className:"w-4 h-4 text-muted-foreground group-hover:text-foreground flex-shrink-0 transition-colors",strokeWidth:1.5})]}),s&&(0,a.jsx)("div",{className:"border-t border-border bg-muted/20 p-3",children:(0,a.jsx)("div",{className:"flex flex-col gap-2",children:n.map(t=>(0,a.jsxs)("button",{onClick:()=>C(e,t),className:"w-full flex-shrink-0 flex items-center gap-2.5 text-left rounded-lg border border-border bg-card hover:border-foreground/40 hover:shadow-sm px-3 py-2.5 transition-all group/set",children:[(0,a.jsx)("div",{className:"w-7 h-7 rounded-lg bg-muted border border-border flex items-center justify-center flex-shrink-0 group-hover/set:bg-foreground group-hover/set:border-foreground transition-colors",children:(0,a.jsx)(c.A,{className:"w-3.5 h-3.5 text-foreground group-hover/set:text-background transition-colors",strokeWidth:1.5})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("p",{className:"text-xs font-semibold text-foreground",children:["Practice ",t.practiceNumber]}),(0,a.jsxs)("p",{className:"text-[10px] text-muted-foreground",children:[t.count," questions"]})]}),(0,a.jsx)("span",{className:"text-[10px] font-medium px-1.5 py-0.5 rounded bg-muted text-muted-foreground border border-border flex-shrink-0",children:m.lg[t.difficulty]||t.difficulty}),(0,a.jsx)(d.A,{className:"w-4 h-4 text-muted-foreground group-hover/set:text-foreground flex-shrink-0 transition-colors",strokeWidth:1.5})]},"".concat(t.difficulty,"-").concat(t.setNumber)))})})]},"".concat(e.questionType,"-").concat(e.topic,"-").concat(r))})]})]});return g?S:(0,a.jsx)("div",{className:"fixed inset-0 z-40 bg-muted/20 overflow-y-auto",style:{to
1p:"64px"},children:(0,a.jsx)("div",{className:"min-h-full flex items-start justify-center px-4 py-6 md:py-10",children:(0,a.jsxs)("div",{className:"w-full max-w-5xl bg-background rounded-xl overflow-hidden",children:[(0,a.jsx)("header",{className:"bg-card border-b border-border",children:(0,a.jsxs)("div",{className:"flex items-center gap-3 px-4 md:px-6 h-12",children:[(0,a.jsxs)(u.$,{onClick:r,variant:"ghost",size:"sm",className:"h-7 px-2 gap-1.5 text-xs text-muted-foreground hover:text-foreground flex-shrink-0",children:[(0,a.jsx)(l.A,{className:"w-3.5 h-3.5",strokeWidth:1.5}),"Back"]}),(0,a.jsx)("div",{className:"w-px h-5 bg-border flex-shrink-0"}),(0,a.jsx)("div",{className:"w-7 h-7 rounded-lg border border-border bg-muted flex items-center justify-center flex-shrink-0",children:(0,a.jsx)(v,{className:"w-3.5 h-3.5 text-foreground",strokeWidth:1.5})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-bold text-foreground leading-none",children:"quant"===t?"Quant Practice":"verbal"===t?"Verbal Practice":"Analytical Writing Practice"}),(0,a.jsx)("p",{className:"text-[10px] text-muted-foreground mt-0.5 leading-none",children:"Select a topic to begin"})]})]})}),S]})})})}},51547:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(74217).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},66139:(e,t,r)=>{r.d(t,{E:()=>i});var a=r(23804);r(44976);var o=r(9564),n=r(87425);let s=(0,o.F)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-brand-caption font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-brand-orange-soft text-brand-orange",solid:"border-transparent bg-primary text-primary-foreground hover:bg-primary-hover",navy:"border-transparent bg-brand-navy-soft text-brand-navy dark:text-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",ai:"border-transparent bg-brand-purple-soft text-brand-purple",success:"border-transparent bg-[rgb(var(--brand-success-soft))] text-success",warning:"border-transparent bg-[rgb(var(--brand-warning-soft))] text-warning",destructive:"border-transparent bg-[rgb(var(--brand-error-soft))] text-destructive",outline:"border-border text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:r,...o}=e;return(0,a.jsx)("div",{className:(0,n.cn)(s({variant:r}),t),...o})}},70613:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(74217).A)("calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]])},71988:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(74217).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},81762:(e,t,r)=>{r.d(t,{$G:()=>i,SL:()=>d,lg:()=>a,mO:()=>s});let a={easy:"Easy",medium:"Medium",hard:"Hard"},o={easy:0,medium:1,hard:2},n=(e,t)=>{var r,a;return(null!=(r=o[e.difficulty])?r:99)-(null!=(a=o[t.difficulty])?a:99)||e.setNumber-t.setNumber};function s(e){return[...e].sort(n).map((e,t)=>({...e,practiceNumber:t+1}))}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={};e.forEach(e=>{(e.sets||[]).forEach(r=>{var a;(t[a=e.topic]||(t[a]={}))["".concat(r.difficulty,"|||").concat(r.setNumber)]=r})});let r={};return Object.entries(t).forEach(e=>{let[t,a]=e;Object.values(a).sort(n).forEach((e,a)=>{r["".concat(t,"|||").concat(e.difficulty,"|||").concat(e.setNumber)]=a+1})}),r}function d(e,t){let{topic:r,difficulty:a,setNumber:o}=t,n=null==e?void 0:e["".concat(r,"|||").concat(a,"|||").concat(o)];return n?"Practice ".concat(n):"Set ".concat(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.