{"version":3,"file":"GlassLayer.CtHAsDMa.mjs","names":["React.useRef","__esmMin","de","p","c","init_jsx_runtime","init_npm_react_18_3_1","ce","addPropertyControls","RenderTarget","init_framer_BisrWwwE","ControlType","GlassLayer","ref","props","el","card","red","enter","leave","move","b","radius","R","CSS","init_GlassLayer"],"sources":["https:/framerusercontent.com/modules/V7CG0paDl9iEEB2JmQXk/SJCNqktmPZTvlValhXtN/GlassLayer.js"],"sourcesContent":["/* GlassLayer: the glass under a native card (28 Oct 2026 overhaul).\n   Place it as the FIRST child of a card frame, absolutely positioned to fill\n   it (top, right, bottom, left 0); the card's own text and buttons sit on top.\n   It draws the glass over the room (blur 22 px, saturate 150%, a sheen from\n   the top edge, a 1 px inner highlight, a soft shadow) and, when \"Hover\" is\n   on, the tile's behaviour: the light follows the cursor across the glass,\n   the edge brightens and the card lifts 3 px. Reduced motion: no lift.\n   Kinds: card (radius 20), bezel (the screenshot frame, radius 24), pill\n   (buttons, radius 999), circle (the step numbers). */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";const CSS=`\n.agl{position:absolute;inset:0;border:1px solid var(--token-f09634ce-7286-4096-8fdf-eb6215adc4d5);pointer-events:none;overflow:hidden;\n  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,0) 42%),var(--token-c751f4a0-6a0c-434d-94d7-77e6559b703d);\n  -webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%);\n  box-shadow:inset 0 1px 0 var(--token-1b20de6b-345c-4a76-ae3f-947016574654),0 24px 60px -34px rgba(0,0,0,.6);\n  transition:border-color .3s,box-shadow .3s}\nhtml[data-theme=\"light\"] .agl{background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,0) 50%),var(--token-c751f4a0-6a0c-434d-94d7-77e6559b703d);box-shadow:inset 0 1px 0 #fff,0 24px 60px -34px rgba(120,20,70,.35)}\n.agl::after{content:\"\";position:absolute;inset:0;border-radius:inherit;opacity:0;transition:opacity .3s;\n  background:radial-gradient(280px circle at var(--mx,50%) var(--my,0%),rgba(255,255,255,.12),transparent 60%)}\nhtml[data-theme=\"light\"] .agl::after{background:radial-gradient(280px circle at var(--mx,50%) var(--my,0%),rgba(255,255,255,.75),transparent 60%)}\n.agl.hot{border-color:rgba(255,255,255,.22)}\nhtml[data-theme=\"light\"] .agl.hot{border-color:#fff}\n.agl.hot::after{opacity:1}\n.agl.bezel{background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.02)),var(--token-c751f4a0-6a0c-434d-94d7-77e6559b703d);\n  box-shadow:inset 0 1px 0 var(--token-1b20de6b-345c-4a76-ae3f-947016574654),0 50px 100px -40px rgba(0,0,0,.7),0 0 0 1px rgba(0,0,0,.04)}\nhtml[data-theme=\"light\"] .agl.bezel{background:linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,.3)),var(--token-c751f4a0-6a0c-434d-94d7-77e6559b703d);box-shadow:inset 0 1px 0 #fff,0 50px 100px -40px rgba(120,20,70,.4)}\n.agl.pill{-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%);box-shadow:none;background:var(--token-c751f4a0-6a0c-434d-94d7-77e6559b703d)}`;const R={card:\"20px\",bezel:\"24px\",pill:\"999px\",circle:\"50%\"};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function GlassLayer(props){const ref=React.useRef(null);React.useEffect(()=>{if(!props.hover||RenderTarget.current()===RenderTarget.canvas)return;const el=ref.current;if(!el)return;/* the card: the frame this layer sits in (layer > component container > card) */const card=el.parentElement&&el.parentElement.parentElement;if(!card)return;const red=()=>{try{return matchMedia(\"(prefers-reduced-motion: reduce)\").matches;}catch(_){return false;}};card.style.transition=(card.style.transition?card.style.transition+\",\":\"\")+\"translate .3s cubic-bezier(.2,.8,.2,1)\";const enter=()=>{el.classList.add(\"hot\");if(!red())card.style.translate=\"0 -3px\";};const leave=()=>{el.classList.remove(\"hot\");card.style.translate=\"\";};const move=e=>{const b=el.getBoundingClientRect();el.style.setProperty(\"--mx\",e.clientX-b.left+\"px\");el.style.setProperty(\"--my\",e.clientY-b.top+\"px\");};card.addEventListener(\"pointerenter\",enter);card.addEventListener(\"pointerleave\",leave);card.addEventListener(\"pointermove\",move);return()=>{card.removeEventListener(\"pointerenter\",enter);card.removeEventListener(\"pointerleave\",leave);card.removeEventListener(\"pointermove\",move);};},[props.hover]);const radius=props.radius>0?props.radius+\"px\":R[props.kind]||\"20px\";return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",inset:0},\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:CSS}}),/*#__PURE__*/_jsx(\"div\",{ref:ref,className:\"agl \"+(props.kind===\"bezel\"?\"bezel\":props.kind===\"pill\"?\"pill\":\"\"),style:{borderRadius:radius}})]});}GlassLayer.defaultProps={kind:\"card\",hover:true,radius:0};addPropertyControls(GlassLayer,{kind:{type:ControlType.Enum,title:\"Kind\",options:[\"card\",\"bezel\",\"pill\",\"circle\"],optionTitles:[\"Card\",\"Bezel\",\"Pill\",\"Circle\"]},hover:{type:ControlType.Boolean,title:\"Hover\"},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:999,step:1,unit:\"px\",description:\"0 uses the kind's radius\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GlassLayer\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GlassLayer.map"],"mappings":"A,gMA2BG,SAAwBY,EAAW,EAAM,CAAC,IAAMC,EAAIb,EAAa,IAAI,EAAEO,MAAoB,CAAC,GAAG,CAACO,EAAM,OAAOL,EAAa,QAAQ,IAAIA,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