{"version":3,"file":"Examples.C_kvuRbU.mjs","names":["useRef","useCallback","__esmMin","init_npm_react_18_3_1","ne","init_ssg_sandbox_shims","window","c","J","de","init_framer_Bf4_tcb2","useIsStaticRenderer","createStore","init_store_js__1_0","centerContent","init_Utils","init_utils_js__0_9","withOpenCaseStudyPdfOnSubmitClick","isStaticRenderer","lastOpenAtRef","openPdfOncePerGesture","props","now","opened","CASE_STUDY_PDF_URL","Component","event","init_Examples","init_jsx_runtime"],"sources":["https:/framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js","https:/framer.com/m/framer/utils.js@^0.9.0","https:/framerusercontent.com/modules/IVfMDK45MLH09hCDPDQO/QbV3n0qry4AtUBZZTPNc/Examples.js"],"sourcesContent":["export const centerContent = {\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nexport const autoSizingText = {\n    width: \"max-content\",\n    wordBreak: \"break-word\",\n    overflowWrap: \"break-word\",\n    overflow: \"hidden\",\n    whiteSpace: \"pre-wrap\",\n    flexShrink: 0\n};\nexport const defaultContainerStyles = {\n    ...centerContent,\n    overflow: \"hidden\"\n};\nexport const containerStyles = defaultContainerStyles;\nexport const randomColor = ()=>\"#\" + Math.floor(Math.random() * 16777215).toString(16)\n;\n\nexport const __FramerMetadata__ = {\"exports\":{\"centerContent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"autoSizingText\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultContainerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomColor\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./Utils.map","/*\n * Utils (framer/utils@0.9.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useCallback,useRef}from\"react\";import{useIsStaticRenderer}from\"framer\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});const CASE_STUDY_PDF_URL=\"https://framerusercontent.com/assets/VGR3X8QZghxY620AePJM8xtBe4.pdf\";export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{rotate:90},transition:{duration:2}});});}export function withHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.05}});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});});}export function withOpenCaseStudyPdfOnSubmitClick(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const isStaticRenderer=useIsStaticRenderer();const lastOpenAtRef=useRef(0);const openPdfOncePerGesture=useCallback(event=>{if(isStaticRenderer)return;if(props.disabled)return;if(typeof window===\"undefined\")return;const now=Date.now();if(now-lastOpenAtRef.current<500)return;lastOpenAtRef.current=now;const opened=window.open(\"\",\"_blank\");if(!opened)return;try{opened.opener=null;}catch(_error){// ignore\n}opened.location.href=CASE_STUDY_PDF_URL;},[isStaticRenderer,props.disabled]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onTap:event=>{openPdfOncePerGesture(event);props.onTap?.(event);},onClick:event=>{openPdfOncePerGesture(event);props.onClick?.(event);}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withOpenCaseStudyPdfOnSubmitClick\":{\"type\":\"reactHoc\",\"name\":\"withOpenCaseStudyPdfOnSubmitClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"A,uRAAa,EAAgB,CACzB,QAAS,OACT,eAAgB,SAChB,WAAY,QAChB,EAWI,CADA,GAAGc,CACO,C,+CEdivB,SAAgBG,EAAkC,EAAU,CAAC,MAAoB,iBAAY,EAAM,IAAM,CAAC,IAAMC,EAAiBP,EAAoB,EAAQQ,EAAcnB,EAAO,CAAC,EAAQoB,EAAsBnB,EAAY,GAAO,CAAqD,GAAjDiB,GAA2BG,EAAM,UAA0Bf,IAAS,OAAY,OAAO,IAAMgB,EAAI,KAAK,IAAI,EAAE,GAAGA,EAAIH,EAAc,QAAQ,IAAI,OAAO,EAAc,QAAQG,EAAI,IAAMC,EAAOjB,EAAO,KAAK,GAAG,QAAQ,EAAE,GAAIiB,EAAc,IAAG,CAAC,EAAO,OAAO,IAAK,MAAc,CAClvC,CAAC,EAAO,SAAS,KAAKC,CAAtB,CAAyC,EAAE,CAACN,EAAiBG,EAAM,QAAQ,CAAC,EAAE,MAAoB,gBAAKI,EAAU,CAAK,MAAI,GAAGJ,EAAM,MAAM,GAAO,CAACD,EAAsBM,CAAK,EAAEL,EAAM,QAAQK,CAAK,CAAE,EAAE,QAAQ,GAAO,CAACN,EAAsBM,CAAK,EAAEL,EAAM,UAAUK,CAAK,CAAE,CAAC,CAAC,CAAE,CAAC,CAAE,C,4DADjQd,EAAY,CAAC,WAAW,SAAS,CAAC,EAAQ,EAAmB,qE"}