{"version":3,"file":"shared-lib.CEKy6psu.mjs","names":["useStore","useState"],"sources":["https:/framerusercontent.com/modules/jW3wO4CdZy37FkyOADnl/jQqkb6swkgVUh8klfBEr/AcaZuKYVD.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framer.com/m/framer/utils.js@^0.9.0","https:/framerusercontent.com/modules/5Fhk1Jrz2J2ZjenW53Ma/H0qhqdj1EYfy3qIjodxs/Examples.js"],"sourcesContent":["// Generated by Framer (ad88b1a)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"FS;Red Hat Display-semibold\",\"FS;Red Hat Display-black\",\"FS;Red Hat Display-black italic\",\"FS;Red Hat Display-semibold italic\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"Red Hat Display\",source:\"fontshare\",style:\"normal\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/WDQIEWCFLN6EMYQOS5KYW4367I2WBYD3/DUIROOVG2NP7SN523URKVY2XPJTPXDD3/OVH4LNHLST7KQG4JHAKO4QQRUL7CTSCU.woff2\",weight:\"600\"},{family:\"Red Hat Display\",source:\"fontshare\",style:\"normal\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/ZSCEK7S4VBCWIURNDFQ4JMFGVSANTY3E/NU7JB62SOLQOUPO3QU2C52CLGXBBG2WE/EHWSSXP2VWBWZLNGMJRPPQDBKQGP7BTU.woff2\",weight:\"900\"},{family:\"Red Hat Display\",source:\"fontshare\",style:\"italic\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/4VUBSLP5CMLQC42AM3WNHRQQAFQWGDBC/5ZMRIDJPO46EN3G4KCFXIMS6MSBFFBJB/BVPEXTD2C3ADGOOREOJ4HI32Q4GGUVQX.woff2\",weight:\"900\"},{family:\"Red Hat Display\",source:\"fontshare\",style:\"italic\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/GGFKU6W27ZFOSCSFV6H5BBUN2YMR4CPQ/3FROSAREH4S722PHS6EQ5NRUUNVPPGBQ/T4HYXMTBX2HW7JHOSUN3DMGG7IDYZCI6.woff2\",weight:\"600\"}]}];export const css=['.framer-s3vju .framer-styles-preset-18wp5d4:not(.rich-text-wrapper), .framer-s3vju .framer-styles-preset-18wp5d4.rich-text-wrapper p { --framer-font-family: \"Red Hat Display\", \"Red Hat Display Placeholder\", sans-serif; --framer-font-family-bold: \"Red Hat Display\", sans-serif; --framer-font-family-bold-italic: \"Red Hat Display\", sans-serif; --framer-font-family-italic: \"Red Hat Display\", \"Red Hat Display Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 17px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 600; --framer-font-weight-bold: 900; --framer-font-weight-bold-italic: 900; --framer-font-weight-italic: 600; --framer-letter-spacing: 0em; --framer-line-height: 150%; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-38951aa0-97fb-4129-9929-72d109a3ad0d, #0c0c0c); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }','@media (max-width: 1199px) and (min-width: 810px) { .framer-s3vju .framer-styles-preset-18wp5d4:not(.rich-text-wrapper), .framer-s3vju .framer-styles-preset-18wp5d4.rich-text-wrapper p { --framer-font-family: \"Red Hat Display\", \"Red Hat Display Placeholder\", sans-serif; --framer-font-family-bold: \"Red Hat Display\", sans-serif; --framer-font-family-bold-italic: \"Red Hat Display\", sans-serif; --framer-font-family-italic: \"Red Hat Display\", \"Red Hat Display Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 17px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 600; --framer-font-weight-bold: 900; --framer-font-weight-bold-italic: 900; --framer-font-weight-italic: 600; --framer-letter-spacing: 0em; --framer-line-height: 150%; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-38951aa0-97fb-4129-9929-72d109a3ad0d, #0c0c0c); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }','@media (max-width: 809px) and (min-width: 0px) { .framer-s3vju .framer-styles-preset-18wp5d4:not(.rich-text-wrapper), .framer-s3vju .framer-styles-preset-18wp5d4.rich-text-wrapper p { --framer-font-family: \"Red Hat Display\", \"Red Hat Display Placeholder\", sans-serif; --framer-font-family-bold: \"Red Hat Display\", sans-serif; --framer-font-family-bold-italic: \"Red Hat Display\", sans-serif; --framer-font-family-italic: \"Red Hat Display\", \"Red Hat Display Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 17px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 600; --framer-font-weight-bold: 900; --framer-font-weight-bold-italic: 900; --framer-font-weight-italic: 600; --framer-letter-spacing: 0em; --framer-line-height: 150%; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-38951aa0-97fb-4129-9929-72d109a3ad0d, #0c0c0c); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }'];export const className=\"framer-s3vju\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","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}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()});}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"2SAC8B,GAAU,UAAU,CAAC,8BAA8B,2BAA2B,kCAAkC,qCAAqC,CAAC,CAAc,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,OAAO,kBAAkB,OAAO,YAAY,MAAM,SAAS,IAAI,yKAAyK,OAAO,MAAM,CAAC,CAAC,OAAO,kBAAkB,O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