{"version":3,"file":"shared-lib.AstHf4_f.mjs","names":["metadata","siteMetadata","metadataVersion","__FramerMetadata__","metadata","siteMetadata"],"sources":["https:/framerusercontent.com/modules/M6J2ito1rrFnAqOk46eE/KOjvmrA13Lqm1grvT3sx/HandwritingResetOverride.js","https:/framerusercontent.com/modules/hGWQ6DoocusTRlKjXbzF/itczqvbEqpED3jEVlLGI/siteMetadata.js","https:/framerusercontent.com/modules/o8hWkDBvaeDgMncE8hAU/xThReEZMcXukAGbbZCS6/augiA20Il.js","https:/framerusercontent.com/modules/xbbQbPMslY3I3Jz0kIhL/8ooUK6PvFRhQJnHiTfwb/JWLLcdYv6.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";export function withResetHandwriting(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const handleClick=(...args)=>{if(typeof window!==\"undefined\"){window.dispatchEvent(new CustomEvent(\"framer-handwriting-reset-all\"));}if(typeof props.onClick===\"function\"){props.onClick(...args);}};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:handleClick});});}export function withExportCardPNG(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{if(typeof document===\"undefined\")return;const slot=document.getElementById(\"stamp-slot\");if(!slot)return;let pulsing=false;const pulse=()=>{if(pulsing)return;pulsing=true;slot.style.transition=\"filter 0.45s ease\";slot.style.filter=\"blur(7px)\";requestAnimationFrame(()=>{requestAnimationFrame(()=>{slot.style.filter=\"blur(0px)\";window.setTimeout(()=>{pulsing=false;},450);});});};const observer=new MutationObserver(mutations=>{if(mutations.some(m=>m.target!==slot))pulse();});observer.observe(slot,{subtree:true,attributes:true,attributeFilter:[\"style\"],childList:true});return()=>observer.disconnect();},[]);const handleClick=async(...args)=>{if(typeof window!==\"undefined\"&&typeof document!==\"undefined\"){let hiddenNodes=[];try{const target=document.getElementById(\"postcard-card\");if(target){hiddenNodes=Array.from(target.querySelectorAll(\"[data-export-hide='true'], .handwriting-caret\")).map(element=>{const original={element,display:element.style.display,visibility:element.style.visibility};element.style.visibility=\"hidden\";return original;});// @ts-expect-error The html-to-image package is expected to be available in the Framer project environment.\nconst{toPng}=await import(\"html-to-image\");const dataUrl=await toPng(target,{pixelRatio:2,backgroundColor:\"#ffffff\",cacheBust:true});const link=document.createElement(\"a\");link.href=dataUrl;link.download=\"postcard.png\";document.body.appendChild(link);link.click();document.body.removeChild(link);}}catch(_error){// Fail gracefully if export is blocked or rendering fails.\n}finally{for(const hiddenNode of hiddenNodes){hiddenNode.element.style.display=hiddenNode.display;hiddenNode.element.style.visibility=hiddenNode.visibility;}}}if(typeof props.onClick===\"function\"){props.onClick(...args);}};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:handleClick});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withExportCardPNG\":{\"type\":\"reactHoc\",\"name\":\"withExportCardPNG\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withResetHandwriting\":{\"type\":\"reactHoc\",\"name\":\"withResetHandwriting\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HandwritingResetOverride.map","// Generated by Framer (3ad0d99)\nexport default function metadata(params,activeLocale){return{description:\"Made with Framer\",robots:\"max-image-preview:large\",title:\"My Framer Site\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (e0b3c1c)\nimport siteMetadata from\"#framer/local/siteMetadata/siteMetadata/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"72rtr7\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"zq64md\",mediaQuery:\"(min-width: 810px) and (max-width: 1199.98px)\"},{hash:\"41a9e5\",mediaQuery:\"(max-width: 809.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-Zbxu8\",title:siteMetadata(params,activeLocale).title||\"Home\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (e0b3c1c)\nimport siteMetadata from\"#framer/local/siteMetadata/siteMetadata/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"7pskq0\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"1sp32rm\",mediaQuery:\"(min-width: 810px) and (max-width: 1199.98px)\"},{hash:\"zw9ec1\",mediaQuery:\"(max-width: 809.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{AGJpou1oC:\"postcard-card\",aJzvwVw34:\"stamp-slot\",bERGL3oP9:\"bg-panel-select\",WrqQXp_uc:\"stamp-panel\"},robots:\"max-image-preview:large\",serializationId:\"framer-giOad\",title:siteMetadata(params,activeLocale).title||\"Customize\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"uIAAmF,SAAgB,EAAqB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,IAAM,GAAa,GAAG,IAAO,CAAW,IAAS,QAAa,EAAO,cAAc,IAAI,YAAY,+BAA+B,CAAC,CAAK,OAAO,EAAM,SAAU,YAAY,EAAM,QAAQ,GAAG,EAAK,EAAI,OAAoB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,QAAQ,EAAY,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