{"version":3,"file":"store.js@_1.0.D_By8zEE.mjs","names":["Material"],"sources":["https:/framerusercontent.com/modules/j4oRb0rViue5MH1LS7jY/or2TCazkE7L6G4EGFdlK/QU7NHYtcy.js","https:/framer.com/m/framer/store.js@^1.0.0"],"sourcesContent":["// Generated by Framer (84a2f33)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,RichText,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import{Icon as Material}from\"https://framerusercontent.com/modules/6Ldpz1V0DkD45gXvi67I/PCgBX5d6MdQT7E7nhdXn/Material.js\";const MaterialFonts=getFonts(Material);const enabledGestures={jSLjvTyem:{hover:true}};const serializationHash=\"framer-1rvq2\";const variantClassNames={jSLjvTyem:\"framer-v-1gazuu\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={damping:60,delay:0,mass:1,stiffness:500,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const getProps=({height,id,title,width,...props})=>{return{...props,OCgPtveoG:title??props.OCgPtveoG??\"Auto Generated TOC\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,OCgPtveoG,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"jSLjvTyem\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1gazuu\",className,classNames),\"data-framer-name\":\"h2\",layoutDependency:layoutDependency,layoutId:\"jSLjvTyem\",ref:refBinding,style:{...style},...addPropertyOverrides({\"jSLjvTyem-hover\":{\"data-framer-name\":undefined}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-qbgg2d-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"V4W7htiui-container\",nodeId:\"V4W7htiui\",rendersWithMotion:true,scopeId:\"QU7NHYtcy\",children:/*#__PURE__*/_jsx(Material,{color:\"var(--token-0618c8d6-171d-47af-84b7-50f662037d3c, rgb(56, 128, 192))\",height:\"100%\",iconSearch:\"\",iconSelection:\"Circle\",iconStyle15:\"Filled\",iconStyle2:\"Filled\",iconStyle7:\"Filled\",id:\"V4W7htiui\",layoutId:\"V4W7htiui\",mirrored:false,selectByList:true,style:{height:\"100%\",width:\"100%\"},width:\"100%\"})})}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7VWJ1bnR1LTUwMA==\",\"--framer-font-family\":'\"Ubuntu\", \"Ubuntu Placeholder\", sans-serif',\"--framer-font-size\":\"18px\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"-0.03em\",\"--framer-line-height\":\"1.8em\",\"--framer-text-alignment\":\"left\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-0618c8d6-171d-47af-84b7-50f662037d3c, rgb(56, 128, 192)))\"},children:\"Auto Generated TOC\"})}),className:\"framer-ld5xlg\",fonts:[\"GF;Ubuntu-500\"],layoutDependency:layoutDependency,layoutId:\"yQPbZVWsV\",style:{\"--extracted-r6o4lv\":\"var(--token-0618c8d6-171d-47af-84b7-50f662037d3c, rgb(56, 128, 192))\"},text:OCgPtveoG,variants:{\"jSLjvTyem-hover\":{\"--extracted-r6o4lv\":\"var(--token-463c97e7-27cc-4f56-80d7-afb096e892f1, rgb(33, 62, 140))\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({\"jSLjvTyem-hover\":{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7VWJ1bnR1LTUwMA==\",\"--framer-font-family\":'\"Ubuntu\", \"Ubuntu Placeholder\", sans-serif',\"--framer-font-size\":\"18px\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"-0.03em\",\"--framer-line-height\":\"1.8em\",\"--framer-text-alignment\":\"left\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-463c97e7-27cc-4f56-80d7-afb096e892f1, rgb(33, 62, 140)))\"},children:\"Auto Generated TOC\"})})}},baseVariant,gestureVariant)})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-1rvq2.framer-15msr7b, .framer-1rvq2 .framer-15msr7b { display: block; }\",\".framer-1rvq2.framer-1gazuu { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 5px; height: min-content; justify-content: flex-start; overflow: hidden; padding: 0px 0px 4px 0px; position: relative; width: 374px; }\",\".framer-1rvq2 .framer-qbgg2d-container { flex: none; height: 10px; position: relative; width: 8px; }\",\".framer-1rvq2 .framer-ld5xlg { flex: 1 0 0px; height: auto; position: relative; white-space: pre-wrap; width: 1px; word-break: break-word; word-wrap: break-word; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 36\n * @framerIntrinsicWidth 374\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"A6Ry_ORIY\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"OCgPtveoG\":\"title\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerQU7NHYtcy=withCSS(Component,css,\"framer-1rvq2\");export default FramerQU7NHYtcy;FramerQU7NHYtcy.displayName=\"Table of Contents\";FramerQU7NHYtcy.defaultProps={height:36,width:374};addPropertyControls(FramerQU7NHYtcy,{OCgPtveoG:{defaultValue:\"Auto Generated TOC\",displayTextArea:false,title:\"Title\",type:ControlType.String}});addFonts(FramerQU7NHYtcy,[{explicitInter:true,fonts:[{family:\"Ubuntu\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/ubuntu/v20/4iCv6KVjbNBYlgoCjC3TsmaMH4V_gg.woff2\",weight:\"500\"}]},...MaterialFonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerQU7NHYtcy\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"36\",\"framerColorSyntax\":\"true\",\"framerImmutableVariables\":\"true\",\"framerVariables\":\"{\\\"OCgPtveoG\\\":\\\"title\\\"}\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"A6Ry_ORIY\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerIntrinsicWidth\":\"374\",\"framerContractVersion\":\"1\",\"framerAutoSizeImages\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerDisplayContentsDiv\":\"false\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./QU7NHYtcy.map","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"],"mappings":"6xBACmqB,SA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