{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/4F2zsKl2FvubY6S1c3FM/OWDxAY4XRkUkQO1j9zBB/ZTqb80kNv.js", "ssg:https://framerusercontent.com/modules/AEbF9jSxSsdm9WnrA9Kc/0A1LiSXvldjQn4iyJIDQ/WithCookiepro.js"],
  "sourcesContent": ["import{fontStore}from\"framer\";fontStore.loadWebFontsFromSelectors([]);export const fonts=[];export const css=[\".framer-j5Hy4 .framer-styles-preset-qpvdgr:not(.rich-text-wrapper), .framer-j5Hy4 .framer-styles-preset-qpvdgr.rich-text-wrapper a { --framer-link-hover-text-color: #ffffff; --framer-link-hover-text-decoration: none; --framer-link-text-color: #ffffff; --framer-link-text-decoration: none; }\"];export const className=\"framer-j5Hy4\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}", "import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// This component adds a hidden button to the DOM that launches the OneTrust cookiepro preferences\n// modal. We create a phantom button instead of just adding the class and id to the existing button\n// because CookiePro applies styling to that button that we don't want. So we do a bit of indirection\n// here to invoke a click on the hidden button to launch the cookie banner via their sdk.\nexport function withCookiepro(Component){return props=>{function clickBtn(){const cookieProButton=document.querySelector(\".ot-sdk-show-settings\");cookieProButton&&cookieProButton.click();}// function addScript() {\n//     // bail out -- he OT script is added by GTM\n//     return\n//     const cookieProScript = document.createElement(\"script\")\n//     cookieProScript.setAttribute(\n//         \"src\",\n//         \"https://cookie-cdn.cookiepro.com/scripttemplates/otSDKStub.js\"\n//     )\n//     cookieProScript.setAttribute(\"type\", \"text/javascript\")\n//     cookieProScript.setAttribute(\"charset\", \"UTF-8\")\n//     cookieProScript.setAttribute(\n//         \"data-domain-script\",\n//         \"2d50dacc-42f8-4449-bfe2-bd85fbbc160a\"\n//     )\n//     cookieProScript.onload = function () {\n//         setTimeout(clickBtn, 200)\n//     }\n//     document.head.appendChild(cookieProScript)\n//     window.OptanonWrapper = function () {}\n// }\nfunction handleClick(){clickBtn();}useEffect(()=>{function addBtn(){const cookieProButton=document.createElement(\"button\");cookieProButton.setAttribute(\"class\",\"ot-sdk-show-settings\");cookieProButton.setAttribute(\"id\",\"ot-sdk-btn\");cookieProButton.style.display=\"none\";document.body.appendChild(cookieProButton);}addBtn();},[]);return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCookiepro\":{\"type\":\"reactHoc\",\"name\":\"withCookiepro\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WithCookiepro.map"],
  "mappings": "mIAAAA,IAA8BC,EAAU,0BAA0B,CAAC,CAAC,EAAS,IAAMC,EAAM,CAAC,EAAeC,EAAI,CAAC,oSAAoS,EAAeC,EAAU,eCA3aC,IAIO,SAASC,EAAcC,EAAU,CAAC,OAAOC,GAAO,CAAC,SAASC,GAAU,CAAC,IAAMC,EAAgB,SAAS,cAAc,uBAAuB,EAAEA,GAAiBA,EAAgB,MAAM,CAAE,CAoB3L,SAASC,GAAa,CAACF,EAAS,CAAE,CAAC,OAAAG,EAAU,IAAI,CAAC,SAASC,GAAQ,CAAC,IAAMH,EAAgB,SAAS,cAAc,QAAQ,EAAEA,EAAgB,aAAa,QAAQ,sBAAsB,EAAEA,EAAgB,aAAa,KAAK,YAAY,EAAEA,EAAgB,MAAM,QAAQ,OAAO,SAAS,KAAK,YAAYA,CAAe,CAAE,CAACG,EAAO,CAAE,EAAE,CAAC,CAAC,EAAsBC,EAAKP,EAAU,CAAC,GAAGC,EAAM,QAAQG,CAAW,CAAC,CAAE,CAAE",
  "names": ["init_ssg_sandbox_shims", "fontStore", "fonts", "css", "className", "init_ssg_sandbox_shims", "withCookiepro", "Component", "props", "clickBtn", "cookieProButton", "handleClick", "ue", "addBtn", "p"]
}
