) {\n const spanForShortestCue = generateSpan(determineShortestCue(cues))\n const spanForValue = generateSpan(value)\n\n const shortestCueSpanWidth = generateOffsetWidth(spanForShortestCue);\n const valueSpanWidth = generateOffsetWidth(spanForValue);\n\n const elementWidth = Math.max(shortestCueSpanWidth, valueSpanWidth) + PADDING_WIDTH\n\n document.body.removeChild(spanForShortestCue);\n document.body.removeChild(spanForValue);\n\n const elementShorterThanMinWidth = ELEMENT_MIN_WIDTH >= elementWidth\n const valueShorterThanShortestCue = shortestCueSpanWidth > valueSpanWidth\n const shouldCenterInput = elementShorterThanMinWidth || valueShorterThanShortestCue\n\n return { width: `${elementWidth}px`, textAlign: shouldCenterInput ? 'center' : 'left', paddingRight: shouldCenterInput ? '10px' : '0px' };\n}\n","export function splitPromptForFillInBlank(prompt: string) {\n return prompt.replace(/<\\/p>/g, '').replace(/^
/g, '').replace(/
/g, '
').replace(/<\\/p>/g, '').split('___');\n}\n","import * as React from 'react';\nimport XLSX from 'xlsx';\n\ninterface UploadOptimalResponsesProps {\n submitOptimalResponses: Function;\n}\n\ninterface UploadOptimalResponsesState {\n responses: Array