{"version":3,"file":"PDF_Downloader.DXM2R2oF.mjs","names":["React.useRef","React.useState","React.useCallback"],"sources":["https:/framerusercontent.com/modules/g0oQdZqO54VV05Z8mvGc/91ghSR3E0Z4qfslhuAw6/PDF_Downloader.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * PDF Downloader Trigger - Invisible PDF Handler Component\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function PDFDownloaderTrigger(props){const{operation=\"download\",contentSource=\"current-page\",externalUrl=\"\",uploadedDocument,targetFrameName=\"\",excludeSpecificAreas=false,excludeFrameNames=\"\",pageSize=\"a4\",outputFilename=\"document\",colorMode=\"rgb\",captureScale=1.5,clickDelay=0,enableKeyboardShortcuts=false,keyboardShortcut=\"ctrl+p\"}=props;const captureSpecificArea=operation===\"print\"?false:props.captureSpecificArea??false;const triggerRef=React.useRef(null);const operationLockRef=React.useRef(false);const[operationInProgress,setOperationInProgress]=React.useState(false);const[browserEnvironment,setBrowserEnvironment]=React.useState(false);const[librariesLoaded,setLibrariesLoaded]=React.useState(false);const currentRenderTarget=RenderTarget.current();const isDesignCanvas=currentRenderTarget===RenderTarget.canvas;React.useEffect(()=>{setBrowserEnvironment(typeof window!==\"undefined\"&&!!window.document);},[]);const sanitizeFilename=React.useCallback(filename=>{if(!filename||filename.trim()===\"\")return\"document\";return filename.trim().replace(/[<>:\"/\\\\|?*\\x00-\\x1f]/g,\"\").replace(/\\s+/g,\"_\").substring(0,100);},[]);const initializePDFGenerator=React.useCallback(async()=>{if(!browserEnvironment)return null;try{if(librariesLoaded){if(window.jspdf?.jsPDF)return window.jspdf.jsPDF;if(window.jsPDF)return window.jsPDF;const lib=await import(\"https://esm.sh/jspdf@2.5.1\");return lib.jsPDF||lib.default||window.jspdf?.jsPDF||window.jsPDF;}try{const lib=await import(\"https://esm.sh/jspdf@2.5.1\");setLibrariesLoaded(true);return lib.jsPDF||lib.default||window.jspdf?.jsPDF||window.jsPDF;}catch{return new Promise((resolve,reject)=>{const script=document.createElement(\"script\");script.src=\"https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js\";script.onload=()=>{setLibrariesLoaded(true);resolve(window.jspdf?.jsPDF||window.jsPDF);};script.onerror=reject;document.head.appendChild(script);});}}catch{return null;}},[browserEnvironment,librariesLoaded]);const initializeCanvasRenderer=React.useCallback(async()=>{if(!browserEnvironment)return null;try{try{const lib=await import(\"https://esm.sh/html2canvas@1.4.1\");return lib.default||lib.html2canvas;}catch{return new Promise((resolve,reject)=>{const script=document.createElement(\"script\");script.src=\"https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js\";script.onload=()=>resolve(window.html2canvas);script.onerror=reject;document.head.appendChild(script);});}}catch{return null;}},[browserEnvironment]);const initializePrintUtility=React.useCallback(async()=>{if(!browserEnvironment)return null;try{const lib=await import(\"https://esm.sh/print-js@1.6.0\");return lib.default||lib.printJS;}catch{return null;}},[browserEnvironment]);const getScrollableRoot=React.useCallback(()=>{const candidates=[document.querySelector(\"[data-framer-page-optimized]\"),document.querySelector(\"[class*='framer-'][style*='overflow']\"),document.querySelector(\"main\"),document.querySelector(\"#main\")];for(const el of candidates){if(el&&el.scrollHeight>window.innerHeight*1.1)return el;}const allDivs=Array.from(document.querySelectorAll(\"div\"));for(const div of allDivs){const style=window.getComputedStyle(div);if((style.overflow===\"auto\"||style.overflow===\"scroll\"||style.overflowY===\"auto\"||style.overflowY===\"scroll\")&&div.scrollHeight>window.innerHeight*1.1)return div;}return document.documentElement;},[]);const findTargetElement=React.useCallback(frameName=>{if(!frameName)return null;let el=document.querySelector(`[data-framer-name=\"${frameName}\"]`);if(!el){try{el=document.querySelector(frameName);}catch{}}return el||null;},[]);const hideExcludedElements=React.useCallback(()=>{const hiddenElements=[];if(excludeSpecificAreas&&excludeFrameNames.trim()){excludeFrameNames.split(\",\").map(n=>n.trim()).filter(Boolean).forEach(frameName=>{const elements=document.querySelectorAll(`[data-framer-name=\"${frameName}\"]`);elements.forEach(el=>{if(el.style.display!==\"none\"){el.style.display=\"none\";el.setAttribute(\"data-pdf-hidden\",\"true\");hiddenElements.push(el);}});if(elements.length===0){try{document.querySelectorAll(frameName).forEach(el=>{if(el.style.display!==\"none\"){el.style.display=\"none\";el.setAttribute(\"data-pdf-hidden\",\"true\");hiddenElements.push(el);}});}catch{}}});}return hiddenElements;},[excludeSpecificAreas,excludeFrameNames]);const restoreHiddenElements=React.useCallback(hiddenElements=>{hiddenElements.forEach(el=>{if(el.getAttribute(\"data-pdf-hidden\")===\"true\"){el.style.display=\"\";el.removeAttribute(\"data-pdf-hidden\");}});},[]);const applyColorModeFilter=React.useCallback(canvas=>{if(colorMode===\"rgb\")return canvas;const ctx=canvas.getContext(\"2d\");if(!ctx)return canvas;const imageData=ctx.getImageData(0,0,canvas.width,canvas.height);const data=imageData.data;for(let i=0;i<data.length;i+=4){const gray=Math.round(.299*data[i]+.587*data[i+1]+.114*data[i+2]);if(colorMode===\"grayscale\"){data[i]=data[i+1]=data[i+2]=gray;}else if(colorMode===\"blackwhite\"){const bw=gray>128?255:0;data[i]=data[i+1]=data[i+2]=bw;}}ctx.putImageData(imageData,0,0);return canvas;},[colorMode]);const waitForCaptureAssets=React.useCallback(async root=>{const imageElements=Array.from(root.querySelectorAll(\"img\"));const decodePromises=imageElements.map(img=>new Promise(resolve=>{const finish=()=>resolve();if(img.complete&&img.naturalWidth>0){if(typeof img.decode===\"function\"){img.decode().then(finish).catch(finish);}else{finish();}return;}const onDone=()=>{img.removeEventListener(\"load\",onDone);img.removeEventListener(\"error\",onDone);if(typeof img.decode===\"function\"){img.decode().then(finish).catch(finish);}else{finish();}};img.addEventListener(\"load\",onDone,{once:true});img.addEventListener(\"error\",onDone,{once:true});if(img.loading===\"lazy\")img.loading=\"eager\";}));const backgroundUrls=new Set;root.querySelectorAll(\"*\").forEach(el=>{const bg=window.getComputedStyle(el).backgroundImage;if(!bg||bg===\"none\")return;const regex=/url\\((['\"]?)(.*?)\\1\\)/g;let match;while((match=regex.exec(bg))!==null){const url=match[2];if(url&&!url.startsWith(\"data:\"))backgroundUrls.add(url);}});const backgroundPreloadPromises=Array.from(backgroundUrls).map(url=>new Promise(resolve=>{const img=new Image;img.onload=()=>resolve();img.onerror=()=>resolve();img.src=url;}));await Promise.race([Promise.allSettled([...decodePromises,...backgroundPreloadPromises]),new Promise(resolve=>setTimeout(resolve,15e3))]);},[]);const handleCurrentPageDownload=React.useCallback(async filename=>{let hiddenElements=[];const originalScrollX=window.scrollX;const originalScrollY=window.scrollY;try{const[PDFGenerator,CanvasRenderer]=await Promise.all([initializePDFGenerator(),initializeCanvasRenderer()]);if(!PDFGenerator||!CanvasRenderer){alert(\"PDF generation unavailable. Opening print dialog instead.\");window.print();return;}hiddenElements=hideExcludedElements();const targetNode=captureSpecificArea&&targetFrameName?findTargetElement(targetFrameName)||document.documentElement:pageSize===\"full-page\"?document.body:getScrollableRoot();const fullWidth=Math.max(targetNode.scrollWidth||0,targetNode.offsetWidth||0,targetNode.clientWidth||0,document.documentElement.scrollWidth||0,document.body?.scrollWidth||0,window.innerWidth);const fullHeight=Math.max(targetNode.scrollHeight||0,targetNode.offsetHeight||0,targetNode.clientHeight||0,document.documentElement.scrollHeight||0,document.body?.scrollHeight||0,window.innerHeight);try{const docFonts=document.fonts;if(docFonts?.ready)await docFonts.ready;}catch{}if(originalScrollX!==0||originalScrollY!==0){window.scrollTo(0,0);await new Promise(resolve=>requestAnimationFrame(()=>requestAnimationFrame(()=>resolve())));}await waitForCaptureAssets(targetNode);const renderedCanvas=await CanvasRenderer(targetNode,{scale:captureScale,useCORS:true,allowTaint:false,backgroundColor:\"#ffffff\",logging:false,imageTimeout:15e3,// Keep viewport-based CSS calculations consistent across runs.\nwindowWidth:window.innerWidth,windowHeight:window.innerHeight,width:fullWidth,height:fullHeight,x:0,y:0,scrollX:0,scrollY:-window.scrollY,onclone:clonedDoc=>{const freezeMotionStyle=clonedDoc.createElement(\"style\");freezeMotionStyle.textContent=\"*,*::before,*::after{animation:none!important;transition:none!important;}\";clonedDoc.head.appendChild(freezeMotionStyle);// Preserve native CSS background rendering. For image tags,\n// enforce eager loading in the cloned tree.\nclonedDoc.querySelectorAll(\"img\").forEach(img=>{img.setAttribute(\"loading\",\"eager\");});// Existing SVG <use> fix\nclonedDoc.querySelectorAll(\"svg\").forEach(svg=>{try{svg.querySelectorAll(\"use\").forEach(useEl=>{const href=useEl.getAttribute(\"href\")||useEl.getAttribute(\"xlink:href\");if(href&&href.startsWith(\"#\")){const symbolId=href.substring(1);let symbolElement=document.getElementById(symbolId);if(!symbolElement){document.querySelectorAll(\"defs\").forEach(defs=>{const found=defs.querySelector(`#${symbolId}`);if(found)symbolElement=found;});}if(symbolElement){const group=clonedDoc.createElementNS(\"http://www.w3.org/2000/svg\",\"g\");const origSvg=document.querySelector(`svg[class=\"${svg.getAttribute(\"class\")}\"]`);let fillColor=\"#000000\";if(origSvg){const st=window.getComputedStyle(origSvg);fillColor=st.color||st.fill||\"#000000\";}group.setAttribute(\"fill\",fillColor);const symbolClone=symbolElement.cloneNode(true);if(symbolClone.nodeName.toLowerCase()===\"symbol\"){while(symbolClone.firstChild){const child=symbolClone.firstChild;if(child.nodeType===1&&child.tagName){if(child.getAttribute(\"fill\")===\"currentColor\"||!child.getAttribute(\"fill\"))child.setAttribute(\"fill\",fillColor);}group.appendChild(child);}}else{group.appendChild(symbolClone);}useEl.parentNode?.replaceChild(group,useEl);}}});if(!svg.hasAttribute(\"xmlns\"))svg.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\");}catch(err){console.error(\"SVG processing error:\",err);}});document.querySelectorAll(\"defs\").forEach(def=>{if(clonedDoc.body)clonedDoc.body.appendChild(def.cloneNode(true));});}});const processedCanvas=applyColorModeFilter(renderedCanvas);const imageFormat=\"image/jpeg\";const imageQuality=colorMode===\"blackwhite\"?.8:.9;const imgType=\"JPEG\";if(pageSize===\"full-page\"){let pageWidthMm=processedCanvas.width>processedCanvas.height?297:210;let pageHeightMm=processedCanvas.height*pageWidthMm/processedCanvas.width;// Keep within practical PDF page size limits.\nconst maxPageDimensionMm=5e3;const clampScale=Math.min(1,maxPageDimensionMm/Math.max(pageWidthMm,pageHeightMm));pageWidthMm*=clampScale;pageHeightMm*=clampScale;const pdfDocument=new PDFGenerator({orientation:pageWidthMm>pageHeightMm?\"landscape\":\"portrait\",unit:\"mm\",format:[pageWidthMm,pageHeightMm],compress:true});const imageData=processedCanvas.toDataURL(imageFormat,imageQuality);pdfDocument.addImage(imageData,imgType,0,0,pageWidthMm,pageHeightMm);pdfDocument.save(`${filename}.pdf`);return;}const pdfDocument=new PDFGenerator({orientation:processedCanvas.width>processedCanvas.height?\"landscape\":\"portrait\",unit:\"mm\",format:pageSize,compress:true});const pageWidthMm=pdfDocument.internal.pageSize.getWidth();const pageHeightMm=pdfDocument.internal.pageSize.getHeight();// Canvas pixels per mm on width axis\nconst pxPerMm=processedCanvas.width/pageWidthMm;// How many canvas pixels = one PDF page height\nconst pageHeightPx=Math.max(1,Math.floor(pageHeightMm*pxPerMm));const totalPages=Math.ceil(processedCanvas.height/pageHeightPx);for(let page=0;page<totalPages;page++){if(page>0)pdfDocument.addPage();const srcY=page*pageHeightPx;// Clamp last slice so we never exceed canvas height\nconst srcH=Math.min(pageHeightPx,processedCanvas.height-srcY);const sliceCanvas=document.createElement(\"canvas\");sliceCanvas.width=processedCanvas.width;sliceCanvas.height=srcH;const sliceCtx=sliceCanvas.getContext(\"2d\");if(sliceCtx){sliceCtx.drawImage(processedCanvas,0,srcY,processedCanvas.width,srcH,0,0,processedCanvas.width,srcH);}const sliceData=sliceCanvas.toDataURL(imageFormat,imageQuality);const sliceHeightMm=srcH/pxPerMm;pdfDocument.addImage(sliceData,imgType,0,0,pageWidthMm,sliceHeightMm);}pdfDocument.save(`${filename}.pdf`);}catch(err){alert(\"PDF generation failed. Opening print dialog as fallback.\");window.print();}finally{restoreHiddenElements(hiddenElements);if(window.scrollX!==originalScrollX||window.scrollY!==originalScrollY){window.scrollTo(originalScrollX,originalScrollY);}}},[initializePDFGenerator,initializeCanvasRenderer,hideExcludedElements,restoreHiddenElements,captureSpecificArea,targetFrameName,findTargetElement,getScrollableRoot,colorMode,applyColorModeFilter,captureScale,pageSize,waitForCaptureAssets]);const handleExternalDownload=React.useCallback(async filename=>{if(!externalUrl){alert(\"External PDF URL required\");return;}try{const response=await fetch(externalUrl,{mode:\"cors\",headers:{Accept:\"application/pdf\"}});if(!response.ok)throw new Error(`Request failed: ${response.status}`);const blob=await response.blob();const objectUrl=URL.createObjectURL(blob);const a=document.createElement(\"a\");a.href=objectUrl;a.download=`${filename}.pdf`;a.style.display=\"none\";document.body.appendChild(a);a.click();document.body.removeChild(a);setTimeout(()=>URL.revokeObjectURL(objectUrl),150);}catch{const a=document.createElement(\"a\");a.href=externalUrl;a.download=`${filename}.pdf`;a.target=\"_blank\";a.click();}},[externalUrl]);const handleUploadedFileDownload=React.useCallback(async filename=>{if(!uploadedDocument){alert(\"No document uploaded\");return;}try{const response=await fetch(uploadedDocument);const blob=await response.blob();const blobUrl=URL.createObjectURL(blob);const a=document.createElement(\"a\");a.href=blobUrl;a.download=`${filename}.pdf`;a.style.display=\"none\";document.body.appendChild(a);a.click();document.body.removeChild(a);setTimeout(()=>URL.revokeObjectURL(blobUrl),150);}catch{const a=document.createElement(\"a\");a.href=uploadedDocument;a.download=`${filename}.pdf`;a.target=\"_blank\";a.click();}},[uploadedDocument]);const handleCurrentPagePrint=React.useCallback(async filename=>{let hiddenElements=[];try{hiddenElements=hideExcludedElements();const targetNode=captureSpecificArea&&targetFrameName?findTargetElement(targetFrameName):null;if(captureSpecificArea&&targetFrameName&&targetNode){const printUtility=await initializePrintUtility();if(printUtility){printUtility({printable:targetNode,type:\"html\",documentTitle:filename,style:`@media print { \n                            body * { visibility: hidden; } \n                            [data-framer-name=\"${targetFrameName}\"], \n                            [data-framer-name=\"${targetFrameName}\"] * { visibility: visible; } \n                            [data-framer-name=\"${targetFrameName}\"] { position: absolute; left: 0; top: 0; } \n                        }`});}else{window.print();}}else{window.print();}}catch{window.print();}finally{setTimeout(()=>restoreHiddenElements(hiddenElements),1e3);}},[hideExcludedElements,restoreHiddenElements,captureSpecificArea,targetFrameName,findTargetElement,initializePrintUtility]);const handleExternalPrint=React.useCallback(async()=>{if(!externalUrl){alert(\"External PDF URL required\");return;}try{const printUtility=await initializePrintUtility();if(printUtility){printUtility({printable:externalUrl,type:\"pdf\",showModal:true,modalMessage:\"Preparing document for print...\"});}else{window.open(externalUrl,\"_blank\");}}catch{window.open(externalUrl,\"_blank\");}},[externalUrl,initializePrintUtility]);const handleUploadedFilePrint=React.useCallback(async()=>{if(!uploadedDocument){alert(\"No document uploaded\");return;}try{const printUtility=await initializePrintUtility();if(printUtility){printUtility(uploadedDocument,\"pdf\");}else{window.open(uploadedDocument,\"_blank\");}}catch{window.open(uploadedDocument,\"_blank\");}},[uploadedDocument,initializePrintUtility]);const executeMainOperation=React.useCallback(async()=>{if(!browserEnvironment||isDesignCanvas||operationInProgress||operationLockRef.current)return;operationLockRef.current=true;setOperationInProgress(true);const sanitizedFilename=sanitizeFilename(outputFilename);try{if(operation===\"download\"){if(contentSource===\"current-page\")await handleCurrentPageDownload(sanitizedFilename);else if(contentSource===\"external-url\")await handleExternalDownload(sanitizedFilename);else if(contentSource===\"uploaded-file\")await handleUploadedFileDownload(sanitizedFilename);}else if(operation===\"print\"){if(contentSource===\"current-page\")await handleCurrentPagePrint(sanitizedFilename);else if(contentSource===\"external-url\")await handleExternalPrint();else if(contentSource===\"uploaded-file\")await handleUploadedFilePrint();}}catch{}finally{operationLockRef.current=false;setOperationInProgress(false);}},[browserEnvironment,isDesignCanvas,operationInProgress,operation,contentSource,sanitizeFilename,outputFilename,handleCurrentPageDownload,handleExternalDownload,handleUploadedFileDownload,handleCurrentPagePrint,handleExternalPrint,handleUploadedFilePrint]);React.useEffect(()=>{if(!browserEnvironment||isDesignCanvas||!enableKeyboardShortcuts)return;const handleKeyPress=event=>{if(operationInProgress)return;const parts=keyboardShortcut.toLowerCase().trim().split(\"+\").map(p=>p.trim());if(!parts.length)return;const key=parts[parts.length-1];const modifiers=parts.slice(0,-1);const needsCtrl=modifiers.includes(\"ctrl\");const needsAlt=modifiers.includes(\"alt\");const needsShift=modifiers.includes(\"shift\");const needsMeta=modifiers.includes(\"meta\")||modifiers.includes(\"cmd\");const isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform)||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent);const actualNeedsCtrl=needsCtrl&&!isMac;const actualNeedsMeta=needsMeta||needsCtrl&&isMac;const hasRequiredModifiers=(!actualNeedsCtrl||event.ctrlKey)&&(!needsAlt||event.altKey)&&(!needsShift||event.shiftKey)&&(!actualNeedsMeta||event.metaKey);const keyLower=event.key.toLowerCase();const codeLower=event.code.toLowerCase();const keyMatch=keyLower===key||codeLower===`key${key}`||codeLower===`digit${key}`||codeLower===key;if(hasRequiredModifiers&&keyMatch){event.preventDefault();event.stopPropagation();executeMainOperation();}};document.addEventListener(\"keydown\",handleKeyPress,true);return()=>document.removeEventListener(\"keydown\",handleKeyPress,true);},[browserEnvironment,isDesignCanvas,enableKeyboardShortcuts,keyboardShortcut,operationInProgress,executeMainOperation]);React.useEffect(()=>{if(!browserEnvironment||isDesignCanvas)return;const currentElement=triggerRef.current;if(!currentElement)return;const parentElement=currentElement.parentElement?.parentElement;if(!parentElement)return;const handleParentClick=()=>{if(operationInProgress)return;if(clickDelay>0)setTimeout(()=>executeMainOperation(),clickDelay*1e3);else executeMainOperation();};parentElement.addEventListener(\"click\",handleParentClick);return()=>parentElement.removeEventListener(\"click\",handleParentClick);},[browserEnvironment,isDesignCanvas,operationInProgress,clickDelay,executeMainOperation]);return /*#__PURE__*/_jsx(\"div\",{ref:triggerRef,className:\"pdf-trigger-component\",style:{display:\"none\",position:\"absolute\",pointerEvents:\"none\"}});}PDFDownloaderTrigger.displayName=\"PDF Downloader Trigger\";addPropertyControls(PDFDownloaderTrigger,{operation:{title:\"PDF Operation\",description:\"Choose the action to perform when the trigger is activated\",type:ControlType.Enum,options:[\"download\",\"print\"],optionTitles:[\"Download PDF\",\"Print PDF\"],defaultValue:\"download\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},contentSource:{title:\"Content Source\",description:\"Select the content source for PDF operations\",type:ControlType.Enum,options:[\"current-page\",\"external-url\",\"uploaded-file\"],optionTitles:[\"Current Page\",\"External PDF URL\",\"Uploaded PDF File\"],defaultValue:\"current-page\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},externalUrl:{title:\"PDF Document URL\",description:\"Enter the URL of the PDF document to process\",type:ControlType.String,defaultValue:\"\",placeholder:\"https://example.com/document.pdf\",hidden:props=>props.contentSource!==\"external-url\"},uploadedDocument:{title:\"Upload PDF File\",description:\"Upload a PDF file to process when the trigger is activated\",type:ControlType.File,allowedFileTypes:[\"pdf\"],hidden:props=>props.contentSource!==\"uploaded-file\"},captureSpecificArea:{title:\"Capture Specific Area\",description:\"Enable to capture only a specific frame instead of the entire page\",type:ControlType.Boolean,defaultValue:false,hidden:props=>props.contentSource!==\"current-page\"||props.operation!==\"download\"},targetFrameName:{title:\"Target Frame Name\",description:\"Enter the name of the Framer frame you want to capture\",type:ControlType.String,defaultValue:\"\",placeholder:\"MainContent\",hidden:props=>props.contentSource!==\"current-page\"||props.operation!==\"download\"||!props.captureSpecificArea},excludeSpecificAreas:{title:\"Exclude Specific Areas\",description:\"Enable to hide specific frames during PDF capture\",type:ControlType.Boolean,defaultValue:false,hidden:props=>props.contentSource!==\"current-page\"},excludeFrameNames:{title:\"Exclude Frame Names\",description:\"Enter frame names to hide during capture (separate multiple names with commas)\",type:ControlType.String,defaultValue:\"\",placeholder:\"Navbar, Footer, Sidebar\",hidden:props=>props.contentSource!==\"current-page\"||!props.excludeSpecificAreas},colorMode:{title:\"Color Mode\",description:\"Choose the color mode for PDF generation\",type:ControlType.Enum,options:[\"rgb\",\"grayscale\",\"blackwhite\"],optionTitles:[\"Full Color (RGB)\",\"Grayscale\",\"Black & White\"],defaultValue:\"rgb\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\",hidden:props=>props.contentSource!==\"current-page\"||props.operation!==\"download\"},captureScale:{title:\"Capture Scale\",description:\"Controls render resolution. Lower = smaller file size, Higher = sharper quality.\\n\\n• 1.0 = Screen resolution (smallest file)\\n• 1.5 = Balanced (recommended)\\n• 2.0 = High quality\\n• 3.0 = Very sharp (large file)\",type:ControlType.Number,min:.5,max:3,step:.5,defaultValue:1.5,displayStepper:true,hidden:props=>props.contentSource!==\"current-page\"||props.operation!==\"download\"},pageSize:{title:\"Page Size\",description:\"Choose the output PDF page size. Full Page exports everything as one long PDF page (no splits).\",type:ControlType.Enum,options:[\"a4\",\"a3\",\"a5\",\"letter\",\"legal\",\"tabloid\",\"full-page\"],optionTitles:[\"A4 (210x297mm)\",\"A3 (297x420mm)\",\"A5 (148x210mm)\",\"Letter (216x279mm)\",\"Legal (216x356mm)\",\"Tabloid (279x432mm)\",\"Full Page (No Split)\"],defaultValue:\"a4\",hidden:props=>props.contentSource!==\"current-page\"||props.operation!==\"download\"},outputFilename:{title:\"Output Filename\",description:\"Set the name for the generated or downloaded PDF file (without .pdf extension)\",type:ControlType.String,defaultValue:\"document\",placeholder:\"my-document\"},enableKeyboardShortcuts:{title:\"Enable Keyboard Shortcuts\",description:\"Allow triggering PDF operations via keyboard shortcuts\",type:ControlType.Boolean,defaultValue:false},keyboardShortcut:{title:\"Keyboard Shortcut\",description:\"Set your preferred keyboard shortcut. The component automatically adapts to your platform:\\n\\n *Windows/Linux:* 'ctrl+p' = Ctrl+P\\n *macOS:* 'ctrl+p' = Cmd+P (auto-converted)\\n\\nNo need to worry about platform differences!\",type:ControlType.String,defaultValue:\"ctrl+p\",placeholder:\"ctrl+p, ctrl+s, alt+d\",hidden:props=>!props.enableKeyboardShortcuts},clickDelay:{title:\"Click Delay (s)\",description:\"Add a delay before PDF operation executes (useful for animations). Example: Create a variant with a 1.5-second loader, then set click delay to 1.5s so the PDF downloads after the loader completes.\\n\\nMade with ❤️ by [Soyeb](https://framer.link/project)\\n*Version:* 2.2.0\",type:ControlType.Number,min:0,max:10,step:.1,unit:\"s\",defaultValue:0}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PDFDownloaderTrigger\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PDF_Downloader.map"],"mappings":"uNAKG,SAAwB,EAAqB,EAAM,CAAC,GAAK,CAAC,YAAU,WAAW,gBAAc,eAAe,cAAY,GAAG,mBAAiB,kBAAgB,GAAG,uBAAqB,GAAM,oBAAkB,GAAG,WAAS,KAAK,iBAAe,WAAW,YAAU,MAAM,eAAa,IAAI,aAAW,EAAE,0BAAwB,GAAM,mBAAiB,UAAU,EAAY,EAAoB,IAAY,QAAQ,GAAM,EAAM,qBAAqB,GAAY,EAAWA,EAAa,IAAI,EAAQ,EAAiBA,EAAa,EAAK,EAAO,CAAC,EAAoB,GAAwBC,EAAe,EAAK,EAAO,CAAC,EAAmB,GAAuBA,EAAe,EAAK,EAAO,CAAC,EAAgB,GAAoBA,EAAe,EAAK,EAAyD,EAA7B,EAAa,QAAiD,IAAI,EAAa,OAAO,MAAoB,CAAC,EAA6B,IAAS,QAAa,CAAC,CAAC,EAAO,QAAQ,CAAE,EAAE,CAAC,CAAC,EAAE,IAAM,EAAiBC,EAAkB,GAAc,CAAC,GAAU,EAAS,KAAK,IAAI,GAAS,WAAkB,EAAS,KAAK,CAAC,CAAC,QAAQ,yBAAyB,EAAE,CAAC,CAAC,QAAQ,OAAO,GAAG,CAAC,CAAC,UAAU,EAAE,GAAG,EAAI,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