PageSourceSearch

https://www.exammaker.ai/_next/static/chunks/7839-2046a3906c1fa1ff.js

js exammaker.ai collected 2026-10-05 15:33:40 UTC 49,878 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7839],{98376:function(e,s,l){l.d(s,{Z:function(){return g}});var r=l(19506),n=l(50576),i=l(84518),t=l(85289),a=l(69860),d=l(22971),c=l(71941),o=l(28747),u=l(31729),x=l(18277);let m=d.forwardRef((e,s)=>{let{className:l,children:n,...i}=e;return(0,r.jsxs)(x.fC,{ref:s,className:(0,a.cn)("relative overflow-hidden",l),...i,children:[(0,r.jsx)(x.l_,{className:"h-full w-full rounded-[inherit]",children:n}),(0,r.jsx)(f,{}),(0,r.jsx)(x.Ns,{})]})});m.displayName=x.fC.displayName;let f=d.forwardRef((e,s)=>{let{className:l,orientation:n="vertical",...i}=e;return(0,r.jsx)(x.gb,{ref:s,orientation:n,className:(0,a.cn)("flex touch-none select-none transition-colors","vertical"===n&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===n&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",l),...i,children:(0,r.jsx)(x.q4,{className:"relative flex-1 rounded-full bg-border"})})});f.displayName=x.gb.displayName;var h={src:"/_next/static/media/UploadIcon.9e273087.svg",height:40,width:40,blurWidth:0,blurHeight:0},v=l(84567),p=l(13507);function g(){let{bookId:e,setBookId:s}=(0,o.Z)(),{setDemoQueryState:l}=(0,u.Z)(),{data:x,isLoading:f}=c.h.books.getDemo.useQuery(),g=(0,d.useMemo)(()=>{var s;return null==x?void 0:null===(s=x.find(s=>Number(s.id)===e))||void 0===s?void 0:s.name},[e,x]),j=async e=>{await s(e)},N=async()=>{await l(u.D.SelectingChapters)};return(0,r.jsxs)("div",{className:"flex w-full flex-col items-center gap-10",children:[(0,r.jsx)("div",{className:"text-xl font-semibold",children:"Upload Book"}),(0,r.jsx)("div",{className:"border-1 h-[200px] w-full rounded-md border border-primary3 md:h-[300px]",children:(0,r.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,r.jsxs)("div",{className:"flex flex-col items-center gap-5",children:[e?(0,r.jsx)(p.default,{src:v.Z,width:30,alt:"upload-icon"}):(0,r.jsx)(p.default,{src:h,width:30,alt:"upload-icon"}),(0,r.jsxs)(n.h_,{children:[(0,r.jsx)(n.$F,{asChild:!0,children:(0,r.jsx)(i.z,{className:"bg-white text-black",variant:"outline",disabled:f,children:(0,r.jsxs)("div",{className:"flex flex-row items-center gap-5",children:[(0,r.jsx)("div",{className:"text-base",children:f?(0,r.jsx)("div",{children:"Loading..."}):null!=g?g:"Select a book"}),(0,r.jsx)(t.Z,{})]})})}),(0,r.jsx)(n.AW,{children:(0,r.jsx)(n._x,{value:null==e?void 0:e.toString(),onValueChange:async e=>await j(Number(e)),children:(0,r.jsx)(m,{className:"h-[300px]",children:null==x?void 0:x.map((e,s)=>(0,r.jsx)(n.qB,{value:e.id.toString(),children:(0,r.jsx)("div",{className:"p-2",children:e.name})},s))})})})]})]})})}),(0,r.jsx)(i.z,{className:(0,a.cn)("w-full text-white hover:bg-primary2",e?"bg-primary1":"bg-primary3"),disabled:!e,onClick:async()=>await N(),children:"Next"})]})}},22524:function(e,s,l){l.d(s,{Z:function(){return h}});var r=l(19506),n=l(98410),i=l(84518),t=l(51613),a=l(22971),d=l(29631),c=l(16329),o=l(71941),u=l(28747),x=l(31729),m=l(84567),f=l(13507);function h(){let{bookId:e}=(0,u.Z)(),{setDemoQueryState:s}=(0,x.Z)(),{demoOptions:l,setDemoOptions:h}=(0,d.useDemoContext)(),{data:v,isLoading:p}=o.h.books.get.useQuery(e),[g,j]=(0,a.useState)([]),[N,w]=(0,a.useState)([]),b=(0,a.useCallback)(()=>{let e=null==v?void 0:v.chapters.map(e=>Number(e.id)),s=null==v?void 0:v.chapters.map(e=>e.subchapters.map(e=>Number(e.id))).flat();j(null!=e?e:[]),w(null!=s?s:[])},[v]),C=(0,a.useCallback)(()=>{j([]),w([])},[]),_=(0,a.useMemo)(()=>N.length===(null==v?void 0:v.chapters.map(e=>e.subchapters.map(e=>Number(e.id))).flat().length),[null==v?void 0:v.chapters,N.length]),E=(0,a.useCallback)(()=>{_?C():b()},[_,b,C]);(0,a.useEffect)(()=>{b()},[b]);let I=(e,s)=>{var l;let r=null==v?void 0:null===(l=v.chapters.filter(s=>Number(s.id)===e)[0])||void 0===l?void 0:l.subchapters.map(e=>Number(e.id));s?(j([...g,e]),w([...N,...r])):(j(g.filter(s=>s!==e)),w(N.filter(e=>!(null==r?void 0:r.includes(e)))))},y=(e,s)=>{s?w([...N,e]):w(N.filter(s=>s!==e))},S=async()=>{let e=N.map(e=>({id:e}));h({...l,selectedSubChapters:e}),await s(x.D.TakingQuiz),window.scrollTo({top:0,behavior:"smooth"})};return(0,r.jsxs)("div",{className:"flex flex-col items-center gap-10",children:[(0,r.jsx)("div",{className:"text-xl font-semibold",children:"Select Chapters"}),(0,r.jsxs)("div",{className:"h-fit w-full rounded-md border shadow",children:[(0,r.jsx)("div",{className:"h-fit border-b-[1px] border-gray-300 p-4",children:(0,r.jsxs)("div",{className:"flex flex-col items-start justify-between gap-4 md:flex-row md:items-center",children:[(0,r.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,r.jsx)(f.default,{src:m.Z,width:20,alt:"upload-icon"}
1),p?"Loading...":(0,r.jsx)("div",{className:"font-semibold",children:null==v?void 0:v.name})]}),(0,r.jsx)(i.z,{className:"bg-primary1 text-white hover:bg-primary3",onClick:async()=>await S(),disabled:N.length<1,children:"Go to quiz"})]})}),(0,r.jsxs)("div",{className:"flex flex-col items-start justify-between gap-2 p-4 md:flex-row md:items-center",children:[(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("div",{className:"text-lg font-medium",children:"Review sections to import"}),(0,r.jsx)("div",{children:"Select the chapter and subchapters you want to prepare for"})]}),(0,r.jsx)("div",{className:"flex gap-2",children:(0,r.jsx)(i.z,{variant:"outline",onClick:E,children:_?"Deselect All":"Select All"})})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 p-4",children:[p&&(0,r.jsx)("div",{children:"Loading..."}),null==v?void 0:v.chapters.map(e=>{var s;let l=e.subchapters.length<2&&(null===(s=e.subchapters[0])||void 0===s?void 0:s.name)===e.name;return(0,r.jsx)("div",{children:(0,r.jsx)(n.UQ,{type:"multiple",children:(0,r.jsxs)(n.Qd,{value:"item",children:[(0,r.jsxs)(n._m,{className:"flex items-center justify-center space-x-3 rounded-lg bg-neutral8",children:[(0,r.jsx)("div",{className:"flex items-center py-4 pl-4",children:(0,r.jsx)(t.X,{onCheckedChange:s=>I(Number(e.id),!!s),checked:g.includes(Number(e.id)),intermediate:!e.subchapters.every(e=>N.includes(Number(e.id)))})}),l?(0,r.jsx)(c._,{className:"text-md w-full font-semibold leading-none",children:(0,r.jsx)("div",{className:"flex w-full flex-row",children:(0,r.jsx)("div",{children:"".concat(e.name)})})}):(0,r.jsx)(n.o4,{className:"inline-flex w-full py-4 pr-4 leading-none",children:(0,r.jsx)("div",{children:"".concat(e.name)})})]}),!l&&(0,r.jsx)(n.vF,{className:"ml-6 border-l-2",children:e.subchapters.map(e=>(0,r.jsxs)("div",{className:"flex flex-row items-start space-x-3 space-y-0 bg-white p-2 transition-all duration-150 ease-in-out",children:[(0,r.jsx)(t.X,{id:e.id.toString(),onCheckedChange:s=>y(Number(e.id),!!s),checked:N.includes(Number(e.id))}),(0,r.jsx)("label",{htmlFor:e.id.toString(),className:"text-md w-full leading-none",children:(0,r.jsx)("div",{className:"flex w-full flex-row",children:(0,r.jsx)("div",{children:"".concat(e.name)})})})]},Number(e.id)))})]})})},Number(e.id))})]})]})]})}},33217:function(e,s,l){l.d(s,{Z:function(){return b}});var r=l(19506),n=l(58676),i=l(65037),t=l(7581),a=l(35609),d=l(22971),c=l(84518),o=l(29631),u=l(20378),x=l(46837),m=l(71941),f=l(12926),h=l(70479),v=l(69860),p=l(28747);let g=(0,h.default)(()=>Promise.all([l.e(4882),l.e(3551)]).then(l.bind(l,53551)),{loadableGenerated:{webpack:()=>[53551]},ssr:!1}),j=e=>String.fromCharCode(97+e).toUpperCase(),N=e=>e<50?"#E35640":e<75?"#DB9918":"#12AC7B",w=e=>e<50?"You got ".concat(e,"% of questions correct on this quiz. Try better next time."):e<75?"You got ".concat(e,"% of questions correct on this quiz. You can do better."):"You got ".concat(e,"% of questions correct on this quiz. Great job !!!");function b(){var e;let s=(0,a.useRouter)(),{bookId:l}=(0,p.Z)(),{demoOptions:h}=(0,o.useDemoContext)(),{data:b}=m.h.questions.getBySubchapterIdsAndBookId.useQuery({bookId:l,subChapters:h.selectedSubChapters.map(e=>e.id),limit:50}),C=(0,d.useMemo)(()=>h.answeredQuestions,[h.answeredQuestions]),_=(0,d.useMemo)(()=>b?b.filter(e=>{var s;let l=e.answer_set.filter(e=>e.is_correct),r=C.find(s=>s.questionId===Number(e.id));return!((null!==(s=null==r?void 0:r.answerIds.length)&&void 0!==s?s:0)<1)&&r&&l.length===r.answerIds.length&&(null==r?void 0:r.answerIds.every(e=>l.find(s=>Number(s.id)===e)))}).length:0,[C,b]),E=(0,d.useMemo)(()=>b?b.filter(e=>{var s;let l=e.answer_set.filter(e=>e.is_correct),r=C.find(s=>s.questionId===Number(e.id));return!((null!==(s=null==r?void 0:r.answerIds.length)&&void 0!==s?s:0)<1)&&!(r&&l.length===r.answerIds.length&&(null==r?void 0:r.answerIds.every(e=>l.find(s=>Number(s.id)===e))))}).length:0,[C,b]),I=(0,d.useMemo)(()=>b?Math.round(_/b.length*100):0,[_,b]),[y,S]=(0,d.useState)(!0),z=e=>b?b.filter(e||(()=>!0)).map((e,s)=>{let l=e.answer_set.filter(e=>e.is_correct),a=C.find(s=>s.questionId===Number(e.id)),d=a&&l.length===a.answerIds.length&&(null==a?void 0:a.answerIds.every(e=>l.find(s=>
1Number(s.id)===e)));return(0,r.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border p-4 shadow",children:[a?d?(0,r.jsxs)("div",{className:"flex w-fit flex-row gap-2 rounded-lg bg-success5 p-2 px-4",children:[(0,r.jsx)("div",{className:"text-success2",children:(0,r.jsx)(i.Z,{})}),(0,r.jsx)("div",{className:"text-success2",children:"Correct answer"})]}):(0,r.jsxs)("div",{className:"flex w-fit flex-row gap-2 rounded-lg bg-error5 p-2 px-4",children:[(0,r.jsx)("div",{className:"text-error2",children:(0,r.jsx)(t.Z,{})}),(0,r.jsx)("div",{className:"text-error2",children:"Incorrect answer"})]}):(0,r.jsxs)("div",{className:"flex w-fit flex-row gap-2 rounded-lg bg-neutral7 p-2",children:[(0,r.jsx)("div",{className:"text-neutral3",children:(0,r.jsx)(n.Z,{})}),(0,r.jsx)("div",{className:"text-neutral3",children:"Skipped"})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"text-lg font-semibold",children:[s+1,". ",e.text]}),(0,r.jsxs)("div",{className:"ml-4 flex flex-col gap-4",children:[(0,r.jsx)("div",{className:"flex flex-col gap-4",children:e.answer_set.map((e,s)=>(0,r.jsxs)("div",{className:(0,v.cn)("flex flex-row gap-2 p-2",(null==a?void 0:a.answerIds.includes(Number(e.id)))&&"rounded-md bg-primary6",!e.is_correct&&(null==a?void 0:a.answerIds.includes(Number(e.id)))&&"text-error2"),children:[(0,r.jsxs)("div",{children:[j(s),"."]}),(0,r.jsx)("div",{children:e.text}),(0,r.jsx)("div",{children:e.is_correct?(0,r.jsx)(i.Z,{className:"text-success2"}):(null==a?void 0:a.answerIds.includes(Number(e.id)))&&(0,r.jsx)(t.Z,{className:"text-error2"})})]},s))}),(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("div",{className:"underline underline-offset-4",children:"Correct answer (".concat(e.answer_set.map((e,s)=>e.is_correct?j(s):"").filter(e=>e&&e.length>0).join(", "),"):")}),(0,r.jsx)("div",{children:l.map(e=>e.text).join(", ")})]}),(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("div",{className:"underline underline-offset-4",children:"Explanation"}),(0,r.jsx)("div",{children:e.explanation})]})]})]})]},s)}):(0,r.jsx)(r.Fragment,{});return(0,r.jsx)("div",{className:"h-fit w-full p-10",children:(0,r.jsxs)("div",{className:"flex flex-col gap-10",children:[(0,r.jsxs)("div",{className:"flex flex-col justify-between gap-5 md:flex-row",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)("div",{className:"text-lg",children:"Score"}),(0,r.jsx)("div",{className:"text-xl text-success2",children:"".concat(_,"/").concat(null!==(e=null==b?void 0:b.length)&&void 0!==e?e:0)})]}),(0,r.jsxs)("div",{className:"flex flex-row items-center gap-5 self-center",children:[(0,r.jsx)("div",{children:(0,r.jsx)(c.z,{variant:"ghost",className:"bg-neutral8",onClick:()=>s.push("/"),children:"Return to home"})}),(0,r.jsx)("div",{children:(0,r.jsx)(c.z,{className:"bg-primary1 hover:bg-primary2",onClick:()=>s.push("/auth/sign-up/?more=true"),children:"Generate more"})})]})]}),(0,r.jsxs)(u.mQ,{className:"flex w-full flex-col gap-8",defaultValue:"all",children:[(0,r.jsxs)("div",{className:"flex w-full flex-col items-center",children:[(0,r.jsxs)(u.dr,{className:"self-center bg-transparent pb-0",children:[(0,r.jsx)(u.SP,{value:"all",className:"rounded-none data-[state=active]:border-b-[3px] data-[state=active]:border-b-black",children:"All answers"}),(0,r.jsx)(u.SP,{value:"correct",className:"rounded-none data-[state=active]:border-b-[3px] data-[state=active]:border-b-black",children:"Correct answers"}),(0,r.jsx)(u.SP,{value:"incorrect",className:"rounded-none data-[state=active]:border-b-[3px] data-[state=active]:border-b-black",children:"Incorrect answers"})]}),(0,r.jsx)(f.Separator,{})]}),(0,r.jsx)(u.nU,{value:"all",children:(0,r.jsx)("div",{className:"flex flex-col gap-5",children:z()})}),(0,r.jsx)(u.nU,{value:"correct",children:(0,r.jsx)("div",{className:"flex flex-col gap-5",children:z(e=>{var s;let l=e.answer_set.filter(e=>e.is_correct),r=C.find(s=>s.questionId===Number(e.id));return!((null!==(s=null==r?void 0:r.answerIds.length)&&void 0!==s?s:0)<1)&&!!(r&&l.length===r.answerIds.length&&(null==r?void 0:r.answerIds.every(e=>l.find(s=>
1Number(s.id)===e))))})})}),(0,r.jsx)(u.nU,{value:"incorrect",children:(0,r.jsx)("div",{className:"flex flex-col gap-5",children:z(e=>{var s;let l=e.answer_set.filter(e=>e.is_correct),r=C.find(s=>s.questionId===Number(e.id));return!((null!==(s=null==r?void 0:r.answerIds.length)&&void 0!==s?s:0)<1)&&!(r&&l.length===r.answerIds.length&&(null==r?void 0:r.answerIds.every(e=>l.find(s=>Number(s.id)===e))))})})})]}),(0,r.jsx)(x.Vq,{open:y,onOpenChange:S,children:(0,r.jsxs)(x.cZ,{className:"flex flex-col items-center gap-10 rounded-lg ",children:[(0,r.jsx)("div",{className:"text-xl font-semibold capitalize",children:"Your result"}),(0,r.jsx)("div",{className:"flex flex-col items-center",children:(0,r.jsx)(g,{series:[I],type:"radialBar",options:{chart:{height:350,type:"radialBar"},plotOptions:{radialBar:{hollow:{size:"70%"},dataLabels:{name:{show:!0,color:"#000",fontSize:"16px",fontWeight:300},value:{show:!0,color:N(I),fontSize:"30px",formatter(){var e;return"".concat(_,"/").concat(null!==(e=null==b?void 0:b.length)&&void 0!==e?e:0)}}}}},labels:["Score"],colors:[N(I)]}})}),(0,r.jsx)("div",{children:w(I)}),(0,r.jsxs)("div",{className:"flex flex-row gap-10",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center rounded-lg border p-4",children:[(0,r.jsx)("div",{children:"Correct Answers"}),(0,r.jsx)("div",{children:_})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center rounded-lg border p-4",children:[(0,r.jsx)("div",{children:"Incorrect Answers"}),(0,r.jsx)("div",{children:E})]})]}),(0,r.jsxs)("div",{className:"flex flex-row gap-10",children:[(0,r.jsx)(c.z,{variant:"outline",className:"w-[150px] bg-neutral7 hover:bg-neutral6",onClick:()=>S(!1),children:"Show answers"}),(0,r.jsx)(c.z,{className:"w-[150px] bg-primary2 hover:bg-primary3",onClick:()=>s.push("/auth/sign-up/?more=true"),children:"Generate more"})]})]})})]})})}},82057:function(e,s,l){l.d(s,{Z:function(){return T}});var r=l(19506),n=l(70951),i=l(50185),t=l(22971),a=l(46837),d=l(27569),c=l(42084),o=l(76616),u=l(50105),x=l(11600);let m=l(78512).O.NEXT_PUBLIC_GA_MEASUREMENT_ID,f={pageView:e=>{window.gtag("config",m,{page_path:e})},event:(e,s)=>{window.gtag("event",e,{event_category:s.event_category,event_label:s.event_label,value:s.value,...s})},reportSignUp:()=>(window.gtag("event","conversion",{send_to:"AW-11359700250/TJf_COWJlfkYEJqK3agq"}),!1),reportUpgrade:()=>(window.gtag("event","conversion",{send_to:"AW-11359700250/66tnCOiJlfkYEJqK3agq",value:15,currency:"USD"}),!1)};var h=l(71941),v=l(75033),p=l(84518),g=l(30096),j=l(12926),N=l(53922);let w=o.z.object({email:o.z.string().email({message:"Email is required"}),password:o.z.string().min(1,{message:"Password is required"}),confirmPassword:o.z.string().min(1,{message:"Confirm password"})}).refine(e=>e.password===e.confirmPassword,{message:"Passwords dont match"}),b={email:"",password:"",confirmPassword:""};function C(e){let{open:s,onOpenChange:l}=e,[n,i]=(0,t.useState)(!1),o=(0,u.cI)({resolver:(0,x.F)(w),defaultValues:b}),{mutateAsync:m}=h.h.users.post.useMutation(),C=async e=>{i(!0),await m({firstName:"",lastName:"",email:e.email,password:e.password}).then(async()=>{o.clearErrors(),o.reset(),await (0,v.signIn)("credentials",{email:e.email,password:e.password,callbackUrl:"/dashboard",redirect:!0}),l(!1);try{f.reportSignUp()}catch(e){}}).catch(s=>{o.clearErrors(),o.setValue("email",e.email),o.setValue("password",e.password),o.setValue("confirmPassword",e.confirmPassword),(null==s?void 0:s.email)&&o.setError("email",{message:"Email is already in use."},{shouldFocus:!0})}).finally(()=>{i(!1)})};return(0,r.jsx)(a.Vq,{modal:!0,open:s,onOpenChange:l,children:(0,r.jsx)(a.cZ,{children:(0,r.jsxs)("div",{className:"mx-10 flex flex-col p-4",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)("div",{className:"text-2xl font-semibold leading-[133.333%] text-neutral-800",children:"Sign up for more"}),(0,r.jsx)("div",{children:"Register for free to access our question bank of 10,000+ questions and generate more practice questions"})]}),(0,r.jsx)("div",{className:"mt-7 flex w-full max-w-full items-center gap-4 self-center",children:(0,r.jsxs)(p.z,{variant:"outline",onClick:()=>(0,v.signIn)("google",{callbackUrl:"/dashboard?isActivated=true",redirect:!0}),className:"flex w-full flex-row items-center",children:[(0,r.jsx)(g.P.colorGoogle,{className:"mr-2 h-4 w-4"}),"Continue with Google"]})}),(0,r.jsxs)("div",{className:"mt-6 flex flex-row items-center justify-center gap-2",children:[(0,r.jsx)(j.Separator,{className:"w-[40%]"}),(0,r.jsx)("div",{className:"w-[10%] text-center",children:"Or"}),(0,r.jsx)(j.Separator,{className:"w-[40%]"})]}),(0,r.jsxs)("div",{className:"mt-7",children:[(0,r.jsx)(c.l0,{...o,children:(0,r.jsxs)("form",{id:"form",onSubmit:o.handleSubmit(C),children:[(0,r.jsx)(c.Wi,{disabled:n,name:"email",control:o.control,render:e=>{let{field:s}=e;return(0,r.jsxs)(c.xJ,{className:"mb-4 flex flex-col items-start justify-center self-stretch",children:[(0,r.jsx)(c.lX,{className:"text-sm font-medium leading-[150%] text-neutral-700",children:"Email"}),(0,r.jsx)(c.NI,{children:(0,r.jsx)(d.I,{className:"w-full grow rounded-lg border border-solid border-[color:var(--neutral-petro-5,#D9DBDD)] bg-white py-6 pl-3.5 pr-5 text-sm leading-[150%] text-neutral-500",placeholder:"[email protected]",type:"email",disabled:n,...s})}),(0,r.jsx)(c.zG,{})]})}}),(0,r.jsx)(c.Wi,{disabled:n,name:"password",control:o.control,render:e=>{let{field:s}=e;return(0,r.jsxs)(c.xJ,{className:"mb-4 flex flex-col items-start justify-center self-stretch",children:[(0,r.jsx)(c.lX,{className:"text-sm font-medium leading-[150%] text-neutral-700",children:"Password"}),(0,r.jsx)(c.NI,{children:(0,r.jsx)(d.I,{className:"w-full grow rounded-lg border border-solid border-[color:var(--neutral-petro-5,#D9DBDD)] bg-white py-6 pl-3.5 pr-5 text-sm leading-[150%] text-neutral-500",placeholder:"Password",type:"password",disabled:n,...s})}),(0,r.jsx)(c.zG,{})]})}}),(0,r.jsx)(c.Wi,{disabled:n,name:"confirmPassword",control:o.control,render:e=>{let{field:s}=e;return(0,r.jsxs)(c.xJ,{className:"mb-4 flex flex-col items-start justify-center self-stretch",children:[(0,r.jsx)(c.lX,{className:"text-sm font-medium leading-[150%] text-neutral-700",children:"Confirm Password"}),(0,r.jsx)(c.NI,{children:(0,r.jsx)(d.I,{className:"w-full grow rounded-lg border border-solid border-[color:var(--neutral-petro-5,#D9DBDD)] bg-white py-6 pl-3.5 pr-5 text-sm leading-[150%] text-neutral-500",placeholder:"Confirm Password",type:"password",disabled:n,...s})}),(0,r.jsx)(c.zG,{})]})}})]})}),(0,r.jsxs)(p.z,{type:"submit",form:"form",disabled:n,className:"mt-6 flex w-full flex-col items-center justify-center self-stretch rounded-lg bg-primary1 px-5 py-6 hover:bg-primary2",children:[n&&(0,r.jsx)(g.P.spinner,{className:"mr-2 h-4 w-4 animate-spin"}),(0,r.jsx)("span",{className:"self-center text-center text-sm font-medium leading-[171.429%] text-white",children:"Sign Up"})]}),(0,r.jsxs)("p",{className:"ml-2.5 mt-8 self-center text-base font-medium leading-6 text-blue-600",children:[(0,r.jsxs)("span",{className:"text-neutral-800",children:["Already have an account?"," "]}),(0,r.jsx)(N.default,{href:"/auth/sign-in",className:"text-blue-600 hover:text-primary2",children:"Login"})]})]})]})})})}var _=l(16329),E=l(12680),I=l(16835),y=l(29631),S=l(28747),z=l(31729),k=l(69860);let A=e=>{if(e<0||e>26)throw Error("Index out of range.");return String.fromCharCode(97+e).toUpperCase()};function T(){var e,s;let{bookId:l}=(0,S.Z)(),{setDemoQueryState:a}=(0,z.Z)(),{demoOptions:d,setDemoOptions:c}=(0,y.useDemoContext)(),[o,u]=(0,t.useState)(d.answeredQuestions.reduce((e,s,l,r)=>{var n,i;return s.questionId>(null!==(i=null===(n=r[e])||void 0===n?void 0:n.questionId)&&void 0!==i?i:0)?l:e},0)),{data:x,isLoading:m}=h.h.questions.getBySubchapterIdsAndBookId.useQuery({bookId:l,subChapters:d.selectedSubChapters.map(e=>e.id),limit:50}),f=(0,t.useMemo)(()=>d.answeredQuestions,[d.answeredQuestions]),v=(0,t.useCallback)(e=>{c({...d,answeredQuestions:e})},[c,d]),[g,j]=(0,t.useState)(null!==(s=null===(e=d.answeredQuestions.find(e=>{var s;return e.questionId===Number(null==x?void 0:null===(s=x[o])||void 0===s?void 0:s.id)}))||void 0===e?void 0:e.answerIds)&&void 0!==s?s:[]),[N,w]=(0,t.useState)(!1),b=e=>{if(!x)return(0,r.jsx)(r.Fragment,{});let s=x[e];if(!s)return(0,r.jsx)(r.Fragment,{});let l=s.answer_set.find(e=>e.is_correct);if(!f.find(e=>e.questionId===Number(s.id)))return(0,r.jsx)(r.Fragment,{});let n=f.find(e=>e.questionId===Number(s.id)&&l&&e.answerIds.includes(Number(l.id))&&g.includes(Number(l.id)));return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:(0,k.cn)("text-lg font-semibold transition-all duration-300 ease-in-out",n?"text-success2":"text-error2"),children:n?"Your answer is correct\uD83D\uDE42":"Your answer is incorrect. Try again"}),n&&(0,r.jsxs)("div",{className:"rounded-md border shadow",children:[(0,r.jsxs)("div",{className:"flex flex-col p-2",children:[(0,r.jsx)("div",{className:"text-lg",children:"Correct answer"}),(0,r.jsx)("div",{children:null==l?void 0:l.text})]}),(0,r.jsxs)("div",{className:"flex flex-col p-2",children:[(0,r.jsx)("div",{className:"text-lg",children:"Explanation"}),(0,r.jsx)("div",{children:s.explanation})]})]})]})},T=e=>{-1==f.findIndex(s=>s.questionId===e.questionId)?v([...f,e]):v(f.map(s=>s.questionId===e.questionId?{...s,answerIds:e.answerIds}:s))},[L,R]=(0,t.useState)(!0),D=async()=>
1{if(!x)return;o===x.length-1&&await q();let e=o+1;if(e<x.length){var s;u(e);let l=null==x?void 0:x[e],r=f.find(e=>e.questionId===Number(null==l?void 0:l.id));j(null!==(s=null==r?void 0:r.answerIds)&&void 0!==s?s:[])}},P=()=>{let e=o-1;if(e>=0){var s;u(e);let l=null==x?void 0:x[e],r=f.find(e=>e.questionId===Number(null==l?void 0:l.id));j(null!==(s=null==r?void 0:r.answerIds)&&void 0!==s?s:[])}},q=async()=>{if(L){w(!0),R(!1);return}c({...d,answeredQuestions:f}),await a(z.D.ShowingAnswers)};return(0,r.jsxs)("div",{className:"flex w-full flex-col items-center gap-10",children:[(0,r.jsx)("div",{className:"h-fit w-full rounded-md border p-10 shadow",children:(0,r.jsxs)("div",{className:"flex flex-col gap-10",children:[(0,r.jsxs)("div",{className:"flex flex-col items-start justify-between gap-2 md:flex-row md:items-center",children:[(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("div",{className:"text-lg font-bold",children:"Quiz"}),(0,r.jsx)("div",{children:"Answer all questions to quiz"})]}),(0,r.jsx)("div",{children:(0,r.jsx)(p.z,{variant:"secondary",onClick:async()=>await q(),children:"End quiz"})})]}),m&&(0,r.jsx)("div",{children:"Loading questions..."}),x&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,r.jsx)("div",{children:"Questions"}),(0,r.jsxs)("span",{className:"text-success2",children:["(",Math.round(o/(null==x?void 0:x.length)*100),"%)"]}),(0,r.jsx)("div",{className:"ml-auto",children:"".concat(o," / ").concat(x.length)})]}),(0,r.jsx)(E.E,{indicatorColor:"bg-success2",value:o/x.length*100})]}),(0,r.jsx)("div",{className:"h-fit",children:(e=>{var s,l;if(!x)return(0,r.jsx)(r.Fragment,{});let t=x[e];if(!t)return(0,r.jsx)(r.Fragment,{});let a=t.subchapter,d=t.answer_set.find(e=>e.is_correct);return d?(0,r.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,r.jsxs)("div",{className:"flex flex-row justify-between max-sm:flex-col",children:[(0,r.jsx)("div",{className:"text-lg font-bold",children:a.name}),(0,r.jsxs)(p.z,{variant:"ghost",className:"self-start p-2",onClick:()=>D(),children:["Skip question ",">>"]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,r.jsx)("div",{className:"text-lg font-semibold",children:"".concat(e+1,". ").concat(t.text)}),(0,r.jsx)("div",{className:"flex flex-col gap-2 p-2",children:(0,r.jsx)(I.E,{onValueChange:e=>{var s,l;T({answerIds:[...null!==(l=null===(s=f.find(e=>e.questionId===Number(t.id)))||void 0===s?void 0:s.answerIds.filter(s=>s!==Number(e)))&&void 0!==l?l:[],Number(e)],questionId:Number(t.id)}),j([Number(e)])},value:null!==(l=null===(s=g[0])||void 0===s?void 0:s.toString())&&void 0!==l?l:"",children:t.answer_set.map((e,s)=>(0,r.jsxs)("div",{onClick:()=>{var s,l;T({answerIds:[...null!==(l=null===(s=f.find(e=>e.questionId===Number(t.id)))||void 0===s?void 0:s.answerIds.filter(s=>s!==Number(e.id)))&&void 0!==l?l:[],Number(e.id)],questionId:Number(t.id)}),j([Number(e.id)])},className:(0,k.cn)("flex flex-row gap-2 rounded-lg p-4 shadow transition-all duration-300 ease-in-out",g.includes(Number(e.id))?d&&e.id===d.id?"bg-success2 text-white":"bg-error2 text-white":""),children:[(0,r.jsx)(I.m,{id:e.id.toString(),value:e.id.toString(),className:"bg-white",children:g.includes(Number(e.id))&&d&&e.id===d.id?(0,r.jsx)(n.Z,{className:"h-2.5 w-2.5 text-success2"}):(0,r.jsx)(i.Z,{className:"h-2.5 w-2.5 text-error2"})}),(0,r.jsx)(_._,{htmlFor:e.id.toString(),children:"".concat(A(s),". ").concat(e.text)})]},Number(e.id)))})}),(0,r.jsx)("div",{className:"flex flex-col gap-2 p-2 transition-all duration-300 ease-in-out",children:b(e)})]})]},Number(t.id)):(0,r.jsx)(r.Fragment,{})})(o)}),(0,r.jsxs)("div",{className:"flex flex-row gap-12 self-center",children:[(0,r.jsx)(p.z,{variant:"secondary",className:"px-[30px]",onClick:()=>P(),disabled:0==o,children:"Previous question"}),(0,r.jsx)(p.z,{className:"bg-primary1 px-[30px] hover:bg-primary3",onClick:D,disabled:!f.find(e=>{var s;return e.questionId===Number(null===(s=x.at(o))||void 0===s?void 0:s.id)}),children:o===x.length-1?"See results":"Next question"})]})]})]})}),(0,r.jsx)(C,{open:N,onOpenChange:w})]})}},62306:function(e,s,l){l.r(s),l.d(s,{default:function(){return o}});var r=l(19506),n=l(13507),i=l(33567),t=l(89032),a=l(59926),d=l(53922);let c=[{icon:(0,r.jsx)(i.Z,{}),link:"https://www.instagram.com/exammaker.ai/"},{icon:(0,r.jsx)(t.Z,{}),link:"https://www.facebook.com/exammakerai"}];function o(){return(0,r.jsxs)("footer",{className:"flex flex-col items-center gap-10 p-5 lg:mx-auto lg:w-[80%]",children:[(0,r.jsxs)("div",{className:"flex flex-row gap-24 self-start max-sm:flex-col max-sm:gap-10",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,r.jsx)(d.default,{href:"/",children:(0,r.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,r.jsx)(n.default,{loading:"lazy",alt:"Logo",src:a.Z,width:50}),(0,r.jsx)("div",{className:"self-center text-2xl font-black",children:"ExamMaker.ai"})]})}),(0,r.jsx)("div",{className:"max-w-sm",children:"Instantly convert any textbook into practice exams questions"}),(0,r.jsx)("div",{className:"flex flex-row gap-5",children:c.map((e,s)=>(0,r.jsx)(d.default,{href:e.link,children:e.icon},s))})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("div",{className:"font-bold",children:"Menu"}),(0,r.jsx)(d.default,{href:"/",children:"Home"}),(0,r.jsx)(d.default,{href:"/pricing",children:"Pricing"}),(0,r.jsx)(d.default,{href:"/demo",children:"Demo"}),(0,r.jsx)(d.default,{href:"/tests",children:"Tests"}),(0,r.jsx)(d.default,{href:"/resources",children:"Resources"})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("div",{className:"font-bold",children:"Legal"}),(0,r.jsx)(d.default,{href:"/privacy-policy",children:"Privacy policy"}),(0,r.jsx)(d.default,{href:"/terms-conditions",children:"Terms & Conditions"})]})]}),(0,r.jsxs)("div",{className:"self-center",children:["\xa9",new Date().getFullYear()," ExamMaker. All rights reserved"]})]})}},27569:function(e,s,l){l.d(s,{I:function(){return t}});var r=l(19506),n=l(22971),i=l(69860);let t=n.forwardRef((e,s)=>{let{className:l,type:n,...t}=e;return(0,r.jsx)("input",{type:n,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",l),ref:s,...t})});t.displayName="Input"},12926:function(e,s,l){l.r(s),l.d(s,{Separator:function(){return a}});var r=l(19506),n=l(22971),i=l(10053),t=l(69860);let a=n.forwardRef((e,s)=>{let{className:l,orientation:n="horizontal",decorative:a=!0,...d}=e;return(0,r.jsx)(i.f,{ref:s,decorative:a,orientation:n,className:(0,t.cn)("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",l),...d})});a.displayName=i.f.displayName},98410:function(e,s,l){l.d(s,{Qd:function(){return o},UQ:function(){return c},_m:function(){return u},o4:function(){return x},vF:function(){return m}});var r=l(19506),n=l(22971),i=l(6977),t=l(86716),a=l(58676),d=l(69860);let c=i.fC,o=n.forwardRef((e,s)=>{let{className:l,...n}=e;return(0,r.jsx)(i.ck,{ref:s,className:l,...n})});o.displayName="AccordionItem";let u=n.forwardRef((e,s)=>{let{className:l,children:n,...t}=e;return(0,r.jsx)(i.h4,{ref:s,className:l,...t,children:n})});u.displayName=i.h4.displayName;let x=n.forwardRef((e,s)=>{let{className:l,children:n,...c}=e;return(0,r.jsxs)(i.xz,{ref:s,className:(0,d.cn)("group flex items-center justify-between font-medium transition-all hover:underline",l),...c,children:[n,(0,r.jsx)(t.Z,{className:"h-4 w-4 shrink-0 transition-transform duration-200 group-data-[state=open]:hidden"}),(0,r.jsx)(a.Z,{className:"h-4 w-4 shrink-0 transition-transform duration-200 group-data-[state=closed]:hidden"})]})});x.displayName=i.xz.displayName;let m=n.forwardRef((e,s)=>{let{className:l,children:n,...t}=e;return(0,r.jsx)(i.VY,{ref:s,className:(0,d.cn)("overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",l),...t,children:(0,r.jsx)("div",{className:"pt-0",children:n})})});m.displayName=i.VY.displayName},51613:function(e,s,l){l.d(s,{X:function(){return c}});var r=l(19506),n=l(22971),i=l(21857),t=l(58676),a=l(70951),d=l(69860);let c=n.forwardRef((e,s)=>{let{className:l,intermediate:n,...c}=e;return(0,r.jsx)(i.fC,{ref:s,className:(0,d.cn)("data-[state=checked]:bg-primary1 border-neutral5 peer h-4 w-4 shrink-0 rounded-sm border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary-foreground",l),...c,children:(0,r.jsx)(i.z$,{className:"flex items-center justify-center text-current",children:n?(0,r.jsx)(t.Z,{className:"h-4 w-4"}):(0,r.jsx)(a.Z,{className:"h-4 w-4"})})})});c.displayName=i.fC.displayName},30096:function(e,s,l){l.d(s,{P:function(){return n}});var r=l(19506);let n={logo:e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...e,children:[(0,r.jsx)("rect",{width:"256",height:"256",fill:"none"}),(0,r.jsx)("line",{x1:"208",y1:"128",x2:"128",y2:"208",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),(0,r.jsx)("line",{x1:"192",y1:"40",x2:"40",y2:"192",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"})]}),twitter:e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 
10 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"})}),gitHub:e=>(0,r.jsx)("svg",{viewBox:"0 0 438.549 438.549",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"})}),radix:e=>(0,r.jsxs)("svg",{viewBox:"0 0 25 25",fill:"none",...e,children:[(0,r.jsx)("path",{d:"M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",fill:"currentcolor"}),(0,r.jsx)("path",{d:"M12 0H4V8H12V0Z",fill:"currentcolor"}),(0,r.jsx)("path",{d:"M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",fill:"currentcolor"})]}),aria:e=>(0,r.jsx)("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,r.jsx)("path",{d:"M13.966 22.624l-1.69-4.281H8.122l3.892-9.144 5.662 13.425zM8.884 1.376H0v21.248zm15.116 0h-8.884L24 22.624Z"})}),npm:e=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",fill:"currentColor"})}),yarn:e=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009
1-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",fill:"currentColor"})}),pnpm:e=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",fill:"currentColor"})}),react:e=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",fill:"currentColor"})}),tailwind:e=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z",fill:"currentColor"})}),google:e=>(0,r.jsx)("svg",{role:"img",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4
1-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})}),apple:e=>(0,r.jsx)("svg",{role:"img",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",fill:"currentColor"})}),paypal:e=>(0,r.jsx)("svg",{role:"img",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z",fill:"currentColor"})}),spinner:e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,r.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}),colorGoogle:e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 326667 333333",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",imageRendering:"optimizeQuality",fillRule:"evenodd",clipRule:"evenodd",...e,children:[(0,r.jsx)("path",{d:"M326667 170370c0-13704-1112-23704-3518-34074H166667v61851h91851c-1851  15371-11851 38519-34074 54074l-311 2071 49476 38329 3428 342c31481-29074 49630-71852 49630-122593m0 0z",fill:"#4285f4"}),(0,r.jsx)("path",{d:"M166667 333333c44999 0 82776-14815 110370-40370l-52593-40742c-14074  9815-32963 16667-57777 16667-44074 0-81481-29073-94816-69258l-1954 166-51447  39815-673 1870c27407 54444 83704 91852 148890 91852z",fill:"#34a853"}),(0,r.jsx)("path",{d:"M71851 199630c-3518-10370-5555-21482-5555-32963 0-11482 2036-22593  5370-32963l-93-2209-52091-40455-1704 811C6482 114444 1 139814 1 166666s6482  52221 17777 74814l54074-41851m0 0z",fill:"#fbbc04"}),(0,r.jsx)("path",{d:"M166667 64444c31296 0 52406 13519 64444 24816l47037-45926C249260  16482 211666 1 166667 1 101481 1 45185 37408 17777 91852l53889  41853c13520-40185 50927-69260 95001-69260m0 0z",fill:"#ea4335"})]})}},12680:function(e,s,l){l.d(s,{E:function(){return a}});var r=l(19506),n=l(22971),i=l(45923),t=l(69860);let a=n.forwardRef((e,s)=>{let{className:l,value:n,indicatorColor:a,...d}=e;return(0,r.jsx)(i.fC,{ref:s,className:(0,t.cn)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",l),...d,children:(0,r.jsx)(i.z$,{className:(0,t.cn)("h-full w-full flex-1 bg-primary transition-all",a),style:{transform:"translateX(-".concat(100-(null!=n?n:0),"%)")}})})});a.displayName=i.fC.displayName},16835:function(e,s,l){l.d(s,{E:function(){return d},m:function(){return c}});var r=l(19506),n=l(22971),i=l(14616),t=l(87254),a=l(69860);let d=n.forwardRef((e,s)=>{let{className:l,...n}=e;return(0,r.jsx)(i.fC,{className:(0,a.cn)("grid gap-2",l),...n,ref:s})});d.displayName=i.fC.displayName;let c=n.forwardRef((e,s)=>{let{className:l,children:n,...d}=e;return(0,r.jsx)(i.ck,{ref:s,className:(0,a.cn)("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",l),...d,children:(0,r.jsx)(i.z$,{className:"flex items-center justify-center",children:null!=n?n:(0,r.jsx)(t.Z,{className:"h-2.5 w-2.5 fill-current text-current"})})})});c.displayName=i.ck.displayName},29631:function(e,s,l){l.r(s),l.d(s,{DemoState:function(){return n},default:function(){return d},useDemoContext:function(){return c}});var r,n,i=l(19506),t=l(22971);(r=n||(n={}))[r.SelectingBook=0]="SelectingBook",r[r.SelectingChapters=1]="SelectingChapters",r[r.TakingQuiz=2]="TakingQuiz",r[r.ShowingAnswers=3]="ShowingAnswers";let a=(0,t.createContext)(null);function d(e){let{children:s}=e,[l,r]=(0,t.useState)({bookId:-1,questionsGroupId:-1,selectedSubChapters:[],answeredQuestions:[],demoState:0});return(0,i.jsx)(a.Provider,{value:{demoOptions:l,setDemoOptions:r},children:s})}function c(){let e=(0,t.useContext)(a);if(!e)throw Error("useDemoContext must be used within DemoContextProvider");return e}},28747:function(e,s,l){l.d(s,{Z:function(){return n}});var r=l(15086);function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"push",[s,l]=(0,r.v1)("bookId",r.
1U.withDefault(0).withOptions({history:e}));return{bookId:s,setBookId:l}}},31729:function(e,s,l){l.d(s,{D:function(){return n},Z:function(){return t}});var r,n,i=l(15086);function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"selecting-book",[s,l]=(0,i.v1)("step",(0,i.jx)(Object.values(n)).withDefault(e).withOptions({history:"push"}));return{demoQueryState:s,setDemoQueryState:l}}(r=n||(n={})).SelectingBook="selecting-book",r.SelectingChapters="selecting-chapters",r.TakingQuiz="taking-quiz",r.ShowingAnswers="showing-answers"},65632:function(e,s){s.Z={src:"/_next/static/media/LogoWhite.b2108dc4.svg",height:32,width:32,blurWidth:0,blurHeight:0}},84567:function(e,s){s.Z={src:"/_next/static/media/BookUploadedIcon.fde764cb.svg",height:32,width:32,blurWidth:0,blurHeight:0}},78512:function(e,s,l){l.d(s,{O:function(){return t}});var r=l(93941),n=l(76616),i=l(55426);let t=(0,r.D)({server:{DATABASE_URL:n.z.string().url(),NODE_ENV:n.z.enum(["development","test","production"]),NEXTAUTH_SECRET:n.z.string().min(1),NEXTAUTH_URL:n.z.preprocess(e=>{var s;return null!==(s=i.env.VERCEL_URL)&&void 0!==s?s:e},i.env.VERCEL?n.z.string().min(1):n.z.string().url()),GOOGLE_CLIENT_ID:n.z.string(),GOOGLE_CLIENT_SECRET:n.z.string(),AWS_SES_REGION:n.z.string(),AWS_ACCESS_KEY_ID:n.z.string(),AWS_SECRET_ACCESS_KEY:n.z.string(),EMAIL_SECRET_KEY:n.z.string(),RESEND_API_KEY:n.z.string(),PROMO_CODE:n.z.string()},client:{NEXT_PUBLIC_API_ENDPOINT:n.z.string().url(),NEXT_PUBLIC_FRONTEND_URL:n.z.string().url(),NEXT_PUBLIC_META_PIXEL_ID:n.z.string(),NEXT_PUBLIC_GA_MEASUREMENT_ID:n.z.string(),NEXT_PUBLIC_STRAPI_API_ENDPOINT:n.z.string().url(),NEXT_PUBLIC_STRAPI_ARTICLE_TOKEN:n.z.string()},runtimeEnv:{DATABASE_URL:i.env.DATABASE_URL,NODE_ENV:"production",NEXTAUTH_SECRET:i.env.NEXTAUTH_SECRET,NEXTAUTH_URL:i.env.NEXTAUTH_URL,GOOGLE_CLIENT_ID:i.env.GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET:i.env.GOOGLE_CLIENT_SECRET,NEXT_PUBLIC_API_ENDPOINT:"https://be-exammaker.com",NEXT_PUBLIC_FRONTEND_URL:"https://exammaker.ai",NEXT_PUBLIC_GA_MEASUREMENT_ID:"G-08JL2KNHQ6",NEXT_PUBLIC_META_PIXEL_ID:"1043582653497932",AWS_SES_REGION:i.env.AWS_SES_REGION,AWS_ACCESS_KEY_ID:i.env.AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY:i.env.AWS_SECRET_ACCESS_KEY,EMAIL_SECRET_KEY:i.env.EMAIL_SECRET_KEY,RESEND_API_KEY:i.env.RESEND_API_KEY,PROMO_CODE:i.env.PROMO_CODE,NEXT_PUBLIC_STRAPI_API_ENDPOINT:"https://exammaker-strapi-1821738cb0
1d6.herokuapp.com",NEXT_PUBLIC_STRAPI_ARTICLE_TOKEN:"962c1fce78d0a6a3439e7da9aa8ed16d90a016c6a73ee09216b0f3736603accb9fcfdcc8452b187b543f55791888eb1349fdd831a6653e21681b3c39d64697ad27c64757031ebf347541d0dc23866f2009f88e13cd8f190c63c7e17e7b18986f39144722b184d3ed0e16432b1dea757733b1b0047cf5ff347f6b6ef633a62927"},skipValidation:!!i.env.SKIP_ENV_VALIDATION})}}]);

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.