{"version":3,"file":"Glass.D2EG0NDV.mjs","names":["__esmMin","c","init_jsx_runtime","ensureNightCss","st","NIGHT_CSS","withGlass","Component","props","GLASS","init_Glass"],"sources":["https:/framerusercontent.com/modules/WPNYpwVxyMopE4lqmzuU/OgrtKulOrwu68FXGulvi/Glass.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// Case study media in a glass frame, like a piece opened on the Play page: a thin ring of\n// glass, the same on all four sides, no drop shadow, 4px corners.  The media sits inside the\n// ring, so the frame never covers it.\nconst GLASS={boxSizing:\"border-box\",border:\"9px solid transparent\",borderRadius:4,background:\"linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)) border-box, color-mix(in srgb, var(--jm-ink, #0D0D0E) 5%, transparent) border-box\",boxShadow:// Inside the edge: the frames sit flush in clipping parents, which cut off an outer ring on three sides.\n\"inset 0 0 0 1px color-mix(in srgb, var(--jm-ink, #0D0D0E) 9%, transparent), inset 0 0 0 2px rgba(255,255,255,0.5)\",overflow:\"hidden\"};// Night: a dark clear pane instead of the white band (which turns grey and muddy over a dark page).\nconst NIGHT_CSS=\"html[data-theme=dark] .jm-glass{background:linear-gradient(rgba(255,255,255,0.06),rgba(255,255,255,0.06)) border-box,#121214 border-box !important;box-shadow:inset 0 0 0 1px rgba(255,255,255,0.1) !important}\";function ensureNightCss(){if(typeof document===\"undefined\"||document.getElementById(\"jm-glass-night\"))return;const st=document.createElement(\"style\");st.id=\"jm-glass-night\";st.textContent=NIGHT_CSS;document.head.appendChild(st);}export function withGlass(Component){return props=>{ensureNightCss();return /*#__PURE__*/_jsx(Component,{...props,className:[props.className,\"jm-glass\"].filter(Boolean).join(\" \"),style:{...props.style,...GLASS}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withGlass\":{\"type\":\"reactHoc\",\"name\":\"withGlass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Glass.map"],"mappings":"A,oGAKkO,SAASG,GAAgB,CAAC,GAAG,OAAO,SAAW,KAAa,SAAS,eAAe,gBAAgB,EAAE,OAAO,IAAMC,EAAG,SAAS,cAAc,OAAO,EAAE,EAAG,GAAG,iBAAiB,EAAG,YAAYC,EAAU,SAAS,KAAK,YAAYD,CAAE,CAAE,CAAC,SAAgBE,EAAU,EAAU,CAAC,MAAO,KAAQH,EAAe,EAAsB,gBAAKI,EAAU,CAAC,GAAGC,EAAM,UAAU,CAACA,EAAM,UAAU,UAAU,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,EAAE,MAAM,CAAC,GAAGA,EAAM,MAAM,GAAGC,CAAK,CAAC,CAAC,EAAI,C,0CAFxpB,EAAM,CAAC,UAAU,aAAa,OAAO,wBAAwB,aAAa,EAAE,WAAW,kJAAkJ,UAC/O,oHAAoH,SAAS,QAAQ,EAC/H,EAAU,iN"}