{
  "version": 3,
  "sources": ["ssg:https://framer.com/m/framer/utils.js@^0.9.0", "ssg:https://framerusercontent.com/modules/fnvHiSEbiutFwnXbsDDl/iSY45AZ1dOQl5R0wp9PA/_overrides.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 React 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\";const useStore=createStore({partyMode:false,intervals:[]});let interval;export function withRandomColor(Component){return props=>{const[store,setStore]=useStore();const[color,setColor]=React.useState(randomColor());React.useEffect(()=>{if(store.partyMode){interval=setInterval(()=>{setColor(randomColor());},Math.floor(Math.random()*(650-450)+450));let newArr=store.intervals;newArr.push(interval);setStore({intervals:newArr});}else{var _store_intervals;(_store_intervals=store.intervals)===null||_store_intervals===void 0?void 0:_store_intervals.forEach((e,i)=>{clearInterval(e);});}},[store.partyMode]);return /*#__PURE__*/_jsx(Component,{...props,animate:{background:color},draggable:\"false\",onMouseDown:()=>{setColor(randomColor());},onDragStart:()=>{return false;}});};}export function togglePartyMode(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{setStore({partyMode:!store.partyMode});}});};}export function bodyBackgroundColor(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,animate:{backgroundColor:store.partyMode?\"#0F0F0F\":\"#FCFCFC\"},transition:{default:{ease:\"ease-in-out\",duration:0,delay:.1}}});};}export function withCopy(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{navigator.clipboard.writeText(\"https://framer.com/m/Physics-qP7o.js\");}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCopy\":{\"type\":\"reactHoc\",\"name\":\"withCopy\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"togglePartyMode\":{\"type\":\"reactHoc\",\"name\":\"togglePartyMode\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"bodyBackgroundColor\":{\"type\":\"reactHoc\",\"name\":\"bodyBackgroundColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./_overrides.map"],
  "mappings": "kFAAO,IAAMA,EAAgB,CACzB,QAAS,OACT,eAAgB,SAChB,WAAY,QAChB,EASO,IAAMC,EAAyB,CAClC,GAAGC,EACH,SAAU,QACd,EChB8M,IAAMC,EAASC,EAAY,CAAC,UAAU,GAAM,UAAU,CAAC,CAAC,CAAC,EAAqtB,SAASC,EAAgBC,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACC,EAAMC,CAAQ,EAAEC,EAAS,EAAE,OAAoBC,EAAKL,EAAU,CAAC,GAAGC,EAAM,QAAQ,IAAI,CAACE,EAAS,CAAC,UAAU,CAACD,EAAM,SAAS,CAAC,CAAE,CAAC,CAAC,CAAE,CAAE",
  "names": ["centerContent", "defaultContainerStyles", "centerContent", "useStore", "createStore", "togglePartyMode", "Component", "props", "store", "setStore", "useStore", "p"]
}
