{"version":3,"file":"PDFSection.AfSvO2JR.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Lr3QlX8z3QwjdKPRKStu/7yAHykZRMFYfqZDV0ZoQ/PDFSection.js"],"sourcesContent":["// PDF Section with image, date and title. Opens PDF in new page on click\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * PDF Section: displays an image, a date, a title, and opens a PDF in a new page on click\n * @framerIntrinsicWidth 420\n * @framerIntrinsicHeight 160\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function PDFSection(props){const{image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},date=\"2024-06-01\",title=\"Sample PDF Title\",pdfFile=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.pdf\",background,cardBackground,titleFont,dateFont,titleColor=\"#000000\",dateColor=\"#888888\",titleBackground=\"transparent\",dateBackground=\"transparent\",style}=props;function openPDF(e){e.preventDefault();if(typeof window!==\"undefined\"&&pdfFile){window.open(pdfFile,\"_blank\",\"noopener,noreferrer\");}}return /*#__PURE__*/_jsxs(\"section\",{style:{...style,display:\"flex\",flexDirection:\"column\",alignItems:\"stretch\",background,borderRadius:8,boxShadow:\"0 1px 8px 0 rgba(0,0,0,0.06)\",padding:0,cursor:pdfFile?\"pointer\":\"default\",width:\"100%\",overflow:\"hidden\"},onClick:openPDF,\"aria-label\":title,role:\"button\",tabIndex:0,onKeyDown:e=>{if(e.key===\"Enter\"||e.key===\" \")openPDF(e);},children:[/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt,style:{width:\"100%\",aspectRatio:\"1 / 1\",objectFit:\"cover\",display:\"block\"},draggable:false}),/*#__PURE__*/_jsxs(\"div\",{style:{background:cardBackground,padding:\"32px 0 48px 0\",textAlign:\"center\",borderBottomLeftRadius:8,borderBottomRightRadius:8,borderTop:\"1.5px solid #fff\",width:\"100%\",minHeight:148,display:\"flex\",flexDirection:\"column\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{...titleFont,color:titleColor,fontWeight:700,fontSize:24,lineHeight:\"1.2em\",overflow:\"hidden\",textOverflow:\"ellipsis\",marginTop:0,background:titleBackground},children:title}),/*#__PURE__*/_jsx(\"span\",{style:{...dateFont,color:dateColor,fontStyle:\"normal\",fontWeight:400,fontSize:18,marginTop:12,background:dateBackground},children:new Date(date.replace(/T.*/,\"\")).toLocaleDateString(\"en-GB\",{day:\"2-digit\",month:\"short\",year:\"numeric\"}).replace(/ /g,\" \")}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:\"50%\",bottom:-28,transform:\"translateX(-50%)\",background:\"#fff\",width:56,height:56,borderRadius:\"50%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxShadow:\"0 1px 6px 0 rgba(0,0,0,0.12)\",border:\"3px solid #F5F5F5\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"32\",height:\"32\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"#103A6E\",strokeWidth:\"2.3\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M9 10l3 3 3-3\"})})})]})]});}addPropertyControls(PDFSection,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Sample PDF Title\"},date:{type:ControlType.Date,title:\"Date\",displayTime:false,defaultValue:new Date(\"2024-06-01\").toJSON()},pdfFile:{type:ControlType.File,allowedFileTypes:[\"pdf\"],title:\"PDF File\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},cardBackground:{type:ControlType.Color,title:\"Card BG\",defaultValue:\"#F5F5F5\"},titleFont:{type:ControlType.Font,title:\"Title Font\",defaultValue:{fontSize:\"22px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},titleColor:{type:ControlType.Color,title:\"Title Color\",defaultValue:\"#000000\"},titleBackground:{type:ControlType.Color,title:\"Title BG\",defaultValue:\"transparent\"},dateFont:{type:ControlType.Font,title:\"Date Font\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},dateColor:{type:ControlType.Color,title:\"Date Color\",defaultValue:\"#888888\"},dateBackground:{type:ControlType.Color,title:\"Date BG\",defaultValue:\"transparent\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PDFSection\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"420\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"160\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PDFSection.map"],"mappings":"iLAOG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,sEAAsE,IAAI,oBAAoB,CAAC,OAAK,aAAa,QAAM,mBAAmB,UAAQ,uEAAuE,aAAW,iBAAe,YAAU,WAAS,aAAW,UAAU,YAAU,UAAU,kBAAgB,cAAc,iBAAe,cAAc,SAAO,EAAM,SAAS,EAAQ,EAAE,CAAC,EAAE,gBAAgB,CAAW,IAAS,QAAa,GAAS,EAAO,KAAK,EAAQ,SAAS,sBAAsB,CAAG,OAAoB,EAAM,UAAU,CAAC,MAAM,CAAC,GAAG,EAAM,QAAQ,OAAO,cAAc,SAAS,WAAW,UAAU,aAAW,aAAa,EAAE,UAAU,+BAA+B,QAAQ,EAAE,OAAO,EAAQ,UAAU,UAAU,MAAM,OAAO,SAAS,SAAS,CAAC,QAAQ,EAAQ,aAAa,EAAM,KAAK,SAAS,SAAS,EAAE,UAAU,GAAG,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