1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4601],{99585:function(e,n,s){"use strict";var t=s(67294),r="undefined"!==typeof s.g&&s.g.navigator&&"ReactNative"===s.g.navigator.product,a="undefined"!==typeof document;n.Z=a||r?t.useLayoutEffect:t.useEffect},70861:function(e,n,s){"use strict";s.d(n,{FT:function(){return i}});var t=s(67294),r=s(85893);const a=["as","disabled"];function i({tagName:e,disabled:n,href:s,target:t,rel:r,role:a,onClick:i,tabIndex:o=0,type:l}){e||(e=null!=s||null!=t||null!=r?"a":"button");const c={tagName:e};if("button"===e)return[{type:l||"button",disabled:n},c];const d=t=>{(n||"a"===e&&function(e){return!e||"#"===e.trim()}(s))&&t.preventDefault(),n?t.stopPropagation():null==i||i(t)};return"a"===e&&(s||(s="#"),n&&(s=void 0)),[{role:null!=a?a:"button",disabled:void 0,tabIndex:n?void 0:o,href:s,target:"a"===e?t:void 0,"aria-disabled":n||void 0,rel:"a"===e?r:void 0,onClick:d,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),d(e))}},c]}const o=t.forwardRef(((e,n)=>{let{as:s,disabled:t}=e,o=function(e,n){if(null==e)return{};var s,t,r={},a=Object.keys(e);for(t=0;t<a.length;t++)s=a[t],n.indexOf(s)>=0||(r[s]=e[s]);return r}(e,a);const[l,{tagName:c}]=i(Object.assign({tagName:s,disabled:t},o));return(0,r.jsx)(c,Object.assign({},o,l,{ref:n}))}));o.displayName="Button",n.ZP=o},32684:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/answer/[index]",function(){return s(38506)}])},38506:function(e,n,s){"use strict";s.r(n),s.d(n,{__N_SSP:function(){return l},default:function(){return c}});var t=s(85893),r=s(67294),a=s(44874),i=s(35005),o=function(e){var n=e.answerData,s=(0,r.useState)(0),o=s[0],l=s[1],c=(0,r.useState)([]),d=c[0],u=c[1],h=(0,r.useState)(),f=h[0],m=h[1],x=(0,r.useState)(!1),g=x[0],w=x[1];return(0,r.useEffect)((function(){u(n.sets[0].user_answers),m(n.sets[0].set_title)}),[]),(0,t.jsxs)("div",{className:"mb--80",children:[(0,t.jsx)("div",{className:"position-fixed p-2 start-0 top-0 w-100 border shadow-sm bg-light",children:(0,t.jsx)("div",{className:"row text-start mx-4",children:(0,t.jsx)("div",{className:"col ",children:(0,t.jsx)("h3",{className:" text-dark",children:f})})})}),(0,t.jsx)("div",{className:"innerContainer",children:(0,t.jsx)("div",{className:"row my-5 py-4 ",children:(0,t.jsxs)("div",{className:"col-12",children:[(0,t.jsxs)("div",{className:"",children:[(0,t.jsx)("span",{className:"gradientbtn ",children:"teaching Aptitude"}),(0,t.jsx)("h4",{className:"my-4",dangerouslySetInnerHTML:{__html:d.length>0&&d[o].question.question}})]}),(0,t.jsxs)("div",{className:" ms-4",children:[(0,t.jsx)("table",{className:"table",children:(0,t.jsxs)("tbody",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{scope:"row",children:(0,t.jsxs)("p",{className:"me-4",children:[d.length>0&&(d[o].user_answer==d[o].question.right_answer&&1==d[o].user_answer||1==d[o].question.right_answer?"\u2714\ufe0f":1!=d[o].user_answer&&1==d[o].right_answer&&"\u274c"),d.length>0&&1==d[o].user_answer&&1!=d[o].question.right_answer&&"\u274c"]})}),(0,t.jsx)("td",{children:(0,t.jsx)("p",{className:"",dangerouslySetInnerHTML:{__html:d.length>0&&d[o].question.option_1}})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsxs)("th",{scope:"row",children:[" ",(0,t.jsxs)("p",{className:"me-4",children:[d.length>0&&(d[o].user_answer==d[o].question.right_answer&&2==d[o].user_answer||2==d[o].question.right_answer?"\u2714\ufe0f":2!=d[o].user_answer&&2==d[o].right_answer&&"\u274c"),d.length>0&&2==d[o].user_answer&&2!=d[o].question.right_answer&&"\u274c"]})]}),(0,t.jsx)("td",{children:(0,t.jsx)("p",{className:"",dangerouslySetInnerHTML:{__html:d.length>0&&d[o].question.option_2}})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsxs)("th",{scope:"row",children:[" ",(0,t.jsxs)("p",{className:"me-4",children:[d.length>0&&(d[o].user_answer==d[o].question.right_answer&&3==d[o].user_answer||3==d[o].question.right_answer?"\u2714\ufe0f":3!=d[o].user_answer&&3==d[o].right_answer&&"\u274c"),d.length>0&&3==d[o].user_answer&&3!=d[o].question.right_answer&&"\u274c"]})]}),(0,t.jsxs)("td",{children:[" ",(0,t.jsx)("p",{className:"",dangerouslySetInnerHTML:{__html:d.length>0&&d[o].question.option_3}})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsxs)("th",{scope:"row",children:[" ",(0,t.jsxs)("p",{className:"me-4",children:[d.length>0&&(d[o].user_answer==d[o].question.right_answer&&4==d[o].user_answer||4==d[o].question.right_answer?"\u2714\ufe0f":4!=d[o].user_answer&&4==d[o].right_answer&&"\u274c"),d.length>0&&4==d[o].user_answer&&4!=d[o].question.right_answer&&"\u274c"]})]}),(0,t.jsx)("td",{colspan:"2",children:(0,t.jsx)("p",{className:"",dangerouslySetInnerHTML:{__html:d.length>0&&d[o].question.option_4}})})]})]})}),(0,t.jsx)("br",{}),(0,t.jsx)("h4",{className:"border border-top text-primary border-0 border-4 border-dark pt-4 fw-bold",children:"Explanation for the answer :"}),(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:d.length>0&&d[o].question.explenation}})]})]})})}),(0,t.jsx)("div",{className:" px-5 position-fixed bottom-0 shadow-lg bg-white start-0 w-100 border border-1 border-dark rounded",children:(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("div",{className:"co-12 col-md-6 p-3",children:(0,t.jsxs)("div",{className:"d-flex justify-content-center",children:[(0,t.jsxs)("h3",{children:[o+1,"/",d.length]}),d.length>0&&"-1"==d[o].user_answer&&(0,t.jsx)("div",{className:"",children:(0,t.jsx)("small",{className:"badge bg-secondary m-1",children:"Not Attended"})}),d.length>0&&d[o].user_answer==d[o].question.right_answer&&(0,t.jsx)("div",{className:"",children:(0,t.jsx)("small",{className:"badge bg-success m-1",children:"Right Answer"})}),d.length>0&&d[o].user_answer!=d[o].question.right_answer&&"-1"!=d[o].user_answer&&(0,t.jsx)("div",{className:"",children:(0,t.jsx)("small",{className:"badge bg-danger m-1",children:"Wrong Answer"})})]})}),(0,t.jsxs)("div",{className:"col-12 col-md-6 py-2 d-flex justify-content-between align-items-center",children:[(0,t.jsx)(i.Z,{variant:"primary",onClick:function(){return w(!0)},className:"",children:"Question Palette"}),(0,t.jsxs)("div",{className:" d-flex",children:[o>0&&(0,t.jsx)("button",{className:"btn btn-outline-dark mx-md-5 mx-2",onClick:function(){l(o-1)},children:"Previous"}),o<d.length-1&&(0,t.jsx)("button",{className:"btn btn-outline-dark mx-md-5 mx-2",onClick:function(){l(o+1)},children:"Next"})]})]})]})}),(0,t.jsxs)(a.Z,{show:g,onHide:function(){return w(!1)},placement:"end",children:[(0,t.jsx)(a.Z.Header,{closeButton:!0}),(0,t.jsx)(a.Z.Body,{children:(0,t.jsx)("div",{className:"col-12",children:(0,t.jsx)("div",{className:"rounded shadow ",children:(0,t.jsxs)("div",{className:"row p-4",children:[(0,t.jsx)("h4",{className:"text-center",children:"Question Palette"}),(0,t.jsx)("div",{className:"col-12"}),d.length>0&&d.map((function(e,n){return(0,t.jsx)("div",{className:"col-2 my-1",children:(0,t.jsx)("button",{onClick:function(){l(n),w(!1)},className:"btn rounded-pill ".concat(o==n?"btn-dark":"btn-outline-dark"),style:{width:"40px",height:"40px"},children:n+1})},n)}))]})})})})]})]})},l=!0,c=function(e){var n=e.answerData;return(0,t.jsx)("div",{children:(0,t.jsx)(o,{answerData:n.data})})}},35005:function(e,n,s){"use strict";var t=s(94184),r=s.n(t),a=s(67294),i=s(70861),o=s(76792),l=s(85893);const c=a.forwardRef((({as:e,bsPrefix:n,variant:s,size:t,active:a,className:c,...d},u)=>{const h=(0,o.vE)(n,"btn"),[f,{tagName:m}]=(0,i.FT)({tagName:e,...d}),x=m;return(0,l.jsx)(x,{...f,...d,ref:u,className:r()(c,h,a&&"active",s&&`${h}-${s}`,t&&`${h}-${t}`,d.href&&d.disabled&&"disabled")})}
1));c.displayName="Button",c.defaultProps={variant:"primary",active:!1,disabled:!1},n.Z=c},64819:function(e,n,s){"use strict";const t=s(67294).createContext(null);t.displayName="NavbarContext",n.Z=t},44874:function(e,n,s){"use strict";s.d(n,{Z:function(){return H}});var t=s(94184),r=s.n(t),a=s(99585),i=s(67294),o=new WeakMap,l=function(e,n){if(e&&n){var s=o.get(n)||new Map;o.set(n,s);var t=s.get(e);return t||((t=n.matchMedia(e)).refCount=0,s.set(t.media,t)),t}};function c(e,n){void 0===n&&(n="undefined"===typeof window?void 0:window);var s=l(e,n),t=(0,i.useState)((function(){return!!s&&s.matches})),r=t[0],c=t[1];return(0,a.Z)((function(){var s=l(e,n);if(!s)return c(!1);var t=o.get(n),r=function(){c(s.matches)};return s.refCount++,s.addListener(r),r(),function(){s.removeListener(r),s.refCount--,s.refCount<=0&&(null==t||t.delete(s.media)),s=void 0}}),[e]),r}var d=function(e){var n=Object.keys(e);function s(e,n){return e===n?n:e?e+" and "+n:n}function t(s){var t=function(e){return n[Math.min(n.indexOf(e)+1,n.length-1)]}(s),r=e[t];return"(max-width: "+(r="number"===typeof r?r-.2+"px":"calc("+r+" - 0.2px)")+")"}return function(n,r,a){var o,l;"object"===typeof n?(o=n,a=r,r=!0):((l={})[n]=r=r||!0,o=l);var d=(0,i.useMemo)((function(){return Object.entries(o).reduce((function(n,r){var a=r[0],i=r[1];return"up"!==i&&!0!==i||(n=s(n,function(n){var s=e[n];return"number"===typeof s&&(s+="px"),"(min-width: "+s+")"}(a))),"down"!==i&&!0!==i||(n=s(n,t(a))),n}),"")}),[JSON.stringify(o)]);return c(d,a)}}({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),u=s(78146),h=s(87785),f=s(41068),m=s(66611),x=(0,m.Z)("offcanvas-body"),g=s(8662),w=s(93825),p=s(32785),v=s(76792),b=s(85893);const j={[g.d0]:"show",[g.cn]:"show"},N=i.forwardRef((({bsPrefix:e,className:n,children:s,...t},a)=>(e=(0,v.vE)(e,"offcanvas"),(0,b.jsx)(p.Z,{ref:a,addEndListener:w.Z,...t,childRef:s.ref,children:(t,a)=>i.cloneElement(s,{...a,className:r()(n,s.props.className,(t===g.d0||t===g.Ix)&&`${e}-toggling`,j[t])})}))));N.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1},N.displayName="OffcanvasToggling";var _=N,y=s(36467),k=s(64819),E=s(703);const Z=i.forwardRef((({bsPrefix:e,className:n,...s},t)=>(e=(0,v.vE)(e,"offcanvas-header"),(0,b.jsx)(E.Z,{ref:t,...s,className:r()(n,e)}))));Z.displayName="OffcanvasHeader",Z.defaultProps={closeLabel:"Close",closeButton:!1};var q=Z;const C=(0,s(39602).Z)("h5");var O=(0,m.Z)("offcanvas-title",{Component:C}),S=s(89673);function P(e){return(0,b.jsx)(_,{...e})}function F(e){return(0,b.jsx)(f.Z,{...e})}const T=i.forwardRef((({bsPrefix:e,className:n,children:s,"aria-labelledby":t,placement:a,responsive:o,show:l,backdrop:c,keyboard:f,scroll:m,onEscapeKeyDown:x,onShow:g,onHide:w,container:p,autoFocus:j,enforceFocus:N,restoreFocus:_,restoreFocusOptions:E,onEntered:Z,onExit:q,onExiting:C,onEnter:O,onEntering:T,onExited:H,backdropClassName:M,manager:L,renderStaticNode:$,...D},I)=>{const R=(0,i.useRef)();e=(0,v.vE)(e,"offcanvas");const{onToggle:B}=(0,i.useContext)(k.Z)||{},[A,K]=(0,i.useState)(!1),Q=d(o||"xs","up");(0,i.useEffect)((()=>{K(o?l&&!Q:l)}),[l,o,Q]);const W=(0,u.Z)((()=>{null==B||B(),null==w||w()})),X=(0,i.useMemo)((()=>({onHide:W})),[W]);const z=(0,i.useCallback)((n=>(0,b.jsx)("div",{...n,className:r()(`${e}-backdrop`,M)})),[M,e]),J=i=>(0,b.jsx)("div",{...i,...D,className:r()(n,o?`${e}-${o}`:e,`${e}-${a}`),"aria-labelledby":t,children:s});return(0,b.jsxs)(b.Fragment,{children:[!A&&(o||$)&&J({}),(0,b.jsx)(y.Z.Provider,{value:X,children:(0,b.jsx)(h.Z,{show:A,ref:I,backdrop:c,container:p,keyboard:f,autoFocus:j,enforceFocus:N&&!m,restoreFocus:_,restoreFocusOptions:E,onEscapeKeyDown:x,onShow:g,onHide:W,onEnter:(e,...n)=>{e&&(e.style.visibility="visible"),null==O||O(e,...n)},onEntering:T,onEntered:Z,onExit:q,onExiting:C,onExited:(e,...n)=>{e&&(e.style.visibility=""),null==H||H(...n)},manager:L||(m?(R.current||(R.current=new S.Z({handleContainerOverflow:!1})),R.current):(0,S.t)()),transition:P,backdropTransition:F,renderBackdrop:z,renderDialog:J})})]})}));T.displayName="Offcanvas",T.defaultProps={show:!1,backdrop:!0,keyboard:!0,scroll:!1,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,placement:"start",renderStaticNode:!1};var H=Object.assign(T,{Body:x,Header:q,Title:O})}},function(e){e.O(0,[8662,1886,9774,2888,179],(function(){return n=32684,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.