{"version":3,"file":"SmoothShift.B5CthmAz.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/n5AuhSJH5YHWNt2gayY6/2zmKMVdNAFUMN2GUly5M/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\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SmoothShift.map"],"mappings":"wLAKG,SAAwB,EAAY,CAAC,SAAO,SAAO,CAAC,IAAM,EAAS,EAAa,QAAQ,IAAI,EAAa,OAAa,EAAIA,EAAO,IAAI,EAAQ,EAAMA,EAAO,EAAqiB,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,sBAAsB,EAAE,EAAU,MAAM,MAAM,GAAG,EAAK,MAAM,IAAI,EAAU,MAAM,OAAO,GAAG,EAAK,OAAO,IAAI,EAAM,QAAQ,sBAAsB,CAAU,CAAE,EAAkD,MAAhD,GAAM,QAAQ,sBAAsB,CAAU,MAAY,CAAI,EAAM,SAAQ,qBAAqB,EAAM,OAAO,EAAE,EAAU,MAAM,MAAM,GAAG,EAAU,MAAM,OAAO,EAAG,CAAE,EAAE,CAAC,CAAM,CAAC,EAAsB,EAAK,MAAM,CAAK,MAAI,MAAM,CAAC,GAAG,CAAK,CAAC,CAAC,CAAE,iBALntB,IAAiE,IAAoC,EAK+mB,EAAY,YAAY,cAAc,EAAoB,EAAY,CAAC,OAAO,CAAC,KAAK,EAAY,QAAQ,MAAM,SAAS,aAAa,GAAK,aAAa,MAAM,cAAc,KAAK,YAAY,qEAAqE,CAAC,CAAC"}