Files
parcoursup/parcoursup-app/dist/assets/index-B9Fr6vSl.js
T

21 lines
182 KiB
JavaScript
Raw Normal View History

2026-03-30 13:40:07 +02:00
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=new Map,u=Symbol(`riot-component`),d=new Set,f=`value`,p=/^on/,m=`mount`,h=`update`,g=`unmount`,_=`shouldUpdate`,ee=`onBeforeMount`,te=`onMounted`,v=`onBeforeUpdate`,ne=`onUpdated`,re=`onBeforeUnmount`,ie=`onUnmounted`,y=`props`,b=`state`,x=`slots`,ae=`root`,S=Symbol(`pure`),oe=Symbol(`is_updating`),C=Symbol(`parent`),se=Symbol(`template`),w=Symbol(`root-attributes`),ce={ATTRIBUTE:0,EVENT:1,TEXT:2,VALUE:3,REF:4};function T(e){return e.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}function E(e){return e.replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function D(e,t){throw Error(e,{cause:t})}function O(e){let t=new Map,n=n=>(t.has(n)||t.set(n,e.call(this,n)))&&t.get(n);return n.cache=t,n}function k(e,t){return e.reduce((e,{type:n,name:r,evaluate:i})=>{let a=i(t);switch(!0){case!r&&n===0:return{...e,...a};case n===4:e.ref=a;break;case n===3:e.value=a;break;default:e[E(r)]=a}return e},{})}function A(e,t){return typeof e===t}function j(e){let t=e.ownerSVGElement;return!!t||t===null}function M(e){return e.tagName.toLowerCase()===`template`}function N(e){return A(e,`function`)}function le(e){return A(e,`boolean`)}function ue(e){return!de(e)&&e.constructor===Object}function de(e){return e==null}function fe(e){return p.test(e)}function P(){return this}function pe(e,t){return t.forEach(t=>{e[t]=e[t].bind(e)}),e}function me(e){return N(e)?e.prototype&&e.prototype.constructor?new e:e():e}function he(e){return Array.from(e.attributes).reduce((e,t)=>(e[E(t.name)]=t.value,e),{})}function ge(e,t){for(;e.firstChild;)t.appendChild(e.firstChild)}function _e(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ve(e){for(let t=0;t<e.length;t++)F(e[t])}var F=e=>e.remove(),ye=(e,t)=>t?.parentNode?.insertBefore(e,t),be=(e=>(t,n)=>e?n?.parentNode?.moveBefore(t,n):ye(t,n))(typeof Element<`u`&&Element.prototype.moveBefore),xe=(e,t)=>t?.parentNode?.replaceChild(e,t),Se={[m](e){this.el=e},[h]:P,[g](e,t,n=!1){n?F(this.el):n||_e(this.el)},clone(){return{...this}},createDOM:P},Ce={EACH:0,IF:1,SIMPLE:2,TAG:3,SLOT:4};function I(e,t,n,r={}){return Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!1,configurable:!0,...r}),e}function we(e,t,n){return Object.entries(t).forEach(([t,r])=>{I(e,t,r,n)}),e}function Te(e,t){return Object.entries(t).forEach(([t,n])=>{e[t]||(e[t]=n)}),e}var Ee=Symbol(),De=Symbol();function Oe(){let e=document.createTextNode(``),t=document.createTextNode(``);return e[Ee]=!0,t[De]=!0,{head:e,tail:t}}function ke(e){let t=e.dom.cloneNode(!0),{head:n,tail:r}=Oe();return{avoidDOMInjection:!0,fragment:t,head:n,tail:r,children:[n,...Array.from(t.childNodes),r]}}var Ae=(e,t,n,r)=>{let i=t.length,a=e.length,o=i,s=0,c=0,l=null;for(;s<a||c<o;)if(a===s){let e=o<i?c?n(t[c-1],-0).nextSibling:n(t[o-c],0):r;for(;c<o;)ye(n(t[c++],1),e)}else if(o===c)for(;s<a;)(!l||!l.has(e[s]))&&F(n(e[s],-1)),s++;else if(e[s]===t[c])s++,c+
`),this},remove(e){return Lt.has(e)&&(Lt.delete(e),this.inject()),this}};function Bt(e,...t){return(...n)=>(n=[...t,...n],n.length<e.length?Bt(e,...n):e(...n))}var Vt=O(e=>{let t=e?.bindingsData?.[0];return t?.selector?[]:t?.expressions?.reduce((e,{name:t,type:n})=>n===ce.ATTRIBUTE?e.concat([t]):e,[])??[]});function Ht(e){return It(e,`is`)||e.tagName.toLowerCase()}function Ut(e,t){Ht(e)!==t&&Ft(e,`is`,t)}function Wt(e,t){return{...e,...me(t)}}function K(e,t={}){return{...he(e),...me(t)}}function q(e){return[...d].reduce((e,t)=>t(e)||e,e)}function J(e,{slots:t,attributes:n=[],props:r}){return pe(q(we(ue(e)?Object.create(e):e,{mount(i,a={},o){return I(i,S,!1),this[C]=o,I(this,y,Object.freeze({...K(i,r),...k(n,o)})),this[b]=Wt(this[b],a),this[se]=this.template.createDOM(i).clone(),this[w]=Vt(this[se]),W(i,this),e.name&&Ut(i,e.name),I(this,ae,i),I(this,x,t),this[ee](this[y],this[b]),this[se].mount(i,this,o),this[te](this[y],this[b]),this},update(e={},t){t&&(this[C]=t);let{is:r,...i}={...he({attributes:Array.from(this[ae].attributes).filter(({name:e})=>!this[w].includes(e))}),...k(n,this[C])};if(this.shouldUpdate(i,this.props)!==!1)return I(this,y,Object.freeze({...t?null:this[y],...i})),this[b]=Wt(this[b],e),this[v](this[y],this[b]),this[oe]||(this[oe]=!0,this[se].update(this,this[C])),this[ne](this[y],this[b]),this[oe]=!1,this},unmount(e){return this[re](this[y],this[b]),e&&this[w].forEach(e=>this[ae].removeAttribute(e)),this[se].unmount(this,this[C],e===null?null:!e),this[ie](this[y],this[b]),this}})),Object.keys(e).filter(t=>N(e[t])))}function Gt({css:e,template:t,componentAPI:n,name:r}){return e&&r&&zt.add(r,e),Bt(J)(we(Te(n,{...Mt,[y]:{},[b]:{}}),{[x]:null,[ae]:null,...jt,name:r,css:e,template:t}))}function Kt(e={}){return Object.entries(me(e)).reduce((e,[t,n])=>(e[T(t)]=Yt(n),e),{})}var qt=e=>{let t=Kt(e.exports?e.exports.components:{});return n=>n===e.name?Jt(e):t[n]||l.get(n)},Jt=O(Yt);function Yt(e){let{css:t,template:n,exports:r,name:i}=e,a=n?Et(n,e,qt(e)):Se;return({slots:e,attributes:o,props:s})=>{if(r&&r[S])return kt(r,{slots:e,attributes:o,props:s,css:t,template:n});let c=Gt({css:t,template:a,componentAPI:me(r)||{},name:i})({slots:e,attributes:o,props:s});return{mount(e,t,n){return c.mount(e,n,t)},update(e,t){return c.update(t,e)},unmount(e){return c.unmount(e)}}}}function Xt(e,t){return G(e).map(e=>(e[u]&&e[u].unmount(t),e))}function Zt(...e){return e.reduce((e,t)=>(...n)=>e(t(...n)))}function Y(e){return(t,n,{slots:r,attributes:i,parentScope:a}={})=>Zt(e=>e.mount(t,a),e=>e({props:n,slots:r,attributes:i}),Yt)(e)}var Qt=`https://data.education.gouv.fr/api/explore/v2.1/catalog/datasets/fr-esr-parcoursup/records`;async function $t(e,t=20){let n=`${Qt}?where=search("${e}")&limit=${t}`;return(await(await fetch(n)).json()).results}async function en(e){let t=`${Qt}?where=cod_aff_form="${e}"&limit=1`;return(await(await fetch(t)).json()).results[0]}async function tn(e){let t=[`2020`,`2021`,`2022`,`2023`,`2024`,`2025`].map(t=>fetch(`${Qt}?where=cod_aff_form="${e}" AND session="${t}"&limit=1`).then(e=>e.json()).then(e=>e.results[0]));return(await Promise.all(t)).filter(e=>e!=null)}var nn={css:`ligne-resultat .ligne-resultat,[is="ligne-resultat"] .ligne-resultat{ border: 1px solid #ccc; padding: 10px; margin: 5px 0; }`,exports:{ajouterComparateur(){let e=localStorage.getItem(`comparateur`),t=e?JSON.parse(e):[];t.some(e=>e.cod_aff_form===this.props.formation.cod_aff_form)||(t.push(this.props.formation),localStorage.setItem(`comparateur`,JSON.stringify(t))),window.location.hash=`#/comparateur`}},template:(e,t,n,r)=>e(`<div class="ligne-resultat"><h3 expr61="expr61"> </h3><p expr62="expr62"> </p><p expr63="expr63"> </p><a expr64="expr64">Voir le détail</a><button expr65="expr65">+ Comparer</button></div>`,[{redundantAttribute:`expr61`,selector:`[expr61]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.props.formation.fil_lib_voe_acc,` — `,e.props.formation.g_ea_lib_vx].join(``)}]},{redundantAttribute:`expr62`,selector:`[expr62]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.props.formation.ville_eta
<b>${e.fil_lib_voe_acc}</b><br>
${e.g_ea_lib_vx}<br>
${e.ville_etab}<br>
<a href="#/formation/${e.cod_aff_form}">Voir le détail</a>
`)})}},template:(e,t,n,r)=>e(`<div id="carte" style="height: 500px; width: 1000px;"></div>`,[]),name:`carte-formations`}},state:{formations:[],chargement:!1,motCle:``},saisie(e){this.motCle=e.target.value},async rechercher(){this.update({chargement:!0});let e=await $t(this.motCle);this.update({formations:e,chargement:!1})}},template:(e,t,n,r)=>e(`<h1>Explorateur de formations</h1><input expr55="expr55" type="text" placeholder="Ex: informatique, médecine..."/><button expr56="expr56">Lancer la recherche</button><div expr57="expr57"></div><carte-formations expr58="expr58"></carte-formations><div expr59="expr59"></div>`,[{redundantAttribute:`expr55`,selector:`[expr55]`,expressions:[{type:t.EVENT,name:`onkeyup`,evaluate:e=>e.saisie}]},{redundantAttribute:`expr56`,selector:`[expr56]`,expressions:[{type:t.EVENT,name:`onclick`,evaluate:e=>e.rechercher}]},{type:n.IF,evaluate:e=>e.chargement,redundantAttribute:`expr57`,selector:`[expr57]`,template:e(`Chargement...`,[])},{type:n.TAG,getComponent:r,evaluate:e=>`carte-formations`,slots:[],attributes:[{type:t.ATTRIBUTE,isBoolean:!1,name:`formations`,evaluate:e=>e.state.formations}],redundantAttribute:`expr58`,selector:`[expr58]`},{type:n.EACH,getKey:null,condition:null,template:e(`<ligne-resultat expr60="expr60"></ligne-resultat>`,[{type:n.TAG,getComponent:r,evaluate:e=>`ligne-resultat`,slots:[],attributes:[{type:t.ATTRIBUTE,isBoolean:!1,name:`formation`,evaluate:e=>e.formation}],redundantAttribute:`expr60`,selector:`[expr60]`}]),redundantAttribute:`expr59`,selector:`[expr59]`,itemName:`formation`,indexName:null,evaluate:e=>e.state.formations}]),name:`app`},on={css:`page-detail th,[is="page-detail"] th{ font-size: 11px; white-space: nowrap; }page-detail tr,[is="page-detail"] tr{ height: 40px; }page-detail table,[is="page-detail"] table{ margin-left: 0; display: block; }page-detail td,[is="page-detail"] td{ display: flex; align-items: center; justify-content: flex-end; padding-right: 5px; }`,exports:{state:{formation:null,evolution:null},async onMounted(){let e=this.props.id,t=await en(e);this.update({formation:t});let n=await tn(e);this.update({evolution:n})},ajouterComparateur(){let e=localStorage.getItem(`comparateur`),t=e?JSON.parse(e):[];t.some(e=>e.cod_aff_form===this.state.formation.cod_aff_form)||(t.push(this.state.formation),localStorage.setItem(`comparateur`,JSON.stringify(t))),window.location.hash=`#/comparateur`}},template:(e,t,n,r)=>e(`<div expr10="expr10"></div><div expr11="expr11"></div>`,[{type:n.IF,evaluate:e=>!e.state.formation,redundantAttribute:`expr10`,selector:`[expr10]`,template:e(`
Chargement...
`,[])},{type:n.IF,evaluate:e=>e.state.formation,redundantAttribute:`expr11`,selector:`[expr11]`,template:e(`<h2 expr12="expr12"> </h2><h3 expr13="expr13"> </h3><p expr14="expr14"> </p><a href="#"> Retour à la recherche</a><button expr15="expr15">+ Ajouter au comparateur</button><a href="#/comparateur">Voir le comparateur</a><h4>Phase d'admission</h4><table class="charts-css bar show-labels" style="height: 150px; width: 600px;"><tbody><tr><th scope="row">Places disponibles</th><td expr16="expr16"> </td></tr><tr><th scope="row">Candidatures</th><td expr17="expr17" style="--size: 1"> </td></tr><tr><th scope="row">Admis</th><td expr18="expr18"> </td></tr></tbody></table><h4>Profil des admis Type de bac</h4><table class="charts-css bar show-labels" style="height: 150px; width: 600px;"><tbody><tr><th scope="row">Bac Général</th><td expr19="expr19"> </td></tr><tr><th scope="row">Bac Techno</th><td expr20="expr20"> </td></tr><tr><th scope="row">Bac Pro</th><td expr21="expr21"> </td></tr></tbody></table><h4>Profil des admis Mentions</h4><table class="charts-css bar show-labels" style="height: 200px; width: 600px;"><tbody><tr><th scope="row">Sans mention</th><td expr22="expr22"> </td></tr><tr><th scope="row">Assez Bien</th><td expr23="expr23"> </td></tr><tr><th scope="row">Bien</th><td expr24="expr24"> </td></tr><tr><th scope="row">Très Bien</th><td expr25="expr25"> </td></tr><tr><th scope="row">Félicitations</th><td expr26="expr26"> </td></tr></tbody></table><h4>Évolution du taux d'accès depuis 2020</h4><div expr27="expr27"></div><table expr28="expr28" class="charts-css bar show-labels" style="height: 200px; width: 600px;"></table><h4>Phase complémentaire</h4><div expr32="expr32"></div><div expr38="expr38"></div>`,[{redundantAttribute:`expr12`,selector:`[expr12]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.state.formation.fil_lib_voe_acc}]},{redundantAttribute:`expr13`,selector:`[expr13]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.state.formation.g_ea_lib_vx}]},{redundantAttribute:`expr14`,selector:`[expr14]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.state.formation.ville_etab,` (`,e.state.formation.dep_lib,`)`].join(``)}]},{redundantAttribute:`expr15`,selector:`[expr15]`,expressions:[{type:t.EVENT,name:`onclick`,evaluate:e=>e.ajouterComparateur}]},{redundantAttribute:`expr16`,selector:`[expr16]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.state.formation.capa_fin].join(``)},{type:t.ATTRIBUTE,isBoolean:!1,name:`style`,evaluate:e=>`--size: `+e.state.formation.capa_fin/e.state.formation.voe_tot}]},{redundantAttribute:`expr17`,selector:`[expr17]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.state.formation.voe_tot].join(``)}]},{redundantAttribute:`expr18`,selector:`[expr18]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.state.formation.acc_tot].join(``)},{type:t.ATTRIBUTE,isBoolean:!1,name:`style`,evaluate:e=>`--size: `+e.state.formation.acc_tot/e.state.formation.voe_tot}]},{redundantAttribute:`expr19`,selector:`[expr19]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.state.formation.pct_bg,`%`].join(``)},{type:t.ATTRIBUTE,isBoolean:!1,name:`style`,evaluate:e=>`--size: `+e.state.formation.pct_bg/100}]},{redundantAttribute:`expr20`,selector:`[expr20]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.state.formation.pct_bt,`%`].join(``)},{type:t.ATTRIBUTE,isBoolean:!1,name:`style`,evaluate:e=>`--size: `+e.state.formation.pct_bt/100}]},{redundantAttribute:`expr21`,selector:`[expr21]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.state.formation.pct_bp,`%`].join(``)},{type:t.ATTRIBUTE,isBoolean:!1,name:`style`,evaluate:e=>`--size: `+e.state.formation.pct_bp/100}]},{redundantAttribute:`expr22`,selector:`[expr22]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.state.formation.pct_sansmention,`%`].join(``)},{type:t.ATTRIBUTE,isBoolean:!1,name:`style`,evaluate:e=>`--size: `+e.state.formation.pct_sansmention/100}]},{redundantAttribute:`expr23`,selector:`[expr23]`,expressions:[{type:t.TEXT,childNod
Chargement de l'évolution...
`,[])},{type:n.IF,evaluate:e=>e.state.evolution,redundantAttribute:`expr28`,selector:`[expr28]`,template:e(`<tbody><tr expr29="expr29"></tr></tbody>`,[{type:n.EACH,getKey:null,condition:null,template:e(`<th expr30="expr30" scope="row"> </th><td expr31="expr31"> </td>`,[{redundantAttribute:`expr30`,selector:`[expr30]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.annee.session}]},{redundantAttribute:`expr31`,selector:`[expr31]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.annee.taux_acces_ens,`%`].join(``)},{type:t.ATTRIBUTE,isBoolean:!1,name:`style`,evaluate:e=>`--size: `+e.annee.taux_acces_ens/100}]}]),redundantAttribute:`expr29`,selector:`[expr29]`,itemName:`annee`,indexName:null,evaluate:e=>e.state.evolution}])},{type:n.IF,evaluate:e=>e.state.formation.nb_voe_pc,redundantAttribute:`expr32`,selector:`[expr32]`,template:e(`<p>Candidatures en phase complémentaire : <b expr33="expr33"> </b></p><p>Admis en phase complémentaire : <b expr34="expr34"> </b></p><p>Dont bac général : <b expr35="expr35"> </b></p><p>Dont bac techno : <b expr36="expr36"> </b></p><p>Dont bac pro : <b expr37="expr37"> </b></p>`,[{redundantAttribute:`expr33`,selector:`[expr33]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.state.formation.nb_voe_pc}]},{redundantAttribute:`expr34`,selector:`[expr34]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.state.formation.acc_pc}]},{redundantAttribute:`expr35`,selector:`[expr35]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.state.formation.nb_voe_pc_bg}]},{redundantAttribute:`expr36`,selector:`[expr36]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.state.formation.nb_voe_pc_bt}]},{redundantAttribute:`expr37`,selector:`[expr37]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.state.formation.nb_voe_pc_bp}]}])},{type:n.IF,evaluate:e=>!e.state.formation.nb_voe_pc,redundantAttribute:`expr38`,selector:`[expr38]`,template:e(`
Pas de phase complémentaire pour cette formation.
`,[])}])}]),name:`page-detail`},X={css:`comparateur .comparateur-grille,[is="comparateur"] .comparateur-grille{ display: flex; flex-direction: row; gap: 20px; }comparateur .comparateur-colonne,[is="comparateur"] .comparateur-colonne{ border: 1px solid #ccc; padding: 15px; min-width: 200px; }`,exports:{state:{formations:[]},onMounted(){let e=localStorage.getItem(`comparateur`);e&&this.update({formations:JSON.parse(e)})},retirerFormation(e){let t=this.state.formations.filter(t=>t.cod_aff_form!==e.cod_aff_form);localStorage.setItem(`comparateur`,JSON.stringify(t)),this.update({formations:t})}},template:(e,t,n,r)=>e(`<h2>Comparateur de formations</h2><a href="#">← Retour à la recherche</a><a href="#/estimation">🎯 Estimer mes chances</a><div expr39="expr39"></div><div class="comparateur-grille"><div expr40="expr40" class="comparateur-colonne"></div></div>`,[{type:n.IF,evaluate:e=>e.state.formations.length===0,redundantAttribute:`expr39`,selector:`[expr39]`,template:e(`
Aucune formation sélectionnée.
`,[])},{type:n.EACH,getKey:null,condition:null,template:e(`<h3 expr41="expr41"> </h3><h4 expr42="expr42"> </h4><p expr43="expr43"> </p><p expr44="expr44"> </p><p expr45="expr45"> </p><p expr46="expr46"> </p><p expr47="expr47"> </p><p expr48="expr48"> </p><p expr49="expr49"> </p><p expr50="expr50"> </p><p expr51="expr51"> </p><p expr52="expr52"> </p><p expr53="expr53"> </p><button expr54="expr54">
Retirer
</button>`,[{redundantAttribute:`expr41`,selector:`[expr41]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.formation.fil_lib_voe_acc}]},{redundantAttribute:`expr42`,selector:`[expr42]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.formation.g_ea_lib_vx}]},{redundantAttribute:`expr43`,selector:`[expr43]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.formation.ville_etab,` (`,e.formation.dep_lib,`)`].join(``)}]},{redundantAttribute:`expr44`,selector:`[expr44]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[`Taux d'accès : `,e.formation.taux_acces_ens,`%`].join(``)}]},{redundantAttribute:`expr45`,selector:`[expr45]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[`Places : `,e.formation.capa_fin].join(``)}]},{redundantAttribute:`expr46`,selector:`[expr46]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[`Candidatures : `,e.formation.voe_tot].join(``)}]},{redundantAttribute:`expr47`,selector:`[expr47]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[`Admis : `,e.formation.acc_tot].join(``)}]},{redundantAttribute:`expr48`,selector:`[expr48]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[`Bac Général : `,e.formation.pct_bg,`%`].join(``)}]},{redundantAttribute:`expr49`,selector:`[expr49]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[`Bac Techno : `,e.formation.pct_bt,`%`].join(``)}]},{redundantAttribute:`expr50`,selector:`[expr50]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[`Bac Pro : `,e.formation.pct_bp,`%`].join(``)}]},{redundantAttribute:`expr51`,selector:`[expr51]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[`Mention AB : `,e.formation.pct_ab,`%`].join(``)}]},{redundantAttribute:`expr52`,selector:`[expr52]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[`Mention B : `,e.formation.pct_b,`%`].join(``)}]},{redundantAttribute:`expr53`,selector:`[expr53]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[`Mention TB : `,e.formation.pct_tb,`%`].join(``)}]},{redundantAttribute:`expr54`,selector:`[expr54]`,expressions:[{type:t.EVENT,name:`onclick`,evaluate:e=>()=>e.retirerFormation(e.formation)}]}]),redundantAttribute:`expr40`,selector:`[expr40]`,itemName:`formation`,indexName:null,evaluate:e=>e.state.formations}]),name:`comparateur`},sn={css:`estimation-chances .formulaire,[is="estimation-chances"] .formulaire{ display: flex; flex-direction: column; gap: 10px; max-width: 300px; margin: 20px 0; }estimation-chances .estimation-ligne,[is="estimation-chances"] .estimation-ligne{ border: 1px solid #ccc; padding: 15px; margin: 10px 0; }`,exports:{state:{formations:[],serie:`bg`,moyenne:null},onMounted(){let e=localStorage.getItem(`comparateur`);e&&this.update({formations:JSON.parse(e)})},changerSerie(e){this.update({serie:e.target.value})},changerMoyenne(e){this.update({moyenne:parseFloat(e.target.value)})},getPctSerie(e){let t=this.state.serie;return t===`bg`?e.pct_bg:t===`bt`?e.pct_bt:t===`bp`?e.pct_bp:0},getEstimation(e){let t=e.taux_acces_ens,n=this.state.moyenne;if(this.getPctSerie(e)===0)return`Très faible ta série est rarement admise`;let r=t;return n>=16?r+=20:n>=14?r+=10:n>=12?r+=0:n>=10?r-=10:r-=20,r>=70?`Good ;D`:r>=40?`Okay :)`:r>=20?`Mehh :/`:r>=2?`Nope :(`:`Your chances are so low i had to learn how to put an emoji to tell you how dead they were: 💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀
Aucune formation dans le comparateur.
`,[])},{type:n.EACH,getKey:null,condition:null,template:e(`<h3 expr4="expr4"> </h3><div expr5="expr5"></div><div expr9="expr9"></div>`,[{redundantAttribute:`expr4`,selector:`[expr4]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.f.fil_lib_voe_acc,` `,e.f.g_ea_lib_vx].join(``)}]},{type:n.IF,evaluate:e=>e.state.serie&&e.state.moyenne,redundantAttribute:`expr5`,selector:`[expr5]`,template:e(`<p>Taux d'accès global : <b expr6="expr6"> </b></p><p>% admis de ta série : <b expr7="expr7"> </b></p><p>Estimation : <b expr8="expr8"> </b></p>`,[{redundantAttribute:`expr6`,selector:`[expr6]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.f.taux_acces_ens,`%`].join(``)}]},{redundantAttribute:`expr7`,selector:`[expr7]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.getPctSerie(e.f),`%`].join(``)}]},{redundantAttribute:`expr8`,selector:`[expr8]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>e.getEstimation(e.f)}]}])},{type:n.IF,evaluate:e=>!e.state.serie||!e.state.moyenne,redundantAttribute:`expr9`,selector:`[expr9]`,template:e(`
Remplis le formulaire ci-dessus pour voir ton estimation.
`,[])}]),redundantAttribute:`expr3`,selector:`[expr3]`,itemName:`f`,indexName:null,evaluate:e=>e.state.formations}]),name:`estimation-chances`},Z=document.getElementById(`app`),cn=null;function ln(){let e=window.location.hash;if(cn&&Xt(Z,!0),e.startsWith(`#/formation/`)){let t=e.replace(`#/formation/`,``);cn=Y(on)(Z,{id:t})}else cn=e===`#/comparateur`?Y(X)(Z):e===`#/estimation`?Y(sn)(Z):Y(an)(Z)}window.addEventListener(`hashchange`,ln),ln();