{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/8X0lvMvpJESNiSGMdtOk/sdLkiOiwKdoXbW3tVdGt/BG.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";const BG_COLOR=\"#2F22DD\";const useSectionObserver=callback=>{const ref=useRef(null);useEffect(()=>{const observer=new IntersectionObserver(([entry])=>{if(entry.isIntersecting){callback(true);}else{callback(false);}},{threshold:.1});if(ref.current){observer.observe(ref.current);}return()=>observer.disconnect();},[callback]);return ref;};let updateBackground;export const withBackgroundChange=()=>{const ref=useRef(null);useEffect(()=>{updateBackground=active=>{if(ref.current){ref.current.style.transition=\"background-color 0.5s ease\";ref.current.style.backgroundColor=active?BG_COLOR:\"transparent\";}};},[]);return{ref};};export const withTrigger=()=>{const ref=useSectionObserver(isVisible=>{if(updateBackground){updateBackground(isVisible);}});return{ref};};import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withwithBackgroundChange(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...withBackgroundChange(props)});};}withwithBackgroundChange.displayName=\"withBackgroundChange\";export function withwithTrigger(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...withTrigger(props)});};}withwithTrigger.displayName=\"withTrigger\";\nexport const __FramerMetadata__ = {\"exports\":{\"withTrigger\":{\"type\":\"override\",\"name\":\"withTrigger\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withwithBackgroundChange\":{\"type\":\"reactHoc\",\"name\":\"withwithBackgroundChange\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withwithTrigger\":{\"type\":\"reactHoc\",\"name\":\"withwithTrigger\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBackgroundChange\":{\"type\":\"override\",\"name\":\"withBackgroundChange\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BG.map"],
  "mappings": "yIAA+E,IAAMA,EAAS,UAAgBC,EAAmBC,GAAU,CAAC,IAAMC,EAAIC,EAAO,IAAI,EAAE,OAAAC,EAAU,IAAI,CAAC,IAAMC,EAAS,IAAI,qBAAqB,CAAC,CAACC,CAAK,IAAI,CAAIA,EAAM,eAAgBL,EAAS,EAAI,EAAQA,EAAS,EAAK,CAAG,EAAE,CAAC,UAAU,EAAE,CAAC,EAAE,OAAGC,EAAI,SAASG,EAAS,QAAQH,EAAI,OAAO,EAAS,IAAIG,EAAS,WAAW,CAAE,EAAE,CAACJ,CAAQ,CAAC,EAASC,CAAI,EAAMK,EAA8BC,EAAqB,IAAI,CAAC,IAAMN,EAAIC,EAAO,IAAI,EAAE,OAAAC,EAAU,IAAI,CAACG,EAAiBE,GAAQ,CAAIP,EAAI,UAASA,EAAI,QAAQ,MAAM,WAAW,6BAA6BA,EAAI,QAAQ,MAAM,gBAAgBO,EAAOV,EAAS,cAAe,CAAE,EAAE,CAAC,CAAC,EAAQ,CAAC,IAAAG,CAAG,CAAE,EAAeQ,EAAY,KAAyG,CAAC,IAA3FV,EAAmBW,GAAW,CAAIJ,GAAkBA,EAAiBI,CAAS,CAAG,CAAC,CAAY,GAA8J,SAASC,EAAyBC,EAAE,CAAC,OAAOC,IAAQC,EAA+BC,CAAuC,EAASC,EAAKJ,EAAE,CAAC,GAAGC,EAAM,GAAGN,EAAqBM,CAAK,CAAC,CAAC,EAAI,CAACF,EAAyB,YAAY,uBAA8B,SAASM,EAAgBL,EAAE,CAAC,OAAOC,IAAQC,EAA+BC,CAAuC,EAASC,EAAKJ,EAAE,CAAC,GAAGC,EAAM,GAAGJ,EAAYI,CAAK,CAAC,CAAC,EAAI,CAACI,EAAgB,YAAY",
  "names": ["BG_COLOR", "useSectionObserver", "callback", "ref", "pe", "ue", "observer", "entry", "updateBackground", "withBackgroundChange", "active", "withTrigger", "isVisible", "withwithBackgroundChange", "C", "props", "re", "DataObserverContext", "p", "withwithTrigger"]
}
