{"version":3,"file":"HeroGradient.BegiyfQQ.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/Dyl1MIK8ITiDMHDb2gsE/oItmdqakLR5GKizpShs2/HeroGradient.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";export function withHeroDiagonalSlash(Component){return props=>{const[isMobile,setIsMobile]=useState(null);useEffect(()=>{const check=()=>setIsMobile(window.innerWidth<1200);check();window.addEventListener(\"resize\",check);return()=>window.removeEventListener(\"resize\",check);},[]);const showDiagonal=isMobile===false;return /*#__PURE__*/_jsxs(Component,{...props,style:{...props.style,position:\"relative\",overflow:\"hidden\"},children:[showDiagonal&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,right:0,width:\"52%\",height:\"100%\",background:\"linear-gradient(160deg,#003C3A 0%,#006865 45%,#429E88 100%)\",clipPath:\"polygon(18% 0,100% 0,100% 100%,0% 100%)\",pointerEvents:\"none\",zIndex:0}}),props.children]});};}export function withHeroDiagonalLight(Component){return props=>{const[isMobile,setIsMobile]=useState(null);useEffect(()=>{const check=()=>setIsMobile(window.innerWidth<1200);check();window.addEventListener(\"resize\",check);return()=>window.removeEventListener(\"resize\",check);},[]);const showDiagonal=isMobile===false;return /*#__PURE__*/_jsxs(Component,{...props,style:{...props.style,position:\"relative\",overflow:\"hidden\"},children:[showDiagonal&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,right:0,width:\"50%\",height:\"100%\",background:\"linear-gradient(155deg, rgba(27,110,98,0.03) 0%, rgba(0,60,58,0.07) 50%, rgba(66,158,136,0.02) 100%)\",clipPath:\"polygon(20% 0, 100% 0, 100% 100%, 0% 100%)\",pointerEvents:\"none\",zIndex:0}}),props.children]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withHeroDiagonalLight\":{\"type\":\"reactHoc\",\"name\":\"withHeroDiagonalLight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHeroDiagonalSlash\":{\"type\":\"reactHoc\",\"name\":\"withHeroDiagonalSlash\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HeroGradient.map"],"mappings":"yIAA6yB,SAAgB,EAAsB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAS,GAAaA,EAAS,KAAK,CAAC,MAAc,CAAC,IAAM,MAAU,EAAY,EAAO,WAAW,KAAK,CAAiD,OAAhD,GAAO,CAAC,EAAO,iBAAiB,SAAS,EAAM,KAAW,EAAO,oBAAoB,SAAS,EAAM,EAAG,EAAE,CAAC,CAAC,IAAM,EAAa,IAAW,GAAM,OAAoB,EAAM,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,WAAW,SAAS,SAAS,CAAC,SAAS,CAAC,GAA2B,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,MAAM,EAAE,MAAM,MAAM,OAAO,OAAO,WAAW,uGAAuG,SAAS,6CAA6C,cAAc,OAAO,OAAO,EAAE,CAAC,CAAC,CAAC,EAAM,SAAS,CAAC,CAAC,uBAA1+C,IAAsC"}