{"version":3,"file":"PrintButton.B72eF-J5.mjs","names":["_jsx","__esmMin","window","init_ssg_sandbox_shims","init_jsx_runtime","c","withPrint","Component","props","init_PrintButton"],"sources":["https:/framerusercontent.com/modules/xOdR1FxJbsdjYDuWCgMg/pl3ue6UgnIo6T353mEIs/PrintButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// Put this override on any layer that should open the browser's print dialog (e.g. the \"Print\" button on a lab report).\nexport function withPrint(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,cursor:\"pointer\"},onClick:e=>{if(props.onClick)props.onClick(e);if(typeof window!==\"undefined\")window.print();}});}\nexport const __FramerMetadata__ = {\"exports\":{\"withPrint\":{\"type\":\"reactHoc\",\"name\":\"withPrint\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PrintButton.map"],"mappings":"A,kHACA,SAAgBM,EAAUC,EAAU,CAAC,MAAOC,IAAoBR,gBAAKO,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,OAAO,SAAS,EAAE,QAAQ,GAAG,CAAIA,EAAM,SAAQA,EAAM,QAAQ,CAAC,EAAYN,IAAS,QAAYA,EAAO,MAAM,CAAE,CAAC,CAAC,CAAE,C"}