{"version":3,"file":"TEDSectionLink.9CE2EWpt.mjs","names":["useState","useRef","__esmMin","init_ssg_sandbox_shims","te","init_npm_react_18_3_1","_e","de","init_jsx_runtime","p","ce","window","addPropertyControls","init_framer_DcGZRLrs","ControlType","TEDSectionLink","anchor","target","active","setActive","anchorRef","anchorOnly","query","breakpoint","media","update","label","style","init_TEDSectionLink"],"sources":["https:/framerusercontent.com/modules/aFBo0L7CGCDQ3TjTgy75/LGZ2ywHdGBabdBE7shXj/TEDSectionLink.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{startTransition,useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function TEDSectionLink({label=\"Overview\",target=\"overview\",color=\"#030347\",font,style,anchorOnly=false,breakpoint=\"All\"}){const anchor=target.replace(/^#/,\"\").trim();const[active,setActive]=useState(false);const anchorRef=useRef(null);useEffect(()=>{if(!anchorOnly||typeof window===\"undefined\")return;const query=breakpoint===\"Desktop\"?\"(min-width:1200px)\":breakpoint===\"Tablet\"?\"(min-width:810px) and (max-width:1199.98px)\":breakpoint===\"Phone\"?\"(max-width:809.98px)\":\"all\";const media=window.matchMedia(query);// Let server-rendered Suspense boundaries finish hydrating before\n// the breakpoint-dependent anchor ID updates.\nconst update=()=>{startTransition(()=>setActive(media.matches));};update();media.addEventListener(\"change\",update);return()=>media.removeEventListener(\"change\",update);},[anchorOnly,breakpoint]);// This named, non-interactive group receives hash-navigation focus; the\n// visible link keeps its focus ring, without drawing a ring around a 1px marker.\nif(anchorOnly)return /*#__PURE__*/_jsx(\"span\",{ref:anchorRef,className:\"ted-section-anchor\",id:active?\"ted-\"+anchor:undefined,role:\"group\",tabIndex:-1,\"aria-label\":label+\" section\",style:{...style,position:\"relative\",display:\"block\",width:1,height:1,scrollMarginTop:104},children:/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:'span.ted-section-anchor[tabindex=\"-1\"]:focus-visible{outline:none!important;box-shadow:none!important}'}})});return /*#__PURE__*/_jsxs(\"a\",{className:\"ted-section-link\",href:\"#ted-\"+encodeURIComponent(anchor),style:{...style,position:\"relative\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",gap:8,minHeight:44,width:\"max-content\",maxWidth:\"100%\",boxSizing:\"border-box\",padding:\"10px 16px\",fontFamily:\"Inter, sans-serif\",fontSize:14,fontWeight:400,lineHeight:\"1.55em\",// One shared pill type style; retain legacy font data for compatibility.\ncolor,textDecoration:\"none\",borderRadius:999,border:\"1px solid rgba(67,81,107,0.18)\",backgroundColor:\"#fdfdfe\",textAlign:\"center\"},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:\".ted-section-link{transition:background-color .18s ease,opacity .18s ease}.ted-section-link:hover{text-decoration:none!important;background-color:#f4f5f9!important;border-color:rgba(67,81,107,.4)!important}.ted-section-link:active{opacity:.7}.ted-section-link:focus-visible{outline:2px solid #030347;outline-offset:3px;background:rgba(67,81,107,.06)}@media(prefers-reduced-motion:reduce){.ted-section-link{transition:none}}\"}}),/*#__PURE__*/_jsx(\"span\",{children:label})]});}addPropertyControls(TEDSectionLink,{breakpoint:{type:ControlType.Enum,options:[\"All\",\"Desktop\",\"Tablet\",\"Phone\"],defaultValue:\"All\",hidden:p=>!p.anchorOnly},anchorOnly:{type:ControlType.Boolean,title:\"Anchor only\",defaultValue:false},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Overview\"},target:{type:ControlType.String,title:\"Section ID\",defaultValue:\"overview\",description:\"The section's scroll target name, without #.\"},color:{type:ControlType.Color,defaultValue:\"#030347\"},font:{hidden:()=>true,type:ControlType.Font,controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Medium\",lineHeight:\"24px\",letterSpacing:\"0px\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TEDSectionLink\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TEDSectionLink.map"],"mappings":"A,+MAGG,SAAwBe,EAAe,CAAC,QAAM,WAAW,SAAO,WAAW,QAAM,UAAU,OAAK,QAAM,aAAW,GAAM,aAAW,OAAO,CAAC,IAAMC,EAAOC,EAAO,QAAQ,KAAK,EAAE,CAAC,CAAC,KAAK,EAAO,CAACC,EAAOC,GAAWnB,EAAS,EAAK,EAAQoB,EAAUnB,EAAO,IAAI,EAIqM,OAJnMS,MAAc,CAAC,GAAG,CAACW,GAAmBV,IAAS,OAAY,OAAO,IAAMW,EAAMC,IAAa,UAAU,qBAAqBA,IAAa,SAAS,8CAA8CA,IAAa,QAAQ,uBAAuB,MAAYC,EAAMb,EAAO,WAAWW,CAAK,EAE3gBG,MAAW,CAACrB,MAAoBe,EAAUK,EAAM,OAAO,CAAC,CAAE,EAAmD,OAAjDC,EAAO,EAAED,EAAM,iBAAiB,SAASC,CAAM,MAAYD,EAAM,oBAAoB,SAASC,CAAM,CAAE,EAAE,CAACJ,EAAWE,CAAU,CAAC,EAE9LF,EAA+B,gBAAK,OAAO,CAAC,IAAID,EAAU,UAAU,qBAAqB,GAAGF,EAAO,OAAOF,EAAO,IAAA,GAAU,KAAK,QAAQ,SAAS,GAAG,aAAaU,EAAM,WAAW,MAAM,CAAC,GAAGC,EAAM,SAAS,WAAW,QAAQ,QAAQ,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,EAAE,SAAsB,gBAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAO,wGAAwG,CAAC,CAAC,CAAC,CAAC,EAAsB,gBAAM,IAAI,CAAC,UAAU,mBAAmB,KAAK,QAAQ,mBAAmBX,CAAM,EAAE,MAAM,CAAC,GAAGW,EAAM,SAAS,WAAW,QAAQ,cAAc,W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