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/_components-WBOZfDAB.js.map
{"version":3,"file":"_components-WBOZfDAB.js","sources":["../../src/exercices/ressources/_components.ts"],"sourcesContent":["import { getUniqueStringBasedOnTimeStamp } from '../../lib/components/time'\nexport function createButon ({ title = 'Valider' } : {title?: string} = {}) {\n  const button = document.createElement('button')\n  button.textContent = title\n  button.setAttribute('id', 'html-insert-button' + getUniqueStringBasedOnTimeStamp('-'))\n  // button.classList.add('text-coopmaths-canvas', 'dark:text-coopmathsdark-canvas', 'bg-coopmaths-action', 'dark:bg-coopmathsdark-action', 'hover:bg-coopmaths-action-lightest', 'dark:hover:bg-coopmathsdark-action-lightest', 'p-2')\n  return button\n}\n\nexport function createTextInput ({ placeholder = '', autoCorrect = true } : {placeholder?: string, autoCorrect?: boolean} = {}) {\n  const input = document.createElement('input')\n  input.setAttribute('placeholder', placeholder)\n  input.setAttribute('id', 'html-insert-text-input' + getUniqueStringBasedOnTimeStamp('-'))\n  input.classList.add('m-2', 'p-2', 'border-2', 'border-coopmaths-action', 'dark:border-coopmathsdark-action', 'focus:border-coopmaths-action-lightest', 'dark:focus:border-coopmathsdark-action-lightest', 'focus:outline-0', 'focus:ring-0', 'focus:border-1', 'bg-coopmaths-canvas', 'dark:bg-coopmathsdark-canvas', 'text-coopmaths-corpus-light', 'dark:text-coopmathsdark-corpus-light')\n  input.setAttribute('autocorrect', autoCorrect ? 'on' : 'off')\n  input.setAttribute('spellcheck', autoCorrect ? 'true' : 'false')\n  return input\n}\n\nexport function createIButton ({ tooltip = '', direction }: { tooltip?: string, direction?: 'top'|'bottom'|'left'|'right'} = {}) {\n  // <i class=\"bx bx-sm px-2 bx-zoom-out hover:text-coopmaths-action-lightest text-coopmaths-action dark:text-coopmathsdark-action dark:hover:text-coopmathsdark-action-lightest\" />\n  const i = document.createElement('i')\n  i.setAttribute('id', 'html-insert-info' + getUniqueStringBasedOnTimeStamp('-'))\n  i.classList.add('bx', 'bx-sm', 'bx-info-circle')\n  const button = document.createElement('button')\n  button.appendChild(i)\n  button.setAttribute('data-tip', tooltip)\n  button.classList.add('tooltip', 'before:whitespace-pre-wrap', 'before:content-[attr(data-tip)]', 'before:text-left')\n  if (direction !== undefined) {\n    button.classList.add(`tooltip-${direction}`)\n  }\n  return button\n}\n"],"names":["createButon","title","button","getUniqueStringBasedOnTimeStamp","createTextInput","placeholder","autoCorrect","input","createIButton","tooltip","direction","i"],"mappings":"yCACO,SAASA,EAAa,CAAE,MAAAC,EAAQ,SAAU,EAAuB,CAAA,EAAI,CACpE,MAAAC,EAAS,SAAS,cAAc,QAAQ,EAC9C,OAAAA,EAAO,YAAcD,EACrBC,EAAO,aAAa,KAAM,qBAAuBC,EAAgC,GAAG,CAAC,EAE9ED,CACT,CAEgB,SAAAE,EAAiB,CAAE,YAAAC,EAAc,GAAI,YAAAC,EAAc,EAAK,EAAoD,GAAI,CACxH,MAAAC,EAAQ,SAAS,cAAc,OAAO,EACtC,OAAAA,EAAA,aAAa,cAAeF,CAAW,EAC7CE,EAAM,aAAa,KAAM,yBAA2BJ,EAAgC,GAAG,CAAC,EACxFI,EAAM,UAAU,IAAI,MAAO,MAAO,WAAY,0BAA2B,mCAAoC,yCAA0C,kDAAmD,kBAAmB,eAAgB,iBAAkB,sBAAuB,+BAAgC,8BAA+B,sCAAsC,EAC3XA,EAAM,aAAa,cAAeD,EAAc,KAAO,KAAK,EAC5DC,EAAM,aAAa,aAAcD,EAAc,OAAS,OAAO,EACxDC,CACT,CAEO,SAASC,EAAe,CAAE,QAAAC,EAAU,GAAI,UAAAC,CAAU,EAAoE,CAAA,EAAI,CAEzH,MAAAC,EAAI,SAAS,cAAc,GAAG,EACpCA,EAAE,aAAa,KAAM,mBAAqBR,EAAgC,GAAG,CAAC,EAC9EQ,EAAE,UAAU,IAAI,KAAM,QAAS,gBAAgB,EACzC,MAAAT,EAAS,SAAS,cAAc,QAAQ,EAC9C,OAAAA,EAAO,YAAYS,CAAC,EACbT,EAAA,aAAa,WAAYO,CAAO,EACvCP,EAAO,UAAU,IAAI,UAAW,6BAA8B,kCAAmC,kBAAkB,EAC/GQ,IAAc,QAChBR,EAAO,UAAU,IAAI,WAAWQ,CAAS,EAAE,EAEtCR,CACT"}