{"version":3,"file":"Html_Render.DSv0FL-5.mjs","names":[],"sources":["https:/framerusercontent.com/modules/eN07VIep4iJEn9eWvkNC/rwO3EJbs5XzmEUA6uake/Html_Render.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * WEGL EMBED COMPONENT (Fixed for Cross-Origin Camera Access)\n * * The 'allow' attribute must use \"camera *\" to permit camera access\n * when the iframe source (GitHub Pages) is different from the\n * parent domain (Framer).\n */export default function WebGLEmbed(props){const{url,allowCamera,allowMicrophone}=props;// Construct the permissions string with wildcards (*)\nconst permissionFeatures=[\"autoplay *\",\"fullscreen *\",allowCamera?\"camera *\":null,allowMicrophone?\"microphone *\":null];const allowString=permissionFeatures.filter(Boolean).join(\"; \");return /*#__PURE__*/_jsx(\"iframe\",{title:\"WebGL Embed\",src:url,style:{width:\"100%\",height:\"100%\",border:\"none\",borderRadius:\"inherit\",backgroundColor:\"transparent\"},allow:allowString,allowFullScreen:true},allowString+url);}WebGLEmbed.defaultProps={url:\"https://sunnyallan.github.io/Experimental-Components/chrome-button.html\",allowCamera:true,allowMicrophone:false};addPropertyControls(WebGLEmbed,{url:{type:ControlType.String,title:\"URL\",placeholder:\"https://your-site.com\"},allowCamera:{type:ControlType.Boolean,title:\"Camera\",defaultValue:true,description:\"Grant camera permission to the embedded page.\"},allowMicrophone:{type:ControlType.Boolean,title:\"Microphone\",defaultValue:false,description:\"Grant microphone permission to the embedded page.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WebGLEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Html_Render.map"],"mappings":"4JAKG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,MAAI,cAAY,mBAAiB,EACyC,EAApG,CAAC,aAAa,eAAe,EAAY,WAAW,KAAK,EAAgB,eAAe,KAAK,CAAsC,OAAO,QAAQ,CAAC,KAAK,KAAK,CAAC,OAAoB,EAAK,SAAS,CAAC,MAAM,cAAc,IAAI,EAAI,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,OAAO,OAAO,aAAa,UAAU,gBAAgB,cAAc,CAAC,MAAM,EAAY,gBAAgB,GAAK,CAAC,EAAY,EAAI,kBANzW,IAAoD,CAMuT,EAAW,aAAa,CAAC,IAAI,0EAA0E,YAAY,GAAK,gBAAgB,GAAM,CAAC,EAAoB,EAAW,CAAC,IAAI,CAAC,KAAK,EAAY,OAAO,MAAM,MAAM,YAAY,wBAAwB,CAAC,YAAY,CAAC,KAAK,EAAY,QAAQ,MAAM,SAAS,aAAa,GAAK,YAAY,gDAAgD,CAAC,gBAAgB,CAAC,KAAK,EAAY,QAAQ,MAAM,aAAa,aAAa,GAAM,YAAY,oDAAoD,CAAC,CAAC"}