1import{r,j as i}from"./react-vendor-Celz-2fn.js";import{l as p,A as m}from"./analysisCache-CGU_q5eT.js";import"./index-VzCPatgX.js";import"./vendor-S-J9ZazT.js";import"./libs-vendor-CzM8KNR6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"b49a520c0c446c72dc60d814870565ed522e908d"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2919c4e2-5249-4f16-93d6-2d54b7e904ea",e._sentryDebugIdIdentifier="sentry-dbid-2919c4e2-5249-4f16-93d6-2d54b7e904ea")}catch{}})();const d=(e,t,s,a)=>e==="zh"?t:e==="fr"?a:s;function x({question:e,module:t,lang:s}){const[a,c]=r.useState(null),[l,f]=r.useState(!0),[u,o]=r.useState(!1);return r.useEffect(()=>{let n=!1;return f(!0),c(null),o(!1),p(e.id,s,t,{preferLocal:!0}).then(y=>{n||(y?c(y):o(!0))}).catch(()=>{n||o(!0)}).finally(()=>{n||f(!1)}),()=>{n=!0}},[e.id,t,s]),i.jsxs("div",{className:"adaptive-analysis",children:[i.jsxs("div",{className:"adaptive-analysis-title",children:["ð ",d(s,"æºè½è§£æ","Smart analysis","Analyse intelligente")]}),l&&i.jsx("div",{className:"adaptive-analysis-loading",children:d(s,"å è½½ä¸â¦","Loadingâ¦","Chargementâ¦")}),!l&&u&&i.jsx("div",{className:"adaptive-analysis-error",children:d(s,"è§£æææªçæã","Analysis not yet available.","Analyse non disponible pour l'instant.")}),!l&&!u&&a&&i.jsx(m,{analysis:a.immersive,question:{type:t,difficulty:e.difficulty,correctAnswer:e.correctAnswer,options:e.options,optionsTranslation:a.optionTranslation?.options,question:e.question,questionTranslation:a.optionTranslation?.question||void 0,passageQuestion:e.question||e.instruction},lang:s})]})}export{x as default};
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.