File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/5R11-2-3dIedugf.js
var I=Object.defineProperty;var N=(u,l,t)=>l in u?I(u,l,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[l]=t;var C=(u,l,t)=>(N(u,typeof l!="symbol"?l+"":l,t),t);import{E as O}from"./ExerciceTs-rGc5ChsI.js";import{aj as w,al as P,r as a,W as b,c as y,w as Q,l as R}from"./index-hc8lvKav.js";import{f as S}from"./figureApigeom-jVe8_5s4.js";import{o as m}from"./main-bGW4GB57.js";import{a as D}from"./apigeomGraduatedLine--0Iwk_Er.js";import"./GraduatedLine-IOTjeksO.js";const G=!0,U="custom",F=!0,J="AMCOpen",X="Place a point on a number line whose value is a relative number",Y="8/12/2023",Z="6d576",_="5R11-2";class ee extends O{constructor(){super();C(this,"goodAnswers",[]);C(this,"figures",[]);C(this,"correctionInteractive",t=>{if(t===void 0)return["KO"];const e=[],o=this.figures[t];o.isDynamic=!1,o.divButtons.style.display="none",o.divUserMessage.style.display="none";const s=this.goodAnswers[t],i=document.querySelector(`#feedback${`ex${this.numeroExercice}Q${t}`}`);for(let n=0;n<s.length;n++){const c=s[n].label,h=s[n].x,{isValid:x,message:p,points:k}=o.checkCoords({checkOnlyAbscissa:!0,label:c,x:h,y:0}),r=k[0];if(x?(e.push("OK"),r.color="green",r.colorLabel="green",r.thickness=3):(e.push("KO"),r!==void 0&&(r.color="red",r.colorLabel="red",r.color="red",r.thickness=3)),i!=null&&p.length>0){const g=document.createElement("p");g.innerText=p,i.appendChild(g)}}if(i!=null)if((i==null?void 0:i.innerHTML)==="")i.innerHTML="đ";else{const n=document.createElement("p");n.innerText="âšī¸",i.insertBefore(n,i.firstChild)}return e});this.nbQuestions=5,this.nbQuestionsModifiable=!0,this.nbCols=1,this.nbColsCorr=1,this.spacing=1,this.spacingCorr=1,this.sup=1,this.besoinFormulaireNumerique=["Difficulty level",4,`1: Number relating to one decimal place
2: Number relating to two decimal places
3: Number relating to three decimal places
4: Mixture`],this.listePackages=["tkz-base"]}nouvelleVersion(){let t;this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[],this.contenu="",this.contenuCorrection="",this.sup===4?t=w([1,2,3],this.nbQuestions):t=w([parseInt(this.sup)],this.nbQuestions),this.contenu=this.consigne;for(let e=0;e<this.nbQuestions;e++){let o,s,i,n="",c="";const h=P(e*3+1),x=P(e*3+2),p=P(e*3+3);switch(t[e]){case 1:o=a(-7,-3),s=1,i=10;break;case 2:o=a(-4,-2)/10,s=10,i=10;break;default:o=a(-10,-2)/100,s=100,i=10;break}const k=a(0,2),r=a(3,4),g=a(5,6),L=a(1,9),v=a(1,9),H=a(1,3),A=b(o+k/s+L/s/i,t[e]),$=b(o+r/s+v/s/i,t[e]),M=b(o+g/s+H/s/i,t[e]);this.goodAnswers[e]=[{label:h,x:b(A,4)},{label:x,x:b($,4)},{label:p,x:b(M,4)}],y.isAmc&&(this.autoCorrection[e]={enonce:n,propositions:[{texte:c,statut:0,feedback:""}]});const{figure:f,latex:T}=D({xMin:o,xMax:o+7/s,scale:s});f.options.labelAutomaticBeginsWith=h,f.options.pointDescriptionWithCoordinates=!1,this.figures[e]=f;const{figure:d,latex:E}=D({xMin:o,xMax:o+7/s,scale:s,points:this.goodAnswers[e]});switch(d.create("Point",{label:h,x:A,color:m,colorLabel:m,shape:"x",labelDxInPixels:0}),d.create("Point",{label:x,x:$,color:m,colorLabel:m,labelDxInPixels:0}),d.create("Point",{label:p,x:M,color:m,colorLabel:m,labelDxInPixels:0}),n=`Place the points: $${h}(${Q(A,5)}), ${x}(${Q($,5)}), ${p}(${Q(M,5)})$.`,!0){case(y.isHtml&&this.interactif):n+="<br>"+S({exercice:this,idApigeom:`ex${this.numeroExercice}Q${e}`,figure:f}),c+=d.getStaticHtml();break;case y.isHtml:n+="<br>"+f.getStaticHtml(),c+=d.getStaticHtml();break;default:n+=`
`+T,c+=`\\;
`+E;break}y.isAmc&&(this.autoCorrection[e]={enonce:this.consigne+"<br>"+n+"<br>",propositions:[{statut:3,sanscadre:!0}]}),this.listeQuestions.push(n),this.listeCorrections.push(c)}this.exoCustomResultat=!0,R(this)}}export{F as amcReady,J as amcType,Y as dateDeModifImportante,ee as default,G as interactifReady,U as interactifType,_ as ref,X as titre,Z as uuid};
//# sourceMappingURL=5R11-2-3dIedugf.js.map