{"version":3,"file":"WithGrid.DIRv5Jcz.mjs","names":["useState","debounce"],"sources":["https:/framerusercontent.com/modules/VqIcVfFXD6Y7W22wZ3J0/SrY5vIsGw3iPPAnvfjLI/WithGrid.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import debounce from\"lodash/debounce\";export function withGridLine(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,transformOrigin:\"top left\"},animate:{scaleX:[0,1]},transition:{duration:2,ease:[.075,.82,.165,1]}});};}export function withGridWidth(Component){return props=>{const DEFAULT_WIDTH=25;const[width,setWidth]=useState(DEFAULT_WIDTH);useEffect(()=>{const style=document.createElement(\"style\");style.textContent=`\n                .grid-align:nth-child(2n) {\n                    justify-content: end;\n                }\n\n                .grid-align:nth-child(3n) {\n                    justify-content: center;\n                }\n            `;document.head.appendChild(style);return()=>{document.head.removeChild(style);};},[]);useEffect(()=>{const onResize=()=>{if(window.matchMedia(\"(max-width: 609px)\").matches){setWidth(100);}else if(window.matchMedia(\"(max-width: 1100px)\").matches){setWidth(50);}else{setWidth(DEFAULT_WIDTH);}};const debouncedResize=debounce(onResize,200);window.addEventListener(\"resize\",debouncedResize);onResize();return()=>{window.removeEventListener(\"resize\",debouncedResize);};},[]);return /*#__PURE__*/_jsx(Component,{...props,className:`${props.className} grid-align`,style:{...props.style,width:`${width}vw`}});};}export function withGridWidthImage(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,width:\"75vw\",minWidth:0}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withGridLine\":{\"type\":\"reactHoc\",\"name\":\"withGridLine\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGridWidth\":{\"type\":\"reactHoc\",\"name\":\"withGridWidth\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGridWidthImage\":{\"type\":\"reactHoc\",\"name\":\"withGridWidthImage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WithGrid.map"],"mappings":"0LAAwV,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,GAA4B,CAAC,EAAM,GAAUA,EAAS,GAAc,CAQe,OARd,MAAc,CAAC,IAAM,EAAM,SAAS,cAAc,QAAQ,CAQhe,MARie,GAAM,YAAY;;;;;;;;cAQphB,SAAS,KAAK,YAAY,EAAM,KAAW,CAAC,SAAS,KAAK,YAAY,EAAM,GAAK,EAAE,CAAC,CAAC,MAAc,CAAC,IAAM,MAAa,CAAI,EAAO,WAAW,qBAAqB,CAAC,QAAS,EAAS,IAAI,CAAU,EAAO,WAAW,sBAAsB,CAAC,QAAS,EAAS,GAAG,CAAO,EAAS,GAAc,EAAU,EAAgBC,EAAS,EAAS,IAAI,CAA8D,OAA7D,EAAO,iBAAiB,SAAS,EAAgB,CAAC,GAAU,KAAW,CAAC,EAAO,oBAAoB,SAAS,EAAgB,GAAK,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,UAAU,GAAG,EAAM,UAAU,aAAa,MAAM,CAAC,GAAG,EAAM,MAAM,MAAM,GAAG,EAAM,IAAI,CAAC,CAAC,EAAI,SAAgB,EAAmB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,MAAM,OAAO,SAAS,EAAE,CAAC,CAAC,sBARxtB,IAAsC,IAAsC"}