{
  "version": 3,
  "sources": ["ssg: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(\"\uC774\uBBF8\uC9C0 \uB2E4\uC6B4\uB85C\uB4DC \uC2E4\uD328:\",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:\"\uC774\uBBF8\uC9C0 \uB2E4\uC6B4\uB85C\uB4DC\"},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": "gGAC4G,SAASA,EAAoB,CAAC,MAAAC,EAAM,SAAAC,CAAQ,EAAE,CAAiZ,OAAoBC,EAAKC,EAAM,CAAC,WAAW,UAAU,OAAO,GAAG,MAAM,IAAI,OAAO,GAAG,OAAO,GAAK,MAAM,CAAC,MAAM,QAAQ,SAAS,GAAG,WAAW,IAAI,OAAO,SAAS,EAAE,MAA7hB,SAAS,CAAC,GAAG,CAAoD,IAAMC,EAAK,MAA/C,MAAM,MAAMH,EAAS,CAAC,KAAK,MAAM,CAAC,GAA4B,KAAK,EAAQI,EAAQ,IAAI,gBAAgBD,CAAI,EAAQE,EAAK,SAAS,cAAc,GAAG,EAAEA,EAAK,KAAKD,EAAQC,EAAK,SAAS,gBAAgB,SAAS,KAAK,YAAYA,CAAI,EAAEA,EAAK,MAAM,EAAE,SAAS,KAAK,YAAYA,CAAI,EAAE,IAAI,gBAAgBD,CAAO,CAAE,OAAOE,EAAI,CAAC,QAAQ,MAAM,4DAAeA,CAAG,CAAE,CAAC,EAAuL,SAASP,CAAK,CAAC,CAAE,CAACQ,EAAoBT,EAAoB,CAAC,MAAM,CAAC,KAAKU,EAAY,OAAO,aAAa,6CAAU,EAAE,SAAS,CAAC,KAAKA,EAAY,OAAO,aAAa,oEAAoE,CAAC,CAAC",
  "names": ["DownloadImageButton", "label", "imageUrl", "p", "Frame", "blob", "blobUrl", "link", "err", "addPropertyControls", "ControlType"]
}
