{"version":3,"file":"PDFDownloadButton.B7XRKnru.mjs","names":[],"sources":["https:/framerusercontent.com/modules/dbgPLelGqi8VkqMQKUjK/QcXy7m1E7Mc0KFmWrV3g/PDFDownloadButton.js"],"sourcesContent":["// Button component for downloading PDF files\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function PDFDownloadButton(props){const{label,pdfFile,fileName,backgroundColor,textColor,hoverColor,borderRadius,padding,font,showIcon,style}=props;const handleDownload=()=>{if(typeof window===\"undefined\")return;const link=document.createElement(\"a\");link.href=pdfFile;link.download=fileName;document.body.appendChild(link);link.click();document.body.removeChild(link);};return /*#__PURE__*/_jsxs(\"button\",{onClick:handleDownload,style:{...style,position:\"relative\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",gap:8,backgroundColor,color:textColor,border:\"none\",borderRadius,padding,cursor:\"pointer\",transition:\"background-color 0.2s ease\",...font,width:\"max-content\"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=hoverColor;},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=backgroundColor;},\"aria-label\":`Download ${fileName}`,children:[showIcon&&/*#__PURE__*/_jsxs(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M8 11L4 7H6.5V2H9.5V7H12L8 11Z\",fill:\"currentColor\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M2 13H14V14H2V13Z\",fill:\"currentColor\"})]}),/*#__PURE__*/_jsx(\"span\",{children:label})]});}addPropertyControls(PDFDownloadButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Download Resume\"},pdfFile:{type:ControlType.File,title:\"PDF File\",allowedFileTypes:[\"pdf\"]},fileName:{type:ControlType.String,title:\"File Name\",defaultValue:\"resume.pdf\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(0, 0, 0, 0)\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},hoverColor:{type:ControlType.Color,title:\"Hover Color\",defaultValue:\"rgba(0, 0, 0, 0)\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:50,step:1,unit:\"px\"},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"12px 24px\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{variant:\"Semibold\",fontSize:\"14px\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},showIcon:{type:ControlType.Boolean,title:\"Show Icon\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PDFDownloadButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PDFDownloadButton.map"],"mappings":"iLAIG,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,QAAM,UAAQ,WAAS,kBAAgB,YAAU,aAAW,eAAa,UAAQ,OAAK,WAAS,SAAO,EAAqO,OAAoB,EAAM,SAAS,CAAC,YAA1O,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,EAAK,SAAS,cAAc,GAAG,EAAE,EAAK,KAAK,EAAQ,EAAK,SAAS,EAAS,SAAS,KAAK,YAAY,CAAI,EAAE,EAAK,MAAM,EAAE,SAAS,KAAK,YAAY,CAAI,CAAE,EAA6D,MAAM,CAAC,GAAG,EAAM,SAAS,WAAW,QAAQ,cAAc,WAAW,SAAS,eAAe,SAAS,IAAI,EAAE,kBAAgB,MAAM,EAAU,OAAO,OAAO,eAAa,UAAQ,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