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/lists-8ZgSFYmr.js
import{c as p,c5 as u}from"./index-hc8lvKav.js";const b=["puces","carres","qcm","fleches"],k=["nombres","alpha","Alpha","roman","Roman"];function m(a){return a.description!==void 0}function l(a,c=""){let t;if(p.isHtml){switch(a.style){case"none":case"puces":case"carres":case"qcm":case"fleches":t=document.createElement("ul");break;case"nombres":case"alpha":case"Alpha":case"roman":case"Roman":t=document.createElement("ol");break;default:t=document.createElement("ul");break}t.setAttribute("class",a.style+" "+a.classOptions);for(const e of a.items){const n=document.createElement("li");if(typeof e=="string")n.appendChild(document.createTextNode(e));else if(m(e)){const o=document.createElement("span");o.setAttribute("id","list-item-description-"+u("i"));const i=document.createTextNode(e.description),s=document.createTextNode(e.text);o.appendChild(i),n.appendChild(o),n.appendChild(s)}else e.introduction&&n.appendChild(document.createTextNode(e.introduction)),n.appendChild(l(e));t.appendChild(n)}}else{t="";let e,n="",o="";switch(a.style){case"none":e="",n="",o="";break;case"puces":e="$\\bullet$";break;case"carres":e="\\tiny$\\blacksquare$";break;case"qcm":e="$\\square$";break;case"fleches":e="\\tiny$\\blacktriangleright$";break;case"nombres":e="\\arabic*.";break;case"alpha":e="\\alph*.";break;case"Alpha":e="\\Alph*.";break;case"roman":e="\\roman*.";break;case"Roman":e="\\Roman*.";break}const i=a.style==="none"?"":"	\\item ",s=a.style==="none"?`\\par
`:`
`,d=c.length===0?`
`:"";b.includes(a.style)?(n=d+c+"\\begin{itemize}",e.length!==0&&(n+="[label="+e+"]"+s),o=c+"\\end{itemize}"+s):k.includes(a.style)&&(n=d+c+"\\begin{enumerate}",e.length!==0&&(n+="[label="+e+"]"+s),o=c+"\\end{enumerate}"+s),t+=n;for(const r of a.items)typeof r=="string"?t+=c+i+r+s:m(r)?t+=c+"\\textbf{"+r.description+"}"+i+r.text+s:r.introduction?(t+=c+i+r.introduction+s,t+=l(r,c+"	")):(t+=c+i,t+=`
`+l(r,c+"	"));t+=o}return t}export{l as c};
//# sourceMappingURL=lists-8ZgSFYmr.js.map