{"version":3,"file":"shared-lib.BdUrKklb.mjs","names":["React.useState","outbrainClickId","taboolaClickId","campaignId","sectionId","adId","_Fragment"],"sources":["https:/framerusercontent.com/modules/802z94Jd0IhweDOKtApo/wXs1cy4EVNRMIMOFkUCI/OrderNow_derillo.js","https:/framerusercontent.com/modules/uCsculVeXtAlYry20f0Y/tZDMsETni0owYKzaKpRQ/mdr0Grg7o.js","https:/framerusercontent.com/modules/g7s8AlmB4hkcNg7P1gm7/7MLFjkafagNBHeEWzcGG/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{motion}from\"framer-motion\";export default function Click(props){const[outbrainClickId,setOutbrainClickId]=React.useState(null);const[taboolaClickId,setTaboolaClickId]=React.useState(null);const[campaignId,setCampaignId]=React.useState(\"\");const[sectionId,setSectionId]=React.useState(\"\");const[sectionName,setSectionName]=React.useState(\"\");const[adId,setAdId]=React.useState(\"\");const clientUrl=\"https://get-derila-ergo.com/derila-ergo/product?l=en&vndr=evf&evf=1&uid=6659&offid=78&affiliate_id=3586\";React.useEffect(()=>{if(typeof window===\"undefined\")return;const params=new URLSearchParams(window.location.search);const outbrainClickId=params.get(\"ob_click_id\")||params.get(\"outbrainClickId\");const taboolaClickId=params.get(\"tb_click_id\")||params.get(\"taboolaClickId\");const campaignId=params.get(\"campaign_id\")||\"\";const sectionId=params.get(\"section_id\")||\"\";const adId=params.get(\"ad_id\")||\"\";if(outbrainClickId){//outbrain\nsessionStorage.setItem(\"ob_click_id\",outbrainClickId);setOutbrainClickId(outbrainClickId);}else{const storedId=sessionStorage.getItem(\"ob_click_id\");if(storedId)setOutbrainClickId(storedId);}if(taboolaClickId){sessionStorage.setItem(\"tb_click_id\",taboolaClickId);setTaboolaClickId(taboolaClickId);}else{const storedId=sessionStorage.getItem(\"tb_click_id\");if(storedId)setTaboolaClickId(storedId);}if(campaignId){sessionStorage.setItem(\"campaign_id\",campaignId);setCampaignId(campaignId);}else{const storedCampaignId=sessionStorage.getItem(\"campaign_id\");if(storedCampaignId)setCampaignId(storedCampaignId);}if(sectionId){sessionStorage.setItem(\"section_id\",sectionId);setSectionId(sectionId);}else{const storedsectionId=sessionStorage.getItem(\"section_id\");if(storedsectionId)setSectionId(storedsectionId);}if(sectionName){sessionStorage.setItem(\"section_Name\",sectionName);setSectionName(sectionName);}else{const storedsectionName=sessionStorage.getItem(\"section_Name\");if(storedsectionName)setSectionName(storedsectionName);}if(adId){sessionStorage.setItem(\"ad_id\",adId);setAdId(adId);}else{const storedAdId=sessionStorage.getItem(\"ad_id\");if(storedAdId)setAdId(storedAdId);}},[]);const orderNowButtonClick=()=>{let source_id=\"\";if(outbrainClickId){source_id=\"outbrain\";}else if(taboolaClickId){source_id=\"taboola\";}const urlParams=new URLSearchParams({source_id:source_id,subid:outbrainClickId||taboolaClickId||\"\",subid2:campaignId,subid3:sectionName,subid4:adId,subid5:sectionId});const finalUrl=`${clientUrl}?${urlParams.toString()}`;setTimeout(()=>{window.location.href=finalUrl;},100);};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .wrapper {\n                    display: flex;\n                    justify-content: center;\n                    align-items: center;\n                    width: 100%;\n                    padding: 10px;\n                    box-sizing: border-box;\n                }\n                .button {\n                    padding: 16px 48px;       /* increased horizontal padding */\n                    min-width: 260px;         /* ensures wide shape */\n                    text-align: center;\n\n                    font-size: 15px;\n                    font-weight: 700;\n                    text-transform: uppercase;\n                    letter-spacing: 0.5px;\n\n                    background: linear-gradient(180deg, #0F8A1F 0%, #0F8A1F 100%);\n                    color: white;\n\n                    border: none;\n                    border-radius: 45px;      /* smooth pill shape */\n\n                    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);\n\n                    cursor: pointer;\n                    transition: all 0.2s ease;\n                }\n\n                .button:hover {\n                    background: linear-gradient(180deg, #74BA3A 0%, #5A962A 100%);\n                    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);\n                }\n                @media (min-width: 600px) {\n                    .button {\n                        padding: 20px 42px;\n                        font-size: 17px;\n                    }\n                }\n            `}),/*#__PURE__*/_jsx(\"div\",{className:\"wrapper\",children:/*#__PURE__*/_jsx(motion.button,{className:\"button\",onClick:orderNowButtonClick,whileTap:{scale:.95},children:\"Order Now\"})})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Click\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OrderNow_derillo.map","// Generated by Framer (65c0278)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-PrZis .framer-styles-preset-1ror4rv:not(.rich-text-wrapper), .framer-PrZis .framer-styles-preset-1ror4rv.rich-text-wrapper a { --framer-link-current-text-color: #111111; --framer-link-current-text-decoration: underline; --framer-link-hover-text-color: #0088ff; --framer-link-hover-text-decoration: underline; --framer-link-text-color: #0099ff; }\"];export const className=\"framer-PrZis\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (4c8a172)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:'<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-KHN2SFVS\" height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>',customHTMLHeadEnd:\"<script async=\\\"\\\" src=\\\"https://www.googletagmanager.com/gtag/js?id=G-EX2GWS4LX6\\\"></script>\\n<script>\\n  window.dataLayer = window.dataLayer || [];\\n  function gtag(){dataLayer.push(arguments);}\\n  gtag('js', new Date());\\n\\n  gtag('config', 'G-EX2GWS4LX6');\\n</script>\\n\\n<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\\n'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\\n})(window,document,'script','dataLayer','GTM-KHN2SFVS');</script>\",description:\"Snoring means that the brain is not getting enough oxygen.\\nThe heart works harder than it should. Blood pressure rises. Medical studies show that this creates a dangerous cycle\",favicon:\"https://framerusercontent.com/assets/lUsKxUcxoj4AAaU1NtdQWpBuck.png\",robots:\"max-image-preview:large\",title:\"Snoring can lead to serious health problems, health complications\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"uPAA6I,SAAwB,EAAM,EAAM,CAAC,GAAK,CAAC,EAAgB,GAAoBA,EAAe,KAAK,CAAM,CAAC,EAAe,GAAmBA,EAAe,KAAK,CAAM,CAAC,EAAW,GAAeA,EAAe,GAAG,CAAM,CAAC,EAAU,GAAcA,EAAe,GAAG,CAAM,CAAC,EAAY,GAAgBA,EAAe,GAAG,CAAM,CAAC,EAAK,GAASA,EAAe,GAAG,CAC6kC,OADl9B,MAAoB,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,EAAO,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAOC,EAAgB,EAAO,IAAI,cAAc,EAAE,EAAO,IAAI,kBAAkB,CAAOC,EAAe,EAAO,IAAI,cAAc,EAAE,EAAO,IAAI,iBAAiB,CAAOC,EAAW,EAAO,IAAI,cAAc,EAAE,GAASC,EAAU,EAAO,IAAI,aAAa,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