{"version":3,"file":"HandUnderline.CjknoFKF.mjs","names":["_Fragment","useRef","useState"],"sources":["https:/framerusercontent.com/modules/FsFsKQYl5JRuw6ZKsFaO/9uuYeiAwSFyKkhhFDdUs/ExpertPill.js","https:/framerusercontent.com/modules/V0AeceAna2d2KDM01Tfn/2Zax9w3y8y785H5AJvCy/HandUnderline.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const C={black:\"#081131\",blue:\"#1d6fd6\",violet:\"#7b61d9\",violet2:\"#9a86e6\",teal:\"#2bb39a\",vtext:\"#3d2f7a\"};const font=\"Manrope, 'Manrope Placeholder', sans-serif\";const CSS=`\n.ep-pill{transition:border-color .25s ease, box-shadow .25s ease, transform .25s ease}\na.ep-pill:hover{border-color:rgba(18,55,105,.3) !important;box-shadow:0 8px 18px -12px rgba(15,56,79,.35);transform:translateY(-1px)}\na.ep-pill:hover .ep-arrow{transform:translateX(3px)}\n.ep-arrow{transition:transform .2s ease}\n`;/**\n * Expert avatars + label, as a link button or a status chip\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function ExpertPill(props){const{label=\"Talk to an Expert\",avatars=\"DL, AR\",link=\"/contact\",showArrow=true,look=\"button\",style}=props;const chip=look===\"chip\";const inits=avatars.split(\",\").map(a=>a.trim()).filter(Boolean);const body=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\"},\"aria-hidden\":\"true\",children:inits.map((a,i)=>/*#__PURE__*/_jsxs(\"span\",{style:{width:28,height:28,borderRadius:\"50%\",background:i%2?C.violet2:C.violet,border:\"2px solid #fff\",color:\"#fff\",fontSize:10,fontWeight:800,display:\"grid\",placeItems:\"center\",position:\"relative\",marginLeft:i?-8:0},children:[a,/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",right:-1,bottom:-1,width:8,height:8,borderRadius:\"50%\",background:C.teal,border:\"1.5px solid #fff\"}})]},i))}),/*#__PURE__*/_jsx(\"span\",{style:{whiteSpace:\"nowrap\"},children:label}),!chip&&showArrow&&/*#__PURE__*/_jsx(\"span\",{className:\"ep-arrow\",style:{color:C.blue},\"aria-hidden\":\"true\",children:\"→\"})]});const base={position:\"relative\",display:\"inline-flex\",alignItems:\"center\",gap:chip?10:12,width:\"max-content\",boxSizing:\"border-box\",borderRadius:999,fontFamily:font,fontWeight:700,fontSize:chip?13:14,textDecoration:\"none\",padding:chip?\"6px 14px 6px 6px\":\"10px 16px 10px 10px\",color:chip?C.vtext:C.black,background:chip?\"rgba(255,255,255,.65)\":\"#fff\",border:chip?\"1px solid rgba(255,255,255,.95)\":\"1px solid rgba(18,55,105,.12)\",...style};if(chip||!link)return /*#__PURE__*/_jsx(\"span\",{className:\"ep-pill\",style:base,children:body});return /*#__PURE__*/_jsx(\"a\",{className:\"ep-pill\",href:link,style:base,children:body});}addPropertyControls(ExpertPill,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Talk to an Expert\"},avatars:{type:ControlType.String,title:\"Avatars\",description:\"Initials, comma separated\",defaultValue:\"DL, AR\"},look:{type:ControlType.Enum,title:\"Look\",options:[\"button\",\"chip\"],optionTitles:[\"Button\",\"Status chip\"],displaySegmentedControl:true,defaultValue:\"button\"},link:{type:ControlType.Link,title:\"Link\",defaultValue:\"/contact\",hidden:p=>p.look===\"chip\"},showArrow:{type:ControlType.Boolean,title:\"Arrow\",defaultValue:true,hidden:p=>p.look===\"chip\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ExpertPill\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ExpertPill.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useInView}from\"framer-motion\";import{useEffect,useRef,useState}from\"react\";const PATH=\"M4 13 C 130 4, 280 4, 400 9 S 550 16, 596 7\";const LENGTH=100;/**\n * Hand-drawn underline that draws in when scrolled into view.\n *\n * The line is sized by the text it sits under, so it must not draw until the\n * webfont has loaded and the text has stopped reflowing — otherwise it draws\n * against the fallback-font measurement, then jumps when the real font lands.\n *\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 20\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function HandUnderline(props){const{color=\"#7B61D9\",thickness=5,duration=1,delay=.35,replay=false,style}=props;const isStatic=useIsStaticRenderer();const ref=useRef(null);const inView=useInView(ref,{once:!replay,amount:.6});// wait for fonts, then for the element's own width to stop changing\nconst[settled,setSettled]=useState(false);useEffect(()=>{if(isStatic||typeof window===\"undefined\"){setSettled(true);return;}let cancelled=false;let quietTimer=0;let ro=null;const markSettled=()=>{if(!cancelled)setSettled(true);};const waitForStableWidth=()=>{const el=ref.current;if(!el||typeof ResizeObserver===\"undefined\"){markSettled();return;}// settle once the width has held steady for 120ms\nconst bump=()=>{window.clearTimeout(quietTimer);quietTimer=window.setTimeout(markSettled,120);};ro=new ResizeObserver(bump);ro.observe(el);bump();};const fonts=document.fonts;if(fonts?.ready){fonts.ready.then(()=>{if(!cancelled)waitForStableWidth();});}else{waitForStableWidth();}// never hang: draw anyway after 2.5s\nconst failsafe=window.setTimeout(markSettled,2500);return()=>{cancelled=true;window.clearTimeout(quietTimer);window.clearTimeout(failsafe);ro?.disconnect();};},[isStatic]);const drawn=isStatic||inView&&settled;return /*#__PURE__*/_jsx(\"svg\",{ref:ref,viewBox:\"0 0 600 20\",preserveAspectRatio:\"none\",\"aria-hidden\":\"true\",style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"visible\",display:\"block\",// hidden until the text has stopped moving, so it never flashes\n// in the wrong place\nopacity:isStatic||settled?1:0,...style},children:/*#__PURE__*/_jsx(\"path\",{d:PATH,pathLength:LENGTH,fill:\"none\",stroke:color,strokeWidth:thickness,strokeLinecap:\"round\",style:{strokeDasharray:`${LENGTH} ${LENGTH*2}`,strokeDashoffset:drawn?0:LENGTH,transition:isStatic?\"none\":`stroke-dashoffset ${duration}s cubic-bezier(.6,.1,.2,1) ${drawn?delay:0}s`}})});}addPropertyControls(HandUnderline,{color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#7B61D9\"},thickness:{type:ControlType.Number,title:\"Thickness\",defaultValue:5,min:1,max:12,step:.5,unit:\"px\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:1,min:.2,max:3,step:.1,unit:\"s\"},delay:{type:ControlType.Number,title:\"Delay\",defaultValue:.35,min:0,max:3,step:.05,unit:\"s\"},replay:{type:ControlType.Boolean,title:\"Replay on scroll\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HandUnderline\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"600\",\"framerIntrinsicHeight\":\"20\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HandUnderline.map"],"mappings":"yQAUG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,oBAAoB,UAAQ,SAAS,OAAK,WAAW,YAAU,GAAK,OAAK,SAAS,SAAO,EAAY,EAAK,IAAO,OAAa,EAAM,EAAQ,MAAM,GAAG,CAAC,CAAC,IAAI,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,EAAQ,EAAkB,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS,CAAG,CAAC,EAAe,EAAK,OAAO,CAAC,MAAM,CAAC,Q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