{"version":3,"file":"HtmlAnimation.VMpbA2-v.mjs","names":["React.useMemo"],"sources":["https:/framerusercontent.com/modules/nFsQ2N18z5pywcbSHZvW/RNxi4UF2wlzB0QXIv4wn/HtmlAnimation.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function HtmlAnimation(props){const{html=\"\",replayKey=\"\",style}=props;const rootStyle=React.useMemo(()=>{return{position:\"relative\",width:style?.width??800,height:style?.height??500,border:0,borderRadius:0,boxShadow:\"none\",background:\"transparent\",overflow:\"hidden\",display:\"block\",...style};},[style]);if(!html){return /*#__PURE__*/_jsx(\"div\",{style:rootStyle});}return /*#__PURE__*/_jsx(\"div\",{style:rootStyle,children:/*#__PURE__*/_jsx(\"iframe\",{srcDoc:html,title:\"Animation\",scrolling:\"no\",sandbox:\"allow-scripts allow-same-origin\",loading:\"eager\",style:{width:\"100%\",height:\"100%\",border:0,display:\"block\",background:\"transparent\"}},`html-animation-${replayKey}`)});}addPropertyControls(HtmlAnimation,{html:{type:ControlType.String,title:\"HTML\",displayTextArea:true,defaultValue:\"\"},replayKey:{type:ControlType.String,title:\"Replay Key\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HtmlAnimation\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HtmlAnimation.map"],"mappings":"sKAGG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,OAAK,GAAG,YAAU,GAAG,SAAO,EAAY,EAAUA,OAAyB,CAAC,SAAS,WAAW,MAAM,GAAO,OAAO,IAAI,OAAO,GAAO,QAAQ,IAAI,OAAO,EAAE,aAAa,EAAE,UAAU,OAAO,WAAW,cAAc,SAAS,SAAS,QAAQ,QAAQ,GAAG,CAAK,GAAI,CAAC,CAAK,CAAC,EAA+D,OAAzD,EAA6E,EAAK,MAAM,CAAC,MAAM,EAAU,SAAsB,EAAK,SAAS,CAAC,OAAO,EAAK,MAAM,YAAY,UAAU,KAAK,QAAQ,kCAAkC,QAAQ,QAAQ,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,OAAO,EAAE,QAAQ,QAAQ,WAAW,aAAa,CAAC,EAAE,kBAAkB,GAAW,CAAC,CAAC,EAAhV,EAAK,MAAM,CAAC,MAAM,CAAS,CAAC,CAAsT,iBAHvoB,IAA4B,IAAoD,EAGwjB,EAAoB,EAAc,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,gBAAgB,GAAK,aAAa,EAAE,EAAE,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,aAAa,aAAa,EAAE,CAAC,CAAC"}