{"version":3,"file":"Popup.k5PD0dnp.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/FiURExPjIFJYKPm2c8IV/0rBUZxyJe5NZMEiNOjYZ/Popup.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{Data}from\"framer\";const data=Data({});export const OpenPopup=()=>{const handleClick=()=>{var _window_location,_window,_window_location1,_window1;console.log(\"----- href\",(_window=window)===null||_window===void 0?void 0:(_window_location=_window.location)===null||_window_location===void 0?void 0:_window_location.href);var _window_location_href;const currentLocation=(_window_location_href=(_window1=window)===null||_window1===void 0?void 0:(_window_location1=_window1.location)===null||_window_location1===void 0?void 0:_window_location1.href)!==null&&_window_location_href!==void 0?_window_location_href:null;const url=`https://meetings.hubspot.com/danny-jacobs/plan-kennismaking-cta-blok-rakoo?embed=true${currentLocation?`&parentPageUrl=[${currentLocation}]`:\"\"}`;// Define the properties for the popup window.\nconst popupWidth=880;const popupHeight=700;const left=(window.innerWidth-popupWidth)/2;const top=(window.innerHeight-popupHeight)/2;// Open the popup window.\nwindow.open(url,\"Hubspot Popup\",`width=${popupWidth}, height=${popupHeight}, left=${left}, top=${top}`);};return{onClick:handleClick};};import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withOpenPopup(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...OpenPopup(props)});};}withOpenPopup.displayName=\"OpenPopup\";\nexport const __FramerMetadata__ = {\"exports\":{\"OpenPopup\":{\"type\":\"override\",\"name\":\"OpenPopup\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOpenPopup\":{\"type\":\"reactHoc\",\"name\":\"withOpenPopup\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Popup.map"],"mappings":"yLAE2R,SAAgB,EAAc,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAU,EAAM,CAAC,CAAC,yBAFrZ,IAAyB,IAEoI,CAFzH,EAAK,EAAE,CAAC,CAAc,OAEW,CAAC,YAFyB,CAAyD,QAAQ,IAAI,aAAsB,GAAkE,UAAoE,KAAK,CAA2B,IAAM,EAAiD,GAAqE,UAAsE,MAAmE,KAAW,EAAI,wFAAwF,EAAgB,mBAAmB,EAAgB,GAAG,KAC5vB,GAAM,EAAO,WAAW,KAAY,EAAQ,GAAK,EAAO,YAAY,KAAa,EAClI,EAAO,KAAK,EAAI,gBAAgB,+BAAoD,EAAK,QAAQ,IAAM,EAA8B,EAA+T,EAAc,YAAY"}