{"version":3,"file":"PdfEmbed.Cc5H8OKS.mjs","names":[],"sources":["https:/framerusercontent.com/modules/fjcvWOmmHKn1C20BVXUH/sxlz7fSEm6OYApCSSd5i/PdfEmbed.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function PdfEmbed(props){const{pdfUrl,title,style}=props;const url=(pdfUrl||\"\").trim();const rootStyle={...style,width:\"100%\",height:\"90vh\",position:\"relative\",overflow:\"hidden\",background:\"#ffffff\"};if(!url){return /*#__PURE__*/_jsx(\"div\",{style:rootStyle,children:/*#__PURE__*/_jsx(\"p\",{style:{margin:0,padding:16},children:\"Add a PDF URL to display the document.\"})});}const viewerUrl=\"https://docs.google.com/viewer?embedded=true&url=\"+encodeURIComponent(url);return /*#__PURE__*/_jsx(\"div\",{style:rootStyle,children:/*#__PURE__*/_jsx(\"iframe\",{src:viewerUrl,title:title||\"PDF document\",loading:\"lazy\",style:{width:\"100%\",height:\"100%\",border:0,display:\"block\"}})});}addPropertyControls(PdfEmbed,{pdfUrl:{type:ControlType.String,title:\"PDF URL\",defaultValue:\"\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"PDF document\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PdfEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PdfEmbed.map"],"mappings":"4JAGG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,SAAO,QAAM,SAAO,EAAY,GAAK,GAAQ,GAAA,CAAI,KAAK,EAAQ,EAAU,CAAC,GAAG,EAAM,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,SAAS,SAAS,WAAW,SAAS,EAA0Q,OAApQ,EAAwR,EAAK,MAAM,CAAC,MAAM,EAAU,SAAsB,EAAK,SAAS,CAAC,IAAjK,oDAAoD,mBAAmB,CAAG,EAAqG,MAAM,GAAO,eAAe,QAAQ,OAAO,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,OAAO,EAAE,QAAQ,OAAO,CAAC,CAAC,CAAC,CAAC,EAAvb,EAAK,MAAM,CAAC,MAAM,EAAU,SAAsB,EAAK,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,wCAAwC,CAAC,CAAC,CAAC,CAA6S,iBAHtoB,IAAoD,EAGmlB,EAAoB,EAAS,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,aAAa,EAAE,EAAE,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,cAAc,CAAC,CAAC"}