{"version":3,"file":"BookButton.DlfZfSDK.mjs","names":["__esmMin","init_ssg_sandbox_shims","window","p","c","init_jsx_runtime","init_framer_BWFVvmND","addPropertyControls","ControlType","BookButton","radius","el","target","y","offset","CSS","label","init_BookButton"],"sources":["https:/framerusercontent.com/modules/NNoG77uvk1iQXF6abpWO/ELlG0TIRqfu2mVnBaa0y/BookButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function BookButton({label=\"Book a call\",target=\".fee-finder\",offset=96,radius=999}){const go=()=>{if(typeof document===\"undefined\")return;const el=document.querySelector(target);if(!el)return;const y=el.getBoundingClientRect().top+(window.scrollY||window.pageYOffset||0)-offset;window.scrollTo({top:y,behavior:\"smooth\"});};return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"dos-book-btn\",style:{borderRadius:radius},onClick:go,children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),label]});}addPropertyControls(BookButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Book a call\"},target:{type:ControlType.String,title:\"Scroll to\",defaultValue:\".fee-finder\"},offset:{type:ControlType.Number,title:\"Header offset\",defaultValue:96,min:0,max:240,step:4},radius:{type:ControlType.Number,title:\"Corner radius\",defaultValue:999,min:0,max:999,step:1}});const CSS=`\n.dos-book-btn{display:inline-flex;align-items:center;justify-content:center;background:#E8542E;color:#fff;border:none;padding:15px 30px;font-family:'Outfit',sans-serif;font-weight:700;font-size:15px;line-height:1;cursor:pointer;transition:transform .1s ease;}\n.dos-book-btn:hover{transform:translateY(-1px);}\n`;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BookButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BookButton.map"],"mappings":"A,iLAA6G,SAAwBS,EAAW,CAAC,QAAM,cAAc,SAAO,cAAc,SAAO,GAAG,SAAO,KAAK,CAAgP,MAAoB,gBAAM,SAAS,CAAC,KAAK,SAAS,UAAU,eAAe,MAAM,CAAC,aAAaC,CAAM,EAAE,YAAzU,CAAC,GAAG,OAAO,SAAW,IAAY,OAAO,IAAMC,EAAG,SAAS,cAAcC,CAAM,EAAE,GAAG,CAACD,EAAG,OAAO,IAAME,EAAEF,EAAG,sBAAsB,CAAC,CAAC,KAAKT,EAAO,SAASA,EAAO,aAAa,GAAGY,EAAOZ,EAAO,SAAS,CAAC,IAAIW,EAAE,SAAS,QAAQ,CAAC,CAAE,EAAoH,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAASE,CAAG,CAAC,EAAEC,CAAK,CAAC,CAAC,CAAE,C,gDAACT,EAAoBE,EAAW,CAAC,MAAM,CAAC,KAAKD,EAAY,OAAO,MAAM,QAAQ,aAAa,aAAa,EAAE,OAAO,CAAC,KAAKA,EAAY,OAAO,MAAM,YAAY,aAAa,aAAa,EAAE,OAAO,CAAC,KAAKA,EAAY,OAAO,MAAM,gBAAgB,aAAa,GAAG,IAAI,EAAE,IAAI,IAAI,KAAK,CAAC,EAAE,OAAO,CAAC,KAAKA,EAAY,OAAO,MAAM,gBAAgB,aAAa,IAAI,IAAI,EAAE,IAAI,IAAI,KAAK,CAAC,CAAC,CAAC,EAAQ,EAAI"}