{"version":3,"file":"StickyCallBar.EdAIdXZa.mjs","names":["useState","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","_e","p","ce","init_framer_BisrWwwE","addPropertyControls","ControlType","StickyCallBar","show","setShow","phone","setPhone","update","h","covered","r","el","showAfter","label","bookingUrl","button","init_StickyCallBar","init_jsx_runtime"],"sources":["https:/framerusercontent.com/modules/9Tma8qBFt5Fb0yez1e9a/cDbOwd9VCtbTy9WA6Jcf/StickyCallBar.js"],"sourcesContent":["// Sticky call bar for phones: slides up once the visitor scrolls past the hero.\n// Place it anywhere on the page (it pins itself to the bottom of the screen). Hidden at 810px and wider.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function StickyCallBar({bookingUrl,label,button,showAfter}){const[show,setShow]=useState(false);const[phone,setPhone]=useState(true);useEffect(()=>{const update=()=>{setPhone(window.innerWidth<810);// tucks away while the closing call or the footer is on screen (they have their own buttons)\nconst h=window.innerHeight;const covered=Array.from(document.querySelectorAll(\"[data-rr-nosticky]\")).some(el=>{const r=el.getBoundingClientRect();return r.top<h-40&&r.bottom>0;});setShow(window.scrollY>h*showAfter&&!covered);};update();window.addEventListener(\"scroll\",update,{passive:true});window.addEventListener(\"resize\",update);return()=>{window.removeEventListener(\"scroll\",update);window.removeEventListener(\"resize\",update);};},[showAfter]);if(!phone)return null;return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",left:12,right:12,bottom:\"calc(12px + env(safe-area-inset-bottom))\",zIndex:50,display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:12,padding:\"10px 10px 10px 16px\",borderRadius:16,background:\"rgba(16,16,16,.86)\",backdropFilter:\"blur(16px)\",WebkitBackdropFilter:\"blur(16px)\",border:\"1px solid rgba(255,255,255,.12)\",boxShadow:\"0 12px 40px rgba(0,0,0,.5)\",fontFamily:\"'Outfit', system-ui, sans-serif\",color:\"#fff\",transform:show?\"translateY(0)\":\"translateY(140%)\",transition:\"transform .45s cubic-bezier(.2,.7,.2,1)\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:14,color:\"rgba(255,255,255,.8)\"},children:label}),/*#__PURE__*/_jsx(\"a\",{href:!bookingUrl||bookingUrl===\"#book\"?\"/book\":bookingUrl,style:{height:44,padding:\"0 18px\",borderRadius:8,background:\"#EB6D2F\",color:\"#fff\",fontWeight:600,fontSize:15,display:\"flex\",alignItems:\"center\",textDecoration:\"none\",whiteSpace:\"nowrap\"},children:button})]});}StickyCallBar.defaultProps={bookingUrl:\"#book\",label:\"Free 30-minute strategy call\",button:\"Book a call\",showAfter:.9};addPropertyControls(StickyCallBar,{bookingUrl:{type:ControlType.String,title:\"Booking link\"},label:{type:ControlType.String,title:\"Label\"},button:{type:ControlType.String,title:\"Button\"},showAfter:{type:ControlType.Number,title:\"Show after (screens)\",min:0,max:3,step:.1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StickyCallBar\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StickyCallBar.map"],"mappings":"A,4LAKG,SAAwBW,EAAc,CAAC,aAAW,QAAM,SAAO,aAAW,CAAC,GAAK,CAACC,EAAKC,GAASb,EAAS,EAAK,EAAO,CAACc,EAAMC,GAAUf,EAAS,EAAI,EACkU,OADhUO,MAAc,CAAC,IAAMS,MAAW,CAACD,EAASX,EAAO,WAAW,GAAG,EACtN,IAAMa,EAAEb,EAAO,YAAkBc,EAAQ,MAAM,KAAK,SAAS,iBAAiB,oBAAoB,CAAC,CAAC,CAAC,KAAK,GAAI,CAAC,IAAMC,EAAEC,EAAG,sBAAsB,EAAE,OAAOD,EAAE,IAAI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