{"version":3,"file":"HtmlText.CjIFrlBE.mjs","names":[],"sources":["https:/framerusercontent.com/modules/6FTDBH9YO6QZ259m9Y6Y/RDDyVxg7uuVgNNN7e242/HtmlText.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Welcome to Code in Framer\n// Get Started: https://www.framer.com/docs/guides/\n/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/docs/guides/auto-sizing\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */function removeStyleAttributes(html){const parser=new DOMParser;const doc=parser.parseFromString(html,\"text/html\");// Remove inline style attributes\nconst elementsWithStyle=doc.querySelectorAll(\"[style]\");elementsWithStyle.forEach(el=>el.removeAttribute(\"style\"));// Return the modified HTML\nreturn doc.body.innerHTML;}export default function HtmlText({htmlText}){// This is a React component containing an Example component\n// - Replace <Example /> with your own code\n// - Find inspiration: https://www.framer.com/developers/\nconsole.log(\"htmlText\",htmlText);const cleanedHtml=removeStyleAttributes(htmlText);return /*#__PURE__*/_jsx(\"p\",{style:containerStyle,dangerouslySetInnerHTML:{__html:cleanedHtml}});}HtmlText.defaultProps={htmlText:\" \"};addPropertyControls(HtmlText,{htmlText:{title:\"HtmlText\",type:ControlType.String}});// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst containerStyle={flexShrink:0,width:\"100%\",height:\"100%\"/* 72px */,// whiteSpace: \"pre-wrap\",\nwordWrap:\"break-word\",wordBreak:\"break-word\",position:\"relative\",opacity:1,fontWeight:500,color:\"#ffffff\",fontSize:16,letterSpacing:0,lineHeight:1.5,textAlign:\"left\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HtmlText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HtmlText.map"],"mappings":"iOAQG,SAAS,EAAsB,EAAK,CAAC,IAAM,EAAO,IAAI,UAAgB,EAAI,EAAO,gBAAgB,EAAK,aACnG,EAAkB,EAAI,iBAAiB,WAC7C,OADwD,EAAkB,QAAQ,GAAI,EAAG,gBAAgB,UAClG,EAAI,KAAK,SAAW,UAAwB,EAAS,CAAC,WAAS,CAAC,CAGvE,QAAQ,IAAI,WAAW,GAAU,IAAM,EAAY,EAAsB,GAAU,OAAoB,EAAK,IAAI,CAAC,MAAM,EAAe,wBAAwB,CAAC,OAAO,EAAY,CAAC,CAAG,2BAAS,aAAa,CAAC,SAAS,IAAI,CAAC,EAAoB,EAAS,CAAC,SAAS,CAAC,MAAM,WAAW,KAAK,EAAY,OAAO,CAAC,EAEvS,EAAe,CAAC,WAAW,EAAE,MAAM,OAAO,OAAO,OACvD,SAAS,aAAa,UAAU,aAAa,SAAS,WAAW,QAAQ,EAAE,WAAW,IAAI,MAAM,UAAU,SAAS,GAAG,cAAc,EAAE,WAAW,IAAI,UAAU,OAAO"}