{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/ykpeJJ3NOtk9XPr2xzYz/WklbzJyan8QMBBh4zs9v/Banner.js"],
  "sourcesContent": ["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport { useState } from \"react\";\nimport { motion } from \"framer-motion\";\nexport default function Banner(props) {\n  const colorSecondary = \"#03B7DD\";\n  const whiteColor = \"#FFFFFF\";\n  const blackColor = \"#000000\";\n  const grayColor = props.background;\n  const [changeBackgroundColor, setChangeBackgroundColor] = useState(colorSecondary);\n  const [changeColor, setChangeColor] = useState(whiteColor);\n  const [changeLinkColor, setChangeLinkColor] = useState(whiteColor);\n  const style = {\n    fontFamily: \"Mona-sans Regular\",\n    lineHeight: \"1.5\",\n    fontSize: \"14px\",\n    display: \"inline-block\",\n    backgroundColor: \"#fbfbfd\",\n    padding: 15,\n    width: \"100%\"\n  };\n  const content = {\n    display: \"flex\",\n    flexDirection: \"row\",\n    alignItems: \"center\",\n    justifyContent: \"center\",\n    maxWidth: \"1000px\",\n    margin: \"auto\",\n    textAlign: \"center\"\n  };\n  const link = {\n    color: changeLinkColor,\n    textDecoration: \"none\"\n  };\n  const handleAnimationComplete = () => {\n    setInterval(() => {\n      setChangeBackgroundColor(props.backgroundColor);\n      setChangeColor(props.textColor); //setChangeLinkColor(props.linkColor)\n    }, 1500);\n    setInterval(() => {\n      setChangeLinkColor(props.linkColor);\n    }, 1900);\n  };\n  return /*#__PURE__*/_jsx(motion.div, {\n    style: style,\n    initial: {\n      y: \"-100%\",\n      backgroundColor: colorSecondary,\n      color: whiteColor\n    },\n    animate: {\n      y: 0,\n      backgroundColor: changeBackgroundColor,\n      color: changeColor\n    },\n    transition: {\n      duration: 1\n    },\n    onAnimationComplete: handleAnimationComplete,\n    children: /*#__PURE__*/_jsx(\"div\", {\n      style: content,\n      children: /*#__PURE__*/_jsxs(\"p\", {\n        children: [props.text, \"\\xa0\", /*#__PURE__*/_jsxs(\"a\", {\n          style: link,\n          href: props.link,\n          target: \"_blank\",\n          rel: \"noopener noreferrer\",\n          children: [props.textLink, /*#__PURE__*/_jsx(\"svg\", {\n            width: \"18px\",\n            height: \"10px\",\n            xmlns: \"http://www.w3.org/2000/svg\",\n            viewBox: \"0 0 256 512\",\n            children: /*#__PURE__*/_jsx(\"path\", {\n              fill: changeLinkColor,\n              d: \"M219.9 266.7L75.89 426.7c-5.906 6.562-16.03 7.094-22.59 1.188c-6.918-6.271-6.783-16.39-1.188-22.62L186.5 256L52.11 106.7C46.23 100.1 46.75 90.04 53.29 84.1C59.86 78.2 69.98 78.73 75.89 85.29l144 159.1C225.4 251.4 225.4 260.6 219.9 266.7z\"\n            })\n          })]\n        })]\n      })\n    })\n  });\n}\n;\nBanner.defaultProps = {\n  text: \"Reach new heights with our IoT fundamentals program.\",\n  textLink: \"Register Now\",\n  link: \"https://learn.tago.io/\",\n  backgroundColor: \"#F6F6F6\",\n  textColor: \"#00000\",\n  linkColor: \"#03B7DD\"\n};\naddPropertyControls(Banner, {\n  text: {\n    title: \"Text\",\n    type: ControlType.String\n  },\n  textLink: {\n    title: \"Text Link\",\n    type: ControlType.String\n  },\n  link: {\n    title: \"Link\",\n    type: ControlType.String\n  },\n  backgroundColor: {\n    title: \"Background Color\",\n    type: ControlType.Color\n  },\n  textColor: {\n    title: \"Text Color\",\n    type: ControlType.Color\n  },\n  linkColor: {\n    title: \"Link Color\",\n    type: ControlType.Color\n  }\n});\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"Banner\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./Banner.map"],
  "mappings": "8GAIe,SAARA,EAAwBC,EAAO,CACpC,IAAMC,EAAiB,UACjBC,EAAa,UACbC,EAAa,UACbC,EAAY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ACN,gBAAiB,UACjB,UAAW,SACX,UAAW,SACb,EACAoB,EAAoBpB,EAAQ,CAC1B,KAAM,CACJ,MAAO,OACP,KAAMqB,EAAY,MACpB,EACA,SAAU,CACR,MAAO,YACP,KAAMA,EAAY,MACpB,EACA,KAAM,CACJ,MAAO,OACP,KAAMA,EAAY,MACpB,EACA,gBAAiB,CACf,MAAO,mBACP,KAAMA,EAAY,KACpB,EACA,UAAW,CACT,MAAO,aACP,KAAMA,EAAY,KACpB,EACA,UAAW,CACT,MAAO,aACP,KAAMA,EAAY,KACpB,CACF,CAAC",
  "names": ["Banner", "props", "colorSecondary", "whiteColor", "blackColor", "grayColor", "changeBackgroundColor", "setChangeBackgroundColor", "ye", "changeColor", "setChangeColor", "changeLinkColor", "setChangeLinkColor", "style", "content", "link", "handleAnimationComplete", "p", "motion", "u", "addPropertyControls", "ControlType"]
}
