{"version":3,"file":"GradientFill.C7btsjXn.mjs","names":["useRef","useState","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","te","_e","ce","de","addPropertyControls","init_framer_BEr93sCn","ControlType","GradientFill","props","ref","box","setBox","el","layer","measure","me","target","scale","ro","fallback","variant","style","GRADIENTS","init_GradientFill","init_jsx_runtime"],"sources":["https:/framerusercontent.com/modules/ndunL98Zf1rN0auGdZuh/1TITmT5dh8UvIHXXsaNZ/GradientFill.js"],"sourcesContent":["// Full-bleed CSS gradient background for hero sections, matching the Umso heroes:\n//   blue (Home):       linear-gradient(180deg, #1A5BEE 0%, #000000 100%)\n//   grey (all others): linear-gradient(45deg, #000000 0%, #FFFFFF 100%)\n// Place as the first child of an absolute layer pinned to the hero's edges (the hero clips overflow).\n// Framer sometimes inserts the instance with a horizontal offset, so the fill is fitted to the\n// layer's measured box at runtime. Before measuring (SSR) the vertical blue gradient simply bleeds\n// sideways, which looks identical; the diagonal grey one falls back to filling its own box.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const GRADIENTS={blue:\"linear-gradient(180deg, #1A5BEE 0%, #000000 100%)\",grey:\"linear-gradient(45deg, #000000 0%, #FFFFFF 100%)\"};/**\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 500\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function GradientFill(props){const{variant=\"blue\",style}=props;const ref=useRef(null);const[box,setBox]=useState(null);useEffect(()=>{const el=ref.current;const layer=el?.parentElement?.parentElement;if(!el||!layer||typeof window===\"undefined\")return;const measure=()=>{const me=el.getBoundingClientRect();const target=layer.getBoundingClientRect();// Framer's canvas may be zoomed: convert screen px back to layout px\nconst scale=el.offsetWidth?me.width/el.offsetWidth:1;if(!scale)return;startTransition(()=>setBox({left:(target.left-me.left)/scale,top:(target.top-me.top)/scale,width:target.width/scale,height:target.height/scale}));};measure();const ro=typeof ResizeObserver!==\"undefined\"?new ResizeObserver(measure):null;ro?.observe(layer);ro?.observe(el);window.addEventListener(\"resize\",measure);return()=>{ro?.disconnect();window.removeEventListener(\"resize\",measure);};},[]);const fallback=variant===\"blue\"?{top:0,bottom:0,left:-2e3,right:-2e3}:{top:0,bottom:0,left:0,right:0};return /*#__PURE__*/_jsx(\"div\",{ref:ref,\"aria-hidden\":\"true\",style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",...box?{left:box.left,top:box.top,width:box.width,height:box.height}:fallback,background:GRADIENTS[variant]||GRADIENTS.blue}})});}addPropertyControls(GradientFill,{variant:{type:ControlType.Enum,title:\"Variant\",options:[\"blue\",\"grey\"],optionTitles:[\"Blue (Home)\",\"Grey (other pages)\"],defaultValue:\"blue\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GradientFill\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"500\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"1200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GradientFill.map"],"mappings":"A,mMAYG,SAAwBa,EAAa,EAAM,CAAC,GAAK,CAAC,UAAQ,OAAO,SAAOC,EAAYC,EAAIf,EAAO,IAAI,EAAO,CAACgB,EAAIC,GAAQhB,EAAS,IAAI,EAAEO,MAAc,CAAC,IAAMU,EAAGH,EAAI,QAAcI,EAAMD,GAAI,eAAe,cAAc,GAAG,CAACA,GAAI,CAACC,GAAcd,IAAS,OAAY,OAAO,IAAMe,MAAY,CAAC,IAAMC,EAAGH,EAAG,sBAAsB,EAAQI,EAAOH,EAAM,sBAAsB,EACvWI,EAAML,EAAG,YAAYG,EAAG,MAAMH,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