HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/figureApigeom-SVLUUT1e.js.map
{"version":3,"file":"figureApigeom-SVLUUT1e.js","sources":["../../src/lib/figureApigeom.ts"],"sourcesContent":["import type Exercice from '../exercices/Exercice'\nimport type Figure from 'apigeom'\nimport { context } from '../modules/context'\n\nexport default function figureApigeom ({ exercice, idApigeom, figure, animation = false }: { exercice: Exercice, idApigeom: string, figure: Figure, animation?: boolean}) {\n  if (!context.isHtml) return ''\n  // Styles par défaut\n  figure.isDynamic = !!exercice.interactif\n  figure.divButtons.style.display = (exercice.interactif || animation) ? 'grid' : 'none'\n  figure.divUserMessage.style.fontSize = '1em'\n  figure.divUserMessage.style.pointerEvents = 'none'\n  figure.divUserMessage.style.removeProperty('color')\n  figure.divUserMessage.classList.add('text-coopmaths-struct')\n  if (!exercice.interactif) {\n    figure.divUserMessage.style.display = 'none'\n  }\n\n  // Pour revoir la copie de l'élève dans Capytale\n  document.addEventListener(idApigeom, (event: Event) => {\n    const customEvent = event as CustomEvent\n    const json = customEvent.detail\n    figure.loadJson(JSON.parse(json))\n  })\n\n  document.addEventListener('exercicesAffiches', () => {\n    if (!context.isHtml) return\n    const container = document.querySelector(`#${idApigeom}`) as HTMLDivElement\n    if (container == null) return\n    container.innerHTML = ''\n    figure.setContainer(container)\n    if (animation) {\n      figure.divUserMessage.innerHTML = ''\n      figure.restart()\n      setTimeout(() => {\n        figure.buttons.get('PLAY')?.click()\n      }, 3000)\n    }\n  })\n\n  return `<div class=\"m-6\" id=\"${idApigeom}\"></div><div class=\"m-6 text-coopmaths-struct\" id=\"feedback${idApigeom}\"></div>`\n}\n"],"names":["figureApigeom","exercice","idApigeom","figure","animation","context","event","json","container","_a"],"mappings":"wCAIA,SAAwBA,EAAe,CAAE,SAAAC,EAAU,UAAAC,EAAW,OAAAC,EAAQ,UAAAC,EAAY,IAAwF,CACxK,OAAKC,EAAQ,QAENF,EAAA,UAAY,CAAC,CAACF,EAAS,WAC9BE,EAAO,WAAW,MAAM,QAAWF,EAAS,YAAcG,EAAa,OAAS,OACzED,EAAA,eAAe,MAAM,SAAW,MAChCA,EAAA,eAAe,MAAM,cAAgB,OACrCA,EAAA,eAAe,MAAM,eAAe,OAAO,EAC3CA,EAAA,eAAe,UAAU,IAAI,uBAAuB,EACtDF,EAAS,aACLE,EAAA,eAAe,MAAM,QAAU,QAI/B,SAAA,iBAAiBD,EAAYI,GAAiB,CAErD,MAAMC,EADcD,EACK,OACzBH,EAAO,SAAS,KAAK,MAAMI,CAAI,CAAC,CAAA,CACjC,EAEQ,SAAA,iBAAiB,oBAAqB,IAAM,CACnD,GAAI,CAACF,EAAQ,OAAQ,OACrB,MAAMG,EAAY,SAAS,cAAc,IAAIN,CAAS,EAAE,EACpDM,GAAa,OACjBA,EAAU,UAAY,GACtBL,EAAO,aAAaK,CAAS,EACzBJ,IACFD,EAAO,eAAe,UAAY,GAClCA,EAAO,QAAQ,EACf,WAAW,IAAM,QACfM,EAAAN,EAAO,QAAQ,IAAI,MAAM,IAAzB,MAAAM,EAA4B,SAC3B,GAAI,GACT,CACD,EAEM,wBAAwBP,CAAS,8DAA8DA,CAAS,YAlCnF,EAmC9B"}