{"version":3,"file":"MicrophoneIframeEmbed.BqNI5POO.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/707UHJL9c9cOcXMGSuHB/PZsTuFKuVmFdtFkHixq6/MicrophoneIframeEmbed.js"],"sourcesContent":["// Create a new Framer code component named MicrophoneIframeEmbed. It should render a full-size iframe for embedding an external app that needs microphone access.\n// Requirements:\n// - Expose controls for url, title, allow, referrerPolicy, backgroundColor, and borderRadius.\n// - Default url: https://ai-coustics-tyto-demo--ph.modal.run/\n// - Default allow should include microphone, camera, autoplay, clipboard-read, clipboard-write, and fullscreen permissions.\n// - Set the iframe attributes directly: src, title, allow, allowFullScreen, referrerPolicy.\n// - Style the iframe to fill its parent: width 100%, height 100%, display block, border 0, background configurable, borderRadius configurable.\n// - The component itself should also fill its parent and hide overflow.\n// - Keep the component simple and static; no runtime fetching or extra UI.\n// - Important: this is for a Framer page iframe that needs browser microphone permission inside the embedded app.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function MicrophoneIframeEmbed(props){const{url=\"https://ai-coustics-tyto-demo--ph.modal.run/\",title=\"Microphone App Embed\",allow=\"microphone; camera; autoplay; clipboard-read; clipboard-write; fullscreen\",referrerPolicy=\"strict-origin-when-cross-origin\",backgroundColor=\"#FFFFFF\",borderRadius=\"0px\",style}=props;const containerStyle=useMemo(()=>({...style,position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",backgroundColor,borderRadius}),[backgroundColor,borderRadius,style]);const iframeStyle=useMemo(()=>({width:\"100%\",height:\"100%\",display:\"block\",border:0,background:backgroundColor,borderRadius}),[backgroundColor,borderRadius]);return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(\"iframe\",{src:url,title:title,allow:allow,allowFullScreen:true,referrerPolicy:referrerPolicy,style:iframeStyle})});}addPropertyControls(MicrophoneIframeEmbed,{url:{type:ControlType.String,title:\"URL\",defaultValue:\"https://ai-coustics-tyto-demo--ph.modal.run/\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Microphone App Embed\"},allow:{type:ControlType.String,title:\"Allow\",defaultValue:\"microphone; camera; autoplay; clipboard-read; clipboard-write; fullscreen\"},referrerPolicy:{type:ControlType.String,title:\"Referrer Policy\",defaultValue:\"strict-origin-when-cross-origin\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},borderRadius:{type:ControlType.BorderRadius,title:\"Radius\",defaultValue:\"0px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MicrophoneIframeEmbed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MicrophoneIframeEmbed.map"],"mappings":"0KAaG,SAAwB,EAAsB,EAAM,CAAC,GAAK,CAAC,MAAI,+CAA+C,QAAM,uBAAuB,QAAM,4EAA4E,iBAAe,kCAAkC,kBAAgB,UAAU,eAAa,MAAM,SAAO,EAAsV,OAAoB,EAAK,MAAM,CAAC,MAA3VA,OAAa,CAAC,GAAG,EAAM,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,kBAAgB,cAAY,GAAG,CAAC,EAAgB,EAAa,CAAK,CAAoN,EAAE,SAAsB,EAAK,SAAS,CAAC,IAAI,EAAU,QAAY,QAAM,gBAAgB,GAAoB,iBAAe,MAAzTA,OAAa,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,QAAQ,OAAO,EAAE,WAAW,EAAgB,cAAY,GAAG,CAAC,EAAgB,CAAY,CAAgM,CAAC,CAAC,CAAC,CAAC,CAAE,iBAHpzB,IAAoD,IAA2B,EAGsuB,EAAoB,EAAsB,CAAC,IAAI,CAAC,KAAK,EAAY,OAAO,MAAM,MAAM,aAAa,8CAA8C,EAAE,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,sBAAsB,EAAE,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,2EAA2E,EAAE,eAAe,CAAC,KAAK,EAAY,OAAO,MAAM,kBAAkB,aAAa,iCAAiC,EAAE,gBAAgB,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,SAAS,EAAE,aAAa,CAAC,KAAK,EAAY,aAAa,MAAM,SAAS,aAAa,KAAK,CAAC,CAAC"}