{"version":3,"file":"SmoothShift.glenh2CM.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/n5AuhSJH5YHWNt2gayY6/RrVV7moItLzjf0n2QhLS/SmoothShift.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useRef}from\"react\";// Code component provided by Eleveight Supply. All rights reserved 2025.\n/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n * @framerDisableUnlink\n */export default function SmoothShift({active,style}){const isCanvas=RenderTarget.current()===RenderTarget.canvas;const ref=useRef(null);const rafId=useRef();useEffect(()=>{if(isCanvas||!active)return;const parent=ref.current?.parentElement?.parentElement;if(!parent)return;const container=parent.parentElement;if(!container)return;const updateSize=()=>{const rect=parent.getBoundingClientRect();container.style.width=`${rect.width}px`;container.style.height=`${rect.height}px`;rafId.current=requestAnimationFrame(updateSize);};rafId.current=requestAnimationFrame(updateSize);return()=>{if(rafId.current)cancelAnimationFrame(rafId.current);container.style.width=\"\";container.style.height=\"\";};},[active]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{...style}});}SmoothShift.displayName=\"SmoothShift\";addPropertyControls(SmoothShift,{active:{type:ControlType.Boolean,title:\"Active\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\",description:\"Brought to you by [Eleveight Supply](https://www.eleveight.supply/)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SmoothShift\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SmoothShift.map"],"mappings":"yLAKG,SAAwB,EAAY,CAAC,SAAO,SAAO,CAAC,IAAM,EAAS,EAAa,SAAS,GAAG,EAAa,OAAa,EAAIA,EAAO,KAAK,CAAO,EAAMA,GAAQ,CAAoiB,OAAniB,MAAc,CAAC,GAAG,GAAU,CAAC,EAAO,OAAO,IAAM,EAAO,EAAI,SAAS,eAAe,cAAc,GAAG,CAAC,EAAO,OAAO,IAAM,EAAU,EAAO,cAAc,GAAG,CAAC,EAAU,OAAO,IAAM,MAAe,CAAC,IAAM,EAAK,EAAO,uBAAuB,CAAC,EAAU,MAAM,MAAM,GAAG,EAAK,MAAM,IAAI,EAAU,MAAM,OAAO,GAAG,EAAK,OAAO,IAAI,EAAM,QAAQ,sBAAsB,EAAW,EAAmD,MAAhD,GAAM,QAAQ,sBAAsB,EAAW,KAAW,CAAI,EAAM,SAAQ,qBAAqB,EAAM,QAAQ,CAAC,EAAU,MAAM,MAAM,GAAG,EAAU,MAAM,OAAO,KAAO,CAAC,EAAO,CAAC,CAAqB,EAAK,MAAM,CAAK,MAAI,MAAM,CAAC,GAAG,EAAM,CAAC,CAAC,kBALjtB,IAAiE,IAAoC,CAK8mB,EAAY,YAAY,cAAc,EAAoB,EAAY,CAAC,OAAO,CAAC,KAAK,EAAY,QAAQ,MAAM,SAAS,aAAa,GAAK,aAAa,MAAM,cAAc,KAAK,YAAY,sEAAsE,CAAC,CAAC"}