{"version":3,"file":"Utilities.DnNQ3-Fj.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/DguCTA6esmwZpMCyUa4E/YWCvpfTEcRWmROSoRXyz/Utilities.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect,useRef}from\"react\";export function withGridBackground(Component){const gridColor=\"#F4F3F1\";const gridWeight=.72;const gridSize=24;const svgGrid=`\n        <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${gridSize}\" height=\"${gridSize}\">\n            <rect x=\"0\" y=\"0\" width=\"${gridWeight}\" height=\"${gridSize}\" fill=\"${gridColor}\"/>\n            <rect x=\"0\" y=\"0\" width=\"${gridSize}\" height=\"${gridWeight}\" fill=\"${gridColor}\"/>\n        </svg>\n    `;const encodedSvg=encodeURIComponent(svgGrid.trim());const backgroundUrl=`url(\"data:image/svg+xml,${encodedSvg}\")`;return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,backgroundImage:backgroundUrl,backgroundRepeat:\"repeat\"}});};}export function FixNumberFont(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,fontFeatureSettings:\"normal\"}});};}export function withResponsivePaddingForUseCasesSection(Component){return props=>{useEffect(()=>{const updatePadding=()=>{const target=document.querySelector('[aria-label=\"use-cases-last-card\"]');if(!target)return;const width=window.innerWidth;if(width>=1200){target.style.paddingRight=\"100px\";}else if(width>=810){target.style.paddingRight=\"40px\";}else{target.style.paddingRight=\"20px\";}};updatePadding();window.addEventListener(\"resize\",updatePadding);return()=>window.removeEventListener(\"resize\",updatePadding);},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withReadMoreUnderline(Component){const WrappedComponent=props=>{useEffect(()=>{const applyUnderline=()=>{// Query ALL divs in the document, not just under one container\nconst elements=document.querySelectorAll(\"div\");elements.forEach(el=>{// Check if this is a direct text node container\nif(el.children.length>0)return;// Skip if it has child elements\nconst text=el.textContent?.trim();if(text!==\"Read more\"&&text!==\"Read less\")return;if(el.dataset.readmoreProcessed===\"true\")return;el.dataset.readmoreProcessed=\"true\";Object.assign(el.style,{textDecoration:\"underline\",textUnderlineOffset:\"2px\",textDecorationThickness:\"1px\"});});};// Initial run\napplyUnderline();// Observe the whole document body for changes\nconst observer=new MutationObserver(applyUnderline);observer.observe(document.body,{childList:true,subtree:true});return()=>observer.disconnect();},[]);return /*#__PURE__*/_jsx(Component,{...props});};WrappedComponent.displayName=`withReadMoreUnderline(${Component.displayName||Component.name||\"Component\"})`;return WrappedComponent;}const BREAKPOINT=1266;export function withMainImageRadius(Component){return function MainImageWrapper(props){const[isWide,setIsWide]=useState(()=>typeof window!==\"undefined\"&&window.innerWidth>=BREAKPOINT);const mqRef=useRef(null);useEffect(()=>{if(typeof window===\"undefined\")return;const mq=window.matchMedia(`(min-width: ${BREAKPOINT}px)`);mqRef.current=mq;setIsWide(mq.matches);const handler=e=>setIsWide(e.matches);mq.addEventListener(\"change\",handler);return()=>{mq.removeEventListener(\"change\",handler);mqRef.current=null;};},[]);const overrideStyle={borderTopLeftRadius:\"10px\",borderBottomLeftRadius:\"10px\",borderTopRightRadius:isWide?\"10px\":\"0px\",borderBottomRightRadius:isWide?\"10px\":\"0px\",transition:\"border-top-right-radius 0.3s ease, border-bottom-right-radius 0.3s ease\"};return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,...overrideStyle}});};}export function withMainImageRadiusLeft(Component){return function MainImageWrapperLeft(props){const[isWide,setIsWide]=useState(()=>typeof window!==\"undefined\"&&window.innerWidth>=BREAKPOINT);const mqRef=useRef(null);useEffect(()=>{if(typeof window===\"undefined\")return;const mq=window.matchMedia(`(min-width: ${BREAKPOINT}px)`);mqRef.current=mq;setIsWide(mq.matches);const handler=e=>setIsWide(e.matches);mq.addEventListener(\"change\",handler);return()=>{mq.removeEventListener(\"change\",handler);mqRef.current=null;};},[]);const overrideStyle={borderTopLeftRadius:\"10px\",borderBottomLeftRadius:\"10px\",borderTopRightRadius:isWide?\"10px\":\"0px\",borderBottomRightRadius:isWide?\"10px\":\"0px\",transition:\"border-top-right-radius 0.3s ease, border-bottom-right-radius 0.3s ease\"};return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,...overrideStyle}});};}export function withMainImageRadiusRight(Component){return function MainImageWrapperRight(props){const[isWide,setIsWide]=useState(()=>typeof window!==\"undefined\"&&window.innerWidth>=BREAKPOINT);const mqRef=useRef(null);useEffect(()=>{if(typeof window===\"undefined\")return;const mq=window.matchMedia(`(min-width: ${BREAKPOINT}px)`);mqRef.current=mq;setIsWide(mq.matches);const handler=e=>setIsWide(e.matches);mq.addEventListener(\"change\",handler);return()=>{mq.removeEventListener(\"change\",handler);mqRef.current=null;};},[]);const overrideStyle={borderTopRightRadius:\"10px\",borderBottomRightRadius:\"10px\",borderTopLeftRadius:isWide?\"10px\":\"0px\",borderBottomLeftRadius:isWide?\"10px\":\"0px\",transition:\"border-top-left-radius 0.3s ease, border-bottom-left-radius 0.3s ease\"};return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,...overrideStyle}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withGridBackground\":{\"type\":\"reactHoc\",\"name\":\"withGridBackground\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withReadMoreUnderline\":{\"type\":\"reactHoc\",\"name\":\"withReadMoreUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FixNumberFont\":{\"type\":\"reactHoc\",\"name\":\"FixNumberFont\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMainImageRadius\":{\"type\":\"reactHoc\",\"name\":\"withMainImageRadius\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMainImageRadiusLeft\":{\"type\":\"reactHoc\",\"name\":\"withMainImageRadiusLeft\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMainImageRadiusRight\":{\"type\":\"reactHoc\",\"name\":\"withMainImageRadiusRight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withResponsivePaddingForUseCasesSection\":{\"type\":\"re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