{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Dz3ZUHyWDLETiOzCjpkF/4m3SQiHGA0r7vFt2vvj2/Auto_Scroll.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function withActiveFilterInView(Component){return props=>{useEffect(()=>{let scrollTimeout=null;const ensureActiveElementInView=()=>{if(scrollTimeout){clearTimeout(scrollTimeout);}scrollTimeout=setTimeout(()=>{const filterComponent=document.querySelector('[data-framer-name=\"Filter\"]');const selectedElement=filterComponent.querySelector('[data-framer-name=\"Selected State\"]');if(filterComponent&&selectedElement){selectedElement.scrollIntoView({behavior:\"smooth\",block:\"nearest\",inline:\"start\"});}},200);};window.addEventListener(\"scroll\",ensureActiveElementInView);return()=>{window.removeEventListener(\"scroll\",ensureActiveElementInView);if(scrollTimeout){clearTimeout(scrollTimeout);}};},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withActiveFilterInView\":{\"type\":\"reactHoc\",\"name\":\"withActiveFilterInView\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Auto_Scroll.map"],
  "mappings": "yFAA+E,SAASA,EAAuBC,EAAU,CAAC,OAAOC,IAAQC,EAAU,IAAI,CAAC,IAAIC,EAAc,KAAWC,EAA0B,IAAI,CAAID,GAAe,aAAaA,CAAa,EAAGA,EAAc,WAAW,IAAI,CAAC,IAAME,EAAgB,SAAS,cAAc,6BAA6B,EAAQC,EAAgBD,EAAgB,cAAc,qCAAqC,EAAKA,GAAiBC,GAAiBA,EAAgB,eAAe,CAAC,SAAS,SAAS,MAAM,UAAU,OAAO,OAAO,CAAC,CAAG,EAAE,GAAG,CAAE,EAAE,OAAAC,EAAO,iBAAiB,SAASH,CAAyB,EAAQ,IAAI,CAACG,EAAO,oBAAoB,SAASH,CAAyB,EAAKD,GAAe,aAAaA,CAAa,CAAG,CAAE,EAAE,CAAC,CAAC,EAAsBK,EAAKR,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAI",
  "names": ["withActiveFilterInView", "Component", "props", "ue", "scrollTimeout", "ensureActiveElementInView", "filterComponent", "selectedElement", "window", "p"]
}
