{"version":3,"file":"New_Embed.DaXlEnop.mjs","names":[],"sources":["https:/framerusercontent.com/modules/PpPT0TFmbMG6jGA3nKSp/oBdORBTlYfqFzhjqlarz/New_Embed.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// @framerSupportedLayoutWidth auto\n// @framerSupportedLayoutHeight auto\nconst containerStyle={height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\"};const placeholderStyle={width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\",backgroundColor:\"rgba(136, 85, 255, 0.1)\",color:\"#96f\",textAlign:\"center\",padding:\"20px\",fontFamily:\"Inter, sans-serif\"};const emojiStyle={fontSize:\"50px\"};const headingStyle={margin:\"10px 0\",fontSize:\"18px\",fontWeight:\"bold\"};const descriptionStyle={fontSize:\"16px\"};const additionalDescriptionStyle={fontSize:\"14px\",marginTop:\"10px\"};// @framerDisableUnlink\nexport default function WebsiteEmbed(props){const{url,borderWidth,borderColor,borderRadius}=props;// Automatically add \"https://\" if not present and url is not empty\nconst formattedUrl=url?url.startsWith(\"http://\")||url.startsWith(\"https://\")?url:`https://${url}`:null;return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:formattedUrl?/*#__PURE__*/_jsx(\"iframe\",{src:formattedUrl,style:{width:\"100%\",height:\"100%\",border:`${borderWidth}px solid ${borderColor}`,borderRadius:`${borderRadius}px`},allowFullScreen:true,loading:\"lazy\"}):/*#__PURE__*/_jsxs(\"div\",{style:placeholderStyle,children:[/*#__PURE__*/_jsx(\"div\",{style:emojiStyle,children:\"🔗\"}),/*#__PURE__*/_jsx(\"div\",{style:headingStyle,children:\"Please connect a URL\"}),/*#__PURE__*/_jsx(\"div\",{style:descriptionStyle,children:\"Please note, some websites may not be supported.\"}),/*#__PURE__*/_jsx(\"div\",{style:additionalDescriptionStyle,children:\"Made by FramerFuel.com\"})]})});}addPropertyControls(WebsiteEmbed,{url:{type:ControlType.String,title:\"URL\",defaultValue:\"\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:0,min:0,max:20,unit:\"px\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#000\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:0,min:0,max:100,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WebsiteEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./New_Embed.map"],"mappings":"wOAGA,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,MAAI,cAAY,cAAY,eAAa,CAAC,EACtF,EAAa,EAAI,EAAI,WAAW,UAAU,EAAE,EAAI,WAAW,WAAW,CAAC,GAAK,UAAU,IAAM,KAAK,MAAoB,GAAK,MAAM,CAAC,MAAM,EAAe,SAAS,EAA0B,EAAK,SAAS,CAAC,IAAI,EAAa,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,EAAY,WAAW,IAAc,gBAAgB,EAAa,GAAI,EAAC,iBAAgB,EAAK,QAAQ,MAAO,EAAC,CAAc,EAAM,MAAM,CAAC,MAAM,EAAiB,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,EAAW,SAAS,IAAK,EAAC,CAAc,EAAK,MAAM,CAAC,MAAM,EAAa,SAAS,sBAAuB,EAAC,CAAc,EAAK,MAAM,CAAC,MAAM,EAAiB,SAAS,kDAAmD,EAAC,CAAc,EAAK,MAAM,CAAC,MAAM,EAA2B,SAAS,wBAAyB,EAAC,AAAC,CAAC,EAAC,AAAC,EAAC,AAAE,0BAAA,AAJ7wB,GAAyD,IAAoD,CAEvG,EAAe,CAAC,OAAO,OAAO,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,SAAS,QAAS,EA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