{"version":3,"file":"Figma_Link_Embed.CXwXv0XF.mjs","names":[],"sources":["https:/framerusercontent.com/modules/hEsX1HkUlPxyC7tOjm1U/B29lwMHkaar9AEfbaREf/Figma_Link_Embed.js"],"sourcesContent":["// Figma Embed component that converts Figma URLs to embeddable iframes\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function FigmaEmbed(props){const{figmaUrl,borderColor,borderRadius,style}=props;const embedUrl=figmaUrl?`https://www.figma.com/embed?embed_host=share&url=${encodeURIComponent(figmaUrl)}&hide-ui=1`:null;if(!embedUrl){return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor:\"#F5F5F5\",color:\"#000000\",fontSize:\"15px\",fontWeight:500,letterSpacing:\"-0.01em\",lineHeight:\"1.3em\",textAlign:\"center\",padding:\"20px\",border:`1px solid ${borderColor}`,borderRadius:`${borderRadius}px`},children:\"Paste a Figma URL to preview it here.\"});}return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\",border:`1px solid ${borderColor}`,borderRadius:`${borderRadius}px`},children:/*#__PURE__*/_jsx(\"iframe\",{src:embedUrl,style:{width:\"100%\",height:\"100%\",border:\"none\",position:\"absolute\",top:0,left:0},allowFullScreen:true,title:\"Figma Embed\"})});}addPropertyControls(FigmaEmbed,{figmaUrl:{type:ControlType.String,title:\"Figma URL\",defaultValue:\"\",placeholder:\"https://www.figma.com/file/...\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#EEEEEE\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:50,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FigmaEmbed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Figma_Link_Embed.map"],"mappings":"4JAIG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,WAAS,cAAY,eAAa,SAAO,EAAY,EAAS,EAAS,oDAAoD,mBAAmB,EAAS,CAAC,YAAY,KAAua,OAA9Z,EAAkb,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,SAAS,SAAS,OAAO,aAAa,IAAc,aAAa,GAAG,EAAa,IAAI,CAAC,SAAsB,EAAK,SAAS,CAAC,IAAI,EAAS,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,OAAO,OAAO,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,CAAC,gBAAgB,GAAK,MAAM,cAAc,CAAC,CAAC,CAAC,CAAruB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,gBAAgB,UAAU,MAAM,UAAU,SAAS,OAAO,WAAW,IAAI,cAAc,UAAU,WAAW,QAAQ,UAAU,SAAS,QAAQ,OAAO,OAAO,aAAa,IAAc,aAAa,GAAG,EAAa,IAAI,CAAC,SAAS,wCAAwC,CAAC,kBAHjlB,IAAoD,CAGs4B,EAAoB,EAAW,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,GAAG,YAAY,iCAAiC,CAAC,YAAY,CAAC,KAAK,EAAY,MAAM,MAAM,eAAe,aAAa,UAAU,CAAC,aAAa,CAAC,KAAK,EAAY,OAAO,MAAM,gBAAgB,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,KAAK,KAAK,CAAC,CAAC"}