{"version":3,"file":"Myembedweb.DGkuJSBA.mjs","names":[],"sources":["https:/framerusercontent.com/modules/0vyI7njBpdRCFKiEdhLN/GKda5CfNZSOWO6a2fGay/Myembedweb.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function CustomEmbed({url=\"https://example.com\",width=\"100%\",sandbox=\"allow-scripts allow-same-origin allow-forms allow-downloads allow-popups allow-popups-to-escape-sandbox allow-modals allow-presentation allow-top-navigation-by-user-activation\",allowFullscreen=true,loading=\"lazy\"}){// 确保 URL 是 HTTPS（安全检查）\nconst secureUrl=url.startsWith(\"http://\")&&!url.includes(\"localhost\")?url.replace(\"http://\",\"https://\"):url;return /*#__PURE__*/_jsx(\"iframe\",{src:secureUrl,width:width,height:\"100%\",sandbox:sandbox,allowFullScreen:allowFullscreen,loading:loading,// 添加这些属性\nallow:\"camera; microphone; geolocation; encrypted-media; display-capture\",referrerPolicy:\"no-referrer-when-downgrade\",style:{border:\"none\",display:\"block\"},title:\"Custom Embed\"});}// 添加 Framer 属性控制面板\naddPropertyControls(CustomEmbed,{url:{type:ControlType.String,title:\"URL\",defaultValue:\"https://example.com\",placeholder:\"输入要嵌入的网页链接\"},sandbox:{type:ControlType.Enum,title:\"安全策略\",defaultValue:\"allow-scripts allow-same-origin allow-forms allow-downloads allow-popups allow-popups-to-escape-sandbox allow-modals allow-presentation allow-top-navigation-by-user-activation\",options:[\"allow-scripts allow-same-origin allow-forms allow-downloads allow-popups allow-popups-to-escape-sandbox allow-modals allow-presentation allow-top-navigation-by-user-activation\",\"allow-scripts allow-same-origin allow-forms allow-downloads\",\"allow-scripts allow-same-origin\",\"allow-scripts\",\"\"],optionTitles:[\"全部权限（推荐）\",\"基础权限（无弹窗）\",\"最小权限（无表单/下载）\",\"仅脚本\",\"无权限\"]},allowFullscreen:{type:ControlType.Boolean,title:\"允许全屏\",defaultValue:true},loading:{type:ControlType.Enum,defaultValue:\"lazy\",options:[\"lazy\",\"eager\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Myembedweb.map"],"mappings":"iOAA+F,SAAwB,EAAY,CAAC,MAAI,sBAAsB,QAAM,OAAO,UAAQ,kLAAkL,mBAAgB,EAAK,UAAQ,OAAO,CAAC,CAC1Y,IAAM,EAAU,EAAI,WAAW,UAAU,GAAG,EAAI,SAAS,YAAY,CAAC,EAAI,QAAQ,UAAU,WAAW,CAAC,EAAI,MAAoB,GAAK,SAAS,CAAC,IAAI,EAAgB,QAAM,OAAO,OAAe,UAAQ,gBAAgB,EAAwB,UAC/O,MAAM,oEAAoE,eAAe,6BAA6B,MAAM,CAAC,OAAO,OAAO,QAAQ,OAAQ,EAAC,MAAM,cAAe,EAAC,AAAE,cACpL,AAHA,GAA2C,IAAoD,CAG/F,EAAoB,EAAY,CAAC,IAAI,CAAC,KAAK,EAAY,OAAO,MAAM,MAAM,aAAa,sBAAsB,YAAY,YAAa,EAAC,QAAQ,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,aAAa,kLAAkL,QAAQ,CAAC,kLAAkL,8DAA8D,kCAAkC,gBAAgB,EAAG,EAAC,aAAa,CAAC,WAAW,YAAY,eAAe,MAAM,KAAM,CAAC,EAAC,gBAAgB,CAAC,KAAK,EAAY,QAAQ,MAAM,OAAO,cAAa,CAAK,EAAC,QAAQ,CAAC,KAAK,EAAY,KAAK,aAAa,OAAO,QAAQ,CAAC,OAAO,OAAQ,CAAC,CAAC,EAAC"}