{"version":3,"file":"PdfViewer.ssIVAxWD.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ffb4mYoOvIZggwZZNVrr/3VWA9NJNqbCfK4CfwIX6/PdfViewer.js"],"sourcesContent":["// PDF Embed component with configurable width percentage and CMS file source\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function PdfViewer(props){const{pdfFile=\"https://framerusercontent.com/assets/example.pdf\",widthPercentage=100,height=600}=props;// Use Mozilla's PDF.js viewer to prevent auto-download\nconst viewerUrl=`https://mozilla.github.io/pdf.js/web/viewer.html?file=${encodeURIComponent(pdfFile)}`;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"flex-start\",position:\"relative\",backgroundColor:\"transparent\"},children:/*#__PURE__*/_jsx(\"iframe\",{src:viewerUrl,style:{width:`${widthPercentage}%`,height:\"100%\",border:\"none\",backgroundColor:\"transparent\"},title:\"PDF Document\"})});}addPropertyControls(PdfViewer,{pdfFile:{type:ControlType.File,title:\"PDF File\",allowedFileTypes:[\"pdf\"]},widthPercentage:{type:ControlType.Number,title:\"Width\",defaultValue:100,min:10,max:100,step:5,unit:\"%\"},height:{type:ControlType.Number,title:\"Height\",defaultValue:600,min:200,max:2e3,step:50,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PdfViewer\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PdfViewer.map"],"mappings":"iOAIG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,UAAQ,mDAAmD,kBAAgB,IAAI,SAAO,KAAK,EACvI,EAAU,yDAAyD,mBAAmB,EAAQ,GAAG,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,eAAe,SAAS,WAAW,aAAa,SAAS,WAAW,gBAAgB,cAAc,CAAC,SAAsB,EAAK,SAAS,CAAC,IAAI,EAAU,MAAM,CAAC,MAAM,GAAG,EAAgB,GAAG,OAAO,OAAO,OAAO,OAAO,gBAAgB,cAAc,CAAC,MAAM,eAAe,CAAC,CAAC,CAAC,kBAJzZ,IAAoD,CAIuW,EAAoB,EAAU,CAAC,QAAQ,CAAC,KAAK,EAAY,KAAK,MAAM,WAAW,iBAAiB,CAAC,MAAM,CAAC,CAAC,gBAAgB,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,IAAI,IAAI,GAAG,IAAI,IAAI,KAAK,EAAE,KAAK,IAAI,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,GAAG,KAAK,KAAK,CAAC,CAAC"}