{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/z4b1vp3UAImtfsaBrDoH/gYaiY84Gyc3tkNcK1ywx/TrackingStorage.js", "ssg:https://framerusercontent.com/modules/9vQpUMMmupalUOjIncF1/Nj7JIGOkHpJqRP8pThcA/PopupCoupon.js", "ssg:https://framerusercontent.com/modules/Y3Cu7KyFUtN6y6HUKA72/1VElsl2M6M2kkAC1bTGm/PopupDiscount.js", "ssg:https://framerusercontent.com/modules/kjwJZA7tki7ThPgTs72W/0sFYYNg4nwOP1M5jaiNc/DiscountModal.js", "ssg:https://framerusercontent.com/modules/kh0IaRYAuVyxWsevB93w/VoZsKn5OJH6jaeiX0or4/PopupInteraction.js"],
  "sourcesContent": ["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/docs/guides/\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Fragment, useEffect } from \"react\";\nexport const getQueryStringAsObject = queryStr => {\n  const queryResult = {};\n  queryStr.replace(/([^?=&]+)(=([^&]*))?/g, ($0, $1, $2, $3) => {\n    queryResult[$1] = $3;\n    return \"\";\n  });\n  return queryResult;\n};\nexport function getCookiesAsObject() {\n  const cookies = document.cookie.split(\";\");\n  const cookiesObject = {};\n  cookies.forEach(cookie => {\n    const [name, value] = cookie.trim().split(\"=\");\n    cookiesObject[name] = decodeURIComponent(value);\n  });\n  return cookiesObject;\n}\nexport const getAllTracking = () => ({\n  ...getCookiesAsObject(),\n  ...getQueryStringAsObject(location.search)\n}); /**\n    * These annotations control how your component sizes\n    * Learn more: https://www.framer.com/docs/guides/auto-sizing\n    *\n    * @framerSupportedLayoutWidth auto\n    * @framerSupportedLayoutHeight auto\n    */\nexport default function TrackingStorage(props) {\n  useEffect(() => {\n    const queryObject = getQueryStringAsObject(window.location.search);\n    const trackingStr = JSON.stringify(queryObject);\n    localStorage.setItem(\"tracking\", trackingStr);\n  }, []);\n  return /*#__PURE__*/_jsx(Fragment, {});\n}\n;\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"getQueryStringAsObject\": {\n      \"type\": \"variable\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"TrackingStorage\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerContractVersion\": \"1\",\n        \"framerSupportedLayoutWidth\": \"auto\",\n        \"framerSupportedLayoutHeight\": \"auto\"\n      }\n    },\n    \"getAllTracking\": {\n      \"type\": \"variable\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"getCookiesAsObject\": {\n      \"type\": \"function\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./TrackingStorage.map", "import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useRef, useState } from \"react\";\nimport { motion, AnimatePresence } from \"framer-motion\";\nexport default function PopupCoupon({\n  coupon\n}) {\n  const [isCopied, setCopy] = useState(false);\n  const codeRef = useRef();\n  const canClickboard = navigator.clipboard && coupon;\n  const onClick = async () => {\n    if (canClickboard) {\n      await navigator.clipboard.writeText(coupon);\n      setCopy(true);\n      setTimeout(() => {\n        setCopy(false);\n      }, 2500);\n    }\n  };\n  return /*#__PURE__*/_jsxs(\"div\", {\n    style: containerStyle,\n    children: [/*#__PURE__*/_jsxs(\"h1\", {\n      style: titleStyle,\n      children: [\"\\xa1Ya puedes canjear tus\", /*#__PURE__*/_jsx(\"br\", {}), /*#__PURE__*/_jsx(\"strong\", {\n        style: accentStyle,\n        children: \" 10\u20AC de descuento!*\"\n      })]\n    }), /*#__PURE__*/_jsxs(\"div\", {\n      style: contentTextStyle,\n      children: [\"Empieza a disfrutar de tu academia all in one aplicando \", /*#__PURE__*/_jsx(\"strong\", {\n        style: accentStyle,\n        children: \"este c\\xf3digo en tu primera suscripci\\xf3n\"\n      }), /*#__PURE__*/_jsxs(motion.span, {\n        whileTap: {\n          scale: .9\n        },\n        style: boxCode,\n        onClick: onClick,\n        children: [/*#__PURE__*/_jsx(\"strong\", {\n          style: couponTextStyle,\n          children: coupon || \"\"\n        }), canClickboard && /*#__PURE__*/_jsx(\"div\", {\n          style: copyContainerStyle,\n          children: /*#__PURE__*/_jsxs(\"svg\", {\n            xmlns: \"http://www.w3.org/2000/svg\",\n            width: 27,\n            height: 27,\n            fill: \"none\",\n            children: [/*#__PURE__*/_jsx(\"g\", {\n              clipPath: \"url(#a)\",\n              children: /*#__PURE__*/_jsx(\"path\", {\n                fill: \"#000\",\n                d: \"M18 1.125H4.5a2.257 2.257 0 0 0-2.25 2.25v15.75H4.5V3.375H18v-2.25Zm3.375 4.5H9a2.257 2.257 0 0 0-2.25 2.25v15.75A2.257 2.257 0 0 0 9 25.875h12.375a2.257 2.257 0 0 0 2.25-2.25V7.875a2.257 2.257 0 0 0-2.25-2.25Zm0 18H9V7.875h12.375v15.75Z\"\n              })\n            }), /*#__PURE__*/_jsx(\"defs\", {\n              children: /*#__PURE__*/_jsx(\"clipPath\", {\n                id: \"a\",\n                children: /*#__PURE__*/_jsx(\"path\", {\n                  fill: \"#fff\",\n                  d: \"M0 0h27v27H0z\"\n                })\n              })\n            })]\n          })\n        })]\n      }), /*#__PURE__*/_jsx(AnimatePresence, {\n        children: isCopied && /*#__PURE__*/_jsx(motion.div, {\n          initial: {\n            opacity: 0\n          },\n          animate: {\n            opacity: 1\n          },\n          exit: {\n            opacity: 0\n          },\n          style: {\n            paddingTop: 10\n          },\n          children: /*#__PURE__*/_jsx(\"strong\", {\n            style: {\n              marginTop: 10,\n              color: \"#5767DD\"\n            },\n            children: \"Copiado!\"\n          })\n        })\n      })]\n    }), /*#__PURE__*/_jsx(\"a\", {\n      style: buttonStyle,\n      href: \"https://formacion.ninja/precios/bomberos\",\n      children: \"\\xa1Suscr\\xedbete ya!\"\n    }), /*#__PURE__*/_jsx(\"div\", {\n      style: {\n        display: \"flex\",\n        gap: 10,\n        fontSize: 13,\n        opacity: .6\n      },\n      children: /*#__PURE__*/_jsx(\"p\", {\n        children: \"*V\\xe1lido para nuevos alumnos. Aplicable en primera suscripci\\xf3n.\"\n      })\n    })]\n  });\n}\n; // Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst containerStyle = {\n  position: \"relative\",\n  padding: 20,\n  display: \"flex\",\n  gap: 20,\n  flexDirection: \"column\",\n  justifyContent: \"center\",\n  alignItems: \"center\",\n  overflow: \"hidden\"\n};\nconst copyContainerStyle = {\n  position: \"absolute\",\n  right: 0,\n  height: 60,\n  width: 60,\n  display: \"flex\",\n  alignItems: \"center\",\n  justifyContent: \"center\"\n};\nconst titleStyle = {\n  padding: 0,\n  margin: 0,\n  textAlign: \"center\",\n  fontSize: 36\n};\nconst accentStyle = {\n  color: \"#E30613\"\n};\nconst contentTextStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  fontSize: 15,\n  textAlign: \"center\"\n};\nconst boxCode = {\n  position: \"relative\",\n  height: 60,\n  width: \"100%\",\n  marginTop: 10,\n  display: \"flex\",\n  justifyContent: \"center\",\n  alignItems: \"center\",\n  border: \"2px dashed #5767DD\"\n};\nconst couponTextStyle = {\n  fontSize: 20,\n  color: \"#121316\",\n  border: 0,\n  backgroundColor: \"transparent\",\n  textAlign: \"center\",\n  fontWeight: \"bold\"\n};\nconst buttonStyle = {\n  width: 250,\n  textDecoration: \"none\",\n  display: \"flex\",\n  justifyContent: \"center\",\n  alignItems: \"center\",\n  fontSize: 18,\n  color: \"white\",\n  borderRadius: 40,\n  boxShadow: \"6px 6px 20px 0px rgba(0, 0, 0, 0.15)\",\n  height: 50,\n  backgroundColor: \"#5767DD\"\n};\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"PopupCoupon\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"PopupCouponProps\": {\n      \"type\": \"tsType\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./PopupCoupon.map", "import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useState } from \"react\";\nimport Loading from \"https://framerusercontent.com/modules/oFDGXI3y7IFZfIXmwLmw/6NnntuOYmBMUai08NNon/Loading.js\";\nimport PopupCoupon from \"https://framerusercontent.com/modules/9vQpUMMmupalUOjIncF1/Nj7JIGOkHpJqRP8pThcA/PopupCoupon.js\";\nimport { getAllTracking } from \"https://framerusercontent.com/modules/z4b1vp3UAImtfsaBrDoH/gYaiY84Gyc3tkNcK1ywx/TrackingStorage.js\";\nfunction PopupForm(props) {\n  const [email, setEmail] = useState(\"\");\n  const [code, setCode] = useState(\"\");\n  const [error, setError] = useState(\"\");\n  const [mode, setMode] = useState(\"default\");\n  const onSubmit = async e => {\n    e.preventDefault();\n    setError(\"\");\n    setMode(\"loading\");\n    try {\n      const res = await fetch(`https://adquisitions.onrender.com/contact/coupon`, {\n        method: \"POST\",\n        headers: {\n          \"Content-Type\": \"application/json; charset=utf-8\"\n        },\n        body: JSON.stringify({\n          id: 67,\n          email,\n          parameters: getAllTracking()\n        })\n      });\n      const {\n        success,\n        code\n      } = await res.json();\n      if (!code) {\n        throw new Error(\"Vaya ocurrio un error\");\n      }\n      setCode(code);\n      setMode(\"coupon\");\n    } catch (ex) {\n      console.error(ex);\n      setError(\"Ocurrio un error inesperado, intentalo m\\xe1s tarde\");\n      setMode(\"error\");\n    }\n  };\n  const onChange = ({\n    target: {\n      value\n    }\n  }) => {\n    setEmail(value);\n  };\n  if (mode === \"coupon\") {\n    return /*#__PURE__*/_jsx(PopupCoupon, {\n      coupon: code\n    });\n  }\n  return /*#__PURE__*/_jsxs(\"form\", {\n    style: containerStyle,\n    onSubmit: onSubmit,\n    children: [/*#__PURE__*/_jsxs(\"h1\", {\n      style: titleStyle,\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        style: accentStyle,\n        children: \"Ahorra 10\u20AC\"\n      }), /*#__PURE__*/_jsx(\"br\", {}), \"en tu suscripci\\xf3n*\"]\n    }), /*#__PURE__*/_jsxs(\"div\", {\n      style: formStyle,\n      children: [/*#__PURE__*/_jsxs(\"p\", {\n        style: contentTextStyle,\n        children: [\"Introduce tu email y \", /*#__PURE__*/_jsx(\"strong\", {\n          children: \"obt\\xe9n tu descuento\"\n        })]\n      }), /*#__PURE__*/_jsx(\"input\", {\n        placeholder: \"Email\",\n        type: \"email\",\n        required: true,\n        value: email,\n        onChange: onChange,\n        style: inputStyle\n      }), error && /*#__PURE__*/_jsx(\"p\", {\n        style: {\n          ...accentStyle,\n          fontSize: 15\n        },\n        children: error\n      })]\n    }), /*#__PURE__*/_jsxs(\"div\", {\n      style: {\n        display: \"flex\",\n        flexDirection: \"row\",\n        gap: 5,\n        alignItems: \"center\"\n      },\n      children: [/*#__PURE__*/_jsx(\"input\", {\n        required: true,\n        type: \"checkbox\",\n        style: {\n          width: 20,\n          height: 20\n        }\n      }), /*#__PURE__*/_jsxs(\"p\", {\n        style: {\n          fontSize: 14,\n          color: \"black\"\n        },\n        children: [\"Aceptar \", /*#__PURE__*/_jsx(\"a\", {\n          style: {\n            color: \"black\"\n          },\n          href: \"https://formacion.ninja/aviso-legal/politica-de-privacidad\",\n          children: \"Pol\\xedtica de Privacidad\"\n        }), \" \", \"y\", \" \", /*#__PURE__*/_jsx(\"a\", {\n          style: {\n            color: \"black\"\n          },\n          href: \"https://formacion.ninja/aviso-legal/condiciones-de-contratacion\",\n          children: \"Condiciones de contrataci\\xf3n\"\n        })]\n      })]\n    }), /*#__PURE__*/_jsx(\"button\", {\n      style: defualtButtonStyle,\n      type: \"submit\",\n      children: mode === \"loading\" ? /*#__PURE__*/_jsx(Loading, {\n        color: \"white\"\n      }) : \"Quiero mis 10\u20AC\"\n    }), /*#__PURE__*/_jsx(\"div\", {\n      style: {\n        display: \"flex\",\n        gap: 10,\n        fontSize: 13,\n        opacity: .6\n      },\n      children: /*#__PURE__*/_jsx(\"p\", {\n        children: \"*V\\xe1lido para nuevos alumnos. Aplicable en primera suscripci\\xf3n.\"\n      })\n    })]\n  });\n}\nexport default function PopupDiscount(props) {\n  return /*#__PURE__*/_jsxs(\"div\", {\n    style: {\n      display: \"flex\",\n      flexDirection: \"column\",\n      justifyContent: \"center\",\n      position: \"relative\",\n      alignItems: \"center\",\n      zIndex: 1\n    },\n    children: [/*#__PURE__*/_jsx(\"div\", {\n      style: iconContainerStyle,\n      children: /*#__PURE__*/_jsxs(\"svg\", {\n        xmlns: \"http://www.w3.org/2000/svg\",\n        width: \"130\",\n        height: \"116\",\n        fill: \"none\",\n        viewBox: \"0 0 130 116\",\n        children: [/*#__PURE__*/_jsx(\"path\", {\n          fill: \"#E30613\",\n          d: \"M72.55 53.793a3.876 3.876 0 00-2.758 1.144 3.882 3.882 0 00-1.148 2.766 3.87 3.87 0 001.143 2.76 3.88 3.88 0 002.763 1.147 3.882 3.882 0 002.764-1.145 3.916 3.916 0 000-5.529 3.887 3.887 0 00-2.764-1.143zM42.391 54.94a3.886 3.886 0 00-2.765 1.145 3.884 3.884 0 00-1.146 2.764c0 1.041.406 2.023 1.146 2.76a3.878 3.878 0 002.764 1.149 3.885 3.885 0 002.763-1.145 3.883 3.883 0 001.143-2.764 3.894 3.894 0 00-1.143-2.766 3.88 3.88 0 00-2.762-1.143z\"\n        }), /*#__PURE__*/_jsx(\"path\", {\n          fill: \"#E30613\",\n          d: \"M127.636 21.06l-12.935-.004L115.989 0 61.341 3.347 0 64.687l51.305 51.305 61.339-61.344 1.766-28.862 13.224.004a2.366 2.366 0 00.002-4.73zM48.497 64.956a8.611 8.611 0 01-6.108 2.53 8.614 8.614 0 01-6.11-2.531 8.633 8.633 0 010-12.218 8.61 8.61 0 016.11-2.53 8.64 8.64 0 016.109 14.749zm11.91 16.909a2.366 2.366 0 01-2.643-2.052L52.466 37.79a2.367 2.367 0 014.695-.592l5.298 42.023a2.368 2.368 0 01-2.052 2.644zm18.254-18.057a8.612 8.612 0 01-6.11 2.532 8.613 8.613 0 01-6.11-2.53c-3.373-3.372-3.373-8.842.004-12.22a8.612 8.612 0 016.105-2.53c2.212 0 4.423.845 6.109 2.53 3.374 3.376 3.374 8.848.002 12.218zm21.155-33.138a10.23 10.23 0 01-7.252 3.003 10.228 10.228 0 01-7.247-3.003 10.221 10.221 0 01-3.005-7.249 10.226 10.226 0 013.005-7.25 10.23 10.23 0 017.249-3.002 10.24 10.24 0 017.25 3.003 10.198 10.198 0 012.715 4.88l-5.003-.002a5.458 5.458 0 00-1.057-1.531 5.495 5.495 0 00-3.905-1.618 5.5 5.5 0 00-3.904 1.616l-.002.004a5.47 5.47 0 00-1.616 3.9 5.497 5.497 0 001.62 3.904 5.468 5.468 0 003.9 1.616 5.506 5.506 0 003.907-1.616c.46-.462.8-.99 1.063-1.543l4.997.002a10.235 10.235 0 01-2.715 4.886z\"\n        })]\n      })\n    }), /*#__PURE__*/_jsx(PopupForm, {\n      ...props\n    })]\n  });\n}\n;\nconst iconContainerStyle = {\n  padding: 20\n};\nconst iconStyle = {\n  width: 60,\n  height: 60,\n  color: \"#E30613\"\n}; // Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst containerStyle = {\n  position: \"relative\",\n  display: \"flex\",\n  gap: 20,\n  flexDirection: \"column\",\n  justifyContent: \"center\",\n  alignItems: \"center\",\n  overflow: \"hidden\"\n};\nconst titleStyle = {\n  padding: 0,\n  margin: 0,\n  textAlign: \"center\",\n  fontSize: 36\n};\nconst accentStyle = {\n  color: \"#E30613\"\n};\nconst contentTextStyle = {\n  fontSize: 18,\n  paddingBottom: 10\n};\nconst formStyle = {\n  width: \"100%\",\n  display: \"flex\",\n  gap: 3,\n  flexDirection: \"column\",\n  alignItems: \"center\",\n  justifyContent: \"center\"\n};\nconst formTitleStyle = {\n  fontSize: 16\n};\nconst inputContainerStyle = {\n  width: \"100%\",\n  display: \"flex\",\n  alignItems: \"center\",\n  justifyContent: \"center\",\n  flexDirection: \"column\"\n};\nconst inputStyle = {\n  width: \"100%\",\n  border: \"1px solid rgba(192, 192, 192, 0.60)\",\n  borderRadius: 40,\n  height: 50,\n  fontSize: 16,\n  paddingLeft: 20,\n  paddingRight: 20\n};\nconst defualtButtonStyle = {\n  cursor: \"pointer\",\n  width: 250,\n  height: 50,\n  paddingLeft: 40,\n  paddingRight: 40,\n  display: \"flex\",\n  alignItems: \"center\",\n  justifyContent: \"center\",\n  backgroundColor: \"#E30613\",\n  borderRadius: 40,\n  fontSize: 18,\n  color: \"white\",\n  border: 0\n};\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"PopupDiscount\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./PopupDiscount.map", "import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useEffect, useState } from \"react\";\nimport PopupDiscount from \"https://framerusercontent.com/modules/Y3Cu7KyFUtN6y6HUKA72/1VElsl2M6M2kkAC1bTGm/PopupDiscount.js\";\nimport { motion } from \"framer-motion\";\nconst frameVariants = {\n  open: {\n    opacity: .6,\n    transition: {\n      type: \"spring\",\n      duration: .8\n    }\n  },\n  closed: {\n    opacity: 0\n  },\n  exit: {\n    opacity: 0\n  }\n};\nconst modalVariants = {\n  open: {\n    y: 0,\n    opacity: 1\n  },\n  closed: {\n    y: 350,\n    opacity: 0,\n    transition: {\n      type: \"spring\",\n      bounce: .2,\n      duration: .8\n    }\n  },\n  exit: {\n    y: 350,\n    opacity: 0,\n    transition: {\n      type: \"spring\",\n      bounce: .2,\n      duration: .8\n    }\n  }\n};\nexport default function DiscountModal(props) {\n  const [animation, setAnimation] = useState(\"closed\");\n  const [close, setClose] = useState(false);\n  useEffect(() => {\n    const timeoutId = setTimeout(() => {\n      setAnimation(\"open\");\n    }, 1e3);\n    return () => {\n      clearTimeout(timeoutId);\n    };\n  }, []);\n  const exit = () => {\n    setAnimation(\"exit\");\n  };\n  if (close) {\n    return null;\n  }\n  return /*#__PURE__*/_jsxs(\"div\", {\n    style: containerStyle,\n    children: [/*#__PURE__*/_jsx(motion.div, {\n      variants: frameVariants,\n      onAnimationComplete: animation => {\n        if (animation === \"exit\") {\n          setClose(true);\n        }\n      },\n      animate: animation,\n      transition: {\n        duration: .3\n      },\n      style: framerStyle\n    }), /*#__PURE__*/_jsxs(motion.div, {\n      animate: animation,\n      variants: modalVariants,\n      style: modalStyle,\n      children: [/*#__PURE__*/_jsx(motion.div, {\n        whileTap: {\n          scale: 1.2\n        },\n        style: headerStyle,\n        onAnimationComplete: ({\n          scale\n        }) => {\n          if (scale === 1.2) {\n            exit();\n          }\n        },\n        children: /*#__PURE__*/_jsx(\"svg\", {\n          xmlns: \"http://www.w3.org/2000/svg\",\n          fill: \"none\",\n          viewBox: \"0 0 24 24\",\n          strokeWidth: 1.5,\n          stroke: \"currentColor\",\n          className: \"w-6 h-6\",\n          children: /*#__PURE__*/_jsx(\"path\", {\n            strokeLinecap: \"round\",\n            strokeLinejoin: \"round\",\n            d: \"M6 18L18 6M6 6l12 12\"\n          })\n        })\n      }), /*#__PURE__*/_jsx(PopupDiscount, {})]\n    })]\n  });\n}\n; // Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst containerStyle = {\n  padding: 10,\n  width: \"100%\",\n  height: \"100%\",\n  position: \"fixed\",\n  display: \"flex\",\n  justifyContent: \"center\",\n  alignItems: \"center\",\n  overflow: \"hidden\"\n};\nconst headerStyle = {\n  width: 30,\n  height: 30,\n  position: \"absolute\",\n  top: 15,\n  right: 15,\n  zIndex: 3\n};\nconst framerStyle = {\n  position: \"absolute\",\n  top: 0,\n  bottom: 0,\n  left: 0,\n  right: 0,\n  backgroundColor: \"black\",\n  opacity: 0\n};\nconst modalStyle = {\n  position: \"relative\",\n  backgroundColor: \"white\",\n  borderRadius: 30,\n  maxWidth: 600,\n  zIndex: 1,\n  opacity: 0,\n  padding: 20\n};\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"DiscountModal\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};", "import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useEffect, useState } from \"react\";\nimport { getQueryStringAsObject } from \"https://framerusercontent.com/modules/z4b1vp3UAImtfsaBrDoH/gYaiY84Gyc3tkNcK1ywx/TrackingStorage.js\";\nconst allowUtmList = [\"google\", \"facebook\", \"youtube\", \"instagram\", \"tiktok\", \"truspilot\", \"linkedin\"];\nexport function withUtms(Component) {\n  return props => {\n    const [show, setShow] = useState(false);\n    useEffect(() => {\n      const tracking = getQueryStringAsObject(location.search);\n      const utmSource = (tracking[\"utm_source\"] || \"\").toLowerCase();\n      if (allowUtmList.indexOf(utmSource) > -1) {\n        setShow(true);\n      }\n    }, []);\n    return show ? /*#__PURE__*/_jsx(Component, {\n      ...props\n    }) : null;\n  };\n}\nexport function hide(Component) {\n  return props => {\n    return null;\n  };\n}\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"hide\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"hide\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"withUtms\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"withUtms\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./PopupInteraction.map"],
  "mappings": "qNAIO,IAAMA,EAAyBC,GAAY,CAChD,IAAMC,EAAc,CAAC,EACrB,OAAA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,EAAQ,EAAI,CAEhB,EAAG,CAAC,CAAC,EACED,EAAoBM,EAAKR,EAAW,CACzC,GAAGC,CACL,CAAC,EAAI,IACP,CACF",
  "names": ["getQueryStringAsObject", "queryStr", "queryResult", "$0", "$1", "$2", "$3", "getCookiesAsObject", "cookies", "cookiesObject", "cookie", "name", "value", "getAllTracking", "TrackingStorage", "props", "ue", "queryObject", "window", "trackingStr", "p", "x", "PopupCoupon", "coupon", "isCopied", "setCopy", "ye", "codeRef", "pe", "canClickboard", "navigator", "onClick", "u", "containerStyle", "titleStyle", "p", "accentStyle", "contentTextStyle", "motion", "boxCode", "couponTextStyle", "copyContainerStyle", "AnimatePresence", "buttonStyle", "PopupForm", "props", "email", "setEmail", "ye", "code", "setCode", "error", "setError", "mode", "setMode", "onSubmit", "e", "res", "getAllTracking", "success", "ex", "onChange", "value", "p", "PopupCoupon", "u", "containerStyle", "titleStyle", "accentStyle", "formStyle", "contentTextStyle", "inputStyle", "defualtButtonStyle", "Loading", "PopupDiscount", "iconContainerStyle", "containerStyle", "titleStyle", "accentStyle", "contentTextStyle", "formStyle", "inputStyle", "defualtButtonStyle", "frameVariants", "modalVariants", "DiscountModal", "props", "animation", "setAnimation", "ye", "close", "setClose", "ue", "timeoutId", "exit", "u", "containerStyle", "p", "motion", "framerStyle", "modalStyle", "headerStyle", "scale", "PopupDiscount", "allowUtmList", "withUtms", "Component", "props", "show", "setShow", "ye", "ue", "utmSource", "getQueryStringAsObject", "p"]
}
