{"version":3,"file":"DomHelper-22526953.js","sources":["../../../app/frontend/helpers/DomHelper.ts"],"sourcesContent":["export function getNumberOfLinesOfText(element) {\n const style = window.getComputedStyle(element)\n const lineHeight = parseFloat(style.lineHeight)\n const height = element.offsetHeight\n return Math.ceil(height / lineHeight)\n}\n\nexport function htmlToElement(html) {\n const template = document.createElement('template')\n template.innerHTML = html.trim()\n return template.content.firstElementChild\n}\n"],"names":["getNumberOfLinesOfText","element","style","lineHeight","height","htmlToElement","html","template"],"mappings":"AAAO,SAASA,EAAuBC,EAAS,CACxC,MAAAC,EAAQ,OAAO,iBAAiBD,CAAO,EACvCE,EAAa,WAAWD,EAAM,UAAU,EACxCE,EAASH,EAAQ,aAChB,OAAA,KAAK,KAAKG,EAASD,CAAU,CACtC,CAEO,SAASE,EAAcC,EAAM,CAC5B,MAAAC,EAAW,SAAS,cAAc,UAAU,EACzC,OAAAA,EAAA,UAAYD,EAAK,OACnBC,EAAS,QAAQ,iBAC1B"}