{"version":3,"file":"DownloadButton.BOaRqyrS.mjs","names":[],"sources":["https:/framerusercontent.com/modules/su5EyPPjMNDKcD7hNOL4/GuI0QEtzzC4ZYx3rbfjV/DownloadButton.js"],"sourcesContent":["// Botón para descargar PDF - Recreación exacta del diseño proporcionado\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Botón de descarga de PDF con diseño personalizado\n * \n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function DownloadButton(props){const{buttonText=\"Request our Capability Statement\",pdfUrl=\"https://framerusercontent.com/assets/example.pdf\",backgroundColor=\"#0A1E3D\",textColor=\"#FFFFFF\",borderColor=\"#FFFFFF\",borderWidth=2,borderRadius=12,paddingVertical=18,paddingHorizontal=40,font,hoverBackgroundColor=\"#FFFFFF\",hoverTextColor=\"#0A1E3D\",style}=props;const handleDownload=()=>{if(typeof window!==\"undefined\"){const link=document.createElement(\"a\");link.href=pdfUrl;link.download=pdfUrl.split(\"/\").pop()||\"document.pdf\";link.target=\"_blank\";document.body.appendChild(link);link.click();document.body.removeChild(link);}};const isFixedWidth=style?.width===\"100%\";return /*#__PURE__*/_jsx(\"button\",{onClick:handleDownload,style:{...style,position:\"relative\",backgroundColor,color:textColor,border:`${borderWidth}px solid ${borderColor}`,borderRadius:`${borderRadius}px`,paddingTop:`${paddingVertical}px`,paddingBottom:`${paddingVertical}px`,paddingLeft:`${paddingHorizontal}px`,paddingRight:`${paddingHorizontal}px`,cursor:\"pointer\",transition:\"all 0.3s ease\",outline:\"none\",whiteSpace:isFixedWidth?\"normal\":\"nowrap\",width:isFixedWidth?\"100%\":\"max-content\",...font},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=hoverBackgroundColor;e.currentTarget.style.color=hoverTextColor;},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=backgroundColor;e.currentTarget.style.color=textColor;},\"aria-label\":`Download PDF: ${buttonText}`,children:buttonText});}addPropertyControls(DownloadButton,{buttonText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"Request our Capability Statement\"},pdfUrl:{type:ControlType.File,title:\"PDF File\",allowedFileTypes:[\"pdf\"]},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#0A1E3D\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#FFFFFF\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:2,min:0,max:10,step:1,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:12,min:0,max:50,step:1,unit:\"px\"},paddingVertical:{type:ControlType.Number,title:\"Padding Vertical\",defaultValue:18,min:0,max:50,step:1,unit:\"px\"},paddingHorizontal:{type:ControlType.Number,title:\"Padding Horizontal\",defaultValue:40,min:0,max:100,step:1,unit:\"px\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"18px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.2em\"}},hoverBackgroundColor:{type:ControlType.Color,title:\"Hover Background\",defaultValue:\"#FFFFFF\"},hoverTextColor:{type:ControlType.Color,title:\"Hover Text Color\",defaultValue:\"#0A1E3D\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DownloadButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DownloadButton.map"],"mappings":"0KAMG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,aAAW,mCAAmC,SAAO,mDAAmD,kBAAgB,UAAU,YAAU,UAAU,cAAY,UAAU,cAAY,EAAE,eAAa,GAAG,kBAAgB,GAAG,oBAAkB,GAA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