{"version":3,"file":"GyroGrid.CwobSC11.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","Image1","useState","__legacyOverrideHOC_DataObserverContext","_jsx","useRef","useCallback","__exportAll","pe","init_npm_react_18_3_1","ne","init_ssg_sandbox_shims","x","ie","_e","oe","p","c","J","init_jsx_runtime","ce","de","window","motion","MotionConfigContext","LayoutGroup","init_framer_motion_DhsWWWsN","addPropertyControls","cx","init_framer_CaDWdxiz","Data","Image$1","useObserveData","withCSS","useComponentViewport","DataObserverContext","useVariantState","ControlType","useLocaleInfo","RichText","kjYO3TIo3_exports","__FramerMetadata__","FramerkjYO3TIo3","addPropertyOverrides","variants","nextOverrides","variant","overrides","enabledGestures","cycleOrder","serializationHash","variantClassNames","transition1","transformTemplate1","Transition","humanReadableVariantMap","Variants","getProps","createLayoutDependency","init_kjYO3TIo3","__esmMin","config","transition","value","contextValue","props","fontSize2","fallbackRef","refBinding","ref","defaultLayoutId","componentViewport","restProps","layoutDependency","scopingClassNames","layoutId","gestureHandlers","className","classNames","style","baseVariant","gestureVariant","kAPHk2xTf","addFonts","\"exports\"","\"Props\"","\"type\"","\"annotations\"","\"framerContractVersion\"","\"default\"","\"name\"","\"slots\"","\"framerImmutableVariables\"","\"framerIntrinsicHeight\"","\"framerDisplayContentsDiv\"","\"framerAutoSizeImages\"","\"framerComponentViewportWidth\"","\"framerVariables\"","\"framerColorSyntax\"","\"framerCanvasComponentVariantDetails\"","\"framerIntrinsicWidth\"","\"__FramerMetadata__\"","createStore","dataStore","state1","setDataStore","newState","storeState","storeSetters","setStoreState","setter","useStore","state","setState","init_createStore","init_store_js__1_0","registerGyroToggle","handler","toggleMotionHandler","toggleGyroMotion","useGyroStore","init_GyroStore","GyroButton","gyroState","withGyroButton","C","init_Gyro_Button_Override","GyroGrid","gridRef","currentX","currentY","targetX","targetY","initialGamma","initialBeta","animationFrame","setGyroState","handleOrientation","motionEnabled","inputMode","gamma","event","beta","deltaGamma","deltaBeta","sensitivity","y","handleMouseMove","gyroActive","toggleMotion","motionPermissionRequested","OrientationEvent","MotionEvent","hasOrientationPermission","hasMotionPermission","orientationPermission","motionPermission","error","animate","ease","smoothing","rotateY","maxTilt","rotateX","moveX","parallax","moveY","gridBackground","gridColor","lineWidth","perspective","gridZIndex","spacingX","spacingY","init_GyroGrid"],"sources":["https:/framerusercontent.com/modules/mCBvmSd0VIAwcapWdlwm/NW4V4Du1V77eX2ZcH2cE/kjYO3TIo3.js","https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/q0yLECxpzpa1OsXrHFKh/gTSkf8koXGeD9szY2eHQ/GyroStore.js","https:/framerusercontent.com/modules/0fUJjTZHE7ztVOTW2jew/R0yTiHZ3a8S8uzBhD2Ba/Gyro_Button_Override.js","https:/framerusercontent.com/modules/nO0p6PHuthAipjAMO60L/IYE0OBGzHDyLMvi2VUcd/GyroGrid.js"],"sourcesContent":["// Generated by Framer (b4b3e20)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,Image as Image1,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const enabledGestures={JPtR9bmFZ:{hover:true}};const cycleOrder=[\"JPtR9bmFZ\",\"ghNHNitu0\"];const serializationHash=\"framer-18e9O\";const variantClassNames={ghNHNitu0:\"framer-v-13dsbzp\",JPtR9bmFZ:\"framer-v-r3hhaw\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const kAPHk2xTf=undefined;const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const transformTemplate1=(_,t)=>`translate(-50%, -50%) ${t}`;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 humanReadableVariantMap={OFF:\"JPtR9bmFZ\",ON:\"ghNHNitu0\"};const Variants=motion.create(React.Fragment);const getProps=({fontSize2,height,id,width,...props})=>{return{...props,kAPHk2xTf:fontSize2??props.kAPHk2xTf??9,variant:humanReadableVariantMap[props.variant]??props.variant??\"JPtR9bmFZ\"};};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,kAPHk2xTf,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"JPtR9bmFZ\",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-r3hhaw\",className,classNames),\"data-framer-name\":\"OFF\",layoutDependency:layoutDependency,layoutId:\"JPtR9bmFZ\",ref:refBinding,style:{backgroundColor:\"var(--token-4b3176f2-f721-44b1-9fdd-7965a14db329, rgb(242, 237, 230))\",borderBottomLeftRadius:20,borderBottomRightRadius:20,borderTopLeftRadius:20,borderTopRightRadius:20,boxShadow:\"0px 1px 2px 0px rgba(0, 0, 0, 0.25)\",...style},...addPropertyOverrides({\"JPtR9bmFZ-hover\":{\"data-framer-name\":undefined},ghNHNitu0:{\"data-framer-name\":\"ON\"}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(motion.div,{className:\"framer-7r0917\",\"data-framer-name\":\"ToggleFrame\",layoutDependency:layoutDependency,layoutId:\"FN9Zn6Bro\",style:{backgroundColor:\"var(--token-31ed1f52-ea64-4d8d-a035-5c78cf77ba5d, rgba(171, 171, 171, 0.5))\",borderBottomLeftRadius:20,borderBottomRightRadius:20,borderTopLeftRadius:20,borderTopRightRadius:20,boxShadow:\"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.25)\"},variants:{ghNHNitu0:{backgroundColor:\"var(--token-5c43a469-837b-4877-b077-b92dde8a9025, rgb(255, 255, 255))\"}},children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-zgo8xi\",\"data-framer-name\":\"Switch\",layoutDependency:layoutDependency,layoutId:\"I9NZJwtAL\",children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-6ekmd0\",\"data-framer-name\":\"Button\",layoutDependency:layoutDependency,layoutId:\"P82EqDyx4\",children:/*#__PURE__*/_jsxs(motion.div,{className:\"framer-l3tv0\",\"data-framer-name\":\"IconPivot\",layoutDependency:layoutDependency,layoutId:\"AuxMQ2ON4\",children:[/*#__PURE__*/_jsx(motion.div,{className:\"framer-12gflq9\",\"data-framer-name\":\"Base\",layoutDependency:layoutDependency,layoutId:\"FScMmkOSe\",style:{backgroundColor:\"var(--token-3617f02d-add0-460b-b057-08d8deadfcd8, rgb(48, 48, 48))\",borderBottomLeftRadius:20,borderBottomRightRadius:20,borderTopLeftRadius:20,borderTopRightRadius:20},variants:{\"JPtR9bmFZ-hover\":{backgroundColor:\"var(--token-e870f295-6bd7-41ee-9b7d-3aedb380a199, rgba(51, 153, 17, 0.65))\"},ghNHNitu0:{backgroundColor:\"var(--token-f71dae6b-4de5-43cb-83c1-346a573dd305, rgb(51, 153, 17))\"}},children:/*#__PURE__*/_jsxs(motion.div,{className:\"framer-1l3wse9\",\"data-framer-name\":\"Shine\",layoutDependency:layoutDependency,layoutId:\"EWaY2f7yi\",style:{borderBottomLeftRadius:398,borderBottomRightRadius:398,borderTopLeftRadius:398,borderTopRightRadius:398},children:[/*#__PURE__*/_jsx(motion.div,{className:\"framer-1q8ldgj\",\"data-framer-name\":\"2\",layoutDependency:layoutDependency,layoutId:\"EA1eJ6f2i\",style:{backgroundColor:\"var(--token-5c43a469-837b-4877-b077-b92dde8a9025, rgb(255, 255, 255))\",rotate:343}}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-1r4fcul\",\"data-framer-name\":\"1\",layoutDependency:layoutDependency,layoutId:\"rDcSTXuvG\",style:{backgroundColor:\"var(--token-5c43a469-837b-4877-b077-b92dde8a9025, rgb(255, 255, 255))\",rotate:343}})]})}),/*#__PURE__*/_jsx(Image1,{background:{alt:\"\",fit:\"fit\",intrinsicHeight:128,intrinsicWidth:128,pixelHeight:128,pixelWidth:128,positionX:\"center\",positionY:\"center\",sizes:`calc(max(${componentViewport?.width||\"100vw\"} - 16px, 1px) / 4)`,src:\"https://framerusercontent.com/images/jS2pjXfw25uLKyvQpYpmOFaZw.png?width=128&height=128\"},className:\"framer-140bm6s\",\"data-framer-name\":\"Icon\",fitImageDimension:\"height\",layoutDependency:layoutDependency,layoutId:\"sJ9GQUKcQ\",transformTemplate:transformTemplate1,...addPropertyOverrides({ghNHNitu0:{background:{alt:\"\",fit:\"fit\",intrinsicHeight:128,intrinsicWidth:128,pixelHeight:128,pixelWidth:128,positionX:\"center\",positionY:\"center\",sizes:`calc(max(${componentViewport?.width||\"100vw\"} - 16px, 1px) / 4)`,src:\"https://framerusercontent.com/images/JMpD0s8d5gL4h3akMXq6w5vUIY.png?width=128&height=128\"}}},baseVariant,gestureVariant)})]})})})}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"RlM7TWFucm9wZS1tZWRpdW0=\",\"--framer-font-family\":'\"Manrope\", \"Manrope Placeholder\", sans-serif',\"--framer-font-open-type-features\":\"'blwf' on, 'cv03' on, 'cv04' on, 'cv09' on, 'cv11' on\",\"--framer-font-size\":\"calc(var(--variable-reference-kAPHk2xTf-kjYO3TIo3) * 1px)\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"-0.01em\",\"--framer-line-height\":\"1.3em\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-7c4b001f-aded-4bd7-a588-69dc867951fa, rgb(0, 0, 0)))\"},children:\"background tilt\"})}),className:\"framer-n185e5\",fonts:[\"FS;Manrope-medium\"],layoutDependency:layoutDependency,layoutId:\"iMpedV4nW\",style:{\"--extracted-r6o4lv\":\"var(--token-7c4b001f-aded-4bd7-a588-69dc867951fa, rgb(0, 0, 0))\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\",\"--variable-reference-kAPHk2xTf-kjYO3TIo3\":kAPHk2xTf},verticalAlignment:\"top\",withExternalLayout:true})]})})})});});const css=[\".framer-18e9O.framer-486esp, .framer-18e9O .framer-486esp { display: block; }\",\".framer-18e9O.framer-r3hhaw { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 2px; height: 70px; justify-content: center; overflow: visible; padding: 6px; position: relative; width: 108px; }\",\".framer-18e9O .framer-7r0917 { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: 69%; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 100%; }\",\".framer-18e9O .framer-zgo8xi { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 4px; height: 100%; justify-content: flex-start; left: 0px; overflow: var(--overflow-clip-fallback, clip); padding: 2px; position: absolute; top: calc(50.00000000000002% - 100% / 2); width: 100%; z-index: 1; }\",\".framer-18e9O .framer-6ekmd0 { align-content: flex-start; align-items: flex-start; display: flex; flex: 1 0 0px; flex-direction: column; flex-wrap: nowrap; gap: 0px; height: 100%; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; width: 1px; }\",\".framer-18e9O .framer-l3tv0 { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: 100%; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 50%; }\",\".framer-18e9O .framer-12gflq9 { flex: 1 0 0px; height: 100%; overflow: hidden; position: relative; width: 1px; will-change: var(--framer-will-change-override, transform); }\",\".framer-18e9O .framer-1l3wse9 { bottom: 0px; flex: none; left: 0px; overflow: hidden; position: absolute; right: -46px; top: 0px; will-change: var(--framer-will-change-override, transform); z-index: 1; }\",\".framer-18e9O .framer-1q8ldgj { flex: none; height: 150%; left: -21px; overflow: hidden; position: absolute; top: -14px; width: 2px; }\",\".framer-18e9O .framer-1r4fcul { flex: none; height: 148%; left: -30px; overflow: hidden; position: absolute; top: -13px; width: 6px; }\",\".framer-18e9O .framer-140bm6s { flex: none; height: auto; left: 50%; position: absolute; top: 50%; width: 50%; z-index: 1; }\",\".framer-18e9O .framer-n185e5 { flex: none; height: auto; position: relative; white-space: pre-wrap; width: 100%; word-break: break-word; word-wrap: break-word; z-index: 1; }\",\".framer-18e9O.framer-v-13dsbzp.framer-r3hhaw { cursor: unset; }\",\".framer-18e9O.framer-v-13dsbzp .framer-6ekmd0 { align-content: flex-end; align-items: flex-end; }\",\".framer-18e9O.framer-v-r3hhaw.hover .framer-1q8ldgj { bottom: -12px; height: unset; left: unset; right: -18px; top: -13px; }\",\".framer-18e9O.framer-v-r3hhaw.hover .framer-1r4fcul { bottom: -11px; height: unset; left: unset; right: -13px; top: -13px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 70\n * @framerIntrinsicWidth 108\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"ghNHNitu0\":{\"layout\":[\"fixed\",\"fixed\"]},\"xJFsO7KH6\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"kAPHk2xTf\":\"fontSize2\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerkjYO3TIo3=withCSS(Component,css,\"framer-18e9O\");export default FramerkjYO3TIo3;FramerkjYO3TIo3.displayName=\"Paralax Button\";FramerkjYO3TIo3.defaultProps={height:70,width:108};addPropertyControls(FramerkjYO3TIo3,{variant:{options:[\"JPtR9bmFZ\",\"ghNHNitu0\"],optionTitles:[\"OFF\",\"ON\"],title:\"Variant\",type:ControlType.Enum},kAPHk2xTf:{defaultValue:9,title:\"Font Size 2\",type:ControlType.Number},onkAPHk2xTfChange:{changes:\"kAPHk2xTf\",type:ControlType.ChangeHandler}});addFonts(FramerkjYO3TIo3,[{explicitInter:true,fonts:[{cssFamilyName:\"Manrope\",openType:true,source:\"fontshare\",style:\"normal\",uiFamilyName:\"Manrope\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/BNWG6MUI4RTC6WEND2VPDH4MHMIVU3XZ/R5YXY5FMVG6PXU36GNEEA24MIPMEPGSM/CIM4KQCLZSMMLWPVH25IDDSTY4ENPHEY.woff2\",weight:\"500\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerkjYO3TIo3\",\"slots\":[],\"annotations\":{\"framerImmutableVariables\":\"true\",\"framerIntrinsicHeight\":\"70\",\"framerDisplayContentsDiv\":\"false\",\"framerAutoSizeImages\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerVariables\":\"{\\\"kAPHk2xTf\\\":\\\"fontSize2\\\"}\",\"framerColorSyntax\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"ghNHNitu0\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"xJFsO7KH6\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"108\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./kjYO3TIo3.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","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";export const useGyroStore=createStore({motionEnabled:false,gyroActive:false,motionPermissionRequested:false});/*\n * --------------------------------------------------\n * TOGGLE CONNECTION\n * --------------------------------------------------\n *\n * GyroGrid registers its real toggleMotion()\n * function here.\n *\n * GyroToggle can then trigger that function without\n * needing to know anything about device permissions,\n * calibration, or orientation sensors.\n */let toggleMotionHandler=null;export function registerGyroToggle(handler){toggleMotionHandler=handler;return()=>{if(toggleMotionHandler===handler){toggleMotionHandler=null;}};}export function toggleGyroMotion(){if(!toggleMotionHandler){console.warn(\"GyroGrid is not mounted, so the motion toggle is unavailable.\");return;}return toggleMotionHandler();}\nexport const __FramerMetadata__ = {\"exports\":{\"useGyroStore\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleGyroMotion\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GyroStoreState\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"registerGyroToggle\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GyroStore.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useGyroStore,toggleGyroMotion}from\"https://framerusercontent.com/modules/q0yLECxpzpa1OsXrHFKh/gTSkf8koXGeD9szY2eHQ/GyroStore.js\";/*\n * --------------------------------------------------\n * GYRO TOGGLE BUTTON\n * --------------------------------------------------\n *\n * Apply this override directly to any visual\n * component/layer on the Framer canvas.\n *\n * The visual design remains completely editable\n * in Framer.\n */export function GyroButton(){const[gyroState]=useGyroStore();return{/*\n         * Clicking/tapping the visual button calls\n         * the real toggle function inside GyroGrid.\n         */onTap(){toggleGyroMotion();},/*\n         * Automatically switch the Framer component\n         * between its visual variants.\n         *\n         * Create variants named:\n         *\n         *      Off\n         *      On\n         *\n         * in your visual button component.\n         */variant:gyroState.motionEnabled?\"ON\":\"OFF\",/*\n         * Useful for accessibility and for any\n         * component that reads this property.\n         */\"aria-pressed\":gyroState.motionEnabled};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withGyroButton(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...GyroButton(props)});};}withGyroButton.displayName=\"GyroButton\";\nexport const __FramerMetadata__ = {\"exports\":{\"withGyroButton\":{\"type\":\"reactHoc\",\"name\":\"withGyroButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GyroButton\":{\"type\":\"override\",\"name\":\"GyroButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Gyro_Button_Override.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useCallback}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{useGyroStore,registerGyroToggle}from\"https://framerusercontent.com/modules/q0yLECxpzpa1OsXrHFKh/gTSkf8koXGeD9szY2eHQ/GyroStore.js\";export default function GyroGrid(props){const{gridColor,backgroundColor,spacingX,spacingY,lineWidth,gridZIndex,maxTilt,perspective,parallax,smoothing,sensitivity,inputMode}=props;/*\n     * --------------------------------------------------\n     * REFERENCES\n     * --------------------------------------------------\n     */const gridRef=useRef(null);const currentX=useRef(0);const currentY=useRef(0);const targetX=useRef(0);const targetY=useRef(0);const initialGamma=useRef(null);const initialBeta=useRef(null);const animationFrame=useRef(null);/*\n     * --------------------------------------------------\n     * SHARED STATE\n     * --------------------------------------------------\n     */const[gyroState,setGyroState]=useGyroStore();const{motionEnabled,gyroActive,motionPermissionRequested}=gyroState;/*\n     * --------------------------------------------------\n     * DEVICE ORIENTATION\n     * --------------------------------------------------\n     */const handleOrientation=useCallback(event=>{if(!motionEnabled){return;}/*\n             * Explicit mouse mode never responds\n             * to device orientation.\n             */if(inputMode===\"mouse\"){return;}const gamma=event.gamma;const beta=event.beta;/*\n             * No usable sensor data.\n             */if(gamma===null||beta===null){return;}/*\n             * Actual gyro data has been received.\n             */setGyroState({gyroActive:true});/*\n             * First reading becomes the neutral\n             * calibration position.\n             */if(initialGamma.current===null){initialGamma.current=gamma;}if(initialBeta.current===null){initialBeta.current=beta;}const deltaGamma=gamma-initialGamma.current;const deltaBeta=beta-initialBeta.current;const x=Math.max(-1,Math.min(1,deltaGamma/30*sensitivity));const y=Math.max(-1,Math.min(1,deltaBeta/30*sensitivity));targetX.current=x;targetY.current=y;},[motionEnabled,sensitivity,inputMode]);/*\n     * --------------------------------------------------\n     * ORIENTATION LISTENER\n     * --------------------------------------------------\n     */useEffect(()=>{if(inputMode===\"mouse\"){return;}if(typeof window===\"undefined\"){return;}window.addEventListener(\"deviceorientation\",handleOrientation,true);window.addEventListener(\"deviceorientationabsolute\",handleOrientation,true);return()=>{window.removeEventListener(\"deviceorientation\",handleOrientation,true);window.removeEventListener(\"deviceorientationabsolute\",handleOrientation,true);};},[inputMode,handleOrientation]);/*\n     * --------------------------------------------------\n     * MOUSE CONTROL\n     * --------------------------------------------------\n     */useEffect(()=>{if(typeof window===\"undefined\"){return;}const handleMouseMove=event=>{/*\n             * Motion disabled.\n             */if(!motionEnabled){targetX.current=0;targetY.current=0;return;}/*\n             * Explicit gyro mode.\n             */if(inputMode===\"gyro\"){return;}/*\n             * Auto mode:\n             * gyro takes over once actual sensor\n             * data has been received.\n             */if(inputMode===\"auto\"&&gyroActive){return;}const x=(event.clientX/window.innerWidth-.5)*2;const y=(event.clientY/window.innerHeight-.5)*2;targetX.current=x;targetY.current=y;};window.addEventListener(\"mousemove\",handleMouseMove);return()=>{window.removeEventListener(\"mousemove\",handleMouseMove);};},[inputMode,gyroActive,motionEnabled]);/*\n     * --------------------------------------------------\n     * MOTION PERMISSION / TOGGLE\n     * --------------------------------------------------\n     */const toggleMotion=useCallback(async()=>{/*\n         * ------------------------------------------------\n         * FIRST GYRO ACTIVATION\n         * ------------------------------------------------\n         *\n         * iOS/iPadOS requires permission to be requested\n         * from a user gesture.\n         */if(inputMode!==\"mouse\"&&!motionPermissionRequested&&typeof window!==\"undefined\"){const OrientationEvent=window.DeviceOrientationEvent;const MotionEvent=window.DeviceMotionEvent;const hasOrientationPermission=typeof OrientationEvent?.requestPermission===\"function\";const hasMotionPermission=typeof MotionEvent?.requestPermission===\"function\";/*\n             * iOS/iPadOS permission API.\n             */if(hasOrientationPermission||hasMotionPermission){try{let orientationPermission=\"granted\";let motionPermission=\"granted\";/*\n                     * Orientation permission.\n                     */if(hasOrientationPermission){orientationPermission=await OrientationEvent.requestPermission();}/*\n                     * Motion permission.\n                     */if(hasMotionPermission){motionPermission=await MotionEvent.requestPermission();}setGyroState({motionPermissionRequested:true});/*\n                     * Permission denied.\n                     */if(orientationPermission!==\"granted\"||motionPermission!==\"granted\"){return;}/*\n                     * Reset calibration.\n                     */initialGamma.current=null;initialBeta.current=null;targetX.current=0;targetY.current=0;/*\n                     * Enable motion.\n                     */setGyroState({motionEnabled:true});return;}catch(error){console.warn(\"Motion permission request failed:\",error);setGyroState({motionPermissionRequested:true});return;}}/*\n             * Browser does not require an\n             * explicit permission request.\n             */setGyroState({motionPermissionRequested:true});initialGamma.current=null;initialBeta.current=null;targetX.current=0;targetY.current=0;setGyroState({motionEnabled:true});return;}/*\n         * ------------------------------------------------\n         * NORMAL OFF\n         * ------------------------------------------------\n         */if(motionEnabled){setGyroState({motionEnabled:false});targetX.current=0;targetY.current=0;return;}/*\n         * ------------------------------------------------\n         * NORMAL ON / RE-ENABLE\n         * ------------------------------------------------\n         */initialGamma.current=null;initialBeta.current=null;targetX.current=0;targetY.current=0;setGyroState({motionEnabled:true});},[inputMode,motionPermissionRequested,motionEnabled,setGyroState]);/*\n     * --------------------------------------------------\n     * REGISTER TOGGLE WITH SHARED STORE\n     * --------------------------------------------------\n     *\n     * GyroToggle calls the function registered here.\n     */useEffect(()=>{return registerGyroToggle(toggleMotion);},[toggleMotion]);/*\n     * --------------------------------------------------\n     * ANIMATION\n     * --------------------------------------------------\n     */useEffect(()=>{const animate=()=>{const ease=.015+smoothing*.18;currentX.current+=(targetX.current-currentX.current)*ease;currentY.current+=(targetY.current-currentY.current)*ease;if(gridRef.current){const rotateY=currentX.current*maxTilt;const rotateX=-currentY.current*maxTilt;const moveX=currentX.current*parallax;const moveY=currentY.current*parallax;gridRef.current.style.transform=\"translate3d(\"+moveX+\"px, \"+moveY+\"px, 0) \"+\"rotateX(\"+rotateX+\"deg) \"+\"rotateY(\"+rotateY+\"deg)\";}animationFrame.current=requestAnimationFrame(animate);};animationFrame.current=requestAnimationFrame(animate);return()=>{if(animationFrame.current!==null){cancelAnimationFrame(animationFrame.current);}};},[maxTilt,parallax,smoothing]);/*\n     * --------------------------------------------------\n     * GRID\n     * --------------------------------------------------\n     */const gridBackground=\"linear-gradient(to right, \"+gridColor+\" 0, \"+gridColor+\" \"+lineWidth+\"px, transparent \"+lineWidth+\"px), \"+\"linear-gradient(to bottom, \"+gridColor+\" 0, \"+gridColor+\" \"+lineWidth+\"px, transparent \"+lineWidth+\"px)\";/*\n     * --------------------------------------------------\n     * RENDER\n     * --------------------------------------------------\n     */return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",backgroundColor:backgroundColor,perspective:perspective+\"px\"},children:/*#__PURE__*/_jsx(\"div\",{ref:gridRef,style:{position:\"absolute\",width:\"140%\",height:\"140%\",left:\"-20%\",top:\"-20%\",zIndex:gridZIndex,backgroundImage:gridBackground,backgroundSize:spacingX+\"px \"+spacingY+\"px\",transformStyle:\"preserve-3d\",transformOrigin:\"center center\",willChange:\"transform\",pointerEvents:\"none\"}})});}/*\n * --------------------------------------------------\n * DEFAULT PROPS\n * --------------------------------------------------\n */GyroGrid.defaultProps={gridColor:\"rgba(255,255,255,0.25)\",backgroundColor:\"#111111\",spacingX:50,spacingY:50,lineWidth:1,gridZIndex:0,maxTilt:8,perspective:800,parallax:30,smoothing:.7,sensitivity:1,inputMode:\"mouse\"};/*\n * --------------------------------------------------\n * PROPERTY CONTROLS\n * --------------------------------------------------\n */addPropertyControls(GyroGrid,{gridColor:{type:ControlType.Color,title:\"Grid Color\"},backgroundColor:{type:ControlType.Color,title:\"Background\"},spacingX:{type:ControlType.Number,title:\"Spacing X\",min:5,max:300,step:1,unit:\"px\"},spacingY:{type:ControlType.Number,title:\"Spacing Y\",min:5,max:300,step:1,unit:\"px\"},lineWidth:{type:ControlType.Number,title:\"Line Width\",min:.5,max:10,step:.5,unit:\"px\"},gridZIndex:{type:ControlType.Number,title:\"Grid Z-Index\",min:-100,max:100,step:1},inputMode:{type:ControlType.Enum,title:\"Input\",options:[\"auto\",\"mouse\",\"gyro\"],optionTitles:[\"Auto Detect\",\"Mouse\",\"Gyro\"],defaultValue:\"mouse\"},maxTilt:{type:ControlType.Number,title:\"Max Tilt\",min:0,max:30,step:.5,unit:\"deg\"},perspective:{type:ControlType.Number,title:\"Perspective\",min:200,max:2e3,step:50,unit:\"px\"},parallax:{type:ControlType.Number,title:\"Parallax\",min:0,max:100,step:1,unit:\"px\"},smoothing:{type:ControlType.Number,title:\"Smoothing\",min:0,max:1,step:.05},sensitivity:{type:ControlType.Number,title:\"Sensitivity\",min:.25,max:3,step:.05}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GyroGrid\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GyroGrid.map"],"mappings":"A,wcACyhB,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