{"version":3,"file":"PDFButton.BJSGUDjs.mjs","names":[],"sources":["https:/framerusercontent.com/modules/63exnbYqir525RCUgeLt/I1VylDD8GuNXi6BFswGw/PDFButton.js"],"sourcesContent":["// Button to display a PDF document in a new browser tab with customizable Phosphor icon and text\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const phosphorIcons={file:/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"24\",height:\"24\",fill:\"currentColor\",viewBox:\"0 0 256 256\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z\"})}),download:/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"24\",height:\"24\",fill:\"currentColor\",viewBox:\"0 0 256 256\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V40a8,8,0,0,0-16,0v84.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z\"})}),eye:/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"24\",height:\"24\",fill:\"currentColor\",viewBox:\"0 0 256 256\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z\"})}),\"arrow-square-out\":/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"24\",height:\"24\",fill:\"currentColor\",viewBox:\"0 0 256 256\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z\"})}),\"file-pdf\":/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"24\",height:\"24\",fill:\"currentColor\",viewBox:\"0 0 256 256\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z\"})})};/**\n * PDF Button\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 50\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function PDFButton(props){const{pdfFile=\"https://framerusercontent.com/assets/example.pdf\",buttonText=\"View PDF\",icon=\"file-pdf\",backgroundColor=\"#000000\",textColor=\"#FFFFFF\",iconColor=\"#FFFFFF\",borderRadius=8,padding=16,gap=8,buttonFont,shadow=\"0 2px 8px rgba(0, 0, 0, 0.1)\",borderWidth=0,borderColor=\"#000000\",borderStyle=\"solid\",style}=props;const handleClick=()=>{if(typeof window!==\"undefined\"&&pdfFile){window.open(pdfFile,\"_blank\",\"noopener,noreferrer\");}};return /*#__PURE__*/_jsxs(\"button\",{onClick:handleClick,style:{...style,position:\"relative\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:`${gap}px`,padding:`${padding}px`,backgroundColor,color:textColor,border:`${borderWidth}px ${borderStyle} ${borderColor}`,borderRadius:`${borderRadius}px`,boxShadow:shadow,cursor:\"pointer\",transition:\"opacity 0.2s ease\",...buttonFont},onMouseEnter:e=>{e.currentTarget.style.opacity=\"0.8\";},onMouseLeave:e=>{e.currentTarget.style.opacity=\"1\";},type:\"button\",\"aria-label\":buttonText,children:[/*#__PURE__*/_jsx(\"span\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:iconColor,width:\"24px\",height:\"24px\",flexShrink:0},children:phosphorIcons[icon]}),/*#__PURE__*/_jsx(\"span\",{style:{whiteSpace:\"nowrap\"},children:buttonText})]});}addPropertyControls(PDFButton,{pdfFile:{type:ControlType.File,title:\"PDF File\",allowedFileTypes:[\"pdf\"]},buttonText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"View PDF\"},icon:{type:ControlType.Enum,title:\"Icon\",options:[\"file\",\"download\",\"eye\",\"arrow-square-out\",\"file-pdf\"],optionTitles:[\"File\",\"Download\",\"Eye\",\"Arrow Square Out\",\"File PDF\"],defaultValue:\"file-pdf\",displaySegmentedControl:false},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},iconColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#FFFFFF\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:50,step:1,unit:\"px\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:0,min:0,max:10,step:1,unit:\"px\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#000000\"},borderStyle:{type:ControlType.Enum,title:\"Border Style\",options:[\"solid\",\"dashed\",\"dotted\"],optionTitles:[\"Solid\",\"Dashed\",\"Dotted\"],defaultValue:\"solid\",displaySegmentedControl:true},shadow:{type:ControlType.String,title:\"Shadow\",defaultValue:\"0 2px 8px rgba(0, 0, 0, 0.1)\",placeholder:\"0 2px 8px rgba(0, 0, 0, 0.1)\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:16,min:0,max:50,step:1,unit:\"px\"},gap:{type:ControlType.Number,title:\"Icon Gap\",defaultValue:8,min:0,max:30,step:1,unit:\"px\"},buttonFont:{type:ControlType.Font,title:\"Button Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{variant:\"Semibold\",fontSize:\"14px\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PDFButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"50\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutWidth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