{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Ll8R40eiVRcAkq3U4lS9/LeNVKN3bzh4OXwgNVs6S/Button.js"],
  "sourcesContent": ["import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { useState } from \"react\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport AnimatedArrow from \"https://framer.com/m/AnimatedArrow-fibm.js@Vzb6wm9u76DYWrVSnpFb\";\nconst MIN_WIDTH_MEDIUM = \"92px\";\nconst MIN_WIDTH_LARGE = \"219px\";\nconst MIN_HEIGHT_MEDIUM = \"40px\";\nconst MAX_HEIGHT_LARGE = \"59px\";\nconst MEDIUM_PADDING = \"12px 16px\";\nconst LARGE_PADDING = \"21px 21px 21px 27px\";\nconst MEDIUM_GAP = \"2px\";\nconst LARGE_GAP = \"8px\";\nconst MEDIUM_LINE_HEIGHT = \"14px\";\nconst LARGE_LINE_HEIGHT = \"17px\"; /**\n                                  * @framerSupportedLayoutWidth auto\n                                  * @framerSupportedLayoutHeight auto\n                                  */\nexport default function Button({\n  onClick,\n  variant,\n  icon,\n  iconPosition = \"right\",\n  IconCode,\n  arrowType,\n  colorScheme = \"gray\",\n  fontColor,\n  fontSize = \"14\",\n  fontWeight = \"600\",\n  capitalize,\n  size = \"medium\",\n  mainText = \"New Button\",\n  secondaryText,\n  redirectUrl,\n  redirectToNewTab = true,\n  trackingEventName,\n  height,\n  width,\n  mobile\n}) {\n  const [isHover, setIsHover] = useState(false);\n  const handleMouseEnter = () => {\n    setIsHover(true);\n  };\n  const handleMouseLeave = () => {\n    setIsHover(false);\n  };\n  const handleClickWithInjection = () => {\n    if (trackingEventName) {\n      // @ts-ignore\n      window.gtag(\"event\", trackingEventName);\n    } // For now, redirects are done using Framer Interactions, this is another way to\n    // redirect using props if needed\n    if (redirectUrl) window === null || window === void 0 ? void 0 : window.open(redirectUrl, redirectToNewTab && \"_blank\");\n    if (onClick) onClick();\n  }; // Compute inline style overrides\n  const computedWrapperStyles = {\n    ...wrapperStyles,\n    height: height !== undefined ? height : size === \"medium\" ? MIN_HEIGHT_MEDIUM : MAX_HEIGHT_LARGE,\n    width: width !== undefined ? width : \"fit-content\",\n    flexDirection: iconPosition === \"right\" ? \"row\" : \"row-reverse\",\n    padding: mobile ? \"14px 12px 14px 18px\" : variant === \"singleLine\" ? size === \"medium\" ? MEDIUM_PADDING : LARGE_PADDING : \"16px\",\n    background: colorScheme === \"gray\" ? \"radial-gradient(100% 1209% at 0% 0%, rgba(232, 243, 255, 0.2) 0%, rgba(205, 227, 249, 0.0825) 100%)\" : \"linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%), linear-gradient(94.04deg, #18E2A2 0.2%, #5CFF87 100.24%)\",\n    border: colorScheme === \"gray\" ? \"none\" : \"0.5px solid rgba(255, 255, 255, 0.3)\",\n    backgroundBlendMode: colorScheme === \"gray\" ? \"none\" : \"overlay, normal\"\n  };\n  const computedSingleLineMainText = {\n    ...singleLineMainText,\n    fontSize: fontSize + \"px\",\n    fontWeight: fontWeight,\n    color: fontColor ? fontColor : colorScheme === \"gray\" ? \"#F6F8FA\" : \"#213345\",\n    lineHeight: mobile ? \"initial\" : size === \"medium\" ? MEDIUM_LINE_HEIGHT : LARGE_LINE_HEIGHT,\n    textTransform: capitalize ? \"uppercase\" : \"none\"\n  };\n  const computedDoubleLineMainText = {\n    ...doubleLineMainText,\n    textTransform: capitalize ? \"uppercase\" : \"none\"\n  };\n  const computedDoubleLineSecondaryText = {\n    ...doubleLineSecondaryText,\n    textTransform: capitalize ? \"uppercase\" : \"none\"\n  };\n  const computedIconStyles = {\n    ...iconStyles,\n    margin: iconPosition === \"right\" ? \"0 12px 0 0\" : \"0 0 0 12px\"\n  };\n  return /*#__PURE__*/_jsxs(\"div\", {\n    style: computedWrapperStyles,\n    onMouseEnter: handleMouseEnter,\n    onMouseLeave: handleMouseLeave,\n    onClick: handleClickWithInjection,\n    children: [variant === \"singleLine\" && /*#__PURE__*/_jsxs(_Fragment, {\n      children: [icon && /*#__PURE__*/_jsx(\"img\", {\n        style: computedIconStyles,\n        src: icon,\n        alt: \"icon\"\n      }), /*#__PURE__*/_jsxs(\"div\", {\n        style: singleLineButton,\n        children: [/*#__PURE__*/_jsx(\"p\", {\n          style: computedSingleLineMainText,\n          children: mainText\n        }), arrowType && /*#__PURE__*/_jsx(AnimatedArrow, {\n          isHover: isHover,\n          arrowType: arrowType\n        })]\n      })]\n    }), variant === \"doubleLine\" && /*#__PURE__*/_jsxs(_Fragment, {\n      children: [icon && /*#__PURE__*/_jsx(\"img\", {\n        style: computedIconStyles,\n        src: icon,\n        alt: \"icon\"\n      }), /*#__PURE__*/_jsx(\"div\", {\n        style: doubleLineButton,\n        children: /*#__PURE__*/_jsxs(\"div\", {\n          children: [/*#__PURE__*/_jsxs(\"div\", {\n            style: mainLineBox,\n            children: [/*#__PURE__*/_jsx(\"p\", {\n              style: computedDoubleLineMainText,\n              children: mainText\n            }), arrowType && /*#__PURE__*/_jsx(AnimatedArrow, {\n              isHover: isHover,\n              arrowType: arrowType\n            })]\n          }), /*#__PURE__*/_jsx(\"p\", {\n            style: computedDoubleLineSecondaryText,\n            children: secondaryText\n          })]\n        })\n      })]\n    }), IconCode && /*#__PURE__*/_jsx(IconCode, {})]\n  });\n}\n;\naddPropertyControls(Button, {\n  mainText: {\n    type: ControlType.String,\n    defaultValue: \"SIGN IN\"\n  },\n  secondaryText: {\n    type: ControlType.String\n  },\n  variant: {\n    type: ControlType.String,\n    defaultValue: \"singleLine\",\n    options: [\"singleLine\", \"doubleLine\"]\n  },\n  width: {\n    type: ControlType.String,\n    optional: true\n  },\n  height: {\n    type: ControlType.String,\n    optional: true\n  },\n  size: {\n    type: ControlType.String,\n    defaultValue: \"medium\",\n    options: [\"medium\", \"large\"]\n  },\n  colorScheme: {\n    type: ControlType.String,\n    defaultValue: \"gray\",\n    options: [\"gray\", \"green\"]\n  },\n  fontColor: {\n    type: ControlType.Color,\n    optional: true\n  },\n  fontSize: {\n    type: ControlType.String,\n    defaultValue: \"14\"\n  },\n  fontWeight: {\n    type: ControlType.String,\n    defaultValue: \"600\"\n  },\n  capitalize: {\n    type: ControlType.Boolean,\n    defaultValue: true\n  },\n  icon: {\n    type: ControlType.Image,\n    optional: true\n  },\n  iconPosition: {\n    type: ControlType.String,\n    defaultValue: \"right\",\n    options: [\"left\", \"right\"],\n    optional: true\n  },\n  IconCode: {\n    type: ControlType.Object,\n    optional: true\n  },\n  arrowType: {\n    type: ControlType.String,\n    defaultValue: \"doubleWhite\",\n    options: [\"singleBlack\", \"doubleBack\", \"singleWhite\", \"doubleWhite\"]\n  },\n  onClick: {\n    type: ControlType.EventHandler\n  },\n  trackingEventName: {\n    type: ControlType.String\n  },\n  redirectToNewTab: {\n    type: ControlType.Boolean,\n    defaultValue: true\n  },\n  redirectUrl: {\n    type: ControlType.String\n  },\n  mobile: {\n    type: ControlType.Boolean,\n    defaultValue: false\n  }\n}); /* INLINE STYLES */ // Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst wrapperStyles = {\n  height: MAX_HEIGHT_LARGE,\n  width: \"fit-content\",\n  position: \"relative\",\n  display: \"flex\",\n  alignItems: \"center\",\n  justifyContent: \"center\",\n  flexDirection: \"row-reverse\",\n  padding: \"16px\",\n  borderRadius: \"12px\",\n  cursor: \"pointer\",\n  background: \"linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%), linear-gradient(94.04deg, #18E2A2 0.2%, #5CFF87 100.24%)\",\n  // backdropFilter: colorScheme === \"gray\" ? \"blur(24px)\" : \"none\",\n  border: \"0.5px solid rgba(255, 255, 255, 0.3)\",\n  backgroundBlendMode: \"normal\"\n};\nconst singleLineButton = {\n  width: \"100%\",\n  height: \"100%\",\n  display: \"flex\",\n  alignItems: \"center\",\n  justifyContent: \"center\",\n  borderRadius: \"12px\"\n};\nconst doubleLineButton = {\n  width: \"100%\",\n  height: \"100%\",\n  display: \"flex\",\n  flexDirection: \"column\",\n  alignItems: \"center\",\n  justifyContent: \"center\",\n  borderRadius: \"12px\"\n};\nconst mainLineBox = {\n  display: \"flex\",\n  margin: \"0 0 4px 0\"\n};\nconst singleLineMainText = {\n  color: \"#213345\",\n  lineHeight: LARGE_LINE_HEIGHT,\n  letterSpacing: \"0.042em\",\n  fontFamily: \"Rubik\",\n  whiteSpace: \"nowrap\",\n  textTransform: \"none\",\n  margin: 0\n};\nconst doubleLineMainText = {\n  color: \"#FFFFFF\",\n  fontFamily: \"Rubik\",\n  fontSize: \"14px\",\n  lineHeight: \"14px\",\n  fontStyle: \"normal\",\n  fontWeight: 500,\n  textTransform: \"none\",\n  margin: 0\n};\nconst doubleLineSecondaryText = {\n  color: \"#C6D2DE\",\n  fontFamily: \"Rubik\",\n  fontSize: \"14px\",\n  lineHeight: \"14px\",\n  letterSpacing: \"0.03125em\",\n  fontStyle: \"normal\",\n  fontWeight: 300,\n  textTransform: \"none\",\n  margin: 0\n};\nconst iconStyles = {\n  width: \"32px\",\n  height: \"32px\",\n  margin: \"0 0 0 12px\"\n};\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"Button\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerSupportedLayoutWidth\": \"auto\",\n        \"framerSupportedLayoutHeight\": \"auto\",\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./Button.map"],
  "mappings": "8JAMA,IAAMA,EAAoB,OACpBC,EAAmB,OACnBC,EAAiB,YACjBC,EAAgB,sBAGtB,IAAMC,EAAqB,OACrBC,EAAoB,OAIX,SAARC,EAAwB,CAC7B,QAAAC,EACA,QAAAC,EACA,KAAAC,EACA,aAAAC,EAAe,QACf,SAAAC,EACA,UAAAC,EACA,YAAAC,EAAc,OACd,UAAAC,EACA,SAAAC,EA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,WACV,EACMb,EAAqB,CACzB,MAAO,UACP,WAAYpC,EACZ,cAAe,UACf,WAAY,QACZ,WAAY,SACZ,cAAe,OACf,OAAQ,CACV,EACMsC,EAAqB,CACzB,MAAO,UACP,WAAY,QACZ,SAAU,OACV,WAAY,OACZ,UAAW,SACX,WAAY,IACZ,cAAe,OACf,OAAQ,CACV,EACME,EAA0B,CAC9B,MAAO,UACP,WAAY,QACZ,SAAU,OACV,WAAY,OACZ,cAAe,YACf,UAAW,SACX,WAAY,IACZ,cAAe,OACf,OAAQ,CACV,EACME,EAAa,CACjB,MAAO,OACP,OAAQ,OACR,OAAQ,YACV",
  "names": ["MIN_HEIGHT_MEDIUM", "MAX_HEIGHT_LARGE", "MEDIUM_PADDING", "LARGE_PADDING", "MEDIUM_LINE_HEIGHT", "LARGE_LINE_HEIGHT", "Button", "onClick", "variant", "icon", "iconPosition", "IconCode", "arrowType", "colorScheme", "fontColor", "fontSize", "fontWeight", "capitalize", "size", "mainText", "secondaryText", "redirectUrl", "redirectToNewTab", "trackingEventName", "height", "width", "mobile", "isHover", "setIsHover", "ye", "handleMouseEnter", "handleMouseLeave", "handleClickWithInjection", "window", "computedWrapperStyles", "wrapperStyles", "MIN_HEIGHT_MEDIUM", "MAX_HEIGHT_LARGE", "MEDIUM_PADDING", "LARGE_PADDING", "computedSingleLineMainText", "singleLineMainText", "computedDoubleLineMainText", "doubleLineMainText", "computedDoubleLineSecondaryText", "doubleLineSecondaryText", "computedIconStyles", "iconStyles", "u", "l", "p", "singleLineButton", "AnimatedArrow", "doubleLineButton", "mainLineBox", "addPropertyControls", "ControlType"]
}
