{"version":3,"file":"PDFViewer.DTFjVRNe.mjs","names":["useState","useRef","useCallback","_Fragment"],"sources":["https:/framerusercontent.com/modules/lIXLgr84s4QVGCe16wth/KbjSJV5Yfv6W5anpXFKo/PDFViewer.js"],"sourcesContent":["// Responsive PDF viewer with upload functionality and overlay navigation\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect,useRef,useCallback,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function PDFViewer(props){const{pdfFile=\"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf\",thumbnailImage={src:\"\",alt:\"PDF Thumbnail\"},title,backgroundColor,overlayBackgroundColor,textColor,buttonColor,buttonTextColor,titleFont,borderRadius,enableDownload,contentPadding,closeButtonColor,style}=props;const[isOverlayOpen,setIsOverlayOpen]=useState(false);const[isLoading,setIsLoading]=useState(false);const[error,setError]=useState(null);const[currentPage,setCurrentPage]=useState(1);const[totalPages,setTotalPages]=useState(0);const[pdfDoc,setPdfDoc]=useState(null);const[pdfJsLoaded,setPdfJsLoaded]=useState(false);const canvasRef=useRef(null);const contentRef=useRef(null);const isStatic=useIsStaticRenderer();// Load PDF.js library\nuseEffect(()=>{if(typeof window===\"undefined\")return;if(window.pdfjsLib){setPdfJsLoaded(true);return;}const script=document.createElement(\"script\");script.src=\"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.min.js\";script.onload=()=>{if(window.pdfjsLib){window.pdfjsLib.GlobalWorkerOptions.workerSrc=\"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js\";setPdfJsLoaded(true);}};script.onerror=()=>{console.error(\"Failed to load PDF.js\");setError(\"Failed to load PDF library\");};document.head.appendChild(script);return()=>{// Cleanup if needed\n};},[]);// Load PDF document\nconst loadPDF=useCallback(async()=>{if(typeof window===\"undefined\"||!window.pdfjsLib||!pdfFile||!pdfJsLoaded){return;}setIsLoading(true);setError(null);try{const loadingTask=window.pdfjsLib.getDocument(pdfFile);const pdf=await loadingTask.promise;setPdfDoc(pdf);setTotalPages(pdf.numPages);setCurrentPage(1);setIsLoading(false);// Render first page after state is set\nsetTimeout(()=>{renderPage(pdf,1);},50);}catch(err){console.error(\"Error loading PDF:\",err);setError(\"Failed to load PDF. Please check the file.\");setIsLoading(false);setPdfDoc(null);}},[pdfFile,pdfJsLoaded]);// Render a specific page\nconst renderPage=useCallback(async(pdf,pageNum)=>{if(!pdf||!canvasRef.current)return;try{const page=await pdf.getPage(pageNum);const canvas=canvasRef.current;const context=canvas.getContext(\"2d\");if(!context)return;// Get container dimensions\nconst container=contentRef.current;if(!container)return;const containerWidth=container.clientWidth-48;const containerHeight=container.clientHeight-120;// Get page viewport at scale 1\nconst viewport=page.getViewport({scale:1});// Calculate scale to fit container\nconst scaleX=containerWidth/viewport.width;const scaleY=containerHeight/viewport.height;const scale=Math.min(scaleX,scaleY,2);// Get scaled viewport\nconst scaledViewport=page.getViewport({scale});// Set canvas dimensions\ncanvas.width=scaledViewport.width;canvas.height=scaledViewport.height;// Render PDF page\nconst renderContext={canvasContext:context,viewport:scaledViewport};await page.render(renderContext).promise;}catch(err){console.error(\"Error rendering page:\",err);setError(\"Failed to render page\");}},[]);// Navigate to specific page\nconst goToPage=useCallback(pageNum=>{if(!pdfDoc||pageNum<1||pageNum>totalPages)return;setCurrentPage(pageNum);renderPage(pdfDoc,pageNum);},[pdfDoc,totalPages,renderPage]);const nextPage=useCallback(()=>{if(currentPage<totalPages){goToPage(currentPage+1);}},[currentPage,totalPages,goToPage]);const prevPage=useCallback(()=>{if(currentPage>1){goToPage(currentPage-1);}},[currentPage,goToPage]);// Open overlay and load PDF\nconst openOverlay=useCallback(()=>{if(isStatic)return;startTransition(()=>{setIsOverlayOpen(true);});// Load PDF after overlay opens\nsetTimeout(()=>{loadPDF();},100);},[isStatic,loadPDF]);// Close overlay\nconst closeOverlay=useCallback(()=>{startTransition(()=>{setIsOverlayOpen(false);setIsLoading(false);setError(null);setPdfDoc(null);setCurrentPage(1);setTotalPages(0);});},[]);// Re-render on resize\nuseEffect(()=>{if(!isOverlayOpen||!pdfDoc||isStatic)return;let timeoutId=0;const handleResize=()=>{if(timeoutId)clearTimeout(timeoutId);timeoutId=window.setTimeout(()=>{renderPage(pdfDoc,currentPage);},100);};window.addEventListener(\"resize\",handleResize);return()=>{window.removeEventListener(\"resize\",handleResize);if(timeoutId)clearTimeout(timeoutId);};},[isOverlayOpen,pdfDoc,currentPage,renderPage,isStatic]);// Download PDF\nconst downloadPDF=useCallback(()=>{if(typeof window===\"undefined\")return;const link=document.createElement(\"a\");link.href=pdfFile;link.download=title||\"document.pdf\";link.target=\"_blank\";link.rel=\"noopener noreferrer\";document.body.appendChild(link);link.click();document.body.removeChild(link);},[pdfFile,title]);// Keyboard navigation\nuseEffect(()=>{if(!isOverlayOpen||isStatic)return;const handleKeyDown=e=>{if(e.key===\"Escape\"){closeOverlay();}else if(e.key===\"ArrowLeft\"){prevPage();}else if(e.key===\"ArrowRight\"){nextPage();}};document.addEventListener(\"keydown\",handleKeyDown);document.body.style.overflow=\"hidden\";return()=>{document.removeEventListener(\"keydown\",handleKeyDown);document.body.style.overflow=\"unset\";};},[isOverlayOpen,isStatic,closeOverlay,prevPage,nextPage]);const isFixedWidth=style?.width===\"100%\";const isFixedHeight=style?.height===\"100%\";return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",backgroundColor,borderRadius,overflow:\"hidden\",cursor:isStatic?\"default\":\"pointer\",boxShadow:\"0 2px 8px rgba(0,0,0,0.1)\",display:\"flex\",flexDirection:\"column\",...isFixedWidth?{}:{minWidth:\"280px\"}},onClick:openOverlay,onMouseEnter:e=>{const titleEl=e.currentTarget.querySelector(\"h3\");if(titleEl){titleEl.style.textDecoration=\"underline\";}},onMouseLeave:e=>{const titleEl=e.currentTarget.querySelector(\"h3\");if(titleEl){titleEl.style.textDecoration=\"none\";}},role:\"button\",tabIndex:0,\"aria-label\":`Open PDF: ${title}`,children:[thumbnailImage.src&&/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:isFixedHeight?\"60%\":\"200px\",backgroundImage:`url(${thumbnailImage.src})`,backgroundSize:\"cover\",backgroundPosition:\"center\",position:\"relative\",flexShrink:0}}),/*#__PURE__*/_jsx(\"div\",{style:{padding:`${contentPadding}px`,display:\"flex\",justifyContent:\"center\",alignItems:\"center\"},children:/*#__PURE__*/_jsx(\"h3\",{style:{margin:0,color:textColor,textAlign:\"center\",...titleFont,transition:\"text-decoration 0.2s ease\"},children:title})})]}),isOverlayOpen&&!isStatic&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",backgroundColor:overlayBackgroundColor,zIndex:9999,display:\"flex\",flexDirection:\"column\"},onClick:e=>{if(e.target===e.currentTarget){closeOverlay();}},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",padding:\"16px 24px\",backgroundColor:\"rgba(0,0,0,0.1)\",borderBottom:\"1px solid rgba(255,255,255,0.1)\",flexWrap:\"wrap\",gap:\"12px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"30px\",flexShrink:0},children:[/*#__PURE__*/_jsx(\"button\",{onClick:closeOverlay,style:{backgroundColor:\"transparent\",color:closeButtonColor,border:\"none\",fontSize:\"24px\",cursor:\"pointer\",padding:\"4px\",borderRadius:\"0\"},\"aria-label\":\"Close PDF viewer\",children:\"\\xd7\"}),/*#__PURE__*/_jsx(\"div\",{style:{width:150,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",overflow:\"hidden\"},\"aria-label\":\"Logo\",role:\"img\",children:/*#__PURE__*/_jsx(\"img\",{src:\"https://framerusercontent.com/images/3uUdr82Y4lIVyVt3kWXde6xwevc.png\",alt:\"Spark SF Public Schools\",style:{width:\"150px\",height:\"auto\",maxHeight:150,objectFit:\"contain\",display:\"block\"}})})]}),/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,color:textColor,...titleFont,flex:1,textAlign:\"center\",minWidth:\"200px\"},children:title}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:\"12px\",alignItems:\"center\"},children:enableDownload&&/*#__PURE__*/_jsx(\"button\",{onClick:downloadPDF,style:{backgroundColor:buttonColor,color:buttonTextColor,border:\"none\",borderRadius:\"4px\",padding:\"8px 16px\",cursor:\"pointer\",fontSize:\"14px\",fontWeight:\"500\"},children:\"Download\"})})]}),/*#__PURE__*/_jsxs(\"div\",{ref:contentRef,style:{flex:1,display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\",padding:\"24px\",position:\"relative\",overflow:\"hidden\"},children:[isLoading&&/*#__PURE__*/_jsx(\"div\",{style:{color:textColor,fontSize:\"18px\"},children:\"Loading PDF...\"}),error&&/*#__PURE__*/_jsx(\"div\",{style:{color:\"#ff4444\",fontSize:\"16px\",textAlign:\"center\"},children:error}),!isLoading&&!error&&pdfDoc&&/*#__PURE__*/_jsx(\"canvas\",{ref:canvasRef,style:{maxWidth:\"100%\",maxHeight:\"100%\",backgroundColor:\"white\",borderRadius:\"8px\",boxShadow:\"0 4px 12px rgba(0,0,0,0.3)\"}}),!isLoading&&!error&&totalPages>1&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",bottom:\"80px\",left:\"50%\",transform:\"translateX(-50%)\",display:\"flex\",alignItems:\"center\",gap:\"16px\",padding:\"12px 24px\",backgroundColor:\"rgba(0,0,0,0.8)\",borderRadius:\"8px\",zIndex:10},children:[/*#__PURE__*/_jsx(\"button\",{onClick:prevPage,disabled:currentPage<=1,style:{backgroundColor:currentPage<=1?\"rgba(255,255,255,0.1)\":buttonColor,color:currentPage<=1?\"rgba(255,255,255,0.5)\":buttonTextColor,border:\"none\",borderRadius:\"4px\",padding:\"8px 12px\",cursor:currentPage<=1?\"not-allowed\":\"pointer\",fontSize:\"14px\",fontWeight:\"500\"},children:\"← Previous\"}),/*#__PURE__*/_jsxs(\"span\",{style:{color:\"white\",fontSize:\"14px\",fontWeight:\"500\"},children:[\"Page \",currentPage,\" of \",totalPages]}),/*#__PURE__*/_jsx(\"button\",{onClick:nextPage,disabled:currentPage>=totalPages,style:{backgroundColor:currentPage>=totalPages?\"rgba(255,255,255,0.1)\":buttonColor,color:currentPage>=totalPages?\"rgba(255,255,255,0.5)\":buttonTextColor,border:\"none\",borderRadius:\"4px\",padding:\"8px 12px\",cursor:currentPage>=totalPages?\"not-allowed\":\"pointer\",fontSize:\"14px\",fontWeight:\"500\"},children:\"Next →\"})]})]})]})]});}addPropertyControls(PDFViewer,{pdfFile:{type:ControlType.File,title:\"PDF File\",allowedFileTypes:[\"pdf\"]},thumbnailImage:{type:ControlType.ResponsiveImage,title:\"Thumbnail Image\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Document Title\"},enableDownload:{type:ControlType.Boolean,title:\"Enable Download\",defaultValue:true,enabledTitle:\"Enable\",disabledTitle:\"Disable\"},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#FFFFFF\"},overlayBackgroundColor:{type:ControlType.Color,title:\"Overlay Background\",defaultValue:\"rgba(0,0,0,0.9)\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},buttonColor:{type:ControlType.Color,title:\"Button Color\",defaultValue:\"#0066FF\"},buttonTextColor:{type:ControlType.Color,title:\"Button Text Color\",defaultValue:\"#FFFFFF\"},closeButtonColor:{type:ControlType.Color,title:\"Close Button Color\",defaultValue:\"#FFFFFF\"},titleFont:{type:ControlType.Font,title:\"Title Font\",defaultValue:{fontSize:\"18px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:32,step:1,unit:\"px\"},contentPadding:{type:ControlType.Number,title:\"Content Padding\",defaultValue:16,min:0,max:64,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PDFViewer\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PDFViewer.map"],"mappings":"0OAIG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,UAAQ,0EAA0E,iBAAe,CAAC,IAAI,GAAG,IAAI,eAAe,EAAE,QAAM,kBAAgB,yBAAuB,YAAU,cAAY,kBAAgB,YAAU,eAAa,iBAAe,iBAAe,mBAAiB,SAAO,EAAW,CAAC,EAAc,GAAkBA,EAAS,EAAK,EAAO,CAAC,EAAU,GAAcA,EAAS,EAAK,EAAO,CAAC,EAAM,GAAUA,EAAS,IAAI,EAAO,CAAC,EAAY,GAAgBA,EAAS,CAAC,EAAO,CAAC,EAAW,GAAeA,EAAS,CAAC,EAAO,CAAC,EAAO,GAAWA,EAAS,IAAI,EAAO,CAAC,EAAY,GAAgBA,EAAS,EAAK,EAAQ,EAAUC,EAAO,IAAI,EAAQ,EAAWA,EAAO,IAAI,EAAQ,EAAS,EAAoB,EAChvB,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,GAAG,EAAO,SAAS,CAAC,EAAe,EAAI,EAAE,MAAO,CAAC,IAAM,EAAO,SAAS,cAAc,QAAQ,EAA+Y,MAA7Y,GAAO,IAAI,oEAAoE,EAAO,WAAW,CAAI,EAAO,WAAU,EAAO,SAAS,oBAAoB,UAAU,2EAA2E,EAAe,EAAI,EAAG,EAAE,EAAO,YAAY,CAAC,QAAQ,MAAM,uBAAuB,EAAE,EA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