{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/DAPY2O0DyUBkALhE8gnI/Ozzp3lpfpkypDkIci7qX/InlineCalendly.js"],
  "sourcesContent": ["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers/\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/components/auto-sizing\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function InlineCalendly(props){const[widgetWidth,setWidgetWidth]=useState(\"550px\")// Default width for large screens\n;useEffect(()=>{// Dynamically load Calendly script\nconst script=document.createElement(\"script\");script.src=\"https://assets.calendly.com/assets/external/widget.js\";script.async=true;document.body.appendChild(script);// Cleanup the script when the component is unmounted\nreturn()=>{document.body.removeChild(script);};},[]);useEffect(()=>{const updateWidth=()=>{const screenWidth=window.innerWidth;if(screenWidth>=0&&screenWidth<=809){setWidgetWidth(\"400px\")// Width for small screens\n;}else if(screenWidth>=810&&screenWidth<=1199){setWidgetWidth(\"750px\")// Width for medium screens\n;}else{setWidgetWidth(\"1200px\")// Width for large screens\n;}};// Set the initial width\nupdateWidth();// Add event listener for window resize\nwindow.addEventListener(\"resize\",updateWidth);// Cleanup event listener on unmount\nreturn()=>{window.removeEventListener(\"resize\",updateWidth);};},[]);return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(\"div\",{className:\"calendly-inline-widget\",\"data-url\":\"https://calendly.com/d/cmw4-78k-svs/bli-kjent-samtale-fulcio?hide_event_type_details=0&hide_gdpr_banner=1&primary_color=2fd8b3\",style:{width:widgetWidth,height:\"100%\"}})});}// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst containerStyle={height:\"100%\",width:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"InlineCalendly\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InlineCalendly.map"],
  "mappings": "kIAQkB,SAARA,EAAgCC,EAAM,CAAC,GAAK,CAACC,EAAYC,CAAc,EAAEC,EAAS,OAAO,EAClG,OAAAC,EAAU,IAAI,CACf,IAAMC,EAAO,SAAS,cAAc,QAAQ,EAAE,OAAAA,EAAO,IAAI,wDAAwDA,EAAO,MAAM,GAAK,SAAS,KAAK,YAAYA,CAAM,EAC7J,IAAI,CAAC,SAAS,KAAK,YAAYA,CAAM,CAAE,CAAE,EAAE,CAAC,CAAC,EAAED,EAAU,IAAI,CAAC,IAAME,EAAY,IAAI,CAAC,IAAMC,EAAYC,EAAO,WAAcD,GAAa,GAAGA,GAAa,IAAKL,EAAe,OAAO,EAChLK,GAAa,KAAKA,GAAa,KAAML,EAAe,OAAO,EAC9DA,EAAe,QAAQ,CAC5B,EACF,OAAAI,EAAY,EACZE,EAAO,iBAAiB,SAASF,CAAW,EACtC,IAAI,CAACE,EAAO,oBAAoB,SAASF,CAAW,CAAE,CAAE,EAAE,CAAC,CAAC,EAAsBG,EAAK,MAAM,CAAC,MAAMC,EAAe,SAAsBD,EAAK,MAAM,CAAC,UAAU,yBAAyB,WAAW,iIAAiI,MAAM,CAAC,MAAMR,EAAY,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAE,CAEtX,IAAMS,EAAe,CAAC,OAAO,OAAO,MAAM,OAAO,QAAQ,OAAO,eAAe,SAAS,WAAW,QAAQ",
  "names": ["InlineCalendly", "props", "widgetWidth", "setWidgetWidth", "ye", "ue", "script", "updateWidth", "screenWidth", "window", "p", "containerStyle"]
}
