{"version":3,"file":"DownloadImageButton.BxW_IyoU.mjs","names":[],"sources":["https:/framerusercontent.com/modules/IAmdHjMN6zlMyu4TiMUz/phVIBAQ0Sc1edGqlWrd6/DownloadImageButton.js"],"sourcesContent":["// DownloadImageButton.tsx\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{Frame,addPropertyControls,ControlType}from\"framer\";export function DownloadImageButton({label,imageUrl}){const downloadImage=async()=>{try{const response=await fetch(imageUrl,{mode:\"cors\"});const blob=await response.blob();const blobUrl=URL.createObjectURL(blob);const link=document.createElement(\"a\");link.href=blobUrl;link.download=\"gln-image.jpg\";document.body.appendChild(link);link.click();document.body.removeChild(link);URL.revokeObjectURL(blobUrl);}catch(err){console.error(\"이미지 다운로드 실패:\",err);}};return /*#__PURE__*/_jsx(Frame,{background:\"#3D0496\",radius:20,width:156,height:44,center:true,style:{color:\"white\",fontSize:20,fontWeight:600,cursor:\"pointer\"},onTap:downloadImage,children:label});}addPropertyControls(DownloadImageButton,{label:{type:ControlType.String,defaultValue:\"이미지 다운로드\"},imageUrl:{type:ControlType.String,defaultValue:\"https://framerusercontent.com/images/fXur8PDiu8Ox2Ixz9WFFI2LEw.jpg\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"DownloadImageButton\":{\"type\":\"reactComponent\",\"name\":\"DownloadImageButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DownloadImageButton.map"],"mappings":"4OACqG,SAAgB,EAAoB,CAAC,QAAM,YAAU,CAAiZ,OAAoB,EAAK,EAAM,CAAC,WAAW,UAAU,OAAO,GAAG,MAAM,IAAI,OAAO,GAAG,OAAO,GAAK,MAAM,CAAC,MAAM,QAAQ,SAAS,GAAG,WAAW,IAAI,OAAO,UAAU,CAAC,MAA7hB,SAAS,CAAC,GAAG,CAAoD,IAAM,EAAK,MAA/C,MAAM,MAAM,EAAS,CAAC,KAAK,OAAO,CAAC,EAA2B,MAAM,CAAO,EAAQ,IAAI,gBAAgB,EAAK,CAAO,EAAK,SAAS,cAAc,IAAI,CAAC,EAAK,KAAK,EAAQ,EAAK,SAAS,gBAAgB,SAAS,KAAK,YAAY,EAAK,CAAC,EAAK,OAAO,CAAC,SAAS,KAAK,YAAY,EAAK,CAAC,IAAI,gBAAgB,EAAQ,OAAQ,EAAI,CAAC,QAAQ,MAAM,eAAe,EAAI,GAAyL,SAAS,EAAM,CAAC,kBAArsB,IAA0D,CAA6oB,EAAoB,EAAoB,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,aAAa,WAAW,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,aAAa,qEAAqE,CAAC,CAAC"}