{"version":3,"file":"RoundLink.FMBUGy6V.mjs","names":["ensureRollStyle","ROLL_ID","ROLL_OUT","ROLL_FILL","ROLL_H","ROLL_INV","_Fragment","c","RollIcon","ensureStyle","STYLE_ID","useState","useRef","startTransition","BORDER","SURFACE","INK","INK_SOFT","INK","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","navigator","window","te","l","_e","p","c","init_jsx_runtime","ce","de","init_framer_Bf4_tcb2","ControlType","useIsStaticRenderer","addPropertyControls","ensureRollStyle$1","ROLL_ID$1","s","fill","st","up","ROLL_OUT$1","ROLL_FILL$1","ROLL_H$1","ROLL_INV$1","rollDelays","total","i","RollText","chars","text","n","d","start","c$1","ROLL_SR","RollIcon$1","ensureStyle$1","STYLE_ID$1","TEXT_INV","EmailCopy","props","isStatic","copied","setCopied","timer","copy","email","t","font","BORDER$1","SURFACE$1","INK$2","showLabel","INK_SOFT$1","init_EmailCopy","ensureStyle","STYLE_ID","INK$1","FooterLink","newTab","INK_SOFT","label","init_FooterLink","ensureRollStyle","ROLL_ID","ROLL_OUT","ROLL_FILL","ROLL_H","ROLL_INV","RollIcon","RoundLink","onClick","icon","link","lenis","BORDER","SURFACE","INK","init_RoundLink"],"sources":["https:/framerusercontent.com/modules/NpMIf7yndQK3LuDhWEeb/du0AK73mJbItfkpRi7VF/EmailCopy.js","https:/framerusercontent.com/modules/AcuiGsa2o9hHHME7H54I/nahR7jdSZgr4h5rGeaZ9/FooterLink.js","https:/framerusercontent.com/modules/gcEK5jdl3AHA5PqF8YZY/dCZQj5228QLocbOUI47u/RoundLink.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";// Hover \"rotolo\". Stesso blocco in SweepButton, EmailCopy, RoundLink, ThemeToggle e LocalTime\n// (i code file di Framer non possono importarsi a vicenda): se cambi qui, cambia anche lì.\n// Il riempimento sale dal basso con il bordo curvo; le lettere salgono una alla volta e dal basso\n// arriva la loro copia nel colore invertito (è il text-shadow), come i titoli di TextRise.tsx.\n// Le lettere nuove salgono insieme al riempimento: mai testo scuro su fondo scuro.\n// Le icone fanno lo stesso con una seconda copia, già nel colore invertito, sotto la prima.\n// roll-plain (i link di testo): niente riempimento, la copia ha lo stesso colore del link.\nconst ROLL_ID=\"roll-style-v2\";const ROLL_FILL=\"var(--token-87fce4c7-d8e4-43aa-9aa4-c43ac8633a01, #474338)\";const ROLL_INV=\"var(--token-23690a27-b284-46fa-9c43-c5d4822475d9, #fff)\";const ROLL_IN=\"cubic-bezier(.16,1,.3,1)\";const ROLL_OUT=\"cubic-bezier(.4,0,.2,1)\";const ROLL_RISE=\"cubic-bezier(.6,0,.2,1)\";const ROLL_H=\"1.25em\";function ensureRollStyle(){if(typeof document===\"undefined\"||document.getElementById(ROLL_ID))return;const s=document.createElement(\"style\");s.id=ROLL_ID;const fill=st=>\".roll\"+st+\"::before{top:-60%;border-radius:40%;transition:top .8s \"+ROLL_RISE+\",border-radius .8s \"+ROLL_RISE+\"}\";const up=st=>\".roll\"+st+\" .roll-c{translate:0 -\"+ROLL_H+\";transition:translate .6s \"+ROLL_IN+\" var(--di,140ms)}\"+\".roll\"+st+\" .roll-i>*{translate:0 -100%;transition:translate .6s \"+ROLL_IN+\" 160ms}\";s.textContent=\".roll{isolation:isolate;overflow:hidden;transition:scale .2s \"+ROLL_OUT+\"}\"+\".roll:active{scale:.97}\"+\".roll::before{content:'';position:absolute;left:-25%;width:150%;height:220%;top:100%;border-radius:50%;background:\"+ROLL_FILL+\";\"+\"transition:top .45s \"+ROLL_OUT+\",border-radius .45s \"+ROLL_OUT+\";z-index:-1;pointer-events:none}\"+\".roll-l{display:inline-flex;overflow:clip;height:\"+ROLL_H+\";line-height:\"+ROLL_H+\"}\"+\".roll-c{display:inline-block;white-space:pre;text-shadow:0 \"+ROLL_H+\" 0 \"+ROLL_INV+\";transition:translate .35s \"+ROLL_OUT+\" var(--do,0ms)}\"+// La copia invertita sta appena sotto l'icona, fuori dalla maschera: il contenitore resta alto quanto l'icona.\n\".roll-i{position:relative;display:inline-flex;overflow:clip;flex:none}\"+\".roll-i>*{display:flex;transition:translate .35s \"+ROLL_OUT+\"}\"+\".roll-i>.roll-inv{position:absolute;left:0;top:100%;width:100%;justify-content:center}\"+\".roll-inv{color:\"+ROLL_INV+\"}.roll-inv [stroke]:not([stroke=none]):not([stroke=currentColor]){stroke:\"+ROLL_INV+\" !important}\"+\".roll-plain{overflow:visible}.roll-plain::before{content:none}.roll-plain .roll-c{text-shadow:0 \"+ROLL_H+\" 0 currentColor}.roll-plain .roll-inv{color:inherit}\"+\"@media (hover:hover){\"+fill(\":hover\")+up(\":hover\")+\"}\"+fill(\":focus-visible\")+up(\":focus-visible\")+fill(\".roll-hold\")+up(\".roll-hold\")+// Dopo il clic sul tema la view transition toglie :hover: roll-hold tiene il bottone pieno, senza rifare il giro.\n\".roll.roll-hold::before,.roll.roll-hold .roll-c,.roll.roll-hold .roll-i>*{transition:none}\"+\"@media (prefers-reduced-motion:reduce){.roll,.roll::before,.roll *{transition-duration:0s !important;transition-delay:0s !important}}\";document.head.appendChild(s);}// Una riga dura al massimo mezzo secondo: le etichette lunghe (la mail) hanno lettere più fitte.\nfunction rollDelays(i,total){const n=Math.max(1,total);return{di:Math.round(140+i*Math.min(22,500/n))+\"ms\",dout:Math.round(i*Math.min(8,200/n))+\"ms\"};}const ROLL_SR={position:\"absolute\",width:1,height:1,overflow:\"hidden\",clip:\"rect(0 0 0 0)\",clipPath:\"inset(50%)\",whiteSpace:\"nowrap\"};// Etichetta per i code component: lettere visibili ma nascoste agli screen reader, testo vero fuori vista.\nfunction RollText({text,start=0,total}){const chars=Array.from(text);const n=total??chars.length;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{className:\"roll-l\",\"aria-hidden\":\"true\",children:chars.map((c,i)=>{const d=rollDelays(start+i,n);return /*#__PURE__*/_jsx(\"span\",{className:\"roll-c\",style:{\"--di\":d.di,\"--do\":d.dout},children:c},i);})}),/*#__PURE__*/_jsx(\"span\",{style:ROLL_SR,children:text})]});}function RollIcon({children}){return /*#__PURE__*/_jsxs(\"span\",{className:\"roll-i\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"span\",{children:children}),/*#__PURE__*/_jsx(\"span\",{className:\"roll-inv\",children:children})]});}// Pillola con la mail: al clic copia l'indirizzo e mostra \"Copied\".\n// Stesso stile e stesso hover \"rotolo\" dei bottoni della nav (blocco qui sopra).\nconst INK=\"var(--token-206aeda9-4415-4dbc-a636-10ac9ec2ead8, #474338)\";const INK_SOFT=\"var(--token-3ed0aec8-d7c4-4c14-9544-7afc4971e67f, #474338)\";const TEXT_INV=\"var(--token-23690a27-b284-46fa-9c43-c5d4822475d9, #fff)\";const SURFACE=\"var(--token-9f55bf52-c772-43cf-a5fe-2cff4feb418e, transparent)\";const BORDER=\"var(--token-1960ee1d-51e3-4fcc-b6ae-27f3aaadf4f8, rgba(71,67,56,.25))\";// Solo la riga divisoria: il resto dell'hover è il \"rotolo\" del blocco qui sopra.\nconst STYLE_ID=\"email-copy-style-v3\";function ensureStyle(){ensureRollStyle();if(typeof document===\"undefined\"||document.getElementById(STYLE_ID))return;const s=document.createElement(\"style\");s.id=STYLE_ID;s.textContent=\".roll .ec-div{transition:background-color .2s linear .1s,opacity .2s linear .1s}\"+\"@media (hover:hover){.roll:hover .ec-div{background:\"+TEXT_INV+\" !important;opacity:.35;transition:background-color .2s linear .3s,opacity .2s linear .3s}}\"+\".roll:focus-visible .ec-div{background:\"+TEXT_INV+\" !important;opacity:.35}\"+\"@media (prefers-reduced-motion:reduce){.roll .ec-div{transition:none !important}}\";document.head.appendChild(s);}/**\n * @framerIntrinsicWidth 360\n * @framerIntrinsicHeight 72\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight fixed\n */export default function EmailCopy(props){const{email=\"hi@alessandroroasio.com\",showLabel=true}=props;const isStatic=useIsStaticRenderer();const[copied,setCopied]=useState(false);const timer=useRef(null);useEffect(()=>{ensureStyle();return()=>{if(timer.current)window.clearTimeout(timer.current);};},[]);async function copy(){try{await navigator.clipboard.writeText(email);}catch{const t=document.createElement(\"textarea\");t.value=email;document.body.appendChild(t);t.select();document.execCommand(\"copy\");t.remove();}startTransition(()=>setCopied(true));if(timer.current)window.clearTimeout(timer.current);timer.current=window.setTimeout(()=>startTransition(()=>setCopied(false)),2200);}const font={fontFamily:'\"Instrument Sans\", sans-serif',fontSize:16,lineHeight:\"115%\",letterSpacing:\"0em\",whiteSpace:\"nowrap\"};return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"roll\",onClick:isStatic?undefined:copy,\"aria-label\":copied?\"Email copied\":`Copy email ${email}`,style:{...props.style,position:\"relative\",height:\"100%\",minWidth:\"max-content\",margin:0,padding:\"0 24px\",borderRadius:180,border:`1px solid ${BORDER}`,background:SURFACE,display:\"flex\",alignItems:\"center\",gap:16,cursor:\"pointer\",WebkitTapHighlightColor:\"transparent\"},children:[/*#__PURE__*/_jsx(\"span\",{className:\"ec-ink\",style:{...font,color:INK,position:\"relative\"},children:/*#__PURE__*/_jsx(RollText,{text:email,total:email.length+(showLabel?6:0)})}),showLabel&&/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",className:\"ec-div\",style:{width:1,alignSelf:\"stretch\",margin:\"22px 0\",background:BORDER}}),/*#__PURE__*/_jsxs(\"span\",{className:\"ec-ink\",\"aria-live\":\"polite\",style:{...font,color:INK_SOFT,display:\"flex\",alignItems:\"center\",gap:8,minWidth:showLabel?74:0,position:\"relative\"},children:[/*#__PURE__*/_jsx(RollIcon,{children:/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",\"aria-hidden\":\"true\",children:copied?/*#__PURE__*/_jsx(\"path\",{d:\"M3 8.5 6.5 12 13 4.5\",stroke:INK_SOFT,strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"rect\",{x:\"5\",y:\"5\",width:\"8.5\",height:\"8.5\",rx:\"2\",stroke:INK_SOFT,strokeWidth:\"1.3\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M10.5 3.5v-.3A1.7 1.7 0 0 0 8.8 1.5H3.2A1.7 1.7 0 0 0 1.5 3.2v5.6a1.7 1.7 0 0 0 1.7 1.7h.3\",stroke:INK_SOFT,strokeWidth:\"1.3\",strokeLinecap:\"round\"})]})})}),showLabel&&/*#__PURE__*/_jsx(RollText,{text:copied?\"Copied\":\"Copy\",start:email.length,total:email.length+6},copied?\"c\":\"n\")]})]});}addPropertyControls(EmailCopy,{email:{type:ControlType.String,title:\"Email\",defaultValue:\"hi@alessandroroasio.com\"},showLabel:{type:ControlType.Boolean,title:\"Label\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EmailCopy\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"360\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"72\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EmailCopy.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Link del footer (LinkedIn, Medium): stesso testo dei link del footer, con la freccia disegnata\n// e lo stesso hover dei link nella nav (colore + freccia che scivola in diagonale).\nconst INK_SOFT=\"var(--token-3ed0aec8-d7c4-4c14-9544-7afc4971e67f, #474338)\";const INK=\"var(--token-206aeda9-4415-4dbc-a636-10ac9ec2ead8, #474338)\";const STYLE_ID=\"footer-link-style-v1\";function ensureStyle(){if(typeof document===\"undefined\"||document.getElementById(STYLE_ID))return;const s=document.createElement(\"style\");s.id=STYLE_ID;s.textContent=\".fl-link{transition:color .25s cubic-bezier(.44,0,.56,1)}\"+\".fl-link svg{transition:translate .35s cubic-bezier(.16,1,.3,1)}\"+\"@media (hover:hover){.fl-link:hover{color:\"+INK+\" !important}.fl-link:hover svg{translate:2px -2px}}\"+\".fl-link:focus-visible{color:\"+INK+\" !important;outline:2px solid currentColor;outline-offset:2px;border-radius:4px}\";document.head.appendChild(s);}/**\n * @framerIntrinsicWidth 90\n * @framerIntrinsicHeight 26\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function FooterLink(props){const{label=\"LinkedIn\",href=\"https://www.linkedin.com/in/alessandroroasio/\",newTab=true}=props;useEffect(()=>ensureStyle(),[]);return /*#__PURE__*/_jsxs(\"a\",{className:\"fl-link\",href:href,target:newTab?\"_blank\":undefined,rel:newTab?\"noopener\":undefined,style:{...props.style,display:\"inline-flex\",alignItems:\"center\",gap:6,fontFamily:'\"Instrument Sans\", sans-serif',fontWeight:400,fontSize:16,lineHeight:\"162%\",color:INK_SOFT,textDecoration:\"none\",whiteSpace:\"nowrap\"},children:[label,/*#__PURE__*/_jsx(\"svg\",{width:\"11\",height:\"11\",viewBox:\"0 0 20 20\",fill:\"none\",\"aria-hidden\":\"true\",style:{flex:\"none\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 14 14 6m0 0H7.5M14 6v6.5\",stroke:\"currentColor\",strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})]});}addPropertyControls(FooterLink,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"LinkedIn\"},href:{type:ControlType.String,title:\"URL\",defaultValue:\"https://www.linkedin.com/in/alessandroroasio/\"},newTab:{type:ControlType.Boolean,title:\"New tab\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FooterLink\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"90\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"26\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FooterLink.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";// Hover \"rotolo\". Stesso blocco in SweepButton, EmailCopy, RoundLink, ThemeToggle e LocalTime\n// (i code file di Framer non possono importarsi a vicenda): se cambi qui, cambia anche lì.\n// Il riempimento sale dal basso con il bordo curvo; le lettere salgono una alla volta e dal basso\n// arriva la loro copia nel colore invertito (è il text-shadow), come i titoli di TextRise.tsx.\n// Le lettere nuove salgono insieme al riempimento: mai testo scuro su fondo scuro.\n// Le icone fanno lo stesso con una seconda copia, già nel colore invertito, sotto la prima.\n// roll-plain (i link di testo): niente riempimento, la copia ha lo stesso colore del link.\nconst ROLL_ID=\"roll-style-v2\";const ROLL_FILL=\"var(--token-87fce4c7-d8e4-43aa-9aa4-c43ac8633a01, #474338)\";const ROLL_INV=\"var(--token-23690a27-b284-46fa-9c43-c5d4822475d9, #fff)\";const ROLL_IN=\"cubic-bezier(.16,1,.3,1)\";const ROLL_OUT=\"cubic-bezier(.4,0,.2,1)\";const ROLL_RISE=\"cubic-bezier(.6,0,.2,1)\";const ROLL_H=\"1.25em\";function ensureRollStyle(){if(typeof document===\"undefined\"||document.getElementById(ROLL_ID))return;const s=document.createElement(\"style\");s.id=ROLL_ID;const fill=st=>\".roll\"+st+\"::before{top:-60%;border-radius:40%;transition:top .8s \"+ROLL_RISE+\",border-radius .8s \"+ROLL_RISE+\"}\";const up=st=>\".roll\"+st+\" .roll-c{translate:0 -\"+ROLL_H+\";transition:translate .6s \"+ROLL_IN+\" var(--di,140ms)}\"+\".roll\"+st+\" .roll-i>*{translate:0 -100%;transition:translate .6s \"+ROLL_IN+\" 160ms}\";s.textContent=\".roll{isolation:isolate;overflow:hidden;transition:scale .2s \"+ROLL_OUT+\"}\"+\".roll:active{scale:.97}\"+\".roll::before{content:'';position:absolute;left:-25%;width:150%;height:220%;top:100%;border-radius:50%;background:\"+ROLL_FILL+\";\"+\"transition:top .45s \"+ROLL_OUT+\",border-radius .45s \"+ROLL_OUT+\";z-index:-1;pointer-events:none}\"+\".roll-l{display:inline-flex;overflow:clip;height:\"+ROLL_H+\";line-height:\"+ROLL_H+\"}\"+\".roll-c{display:inline-block;white-space:pre;text-shadow:0 \"+ROLL_H+\" 0 \"+ROLL_INV+\";transition:translate .35s \"+ROLL_OUT+\" var(--do,0ms)}\"+// La copia invertita sta appena sotto l'icona, fuori dalla maschera: il contenitore resta alto quanto l'icona.\n\".roll-i{position:relative;display:inline-flex;overflow:clip;flex:none}\"+\".roll-i>*{display:flex;transition:translate .35s \"+ROLL_OUT+\"}\"+\".roll-i>.roll-inv{position:absolute;left:0;top:100%;width:100%;justify-content:center}\"+\".roll-inv{color:\"+ROLL_INV+\"}.roll-inv [stroke]:not([stroke=none]):not([stroke=currentColor]){stroke:\"+ROLL_INV+\" !important}\"+\".roll-plain{overflow:visible}.roll-plain::before{content:none}.roll-plain .roll-c{text-shadow:0 \"+ROLL_H+\" 0 currentColor}.roll-plain .roll-inv{color:inherit}\"+\"@media (hover:hover){\"+fill(\":hover\")+up(\":hover\")+\"}\"+fill(\":focus-visible\")+up(\":focus-visible\")+fill(\".roll-hold\")+up(\".roll-hold\")+// Dopo il clic sul tema la view transition toglie :hover: roll-hold tiene il bottone pieno, senza rifare il giro.\n\".roll.roll-hold::before,.roll.roll-hold .roll-c,.roll.roll-hold .roll-i>*{transition:none}\"+\"@media (prefers-reduced-motion:reduce){.roll,.roll::before,.roll *{transition-duration:0s !important;transition-delay:0s !important}}\";document.head.appendChild(s);}// Una riga dura al massimo mezzo secondo: le etichette lunghe (la mail) hanno lettere più fitte.\nfunction rollDelays(i,total){const n=Math.max(1,total);return{di:Math.round(140+i*Math.min(22,500/n))+\"ms\",dout:Math.round(i*Math.min(8,200/n))+\"ms\"};}const ROLL_SR={position:\"absolute\",width:1,height:1,overflow:\"hidden\",clip:\"rect(0 0 0 0)\",clipPath:\"inset(50%)\",whiteSpace:\"nowrap\"};// Etichetta per i code component: lettere visibili ma nascoste agli screen reader, testo vero fuori vista.\nfunction RollText({text,start=0,total}){const chars=Array.from(text);const n=total??chars.length;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{className:\"roll-l\",\"aria-hidden\":\"true\",children:chars.map((c,i)=>{const d=rollDelays(start+i,n);return /*#__PURE__*/_jsx(\"span\",{className:\"roll-c\",style:{\"--di\":d.di,\"--do\":d.dout},children:c},i);})}),/*#__PURE__*/_jsx(\"span\",{style:ROLL_SR,children:text})]});}function RollIcon({children}){return /*#__PURE__*/_jsxs(\"span\",{className:\"roll-i\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"span\",{children:children}),/*#__PURE__*/_jsx(\"span\",{className:\"roll-inv\",children:children})]});}// Bottone tondo con icona (↗ o ↑), stesso stile e stesso hover \"rotolo\" dei bottoni della nav (blocco qui sopra).\n// Con Link vuoto e icona \"Top\" torna in cima usando Lenis, se c'è.\nconst INK=\"var(--token-206aeda9-4415-4dbc-a636-10ac9ec2ead8, #474338)\";const SURFACE=\"var(--token-9f55bf52-c772-43cf-a5fe-2cff4feb418e, transparent)\";const BORDER=\"var(--token-1960ee1d-51e3-4fcc-b6ae-27f3aaadf4f8, rgba(71,67,56,.25))\";/**\n * @framerIntrinsicWidth 72\n * @framerIntrinsicHeight 72\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function RoundLink(props){const{icon=\"out\",link=\"\",label=\"Open\",newTab=false}=props;const isStatic=useIsStaticRenderer();useEffect(()=>ensureRollStyle(),[]);function onClick(e){if(isStatic)return e.preventDefault();if(icon===\"up\"&&!link){e.preventDefault();const lenis=window.lenis;if(lenis)lenis.scrollTo(0,{duration:1.6});else window.scrollTo({top:0,behavior:\"smooth\"});}}return /*#__PURE__*/_jsx(\"a\",{href:link||\"#top\",onClick:onClick,\"aria-label\":label,target:newTab?\"_blank\":undefined,rel:newTab?\"noopener\":undefined,className:`roll ${icon===\"up\"?\"rl-up\":\"rl-out\"}`,style:{...props.style,position:\"relative\",width:\"100%\",height:\"100%\",boxSizing:\"border-box\",borderRadius:180,border:`1px solid ${BORDER}`,background:SURFACE,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",WebkitTapHighlightColor:\"transparent\"},children:/*#__PURE__*/_jsx(RollIcon,{children:/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",\"aria-hidden\":\"true\",children:icon===\"up\"?/*#__PURE__*/_jsx(\"path\",{d:\"M10 16V4m0 0-5 5m5-5 5 5\",stroke:INK,strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}):/*#__PURE__*/_jsx(\"path\",{d:\"M6 14 14 6m0 0H7.5M14 6v6.5\",stroke:INK,strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})})});}addPropertyControls(RoundLink,{icon:{type:ControlType.Enum,title:\"Icon\",options:[\"out\",\"up\"],optionTitles:[\"↗ Out\",\"↑ Top\"],defaultValue:\"out\",displaySegmentedControl:true},link:{type:ControlType.Link,title:\"Link\",defaultValue:\"\"},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Open\"},newTab:{type:ControlType.Boolean,title:\"New tab\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RoundLink\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"72\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"72\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata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