{"version":3,"file":"shared-lib.Bms9BQHm.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/rL5JQ0t1fMc6tjWOnMnq/l7nQ4ednwpFDV1Vn2iLy/PrismLoader.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{useIsStaticRenderer}from\"framer\";const KEY=\"glipp:intro\";const TOTAL=1900// ms until the overlay is fully gone\n;// Centrelines traced from the logo's outlines (viewBox 0 0 31.56 33.05)\nconst PRISM=\"M0.68 22.285 15.145 0.93 29.665 25.03 13.045 31.62Z\"// ≈ 87.3 long\n;const EDGE=\"M15.142 0.93 13.038 31.62\"// ≈ 30.8\n;const A=[.68,32.75];const B=[14.27,14.29];const C=[31.3,3.77];const RAYS=[{color:\"#D91CD9\",angle:-7},{color:\"#58C142\",angle:0},{color:\"#2F5BFF\",angle:7}];function rayEnd(angle){const dx=C[0]-B[0];const dy=C[1]-B[1];const r=angle*Math.PI/180;return[B[0]+(dx*Math.cos(r)-dy*Math.sin(r))*1.04,B[1]+(dx*Math.sin(r)+dy*Math.cos(r))*1.04];}const E=\"cubic-bezier(0.22, 1, 0.36, 1)\";const CSS=`\n.glipp-intro { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: #1c1c1c; animation: gi-lift 0.55s ease 1.3s forwards; }\n.glipp-intro svg { width: 60px; height: 63px; overflow: visible; animation: gi-settle 0.55s ${E} 1.3s forwards; }\n.glipp-intro .gi-prism { stroke-dasharray: 90 90; stroke-dashoffset: 90; animation: gi-draw 0.6s ${E} 0.05s forwards; }\n.glipp-intro .gi-edge { stroke-dasharray: 32 32; stroke-dashoffset: 32; animation: gi-draw 0.45s ${E} 0.3s forwards; }\n.glipp-intro .gi-in { stroke-dasharray: 24 24; stroke-dashoffset: 24; animation: gi-draw 0.28s cubic-bezier(0.5, 0, 0.75, 0) 0.62s forwards; }\n.glipp-intro .gi-out { opacity: 0; animation: gi-fade-in 0.35s ease 1.05s forwards; }\n.glipp-intro .gi-ray { stroke-dasharray: 22 22; stroke-dashoffset: 22; animation: gi-draw 0.32s ${E} 0.88s forwards, gi-fade-out 0.35s ease 1.12s forwards; }\n.glipp-intro .gi-r1 { animation-delay: 0.9s, 1.14s; }\n.glipp-intro .gi-r2 { animation-delay: 0.92s, 1.16s; }\n@keyframes gi-draw { to { stroke-dashoffset: 0; } }\n@keyframes gi-fade-in { to { opacity: 1; } }\n@keyframes gi-fade-out { to { opacity: 0; } }\n@keyframes gi-settle { to { transform: scale(0.92); opacity: 0; filter: blur(2px); } }\n@keyframes gi-lift { to { opacity: 0; visibility: hidden; } }\nhtml[data-glipp-intro=\"seen\"] .glipp-intro { display: none; }\n@media (prefers-reduced-motion: reduce) { .glipp-intro { display: none; } }\n`;// Runs while the HTML is parsed: skip the intro if this session already saw it\nconst SCRIPT=`try{var h=document.documentElement;if(sessionStorage.getItem(\"${KEY}\"))h.setAttribute(\"data-glipp-intro\",\"seen\");else sessionStorage.setItem(\"${KEY}\",\"1\")}catch(e){}`;const line=(p,q)=>`M${p[0]} ${p[1]}L${q[0]} ${q[1]}`;/**\n * @framerIntrinsicWidth 40\n * @framerIntrinsicHeight 20\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function PrismLoader(props){const isStatic=useIsStaticRenderer();const[done,setDone]=useState(false);// Take the overlay out once it has lifted, and mark the document so pages\n// reached by in-site navigation never replay it\nuseEffect(()=>{const t=window.setTimeout(()=>{document.documentElement.setAttribute(\"data-glipp-intro\",\"seen\");setDone(true);},TOTAL);return()=>window.clearTimeout(t);},[]);// On the canvas: a small tag so the layer can be found, never an overlay\nif(isStatic){return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,width:\"100%\",height:\"100%\",display:\"grid\",placeItems:\"center\",fontFamily:\"Inter, sans-serif\",fontSize:10,color:\"#8d8d8d\",border:\"1px dashed #5a5a5a\",borderRadius:4,boxSizing:\"border-box\"},children:\"Intro\"});}return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,position:\"relative\",width:\"100%\",height:\"100%\",pointerEvents:\"none\"},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:CSS}}),/*#__PURE__*/_jsx(\"script\",{dangerouslySetInnerHTML:{__html:SCRIPT}}),!done&&/*#__PURE__*/_jsx(\"div\",{className:\"glipp-intro\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 31.56 33.05\",fill:\"none\",strokeWidth:1.15,strokeLinejoin:\"miter\",children:[/*#__PURE__*/_jsx(\"path\",{className:\"gi-prism\",d:PRISM,stroke:\"#fff\"}),/*#__PURE__*/_jsx(\"path\",{className:\"gi-edge\",d:EDGE,stroke:\"#fff\"}),/*#__PURE__*/_jsx(\"path\",{className:\"gi-in\",d:line(A,B),stroke:\"#fff\",strokeWidth:1}),/*#__PURE__*/_jsx(\"path\",{className:\"gi-out\",d:line(B,C),stroke:\"#fff\",strokeWidth:1}),RAYS.map((r,i)=>/*#__PURE__*/_jsx(\"path\",{className:`gi-ray gi-r${i}`,d:line(B,rayEnd(r.angle)),stroke:r.color,strokeWidth:.95,strokeLinecap:\"round\"},r.color))]})})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PrismLoader\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"20\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"40\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PrismLoader.map"],"mappings":"gMAI2J,SAAS,EAAO,EAAM,CAAC,IAAM,EAAG,EAAE,GAAG,EAAE,GAAS,EAAG,EAAE,GAAG,EAAE,GAAS,EAAE,EAAM,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAG,KAAK,IAAI,CAAC,EAAE,EAAG,KA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