{"version":3,"file":"ProjectEmbed.j0Gd5w2a.mjs","names":[],"sources":["https:/framerusercontent.com/modules/3jsDN8Q23v9RwSbxe4zO/zBKBOda8FJztJy2yq9t7/ProjectEmbed.js"],"sourcesContent":["// Instructions: Reusable embed slot for project pages — renders an iframe for YouTube, Figma prototypes,\n// itch.io builds etc. When no URL is set, shows a labelled placeholder so the spot is visible on the canvas.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ProjectEmbed(props){const{url,title,placeholderLabel,radius,background,textColor,labelFont}=props;const hasUrl=typeof url===\"string\"&&url.trim().length>0;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",borderRadius:radius,overflow:\"hidden\",background},children:hasUrl?/*#__PURE__*/_jsx(\"iframe\",{src:url,title:title,style:{width:\"100%\",height:\"100%\",border:\"none\",display:\"block\"},allow:\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen; xr-spatial-tracking\",allowFullScreen:true,loading:\"lazy\"}):/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\",padding:24,border:`1px dashed ${textColor}`,borderRadius:radius,color:textColor,...labelFont},children:placeholderLabel})});}addPropertyControls(ProjectEmbed,{url:{type:ControlType.String,title:\"Embed URL\",defaultValue:\"\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Embedded content\"},placeholderLabel:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"Embed — add URL\",displayTextArea:true},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:17,min:0,max:80,unit:\"px\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgb(232, 234, 235)\"},textColor:{type:ControlType.Color,title:\"Label Color\",defaultValue:\"rgb(84, 84, 84)\"},labelFont:{type:ControlType.Font,title:\"Label Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:\"1.4em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProjectEmbed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProjectEmbed.map"],"mappings":"4JAKG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,MAAI,QAAM,mBAAiB,SAAO,aAAW,YAAU,aAAW,EAAY,EAAO,OAAO,GAAM,UAAU,EAAI,KAAK,CAAC,CAAC,OAAO,EAAE,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,aAAa,EAAO,SAAS,SAAS,YAAU,EAAE,SAAS,EAAoB,EAAK,SAAS,CAAC,IAAI,EAAU,QAAM,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,OAAO,OAAO,QAAQ,OAAO,EAAE,MAAM,4HAA4H,gBAAgB,GAAK,QAAQ,MAAM,CAAC,EAAe,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,UAAU,SAAS,QAAQ,GAAG,OAAO,cAAc,IAAY,aAAa,EAAO,MAAM,EAAU,GAAG,CAAS,EAAE,SAAS,CAAgB,CAAC,CAAC,CAAC,CAAE,iBAHl0B,IAAoD,EAG+wB,EAAoB,EAAa,CAAC,IAAI,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,EAAE,EAAE,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,kBAAkB,EAAE,iBAAiB,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,aAAa,kBAAkB,gBAAgB,EAAI,EAAE,OAAO,CAA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