{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/adnBHGrZovk7a4QeLvYG/UH6YcHMQRvsvsPCKJ1t4/WithGrid.js"],
  "sourcesContent": ["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useEffect, useState } from \"react\";\nimport debounce from \"lodash/debounce\";\nexport function withGridLine(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      style: {\n        ...props.style,\n        transformOrigin: \"top left\"\n      },\n      animate: {\n        scaleX: [0, 1]\n      },\n      transition: {\n        duration: 2,\n        ease: [.075, .82, .165, 1]\n      }\n    });\n  };\n}\nexport function withGridWidth(Component) {\n  return props => {\n    const DEFAULT_WIDTH = 25;\n    const [width, setWidth] = useState(DEFAULT_WIDTH);\n    useEffect(() => {\n      const style = document.createElement(\"style\");\n      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            `;\n      document.head.appendChild(style);\n      return () => {\n        document.head.removeChild(style);\n      };\n    }, []);\n    useEffect(() => {\n      const onResize = () => {\n        if (window.matchMedia(\"(max-width: 609px)\").matches) {\n          setWidth(100);\n        } else if (window.matchMedia(\"(max-width: 1100px)\").matches) {\n          setWidth(50);\n        } else {\n          setWidth(DEFAULT_WIDTH);\n        }\n      };\n      const debouncedResize = debounce(onResize, 200);\n      window.addEventListener(\"resize\", debouncedResize);\n      onResize();\n      return () => {\n        window.removeEventListener(\"resize\", debouncedResize);\n      };\n    }, []);\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      className: `${props.className} grid-align`,\n      style: {\n        ...props.style,\n        width: `${width}vw`\n      }\n    });\n  };\n}\nexport function withGridWidthImage(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      style: {\n        ...props.style,\n        width: \"75vw\"\n      }\n    });\n  };\n}\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"withGridWidth\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"withGridWidth\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"withGridWidthImage\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"withGridWidthImage\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"withGridLine\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"withGridLine\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./WithGrid.map"],
  "mappings": "kLAAAA,IAqBO,SAASC,EAAcC,EAAW,CACvC,OAAOC,GAAS,CAEd,GAAM,CAACC,EAAOC,CAAQ,EAAIC,EAAS,EAAa,EAChD,OAAAC,EAAU,IAAM,CACd,IAAMC,EAAQ,SAAS,cAAc,OAAO,EAC5C,OAAAA,EAAM,YAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cASpB,SAAS,KAAK,YAAYA,CAAK,EACxB,IAAM,CACX,SAAS,KAAK,YAAYA,CAAK,CACjC,CACF,EAAG,CAAC,CAAC,EACLD,EAAU,IAAM,CACd,IAAME,EAAW,IAAM,CACjBC,EAAO,WAAW,oBAAoB,EAAE,QAC1CL,EAAS,GAAG,EACHK,EAAO,WAAW,qBAAqB,EAAE,QAClDL,EAAS,EAAE,EAEXA,EAAS,EAAa,CAE1B,EACMM,EAAkBC,EAASH,EAAU,GAAG,EAC9C,OAAAC,EAAO,iBAAiB,SAAUC,CAAe,EACjDF,EAAS,EACF,IAAM,CACXC,EAAO,oBAAoB,SAAUC,CAAe,CACtD,CACF,EAAG,CAAC,CAAC,EACeE,EAAKX,EAAW,CAClC,GAAGC,EACH,UAAW,GAAGA,EAAM,uBACpB,MAAO,CACL,GAAGA,EAAM,MACT,MAAO,GAAGC,KACZ,CACF,CAAC,CACH,CACF,CACO,SAASU,EAAmBZ,EAAW,CAC5C,OAAOC,GACeU,EAAKX,EAAW,CAClC,GAAGC,EACH,MAAO,CACL,GAAGA,EAAM,MACT,MAAO,MACT,CACF,CAAC,CAEL",
  "names": ["init_shims", "withGridWidth", "Component", "props", "width", "setWidth", "ye", "ue", "style", "onResize", "window", "debouncedResize", "l", "p", "withGridWidthImage"]
}
