{
  "version": 3,
  "sources": ["ssg:https://framer.com/m/framer/utils.js@^0.9.0", "ssg:https://framerusercontent.com/modules/q8NuUoQl8jcddggUcPYO/t2zGZ4u9nnFgG1zcqi8N/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", "import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useState,useEffect}from\"react\";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\"});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()});}});});}// ----------------------\n// NEW: OnlyOnce Override\n// ----------------------\nexport function OnlyOnce(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[visible,setVisible]=useState(false);const[shouldAnimate,setShouldAnimate]=useState(false);const SESSION_STORAGE_KEY=\"OnlyOnceSectionAppeared\";useEffect(()=>{if(typeof window===\"undefined\")return;const hasAppeared=sessionStorage.getItem(SESSION_STORAGE_KEY);if(hasAppeared===\"true\"){setVisible(true);setShouldAnimate(false);}else{setShouldAnimate(true);const timeout=setTimeout(()=>{setVisible(true);sessionStorage.setItem(SESSION_STORAGE_KEY,\"true\");},1e3)// 1s delay\n;return()=>clearTimeout(timeout);}},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style,opacity:visible?1:0,transition:shouldAnimate?\"opacity 0.8s cubic-bezier(.66,.01,.17,.99)\":\"none\"}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"OnlyOnce\":{\"type\":\"reactHoc\",\"name\":\"OnlyOnce\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],
  "mappings": "2IAAO,IAAMA,EAAgB,CACzB,QAAS,OACT,eAAgB,SAChB,WAAY,QAChB,EASO,IAAMC,EAAyB,CAClC,GAAGC,EACH,SAAU,QACd,ECfA,IAAMC,EAASC,EAAY,CAAC,WAAW,SAAS,CAAC,EAG1C,SAASC,EAASC,EAAU,CAAC,OAAoBC,EAAW,CAACC,EAAMC,IAAM,CAAC,GAAK,CAACC,EAAQC,CAAU,EAAEC,EAAS,EAAK,EAAO,CAACC,EAAcC,CAAgB,EAAEF,EAAS,EAAK,EAAQG,EAAoB,0BAA0B,OAAAC,EAAU,IAAI,CAAC,GAAG,OAAOC,EAAS,IAAY,OAAqE,GAA5C,eAAe,QAAQF,CAAmB,IAAmB,OAAQJ,EAAW,EAAI,EAAEG,EAAiB,EAAK,MAAO,CAACA,EAAiB,EAAI,EAAE,IAAMI,EAAQ,WAAW,IAAI,CAACP,EAAW,EAAI,EAAE,eAAe,QAAQI,EAAoB,MAAM,CAAE,EAAE,GAAG,EAC7hB,MAAM,IAAI,aAAaG,CAAO,CAAE,CAAC,EAAE,CAAC,CAAC,EAAsBC,EAAKb,EAAU,CAAC,IAAIG,EAAI,GAAGD,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,QAAQE,EAAQ,EAAE,EAAE,WAAWG,EAAc,6CAA6C,MAAM,CAAC,CAAC,CAAE,CAAC,CAAE",
  "names": ["centerContent", "defaultContainerStyles", "centerContent", "useStore", "createStore", "OnlyOnce", "Component", "Y", "props", "ref", "visible", "setVisible", "ye", "shouldAnimate", "setShouldAnimate", "SESSION_STORAGE_KEY", "ue", "window", "timeout", "p"]
}
