PageSourceSearch

https://welovedevs.com/app/scripts/test_question.9e8f15b3dd0ffbc8c7c1.js

js welovedevs.com collected 2026-10-03 21:45:57 UTC 20,080 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2474],{17874:(e,t,s)=>{s.d(t,{Fk:()=>u,XD:()=>r,bv:()=>l,cN:()=>i,he:()=>c,mD:()=>o,rd:()=>a});var n=s(25361);const l=(e,t,s,l)=>(0,n.PS)(`tests/detail/${e}/questions/${t}/ratings/${s}/comments/${l}`,null),a=(e,t,s)=>Promise.all([(0,n.PS)(`tests/detail/${e}/questions/${t}/ratings/${s}`,null),(0,n.PS)(`users/${s}/tests/relevantRatings/${e}/${t}/`,null)]),o=(e,t,s,l,a,o)=>{const i=(0,n.K3)(`tests/detail/${e}/questions/${t}/ratings/${s}/comments/`);return(0,n.PS)(`tests/detail/${e}/questions/${t}/ratings/${s}/comments/${i}`,{devId:l,message:a,timestamp:(new Date).getTime(),locale:o})},i=(e,t,s,l,a,o)=>Promise.all([(0,n.PS)(`tests/detail/${e}/questions/${t}/ratings/${s}/message`,l),(0,n.PS)(`tests/detail/${e}/questions/${t}/ratings/${s}/timestamp`,(new Date).getTime()),o&&(0,n.PS)(`tests/detail/${e}/questions/${t}/ratings/${s}/status`,o),a&&(0,n.PS)(`tests/detail/${e}/questions/${t}/ratings/${s}/locale`,a)]),r=(e,t,s,l)=>(0,n.PS)(`tests/detail/${e}/questions/${t}/ratings/${s}/rating`,l),u=(e,t,s,l)=>(0,n.PS)(`tests/detail/${e}/questions/${t}/ratings/${s}/reviewed`,l),c=(e,t,s,l)=>Promise.all([(0,n.PS)(`tests/detail/${e}/questions/${t}/ratings/${s}/reviewed`,l),(0,n.PS)(`tests/detail/${e}/questions/${t}/ratings/${s}/relevant`,l),(0,n.PS)(`users/${s}/tests/relevantRatings/${e}/${t}/`,l)])},46081:(e,t,s)=>{s.r(t),s.d(t,{TestQuestion:()=>F,default:()=>H});var n=s(58168),l=s(96540),a=s(6442),o=s(69733),i=s(87331),r=s(69141),u=s(64330),c=s(3907),d=s(6170),m=s(22221),v=s(82092),g=s(38254),p=s(7140),f=s(765),h=s(87250),E=s(70038),w=s(77037),A=s(37071),b=s(30799),y=s(58065),C=s(92616),I=s(26336),x=s(72715),k=s(91542);const q=e=>{let{onClose:t,onExit:s,open:n}=e;return l.createElement(w.A,{open:n,onClose:t},l.createElement(C.L,null,l.createElement(y.A,{id:"Test.Session.Question.emptyAnswer.title",defaultMessage:"Votre réponse est vide !"})),l.createElement(b.A,null,l.createElement(i.Typography,null,l.createElement(y.A,{id:"Test.Session.Question.emptyAnswer.body",defaultMessage:"Vous n'avez sélectionné aucune réponse, vous serez fortement pénalisé dans la notation si vous décidez de poursuivre."})),l.createElement("div",{className:"content-center text-center mt-2"},l.createElement("iframe",{title:"Don't do this!",src:"https://giphy.com/embed/3ohuAwaX6Q13W78tdS",width:"480",height:"204",frameBorder:"0",className:"giphy-embed w-full",allowFullScreen:!0}),l.createElement(i.Typography,{variant:"body3"},l.createElement("a",{href:"https://giphy.com/gifs/reactionseditor-dont-will-ferrell-3ohuAwaX6Q13W78tdS"},"via GIPHY")))),l.createElement(A.A,null,l.createElement("div",{className:"flex"},l.createElement(k.Jn,{onClick:t}),l.createElement(i.Button,{size:"small",color:I.i[x.A].controlPrimary,onClick:s},l.createElement(y.A,{id:"Main.lang.continue",defaultMessage:"Continuer"})))))},$=e=>{let{onClose:t,open:s}=e;return l.createElement(w.A,{open:s,onClose:t},l.createElement(C.L,null,l.createElement(y.A,{id:"Test.Session.Question.leaveTest.title",defaultMessage:"Vous avez quitté le test depuis plus de 5 secondes."})),l.createElement(b.A,{className:"flex flex-col items-center justify-center"},l.createElement(i.Typography,null,l.createElement(y.A,{id:"Test.Session.Question.leaveTest.body",defaultMessage:"Vous avez quitté le test. Ceci est un avertissement, la prochaine fois vos réponses seront ignorées et la question sera comptée comme fausse!"})),l.createElement("img",{className:"mt-2",src:"https://cdn.filestackcontent.com/compress/LHJqgtEGTSKg8932PEot"})),l.createElement(A.A,null,l.createElement(i.Button,{size:"small",color:I.i[x.A].controlPrimary,onClick:t},l.createElement(y.A,{id:"Main.lang.close",defaultMessage:"Fermer"}))))};var N=s(75897),T=s(38528);const _={iconContainer:{display:"flex",marginLeft:16},icon:{display:"flex","& > g":{stroke:s(23215).zB[500]}}};var P=function(e){return l.createElement("svg",e,l.createElement("g",{stroke:"currentColor",strokeWidth:"2",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},l.createElement("path",{d:"M1 9h16M9 1l8 8-8 8"})))};P.defaultProps={width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"};
1const M=(0,T.MA)(_),Q=e=>{let{disabled:t=!1,classes:s,onClick:n}=e;M();return l.createElement("div",{className:"flex flex-col items-end group",classes:s},l.createElement(i.Button,{disabled:t,classes:s,color:I.i[x.A].controlPrimary,variant:"outlined",onClick:n},l.createElement(y.A,{id:"Tests.testQuestion.nextQuestion",defaultMessage:"Question suivante"}),l.createElement(P,{className:" ml-1 group-hover:translate-x-0.5 transition-all "})),l.createElement(i.Typography,{className:"flex-wrap italic items-center opacity-80 text-sm mt-2",color:I.i[x.A].buttonAccent},l.createElement(N.default,{className:"w-2.5 h-2.5 mr-1/2"}),l.createElement(y.A,{id:"Tests.testQuestion.nextQuestion.info",defaultMessage:"Vos réponses seront automatiquement envoyées à la fin du chrono"})))},S=e=>{let{onClose:t,open:s}=e;return l.createElement(w.A,{open:s,onClose:t},l.createElement(C.L,null,l.createElement(y.A,{id:"Test.Session.Question.questionPenality.title",defaultMessage:"Vous avez quitté le test depuis plus de 5 secondes !"})),l.createElement(b.A,{className:"flex flex-col items-center justify-center"},l.createElement(i.Typography,null,l.createElement(y.A,{id:"Test.Session.Question.questionPenality.body",defaultMessage:"Vous avez quitté le test. Vos réponses seront ignorées et la question sera comptée comme fausse!"})),l.createElement("img",{className:"mt-2",src:"https://cdn.filestackcontent.com/compress/y8UW2V8HSO5FHNVOmySm"})),l.createElement(A.A,null,l.createElement(i.Button,{size:"small",color:I.i[x.A].controlPrimary,onClick:t},l.createElement(y.A,{id:"Tests.testQuestion.nextQuestion",defaultMessage:"Question suivante"}))))};var R=s(788),z=s(63870),D=s(80284),j=s(85838);const O=(0,D.A)((e=>(0,j.A)({content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},image:{marginTop:e.spacingNumber(2)}}))),L=e=>{let{onClose:t,open:s}=e;const n=O({});return l.createElement(w.A,{open:s,onClose:t},l.createElement(C.L,null,l.createElement(y.A,{id:"Test.Session.Question.timeElapsed.title",defaultMessage:"Votre temps est expiré !"})),l.createElement(b.A,{className:n.content},l.createElement(i.Typography,null,l.createElement(y.A,{id:"Test.Session.Question.timeElapsed.body",defaultMessage:"Vous avez dépassé le temps qui était accordé pour cette question. Vos réponses seront ignorées et la question sera comptée comme fausse!"})),l.createElement("img",{className:n.image,src:"https://cdn.filestackcontent.com/compress/GeZniaNQ9qlOoMjJSgw4"})),l.createElement(A.A,null,l.createElement(i.Button,{size:"small",color:I.i[x.A].controlPrimary,onClick:t},l.createElement(y.A,{id:"Main.lang.close",defaultMessage:"Fermer"}))))};"undefined"==typeof window||window.process||(window.process={cwd:()=>""});const V=e=>{var t,s,g,p,w,A,b,y,C,I,x;let{sessionQuestionsHistory:k,questionPublic:N,sessionInfos:T,sessionId:_,devId:P,leaveTest:M}=e;const D=!P,[j,O]=(0,l.useState)({}),[V,F]=(0,l.useState)(""),[H,B,U]=(0,f.Z)(!1),[W,Z,G]=(0,f.Z)(!1),[X,J,K]=(0,f.Z)(!1),[Y,ee,te]=(0,f.Z)(!1),se=(0,o.wA)(),{testDetails:ne,loaded:le}=(0,v.Xk)(T.testId),{locale:ae}=(0,a.A)(),oe=(null==ne||null===(t=ne.settings)||void 0===t?void 0:t.languages)||[ae],ie=(0,o.d4)((e=>e.tests.timeElapsed)),re=(0,l.useMemo)((()=>{var e,t;return k&&Object.values(k).find((e=>void 0!==(null==e?void 0:e.penality)))?null!==(e=null===(t=k[null==N?void 0:N.id])||void 0===t?void 0:t.penality)&&void 0!==e&&e:null}),[k,N]),ue=(0,l.useMemo)((()=>null!==re),[re]),ce=(0,l.useCallback)((e=>()=>{ie||re||O({...j,[e]:!j[e]||null})}),[j,ie,re]),de=(0,l.useCallback)((e=>()=>{ie||re||F(e)}),[V,ie,re]),me=(0,l.useMemo)((()=>Number.isNaN(null==T?void 0:T.questionIndex)?null:(null==T?void 0:T.questionIndex)+1),[null==T?void 0:T.questionIndex]),ve=(0,l.useMemo)((()=>"free"===(null==N?void 0:N.type)?V.length>0||ie||re:!!Object.keys(j||{}).length||ie||re),[N,V,j,ie,re]),ge=(0,l.useCallback)((()=>{var e,t,s,n;if(!_||null==N||!N.id)return;const l={endDate:(0,r.O5)(),id:N.id,penality:re,responses:"free"===(null==N?void 0:N.type)?V:Object.keys((null==N||null===(e=N.langContent)||void 0===e||null===(t=e.fr)||void 0===t?void 0:t.answers
1)||(null==N||null===(s=N.langContent)||void 0===s||null===(n=s.en)||void 0===n?void 0:n.answers)||{}).reduce(((e,t)=>({...e,[t]:j[t]?1:0})),{})};D?(0,u.Et)(_,l):(0,c.k7)(P,_,l)(se),(0,E.V)(0)}),[P,_,N,j,re,V]);(0,l.useEffect)((()=>{ie&&Object.values(j||{}).find((e=>!0===e))&&ge()}),[ie]);const pe=(0,l.useCallback)((()=>{!ie||Object.values(j||{}).find((e=>!0===e))?"free"===(null==N?void 0:N.type)||re||Object.values(j||{}).find((e=>!0===e))?(ge(),(0,c.bt)()(se)):Z():B()}),[ge,ie,j,re,N]),fe=(0,l.useCallback)((()=>{te(),ge(),(0,c.bt)()(se)}),[ge]),he=(0,l.useCallback)((()=>{U(),ge(),(0,c.bt)()(se)}),[ge]),Ee=(0,l.useCallback)((()=>{G(),ge(),(0,c.bt)()(se)}),[ge]);(0,l.useEffect)((()=>{var e,t;if(!M||null==N||!N.id)return;ue?ee():J();const s={endDate:(0,r.O5)(),id:N.id,penality:ue,responses:Object.keys((null==N||null===(e=N.langContent)||void 0===e||null===(t=e[oe[0]])||void 0===t?void 0:t.answers)||{}).reduce(((e,t)=>({...e,[t]:j[t]?1:0})),{})};D?(0,u.uc)(_,null==N?void 0:N.id,s)(se):(0,c.Ch)(_,null==N?void 0:N.id,P,s)(se)}),[M]),(0,l.useEffect)((()=>{(0,E.V)(0),Number.isNaN(Number(null==T?void 0:T.questionIndex))}),[null==T?void 0:T.questionIndex]);const{data:we}=(0,m.cQ)(T.testId),{technologiesTree:Ae}=(0,d.I)(),be=(0,l.useMemo)((()=>{return null!=N&&N.id?we?null===(e=Object.entries(we.skillsList).find((e=>{let[,t]=e;return Object.values(t).map((e=>Object.keys((null==e?void 0:e.questions)||{}))).flat().includes(null==N?void 0:N.id)})))||void 0===e?void 0:e[0]:(null==ne?void 0:ne.technologyId)||null:null;var e}),[we,null==N?void 0:N.id,null==ne?void 0:ne.technologyId]);return le?l.createElement(l.Fragment,null,l.createElement($,{onClose:K,open:X}),l.createElement(L,{onClose:he,open:H}),l.createElement(S,{onClose:fe,open:Y}),l.createElement(q,{onClose:G,onExit:Ee,open:W}),l.createElement("div",{className:"relative flex items-center justify-center w-full pb-2 -mt-8 z-5"},l.createElement(i.Card,{classes:{container:"w-9/10 min-w-[280px] min-h-[400px] max-w-[1480px] relative"}},l.createElement("div",{className:"flex items-center min-h-[16px]"},be&&Ae[be]&&l.createElement(i.Typography,{className:"font-bold",variant:"body2"},(null===(s=Ae[be])||void 0===s?void 0:s.handle)&&l.createElement(h.I,(0,n.A)({className:"w-4 h-4 mx-1",handle:null===(g=Ae[be])||void 0===g?void 0:g.handle},h.x.Square5050Q100)),null!==(p=null===(w=Ae[be])||void 0===w||null===(A=w.langContent)||void 0===A||null===(b=A[ae])||void 0===b?void 0:b.name)&&void 0!==p?p:null===(y=Ae[be])||void 0===y||null===(C=y.langContent)||void 0===C||null===(I=C.fr)||void 0===I?void 0:I.name)),!D&&l.createElement(i.Card,{className:"absolute z-10 p-0 -top-2 -right-1 sm:hidden"},l.createElement(z.p,{rating:null!==(x=null==N?void 0:N.rating)&&void 0!==x?x:null,testId:T.testId,questionId:N.id,layout:"horizontal",showTimerWarning:!0})),l.createElement(R.x,{variant:"regular",locale:oe,testId:null==T?void 0:T.testId,currentQuestionIndex:me,disabled:ie||re,handleCheckboxChange:ce,handleFreeAnswer:de,freeAnswerContent:V,questionPublic:N,selectedAnswers:j}),l.createElement("div",{className:""},l.createElement(Q,{disabled:!ve,onClick:pe,classes:{container:"py-2.5 px-4",typography:"font-bold"}}))))):l.createElement(l.Fragment,null)},F=e=>{var t;let{sessionQuestionsHistory:s,sessionInfos:n,sessionId:a,devId:o=null,leaveTest:i}=e;const{questionPublic:r}=(0,g.R)(null==n?void 0:n.testId,null==n||null===(t=n.currentQuestion)||void 0===t?void 0:t.id);return(0,p.m)(!0),l.createElement(V,{sessionQuestionsHistory:s,sessionInfos:n,questionPublic:r||{},devId:o,sessionId:a,leaveTest:i})},H=F},788:(e,t,s)=>{s.d(t,{x:()=>x});var n=s(46942),l=s.n(n),a=s(63375),o=s.n(a),i=s(96540),r=s(80284),u=s(14166),c=s(58065),d=s(56347),m=s(68729),v=s(87331),g=(s(87250),s(83354));const p=(0,s(51476).defineMessages)({freeAnswerPlaceholder:{id:"Tests.Questions.Answer.Free.Placeholder",defaultMessage:'Répondez de manière libre à cette question.\nToutes les questions sont compatibles avec markdown\nVous pouvez donc *écrire* _librement_ du contenu **formatté**\n\n```javascript\nconsole.log("ainsi que des blocs de code");\n```'}});var f=s(26336),h=s(72715),E=s(71070);const w=e=>{let{variant:t,disabled:s,handleFreeAnswer:n,freeAnswerContent:l}=e;const{formatMessage:a}=(0,E.t)(),o=!!(0,d.W5)("/test-builder/:id?/:mode(basic|advanced)?/"),r=a(p.freeAnswerPlaceholder);return"creator"===t&&o?i.createElement(v.Typography,{className:"m-2 flex"},i.createElement(c.A,{id:"Test.QuestionsForm.Answer.FreeAnswer.description",defaultMessage:"Vous avez choisi de laisser le·a candidat·e de répondre librement à cette question. Sa réponse n'aura aucune influence sur le score final"})):i.createElement("div",{className:"flex items-stretch w-full min-h-[40vh] lg:flex-wrap"},i.createElement(v.TextField,{variant:"flat",className:"w-full m-1 min-[280px]",onChange:e=>{s||null==n||n(e.target.value)()},value:l||"",multiline:!0,rows:25,placeholder:r,disabled:s}),i.createElement(m.TitledCard,{color:f.i[h.A].controlPrimary,title:i.createElement(c.A,{id:"Tests.Questions.Free.Preview.Title",defaultMessage:"Prévisualisation"})},i.createElement(g.Y,{classes:{container:"w-full m-1"}},l||r||"")))};var A=s(18052),b=s(6442),y=s(44e3),C=s(85838);"undefined"!=typeof window&&(window.process={cwd:()=>""});const I=(0,r.A)((e=>{let{spacingNumber:t}=e;return(0,C.A)({container:{},questionImage:{width:"100%",justifyContent:"center",display:"flex"},answerImage:{width:"100%",display:"flex"},questionValue:{fontSize:18,lineHeight:1.4,color:"rgba(0, 0, 0, .8)",wordBreak:"break-word"},answersContainer:{display:"flex",alignItems:"stretch",marginTop:16,width:"100%"},answersRows:{display:"flex",flexDirection:"column",width:"100%"},answerRow:{display:"flex",width:"100%",maxWidth:1024,textAlign:"unset",alignItems:"center",margin:t(0,0,1,0),"& > *:not(:first-child)":{margin:0},"& p":{textAlign:"left"}},disabled:{cursor:"not-allowed"},checkbox:{minWidth:22,minHeight:22,marginRight:24},disabledCheckbox:{cursor:"not-allowed"},timeElapsed:{"& *":{cursor:"not-allowed !important"}},"@media screen and (max-width: 700px)":{answersRows:{padding:0}},"@media screen and (max-width: 500px)":{questionRating:{position:"absolute",right:t(2),top:t(2)},questionValue:{fontSize:16,lineHeight:1.2},checkbox:{minWidth:22,minHeight:22,marginRight:8}}})})),x=e=>{let{questionPublic:t,disabled:s,handleCheckboxChange:n,handleFreeAnswer:a,freeAnswerContent:r,testId:c,selectedAnswers:d,correctionAnswers:m,answersGlicko:v,classes:g={},locale:p,variant:E="creator",highlightCheckedAnswer:C,contentDiff:x}=e;const k=(0,y.P)(),q=I({classes:g}),{locale:$}=(0,b.A)(),N=(0,u.h)(),T=o()(Object.entries((null==t?void 0:t.langContent)||{}).map((e=>{let[,{answers:t}]=e;return Object.entries(t||{}).sort(((e,t)=>{let[,{index:s}]=e,[,{index:n}]=t;return(null!=s?s:0)-(null!=n?n:0)})).map((e=>{let[t]=e;return t}))})).flat());return i.createElement("div",{className:"p-2"},i.createElement(A.sh,{questionPublic:t,locales:p,variant:E,contentDiff:x,locale:$,classes:{flagEmojis:`${f.i[h.A].bgPrimary50}`}}),i.createElement("div",{className:l()(q.answersContainer,s&&q.timeElapsed)},i.createElement("div",{className:q.answersRows},"free"===(null==t?void 0:t.type)?i.createElement(w,{variant:E,disabled:s,handleFreeAnswer:a,freeAnswerContent:r}):T.map((e=>"correction"===E?i.createElement(A.nc,{key:e,answerId:e,questionPublic:t,correctionAnswers:m,selectedAnswers:d,highlightCheckedAnswer:C,uid:null!=k?k:null,locale:$}):i.createElement(A.hz,{contentDiff:x,key:e,questionPublic:t,answerId:e,locales:p,selectedAnswers:d,variant:E,role:N,highlightCheckedAnswer:C,answersGlicko:v,disabled:s,handleCheckboxChange:n,locale:$,classes:{checkbox:`!${f.i[h.A].textPrimary}`,flagEmojis:`${f.i[h.A].bgPrimary50}`}}))))))}},63870:(e,t,s)=>{s.d(t,{p:()=>f});var n=s(96540),l=s(6442),a=s(18052),o=s(60325),i=s(54625),r=s(17874),u=s(14166),c=s(44e3),d=s(9101),m=s(68814),v=s(97701),g=s(765
1),p=s(30220);const f=e=>{var t,s;let{layout:f,testId:h,questionId:E,rating:w,classes:A,showTimerWarning:b}=e;const{locale:y}=(0,l.A)(),[C,I,x]=(0,g.Z)(),[k,q,$]=(0,g.Z)(),[N,T,_]=(0,g.Z)(),[P,M]=(0,n.useState)(null!=w?w:0),Q=(0,c.P)(),S=(0,u.h)(),{testQuestionUserRating:R}=(0,d.w)(h,E),{data:z}=(0,m.sS)(Q),{data:D}=(0,v.c_)(Q),j=(0,n.useCallback)((()=>{var e;(null!=z&&null!==(e=z[h])&&void 0!==e&&e[E]||null!=D&&D.test_questions||S===o.UserRoles.ADMIN)&&I()}),[z,D,S,h,E]),O=(0,n.useCallback)(((e,t,s)=>{M((t=>t+e)),(0,r.XD)(h,E,Q,e),t&&(0,r.cN)(h,E,Q,t,y,s)}),[h,E,y,Q]),L=(0,n.useCallback)((e=>{var t,s;S?-1!==e||null!=R&&null!==(t=R[Q])&&void 0!==t&&t.message?(-1===e&&null!=R&&null!==(s=R[Q])&&void 0!==s&&s.message&&j(),O(e)):T():q()}),[S,R]),V=(0,n.useCallback)(((e,t)=>{j(),O(-1,e,t)}),[j,O]);return(0,n.useEffect)((()=>{w!==P&&M(null!=w?w:0)}),[w]),n.createElement(n.Fragment,null,n.createElement(a.G8,{open:C,onClose:x,testId:h,questionId:E,LinkComponent:e=>n.createElement(i.N_,{to:e.href,className:e.className,onClick:e.onClick},e.children)}),n.createElement(p.F,{open:k,onClose:$}),n.createElement(a.Qs,{open:N,onConfirm:(e,t)=>V(e,t),onClose:()=>{_()},showTimerWarning:b,locale:y}),n.createElement(a.ie,{rating:P,className:null==A?void 0:A.container,locale:y,userRating:null!==(t=null==R||null===(s=R[Q])||void 0===s?void 0:s.rating)&&void 0!==t?t:null,handleRatingClick:L}))}},9101:(e,t,s)=>{s.d(t,{w:()=>d});var n=s(96540),l=s(69733),a=s(1081),o=s(63560),i=s.n(o),r=s(62147),u=s(3907);const c=()=>(0,a.Mz)((e=>{let{tests:t}=e;return t}),((e,t)=>t),((e,t,s)=>s),((e,t,s)=>{var n,l;let{testQuestionUserRating:a,hasReceivedTestQuestionUserRating:o}=e;return{testQuestionUserRating:null===(n=a[t])||void 0===n?void 0:n[s],hasReceivedTestQuestionUserRating:null===(l=o[t])||void 0===l?void 0:l[s]}})),d=(e,t)=>{const s=(0,n.useMemo)(c,[]),{testQuestionUserRating:a,hasReceivedTestQuestionUserRating:o}=(0,l.d4)((n=>s(n,e,t))),d=(0,l.wA)();return(0,n.useEffect)((()=>{var s,n;!e||!t||void 0!==o||null!==(s=r.Eo.useTestQuestions)&&void 0!==s&&null!==(n=s[e])&&void 0!==n&&n[t]||(i()(r.Eo,`useTestQuestions.${e}.${t}`,!0),(0,u.v3)(e,t)(d))}),[e,t,o]),{testQuestionUserRating:a,loaded:null!=o,loading:!1===o,error:!0!==o&&o}}},68814:(e,t,s)=>{s.d(t,{Bs:()=>d,YQ:()=>g,_z:()=>v,do:()=>c,gu:()=>p,oG:()=>f,q1:()=>m,sS:()=>u});var n=s(63375),l=s.n(n),a=s(96540),o=s(33722),i=s(87777),r=s(65046);const u=e=>{const t=(0,a.useMemo)((()=>({userId:e})),[e]);return(0,o.R)("/users/_userId_/tests/unlockedCorrections/",t)},c=(e,t)=>{const s=(0,a.useMemo)((()=>({userId:e,testId:t})),[e,t]);return(0,o.R)("/users/_userId_/tests/history/_testId_",s)},d=(e,t)=>{const s=(0,a.useMemo)((()=>(0,r.DH)(t)?null:{userId:e,sessionId:t}),[e,t]),n=(0,o.R)("/users/_userId_/tests/sessions/_sessionId_",s);return(0,r.DH)(t)?{data:r.z[t],isLoading:!1}:n},m=(e,t)=>{const s=JSON.stringify(t),n=(0,a.useMemo)((()=>l()(t).map((t=>({nodeRef:"users/_userId_/tests/sessions/_sessionId_",params:{userId:e,sessionId:t}})))),[s]),o=(0,i.Y)(n);return{data:(0,a.useMemo)((()=>t.reduce(((e,t,s)=>{var n;const l=null===(n=o[s])||void 0===n?void 0:n.data;return l&&(e[t]=l),e}),{})),[o,s]),isLoading:o.some((e=>null==e?void 0:e.isLoading))}},v=e=>{const t=(0,a.useMemo)((()=>({userId:e})),[e]);return(0,o.R)("/users/_userId_/tests/request",t)},g=(e,t)=>{const s=(0,a.useMemo)((()=>({userId:e,sessionId:t})),[e,t]);return(0,o.R)("/users/_userId_/tests/sessions/_sessionId_/infos",s)},p=(e,t)=>{const s=(0,a.useMemo)((()=>({userId:e,sessionId:t})),[e,t]);return(0,o.R)("/users/_userId_/tests/sessions/_sessionId_/questionsHistory",s)},f=(e,t)=>{const s=(0,a.useMemo)((()=>({userId:e,sessionId:t})),[e,t]);return(0,o.R)("/users/_userId_/tests/sessions/_sessionId_/request",s)}}}]);
2//# sourceMappingURL=test_question.9e8f15b3dd0ffbc8c7c1.js.map

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.