{
  "version": 3,
  "sources": ["ssg:https://framer.com/m/framer/utils.js@^0.9.0", "ssg:https://framerusercontent.com/modules/yNtT31qkxnTItO28zdTW/77At3JJuCt6qSrq2VSa9/Utils.js"],
  "sourcesContent": ["export const centerContent = {\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nexport const autoSizingText = {\n    width: \"max-content\",\n    wordBreak: \"break-word\",\n    overflowWrap: \"break-word\",\n    overflow: \"hidden\",\n    whiteSpace: \"pre-wrap\",\n    flexShrink: 0\n};\nexport const defaultContainerStyles = {\n    ...centerContent,\n    overflow: \"hidden\"\n};\nexport const containerStyles = defaultContainerStyles;\nexport const randomColor = ()=>\"#\" + Math.floor(Math.random() * 16777215).toString(16)\n;\n\nexport const __FramerMetadata__ = {\"exports\":{\"centerContent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"autoSizingText\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultContainerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomColor\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./Utils.map", "// @ts-nocheck\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useState}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withCategoryVariantForBlogCtaLeft(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[category,setCategory]=useState(\"health\");useEffect(()=>{const category=getCategory();setCategory(category);},[]);const variantsID={health:\"QWZKFPnU2\",family:\"nI_C_73eA\"};return /*#__PURE__*/_jsx(Component,{...props,ref:ref,variant:variantsID[category]});});}export function withCategoryVariantForBlogCtaTop(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[newVariant,setNewVariant]=useState(null);const[category,setCategory]=useState(\"health\");const updateVariant=()=>{const width=window.innerWidth;let breakpoint;if(width>=1200){breakpoint=\"desktop\";}else if(width>=810){breakpoint=\"tablet\";}else{breakpoint=\"mobile\";}setNewVariant(variantsID[category][breakpoint]);};// Debounce function to limit resize handler calls\nconst debounce=(func,delay)=>{let timeoutId;return(...args)=>{clearTimeout(timeoutId);timeoutId=setTimeout(()=>func.apply(null,args),delay);};};useEffect(()=>{const category=getCategory();setCategory(category);},[]);useEffect(()=>{updateVariant();const debouncedUpdateVariant=debounce(updateVariant,150);window.addEventListener(\"resize\",debouncedUpdateVariant);return()=>{window.removeEventListener(\"resize\",debouncedUpdateVariant);};},[category]);const variantsID={health:{desktop:\"fs0zkVqeL\",tablet:\"U4OosA6po\",mobile:\"qb4o6pxaH\"},family:{desktop:\"QzKvSuE91\",tablet:\"RpXYEcev5\",mobile:\"TbRi6A7Zl\"}};return /*#__PURE__*/_jsx(Component,{...props,ref:ref,variant:newVariant});});}const getCategory=()=>{const categoryElement=document.querySelector(\"*\");const walker=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,null,false);let node;while(node=walker.nextNode()){const text=node.textContent?.trim();if(text?.includes(\"Category: Family\")){return\"family\";}else if(text?.includes(\"Category: Health\")){return\"health\";}}return\"health\";};export function withEmbryoSufLinkIfComingFromEmbryoTypeform(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[isComingFromEmbryoTypeform,setIsComingFromEmbryoTypeform]=useState(false);useEffect(()=>{const params=new URLSearchParams(window.location.search);const fromEmbryo=params.get(\"source\")===\"embryoTypeform\";setIsComingFromEmbryoTypeform(fromEmbryo);},[]);if(isComingFromEmbryoTypeform){return /*#__PURE__*/_jsx(Component,{...props,link:\"https://app.mynucleus.com/signup/embryo\",ref:ref});}return /*#__PURE__*/_jsx(Component,{...props,ref:ref});});}export function withFixedPositioning(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{const hideIntercom=()=>{const launcher=document.querySelector(\".intercom-launcher\");if(launcher){launcher.style.display=\"none\";}else{setTimeout(hideIntercom,500);}};if(typeof window!==\"undefined\"){hideIntercom();}},[]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",bottom:0,left:0,right:0},children:/*#__PURE__*/_jsx(Component,{ref:ref,...props})});});}export function withCopyToClipboard(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const handleCopy=()=>{const textToCopy=\"https://mynucleus.com/product\";navigator.clipboard.writeText(textToCopy).then(()=>console.log(\"Text copied to clipboard!\")).catch(err=>console.error(\"Failed to copy text:\",err));};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:handleCopy});});}export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{rotate:90},transition:{duration:2}});});}export function withHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.05}});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withEmbryoSufLinkIfComingFromEmbryoTypeform\":{\"type\":\"reactHoc\",\"name\":\"withEmbryoSufLinkIfComingFromEmbryoTypeform\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCategoryVariantForBlogCtaLeft\":{\"type\":\"reactHoc\",\"name\":\"withCategoryVariantForBlogCtaLeft\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFixedPositioning\":{\"type\":\"reactHoc\",\"name\":\"withFixedPositioning\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCopyToClipboard\":{\"type\":\"reactHoc\",\"name\":\"withCopyToClipboard\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCategoryVariantForBlogCtaTop\":{\"type\":\"reactHoc\",\"name\":\"withCategoryVariantForBlogCtaTop\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Utils.map"],
  "mappings": "kJAAO,IAAMA,EAAgB,CACzB,QAAS,OACT,eAAgB,SAChB,WAAY,QAChB,EASO,IAAMC,EAAyB,CAClC,GAAGC,EACH,SAAU,QACd,ECdA,IAAMC,EAASC,EAAY,CAAC,WAAW,SAAS,CAAC,EAAS,SAASC,EAAkCC,EAAU,CAAC,OAAoBC,EAAW,CAACC,EAAMC,IAAM,CAAC,GAAK,CAACC,EAASC,CAAW,EAAEC,EAAS,QAAQ,EAAE,OAAAC,EAAU,IAAI,CAAC,IAAMH,EAASI,EAAY,EAAEH,EAAYD,CAAQ,CAAE,EAAE,CAAC,CAAC,EAA+EK,EAAKT,EAAU,CAAC,GAAGE,EAAM,IAAIC,EAAI,QAA7F,CAAC,OAAO,YAAY,OAAO,WAAW,EAA0EC,CAAQ,CAAC,CAAC,CAAE,CAAC,CAAE,CAAQ,SAASM,EAAiCV,EAAU,CAAC,OAAoBC,EAAW,CAACC,EAAMC,IAAM,CAAC,GAAK,CAACQ,EAAWC,CAAa,EAAEN,EAAS,IAAI,EAAO,CAACF,EAASC,CAAW,EAAEC,EAAS,QAAQ,EAAQO,EAAc,IAAI,CAAC,IAAMC,EAAMC,EAAO,WAAeC,EAAcF,GAAO,KAAME,EAAW,UAAmBF,GAAO,IAAKE,EAAW,SAAeA,EAAW,SAAUJ,EAAcK,EAAWb,CA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BAAgBhB,EAAO,SAAS,MAAM,EAA0B,IAAI,QAAQ,IAAI,iBAAiBe,EAA8BC,CAAU,CAAE,EAAE,CAAC,CAAC,EAAKF,EAAgDpB,EAAKT,EAAU,CAAC,GAAGE,EAAM,KAAK,0CAA0C,IAAIC,CAAG,CAAC,EAAuBM,EAAKT,EAAU,CAAC,GAAGE,EAAM,IAAIC,CAAG,CAAC,CAAE,CAAC,CAAE,CAAQ,SAAS6B,EAAqBhC,EAAU,CAAC,OAAoBC,EAAW,CAACC,EAAMC,KAAOI,EAAU,IAAI,CAAC,IAAM0B,EAAa,IAAI,CAAC,IAAMC,EAAS,SAAS,cAAc,oBAAoB,EAAKA,EAAUA,EAAS,MAAM,QAAQ,OAAa,WAAWD,EAAa,GAAG,CAAG,EAAK,OAAOlB,EAAS,KAAakB,EAAa,CAAG,EAAE,CAAC,CAAC,EAAsBxB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,QAAQ,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,SAAsBA,EAAKT,EAAU,CAAC,IAAIG,EAAI,GAAGD,CAAK,CAAC,CAAC,CAAC,EAAG,CAAE,CAAQ,SAASiC,EAAoBnC,EAAU,CAAC,OAAoBC,EAAW,CAACC,EAAMC,IAAuPM,EAAKT,EAAU,CAAC,IAAIG,EAAI,GAAGD,EAAM,QAAhQ,IAAI,CAAkDkC,EAAU,UAAU,UAApD,+BAAwE,EAAE,KAAK,IAAI,QAAQ,IAAI,2BAA2B,CAAC,EAAE,MAAMC,GAAK,QAAQ,MAAM,uBAAuBA,CAAG,CAAC,CAAE,CAAyE,CAAC,CAAG,CAAE",
  "names": ["centerContent", "defaultContainerStyles", "centerContent", "useStore", "createStore", "withCategoryVariantForBlogCtaLeft", "Component", "Y", "props", "ref", "category", "setCategory", "ye", "ue", "getCategory", "p", "withCategoryVariantForBlogCtaTop", "newVariant", "setNewVariant", "updateVariant", "width", "window", "breakpoint", "variantsID", "debounce", "func", "delay", "timeoutId", "args", "debouncedUpdateVariant", "categoryElement", "walker", "node", "text", "withEmbryoSufLinkIfComingFromEmbryoTypeform", "isComingFromEmbryoTypeform", "setIsComingFromEmbryoTypeform", "fromEmbryo", "withFixedPositioning", "hideIntercom", "launcher", "withCopyToClipboard", "navigator", "err"]
}
