import{a as e}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-34QOOIQ4.js";import{a as n}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-LL6AKNEK.js";import{a as p}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-LQ2PFFE3.js";import{d as t}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-H7QMOPDN.js";var o=t(p()),l=t(n()),g=({children:r,className:c,style:a,unUsed:s})=>{let[d,w]=(0,o.useState)(0);return(0,o.useEffect)(()=>{let i=()=>{let f=window.innerWidth>992&&(window.scrollY>0||window.pageYOffset>0)?window.scrollY||window.pageYOffset:0;w(f)};return window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i)}},[]),(0,l.jsx)("div",{id:"scrollContainer",className:s?"contents":e("bg-gray-200 relative flex h-full w-full items-start justify-center",c),style:a,children:(0,l.jsx)("div",{className:s?"contents":e("transition-top w-full duration-300 ease-in-out sm:relative md:sticky",d>100?"transition-top top-[100px] w-full duration-300 ease-in-out":"md:top-0"),children:r})})};export{g as a};