{"version":3,"file":"Popup.DNsiD_kZ.mjs","names":["__legacyOverrideHOC_DataObserverContext"],"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":"mSAE2R,SAAgB,EAAc,EAAE,CAAC,MAAO,CAAA,IAAQ,EAA+BA,EAAwC,CAAQ,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAU,EAAM,AAAC,EAAC,CAAI,kBAAA,IAFpc,GAA2C,IAAyB,CAEoE,GAAgE,CAF9H,EAAK,EAAK,CAAE,EAAC,CAAc,EAAU,IAAI,CAAC,IAAM,EAAY,IAAI,CAAC,IAAI,EAAiB,EAAQ,EAAkB,EAAS,QAAQ,IAAI,cAAc,EAAQ,IAAU,SAA4B,IAAG,EAAiB,EAAQ,WAAoE,KAAK,CAAC,IAAI,EAAsB,IAAM,GAAiB,GAAuB,EAAS,IAAU,SAA6B,IAAG,EAAkB,EAAS,WAAsE,OAAmE,KAAW,GAAK,uFAAuF,GAAiB,kBAAkB,EAAgB,GAAG,KACvyB,EAAW,IAAU,EAAY,IAAU,GAAM,EAAO,WAAW,GAAY,EAAQ,GAAK,EAAO,YAAY,GAAa,EAClI,EAAO,KAAK,EAAI,iBAAiB,QAAQ,EAAW,WAAW,EAAY,SAAS,EAAK,QAAQ,IAAM,AAAE,EAAC,MAAM,CAAC,QAAQ,CAAY,CAAE,EAA6T,EAAc,YAAY"}