PageSourceSearch

https://supermocks.com/_next/static/chunks/pages/saved-question/[id]/attempt-8ac742b2f2ef8429.js

js supermocks.com collected 2026-10-02 01:49:22 UTC 19,863 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5648],{53219:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(91373).Z)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},82701:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(91373).Z)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},88275:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/saved-question/[id]/attempt",function(){return r(16719)}])},85030:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(85893);function s(e){var t=e.className,r=void 0===t?"":t,s=e.title,a=void 0===s?"No content available":s,o=e.description;return(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center gap-5 py-16 text-center ".concat(r),children:[(0,n.jsx)(i,{className:"h-40 w-40 md:h-44 md:w-44"}),(0,n.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,n.jsx)("h3",{className:"mb-0 max-w-md text-lg font-bold tracking-tight text-foreground md:text-xl",children:a}),o&&(0,n.jsx)("p",{className:"mb-0 max-w-md text-sm text-muted-foreground",children:o})]})]})}function i(e){var t=e.className,r=void 0===t?"":t;return(0,n.jsxs)("svg",{viewBox:"0 0 200 178",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-hidden":"true",className:r,children:[(0,n.jsx)("circle",{cx:"100",cy:"82",r:"72",fill:"hsl(var(--primary))",opacity:"0.07"}),(0,n.jsx)("rect",{x:"54",y:"34",width:"76",height:"96",rx:"12",fill:"hsl(var(--muted))",stroke:"hsl(var(--border))",strokeWidth:"2"}),(0,n.jsx)("rect",{x:"67",y:"53",width:"50",height:"7",rx:"3.5",fill:"hsl(var(--muted-foreground))",opacity:"0.35"}),(0,n.jsx)("rect",{x:"67",y:"68",width:"38",height:"7",rx:"3.5",fill:"hsl(var(--muted-foreground))",opacity:"0.28"}),(0,n.jsx)("rect",{x:"67",y:"83",width:"44",height:"7",rx:"3.5",fill:"hsl(var(--muted-foreground))",opacity:"0.22"}),(0,n.jsx)("circle",{cx:"120",cy:"106",r:"27",fill:"hsl(var(--background))",stroke:"hsl(var(--primary))",strokeWidth:"5"}),(0,n.jsx)("circle",{cx:"120",cy:"106",r:"14",fill:"hsl(var(--primary))",opacity:"0.12"}),(0,n.jsx)("line",{x1:"141",y1:"127",x2:"160",y2:"146",stroke:"hsl(var(--primary))",strokeWidth:"7",strokeLinecap:"round"}),(0,n.jsx)("circle",{cx:"48",cy:"120",r:"3.5",fill:"hsl(var(--primary))",opacity:"0.4"}),(0,n.jsx)("circle",{cx:"150",cy:"44",r:"2.5",fill:"hsl(var(--primary))",opacity:"0.35"}),(0,n.jsx)("circle",{cx:"40",cy:"60",r:"2",fill:"hsl(var(--muted-foreground))",opacity:"0.3"})]})}},84298:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var n=r(85893),s=r(59417),i=r(67814),a=r(67294),o=r(19201),c=r(35739),l=r(70499),u=r(93223),d=r(63755),f=r(61784),m=r(7386),p=r(73716),h=r(21359),x=r(29823);function v(e){var t=e.test_id,r=e.question_id,v=e.user_id,g=e.buttonText,b=void 0===g?"":g,y=e.isQuiz,N=void 0!==y&&y,j=(0,a.useState)(!1),_=j[0],w=j[1],Z=(0,a.useState)(),q=Z[0],z=Z[1],k=(0,a.useState)(!1),S=k[0],Q=k[1],C=(0,a.useRef)(null),E=(0,a.useRef)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(c.z,{variant:"ghost",onClick:function(){return w(!0)},id:"report-question-button",size:"icon",children:[(0,n.jsx)(i.G,{id:"report-question-button-icon",size:"lg",className:"text-amber-500",icon:s.ik8}),b&&(0,n.jsx)("span",{id:"report-question-button-text",children:b})]}),(0,n.jsx)(l.Vq,{open:_,onOpenChange:w,children:(0,n.jsxs)(l.cZ,{closeButton:!0,className:"border-border",children:[(0,n.jsx)(l.fK,{children:(0,n.jsx)(l.$N,{children:"Report Question"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(u._,{htmlFor:"report-issue",children:"Report Reason"}),(0,n.jsxs)(d.Ph,{value:q||"",onValueChange:z,children:[(0,n.jsx)(d.i4,{id:"report-issue",children:(0,n.jsx)(d.ki,{placeholder:"-- Select --"})}),(0,n.jsx)(d.Bw,{portalled:!1,children:x.mt.map((function(e){return(0,n.jsx)(d.Ql,{value:e,children:e},e)}))})]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(u._,{htmlFor:"report-comment",children:"Comments"}),(0,n.jsx)(f.g,{id:"report-comment",ref:C})]})]}),(0,n.jsx)(l.cN,{children:(0,n.jsx)(c.z,{onClick:function(){var e;if(!E.current&&_){var n=(0,p.i5)(null===(e=C.current)||void 0===e?void 0:e.value);if(!(0,h.Z)(null===n||void 0===n?void 0:n.trim()))E.current=!0,Q(!0),(N?m.sQ:m.F2)(N?{quiz_id:t,question_id:r,user_id:v,issue:q,comment:n}:{test_id:t,question_id:r,user_id:v,issue:q,comment:n}).then((function(){o.A.info("Question has been reported."),w(!1)})).finally((function(){E.current=!1,Q(!1)}))}},disabled:S,children:S?"Submitting...":"Submit"})})]})})]})}},93223:function(e,t,r){"use strict";r.d(t,{_:function(){return d}});
1var n=r(26042),s=r(99534),i=r(85893),a=r(67294),o=r(49102),c=r(12003),l=r(62461),u=(0,c.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=a.forwardRef((function(e,t){var r=e.className,a=(0,s.Z)(e,["className"]);return(0,i.jsx)(o.f,(0,n.Z)({ref:t,className:(0,l.cn)(u(),r)},a))}));d.displayName=o.f.displayName},63755:function(e,t,r){"use strict";r.d(t,{Bw:function(){return g},Ph:function(){return m},Ql:function(){return b},i4:function(){return h},ki:function(){return p}});var n=r(26042),s=r(69396),i=r(99534),a=r(85893),o=r(67294),c=r(76405),l=r(8971),u=r(84979),d=r(13742),f=r(62461),m=c.fC,p=(c.ZA,c.B4),h=o.forwardRef((function(e,t){var r=e.className,o=e.children,u=(0,i.Z)(e,["className","children"]);return(0,a.jsxs)(c.xz,(0,s.Z)((0,n.Z)({ref:t,className:(0,f.cn)("flex h-10 w-full cursor-pointer items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background transition-colors data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r)},u),{children:[o,(0,a.jsx)(c.JO,{asChild:!0,children:(0,a.jsx)(l.Z,{className:"h-4 w-4 opacity-50"})})]}))}));h.displayName=c.xz.displayName;var x=o.forwardRef((function(e,t){var r=e.className,o=(0,i.Z)(e,["className"]);return(0,a.jsx)(c.u_,(0,s.Z)((0,n.Z)({ref:t,className:(0,f.cn)("flex cursor-default items-center justify-center py-1",r)},o),{children:(0,a.jsx)(u.Z,{className:"h-4 w-4"})}))}));x.displayName=c.u_.displayName;var v=o.forwardRef((function(e,t){var r=e.className,o=(0,i.Z)(e,["className"]);return(0,a.jsx)(c.$G,(0,s.Z)((0,n.Z)({ref:t,className:(0,f.cn)("flex cursor-default items-center justify-center py-1",r)},o),{children:(0,a.jsx)(l.Z,{className:"h-4 w-4"})}))}));v.displayName=c.$G.displayName;var g=o.forwardRef((function(e,t){var r=e.className,o=e.children,l=e.position,u=void 0===l?"popper":l,d=e.portalled,m=void 0===d||d,p=(0,i.Z)(e,["className","children","position","portalled"]),h=(0,a.jsxs)(c.VY,(0,s.Z)((0,n.Z)({ref:t,className:(0,f.cn)("relative z-[100] max-h-[var(--radix-select-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[var(--radix-select-content-transform-origin)]","popper"===u&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:u},p),{children:[(0,a.jsx)(x,{}),(0,a.jsx)(c.l_,{className:(0,f.cn)("p-1","popper"===u&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,a.jsx)(v,{})]}));return m?(0,a.jsx)(c.h_,{children:h}):h}));g.displayName=c.VY.displayName,o.forwardRef((function(e,t){var r=e.className,s=(0,i.Z)(e,["className"]);return(0,a.jsx)(c.__,(0,n.Z)({ref:t,className:(0,f.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",r)},s))})).displayName=c.__.displayName;var b=o.forwardRef((function(e,t){var r=e.className,o=e.children,l=(0,i.Z)(e,["className","children"]);return(0,a.jsxs)(c.ck,(0,s.Z)((0,n.Z)({ref:t,className:(0,f.cn)("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors duration-200 hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",r)},l),{children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(c.wU,{children:(0,a.jsx)(d.Z,{className:"h-4 w-4"})})}),(0,a.jsx)(c.eT,{children:o})]}))}));b.displayName=c.ck.displayName,o.forwardRef((function(e,t){var r=e.className,s=(0,i.Z)(e,["className"]);return(0,a.jsx)(c.Z0,(0,n.Z)({ref:t,className:(0,f.cn)("-mx-1 my-1 h-px bg-muted",r)},s))})).displayName=c.Z0.displayName},61784:function(e,t,r){"use strict";r.d(t,{g:function(){return c}});var n=r(26042),s=r(99534),i=r(85893),a=r(67294),o=r(62461),c=a.forwardRef((function(e,t){var r=e.className,a=(0,s.Z)(e,["className"]);return(0,i.jsx)("textarea",(0,n.Z)({className:(0,o.cn)("flex min-h-[80px] w-full rounded-lg border border-input bg-background px-3 py-2 text-base text-foreground ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t},a))}));c.displayName="Textarea"},13348:function(e,t,r){"use strict";r.d(t,{y:function(){return m}});var n=r(47568),s=r(97582),i=r(67294),a=r(19201),o=r(47041),c=r(29823),l=r(738
16),u=r(11163),d=r(89885),f=r(96486),m=function(e,t){var r=(0,i.useContext)(d.Z).appConfig,m=(0,i.useState)({}),p=m[0],h=m[1],x=(0,i.useState)([]),v=x[0],g=x[1],b=(0,i.useState)(!0),y=b[0],N=b[1],j=(0,u.useRouter)(),_=function(e){localStorage.setItem(c.dA.SAVED_QUIZ_QUESTIONS_MAP,JSON.stringify(e)),h(e)},w=function(){var e=(0,n.Z)((function(){var e,t,n,i,a,u;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:if(e=(0,o.getCookie)(c.z1),(0,f.isEmpty)(r.web_menuitems)||!(0,f.some)(r.web_menuitems,{type:"SAVED_QUESTION"}))return N(!1),[2];s.label=1;case 1:return s.trys.push([1,3,4,5]),[4,(0,l.A_)({baseURL:e})];case 2:return 200===(null===(n=s.sent())||void 0===n||null===(t=n.data)||void 0===t?void 0:t.status)&&Array.isArray(n.data.data)&&(i=n.data.data,g(i),a={},i.forEach((function(e){(null===e||void 0===e?void 0:e.id)&&(a[e.id]=!0)})),_(a)),[3,5];case 3:return u=s.sent(),console.error("Error fetching saved quiz questions:",u),[3,5];case 4:return N(!1),[7];case 5:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,i.useEffect)((function(){var e=function(){var e=(0,n.Z)((function(){var e,t,r;return(0,s.__generator)(this,(function(n){switch(n.label){case 0:if(!(e=localStorage.getItem(c.dA.SAVED_QUIZ_QUESTIONS_MAP)))return[3,5];n.label=1;case 1:return n.trys.push([1,2,,4]),t=JSON.parse(e),h(t),N(!1),[3,4];case 2:return r=n.sent(),console.error("Error parsing saved quiz questions:",r),[4,w()];case 3:return n.sent(),[3,4];case 4:return[3,7];case 5:return[4,w()];case 6:n.sent(),n.label=7;case 7:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}();e()}),[]);var Z=function(){var i=(0,n.Z)((function(){var n,i,u,d,m;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:if(!e||!t)return a.A.error("Missing required data to save the quiz question.",{autoClose:1e3}),[2];if(n=(0,o.getCookie)(c.z1),(0,f.isEmpty)(r.web_menuitems)||!(0,f.some)(r.web_menuitems,{type:"SAVED_QUESTION"}))return[2];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,(0,l.GF)({questionId:e,quizId:t,baseURL:n})];case 2:return 200===(null===(i=s.sent())||void 0===i?void 0:i.status)&&(null===i||void 0===i?void 0:i.data)&&(u=i.data[e],d=function(){try{var e=localStorage.getItem(c.dA.SAVED_QUIZ_QUESTIONS_MAP);return e?JSON.parse(e):{}}catch(t){return console.error("Error parsing saved quiz questions:",t),{}}}(),u?d[e]=!0:delete d[e],_(d),a.A.success(u?"Added to saved quiz questions":"Removed from saved quiz questions",{autoClose:1e3})),[3,4];case 3:return m=s.sent(),console.error("Error while saving quiz question:",m),a.A.error("Error while saving quiz question.",{autoClose:1e3}),[3,4];case 4:return[2]}}
1))}));return function(){return i.apply(this,arguments)}}(),q=(0,f.debounce)(Z,500),z=function(){var e=(0,n.Z)((function(e,t){var r,n,i;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:if(!e||!t)return a.A.error("No question ID provided for deletion.",{autoClose:1e3}),[2];s.label=1;case 1:return s.trys.push([1,5,,6]),r=(0,o.getCookie)(c.z1),[4,(0,l.GF)({questionId:e,quizId:t,baseURL:r})];case 2:return 200===(null===(n=s.sent())||void 0===n?void 0:n.status)&&(null===n||void 0===n?void 0:n.data)?[4,w()]:[3,4];case 3:s.sent(),j.replace("/saved-question?type=quiz"),a.A.success("Quiz question removed from saved.",{autoClose:1e3}),s.label=4;case 4:return[3,6];case 5:return i=s.sent(),console.error("Error while deleting saved quiz question:",i),a.A.error("Error while deleting saved quiz question.",{autoClose:1e3}),[3,6];case 6:return[2]}}))}));return function(t,r){return e.apply(this,arguments)}}();return{loading:y,isSaved:(0,i.useMemo)((function(){return!!e&&Boolean(p[e])}),[e,p]),handleSaveQuizQuestion:q,handleDeleteQuizQuestion:z,savedQuizQuestionsMap:p,fetchAndStoreSavedQuizQuestions:w,savedQuizQuestionsData:v}}},16719:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return w},default:function(){return Z}});var n=r(47568),s=r(26042),i=r(69396),a=r(97582),o=r(85893),c=r(67294),l=r(11163),u=r(47041),d=r(29823),f=r(53219),m=r(20816),p=r(82701),h=r(35739),x=r(70499),v=r(40048),g=r(13348),b=r(7386),y=r(84298),N=r(89327),j=r(85030),_=r(96486),w=!0;function Z(e){var t=e.savedQuestion,r=e.nextQuestionId,w=e.prevQuestionId,Z=e.userId,q=e.type,z=e.sectionId,k=(0,l.useRouter)(),S=(0,c.useState)(null),Q=S[0],C=S[1],E=(0,c.useState)(r),A=E[0],I=E[1],R=(0,c.useState)(w),U=R[0],O=R[1],D=(0,c.useState)(!1),T=D[0],B=D[1],V=(0,c.useState)(!1),M=V[0],P=V[1],G=(0,c.useState)(!1),L=G[0],F=G[1],J=(0,v.K)().handleDeleteQuestion,$=(0,g.y)().handleDeleteQuizQuestion;(0,c.useEffect)((function(){if(t){var e=(0,i.Z)((0,s.Z)({},t),{options:t.options.map((function(e){return(0,i.Z)((0,s.Z)({},e),{selected:!1})}))});C(e)}}),[t]);var K=(0,c.useCallback)((function(e){C(e)}),[]),W=(0,c.useCallback)((function(e){if(Q){var t=Q.options.map((function(t){return Q.multiple_correct?t.option_number===e.option_number?(0,i.Z)((0,s.Z)({},t),{selected:!t.selected}):t:(0,i.Z)((0,s.Z)({},t),{selected:t.option_number===e.option_number})}));K((0,i.Z)((0,s.Z)({},Q),{options:t})),B(!0)}}),[Q,K]),X=(0,c.useCallback)(function(){var e=(0,n.Z)((function(e){var t,r,n,o,c,l,f,m,p;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(!e)return[2];F(!0),B(!1),a.label=1;case 1:return a.trys.push([1,6,7,8]),n=(0,u.getCookie)(d.z1),"quiz"!==q?[3,3]:[4,(0,b.ap)({baseURL:n,questionId:e})];case 2:return c=a.sent(),[3,5];case 3:return[4,(0,b.iL)({baseURL:n,questionId:e,sectionId:z})];case 4:c=a.sent(),a.label=5;case 5:return 200===(null===(o=c)||void 0===o||null===(t=o.data)||void 0===t?void 0:t.status)&&(null===o||void 0===o||null===(r=o.data)||void 0===r?void 0:r.data)&&(l=o.data.data,f=Array.from({length:10},(function(e,t){if(!(0,_.isEmpty)(l["option_".concat(t)])||!(0,_.isEmpty)(l["option_image_".concat(t)]))return{option:l["option_".concat(t)],option_number:t,option_image:l["option_image_".concat(t)]||"",optionval:"",selected:!1}})).filter(Boolean),m=(0,i.Z)((0,s.Z)({},l),{options:f}),C(m),I(o.data.nextQuestionId),O(o.data.prevQuestionId),k.push("/saved-question/".concat(e,"/attempt?type=").concat(q).concat(z?"&sectionId=".concat(z):""),void 0,{shallow:!0})),[3,8];case 6:return p=a.sent(),console.error("Error fetching question:",p),[3,8];case 7:return F(!1),[7];case 8:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}(),[k,q,z]),Y=function(){return P((function(e){return!e}))},H=function(){var e=(0,n.Z)((function(){return(0,a.__generator)(this,(function(e){switch(e.label){case 0:return Q?"quiz"!==q?[3,2]:[4,$(Q.id,Q.quiz_id)]:[2];case 1:return e.sent(),[3,4];case 2:return[4,J(Q.id,Q.test_series_id,Q.test_id)];case 3:e.sent(),e.label=4;case 4:return Y(),k.push("/saved-question?type=".concat(q)),[2]}}))}));return function(){return e.apply(this,arguments)}}();if(L)return(0,o.jsx)("div",{className:"mx-auto w-full max-w-3xl px-4 pb-16 pt-8 md:px-0",children:(0,o.jsxs)("div",{className:"animate-pulse space-y-4","aria-hidden":"true",children:[(0,o.jsx)("div",{className:"h-9 w-28 rounded-lg bg-muted"}),(0,o.jsx)("div",{className:"h-3 w-2/3 rounded bg-muted"}),(0,o.jsx)("div",{className:"h-72 rounded-xl border border-border bg-card"})]})});if(!Q)return(0,o.jsx)("div",{className:"mx-auto w-full max-w-3xl px-4 pb-16 pt-8 md:px-0",children:(0,o.jsx)(j.Z,{})});var ee="quiz"===q?"Quiz: ".concat(Q.quiz_title||"Untitled Quiz"):"".concat(Q.test_series_title," > Test > ").concat(Q.test_title);return(0,o.jsxs)("div",{className:"mx-auto w-full max-w-3xl px-4 pb-16 pt-8 md:px-0",children:[(0,o.jsxs)("div",{className:"mb-5 flex items-start justify-between gap-4",children:[(0,o.jsxs)(h.z,{variant:"ghost",className:"-ml-2 gap-2 font-bold",onClick:function(){return k.push("/saved-question?type=".concat(q))},children:[(0,o.jsx)(f.Z,{className:"h-4 w-4","aria-hidden":"true"}),"Go Back"]}),(0,o.jsxs)("div",{className:"flex items-center gap-1",children:[(0,o.jsx)(y.Z,{question_id:Q.id,test_id:"quiz"===q?Q.quiz_id:Q.test_id,user_id:Z}),(0,o.jsxs)("button",{type:"button",onClick:Y,title:"Saved \u2014 remove from your saved questions",className:"flex items-center gap-2 rounded-lg border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-sm font-bold text-amber-700 transition-colors hover:bg-amber-500/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring dark:text-amber-400",children:[(0,o.jsx)(m.Z,{className:"h-4 w-4 fill-current","aria-hidden":"true"}),"Saved"]})]})]}),(0,o.jsx)("p",{className:"mb-4 text-[13px] font-semibold text-foreground/70",children:ee}),(0,o.jsx)(N.Z,{question:Q,setAnswer:W,showSolution:T,layout:"GRID",shell:"attempt"}),(0,o.jsxs)("div",{className:"mt-5 flex items-center justify-between gap-3",children:[(0,o.jsxs)(h.z,{variant:"outline",className:"gap-2 font-bold",onClick:function(){return X(U)},disabled:!U||L,children:[(0,o.jsx)(f.Z,{className:"h-4 w-4","aria-hidden":"true"}),"Previous"]}),(0,o.jsxs)(h.z,{variant:"outline",className:"gap-2 font-bold",onClick:function(){return X(A)},disabled:!A||L,children:["Next",(0,o.jsx)(p.Z,{className:"h-4 w-4","aria-hidden":"true"})]})]}),(0,o.jsx)(x.Vq,{open:M,onOpenChange:function(e){e||Y()},children:(0,o.jsxs)(x.cZ,{closeButton:!0,className:"max-w-md",children:[(0,o.jsxs)(x.fK,{children:[(0,o.jsx)(x.$N,{children:"Confirm Delete"}),(0,o.jsx)(x.Be,{children:"Are you sure you want to delete this saved question?"})]}),(0,o.jsxs)(x.cN,{children:[(0,o.jsx)(h.z,{variant:"destructive",onClick:H,children:"Delete"}),(0,o.jsx)(h.z,{variant:"outline",onClick:Y,children:"Cancel"})]})]})})]})}},21359:function(e,t,r){"use strict";var n=r(82670);t.Z=function(e){if(null===e||void 0===e)return!0;if("string"===typeof e)return""===e;if(Array.isArray(e)||"object"===typeof e&&null!==e){if((0,n.Z)(e,Map)||(0,n.Z)(e,Set))return 0===e.size;if(0===Object.keys(e).length)return!0}return!1}}},function(e){e.O(0,[8534,614,5675,8404,8769,3469,9327,9774,2888,179],(function(){return t=88275,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.