{"version":3,"file":"Track.CdFnHkr7.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/0t14oN3Pysz2xIBkDE9Q/hHneYqaoamfZOgDW9Qu8/Track.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef}from\"react\";/**\n * Scroll tracks and pins\n *\n * Overrides for the tall sections that hold a scene while the page scrolls past it.\n * Put a track override on the section, and withPin on the sticky layer inside it.\n * The setlist track takes its length from the number of songs (the first song sets it).\n * With reduced motion switched on, tracks fall back to normal height and nothing pins.\n */const STYLES=`\n[data-sg-track]{position:relative}\n.sg-front{height:calc(100vh + 170vh)!important;height:calc(100svh + 170svh)!important}\n.sg-lights{height:calc(100vh + 100vh)!important;height:calc(100svh + 100svh)!important}\n.sg-pin{height:100vh!important;height:100svh!important;top:0!important}\n.sg-fold{height:100vh!important;height:100svh!important}\n@media (prefers-reduced-motion: reduce){\n.sg-front,.sg-lights,[data-sg-track=\"set\"]{height:auto!important}\n.sg-pin{position:relative!important}\n}\n`;const mark=(cls,track)=>Component=>/*#__PURE__*/forwardRef((props,ref)=>{const extra=track?{\"data-sg-track\":track}:{};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:STYLES}}),/*#__PURE__*/_jsx(Component,{...props,...extra,ref:ref,className:[props.className,cls].filter(Boolean).join(\" \")})]});});/** The opening section: the setlist plays while this section scrolls past. */export function withSetTrack(Component){return mark(\"sg-set\",\"set\")(Component);}/** The Front Row section: about two and a half windows of walking through the crowd. */export function withFrontTrack(Component){return mark(\"sg-front\",\"front\")(Component);}/** The closing section: the house lights come up over about one window of scrolling. */export function withLightsTrack(Component){return mark(\"sg-lights\",\"lights\")(Component);}/** A sticky layer exactly as tall as the visible window, so nothing sits behind a phone's toolbar. */export function withPin(Component){return mark(\"sg-pin\")(Component);}/** A layer exactly one visible window tall (no pin). */export function withFold(Component){return mark(\"sg-fold\")(Component);}/**\n * For links inside the open phone menu: runs the layer's own tap action (closing the menu)\n * on the click itself, so iOS Safari follows the link instead of swallowing the tap.\n */export function withTapFix(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const{onTap,onClick,...rest}=props;return /*#__PURE__*/_jsx(Component,{...rest,ref:ref,onClick:e=>{if(onClick)onClick(e);if(onTap)onTap(e,{});}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withFold\":{\"type\":\"reactHoc\",\"name\":\"withFold\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLightsTrack\":{\"type\":\"reactHoc\",\"name\":\"withLightsTrack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFrontTrack\":{\"type\":\"reactHoc\",\"name\":\"withFrontTrack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTapFix\":{\"type\":\"reactHoc\",\"name\":\"withTapFix\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSetTrack\":{\"type\":\"reactHoc\",\"name\":\"withSetTrack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPin\":{\"type\":\"reactHoc\",\"name\":\"withPin\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Track.map"],"mappings":"gIAiBmb,SAAgB,EAAa,EAAU,CAAC,OAAO,EAAK,SAAS,KAAK,CAAC,CAAC,CAAS,CAAE,CAAyF,SAAgB,EAAe,EAAU,CAAC,OAAO,EAAK,WAAW,OAAO,CAAC,CAAC,CAAS,CAAE,CAAyF,SAAgB,EAAgB,EAAU,CAAC,OAAO,EAAK,YAAY,QAAQ,CAAC,CAAC,CAAS,CAAE,CAAuG,SAAgB,EAAQ,EAAU,CAAC,OAAO,EAAK,QAAQ,CAAC,CAAC,CAAS,CAAE,CAGzgC,SAAgB,EAAW,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,QAAM,UAAQ,GAAG,GAAM,EAAM,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAS,MAAI,QAAQ,GAAG,CAAI,GAAQ,EAAQ,CAAC,EAAK,GAAM,EAAM,EAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAAC,CAAE,qBApB7J,IAA8B,EAOnG,EAAO;;;;;;;;;;EAUR,GAAM,EAAI,IAAQ,GAAwB,GAAY,EAAM,IAAM,CAAC,IAAM,EAAM,EAAM,CAAC,gBAAgB,CAAK,EAAE,CAAC,EAAE,OAAoB,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAO,CAAM,CAAC,CAAC,EAAe,EAAK,EAAU,CAAC,GAAG,EAAM,GAAG,EAAU,MAAI,UAAU,CAAC,EAAM,UAAU,CAAG,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC"}