{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/6Gz712q9K15ftuXhaCzA/n8Oqv3ushc6Lig5yQBbN/HorizontalScroll.js", "ssg:https://framerusercontent.com/modules/hCDaOBpNKXFLPZUTtBlO/MmMi8qSkIOghA4w5Ygij/WithGrid.js"],
  "sourcesContent": ["import{jsx as e,jsxs as t}from\"react/jsx-runtime\";import{addPropertyControls as r,ControlType as i}from\"framer\";import{useLayoutEffect as n,useRef as l,useState as o}from\"react\";import{motion as s,useScroll as c,useSpring as d,useTransform as f}from\"framer-motion\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/docs/guides/auto-sizing\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function u(r){let i=l(null),u=l(null),a=l(null),[h,m]=o(0),[p,v]=o(0);n(()=>{m(u.current.scrollWidth);let e=new ResizeObserver(e=>{for(let t of e)v(t.contentRect.width),m(u.current.scrollWidth);});e.observe(a.current);let t=new MutationObserver(e=>{for(let t of e)m(u.current.scrollWidth);});return t.observe(u.current,{attributes:!0,attributeFilter:[\"style\"]}),()=>{e.disconnect(),t.disconnect();};},[]);let{scrollYProgress:y}=c({target:i}),b=f(y,[0,1],[0,-h+p]),w=d(b,{damping:60,mass:1,stiffness:500});return /*#__PURE__*/t(\"div\",{ref:i,...r,children:[/*#__PURE__*/e(\"div\",{style:{position:\"sticky\",top:0},children:/*#__PURE__*/e(\"div\",{style:{overflow:\"hidden\"},children:/*#__PURE__*/e(s.div,{ref:u,style:{x:w},children:r.children})})}),/*#__PURE__*/e(\"div\",{ref:a,\"aria-hidden\":\"true\",style:{width:\"100%\",height:h}})]});}r(u,{children:{type:i.ComponentInstance}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HorizontalScroll\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HorizontalScroll.map", "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": "4QAMkB,SAARA,EAAmBC,EAAE,CAA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"useScroll", "b", "useTransform", "w", "useSpring", "motion", "addPropertyControls", "ControlType", "withGridWidth", "Component", "props", "width", "setWidth", "ye", "ue", "style", "onResize", "window", "debouncedResize", "l", "p", "withGridWidthImage"]
}
