{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/oGteDx9wpjfMU4HtOtHQ/nSR3IdsRg5UAv2sgoIg5/PromoForm_1.js"],
  "sourcesContent": ["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { addPropertyControls, ControlType } from \"framer\";\nexport default function PromoForm(props) {\n  const onClick = e => {\n    // e.preventDefault()\n    window.location.href = props.redirect || window.location.href;\n  };\n  const styles = getStyles(props.screenType || \"desktop\");\n  return /*#__PURE__*/_jsxs(\"form\", {\n    id: props.id,\n    style: styles.form,\n    children: [/*#__PURE__*/_jsx(\"div\", {\n      style: styles.inputContainer,\n      children: /*#__PURE__*/_jsx(\"input\", {\n        style: styles.inputField,\n        type: \"email\",\n        id: \"email\",\n        placeholder: props.placeholder || \"email\"\n      })\n    }), /*#__PURE__*/_jsx(\"button\", {\n      style: styles.submitButton,\n      type: \"submit\",\n      onClick: onClick,\n      children: props.submitButtonTitle || \"Submit\"\n    })]\n  });\n}\n;\nfunction getStyles(screenType) {\n  const common = {\n    form: {\n      display: \"flex\",\n      alignItems: \"center\",\n      overflow: \"hidden\",\n      justifyContent: \"space-between\",\n      maxWidth: \"480px\",\n      padding: \"4px\",\n      backgroundColor: \"#FFFFFF\",\n      borderRadius: \"27px\",\n      boxShadow: \"8px 14px 50px -8px rgba(51,17,57,0.1)\"\n    },\n    inputContainer: {\n      width: \"auto\",\n      flex: 1,\n      padding: \"8px\",\n      position: \"relative\"\n    },\n    inputField: {\n      border: 0,\n      backgroundColor: \"white\",\n      padding: \"14px\",\n      borderRadius: \"20px\",\n      minWidth: \"100%\",\n      color: \"#313139\",\n      opacity: .6,\n      fontFamily: \"Poppins\",\n      fontSize: \"16px\",\n      lineHeight: \"140%\",\n      display: \"flex\",\n      alignItems: \"center\",\n      justifyContent: \"center\"\n    },\n    submitButton: {\n      width: \"100%\",\n      padding: \"20px 24px\",\n      border: 0,\n      borderRadius: \"24px\",\n      backgroundColor: \"#FF5525\",\n      cursor: \"pointer\",\n      fontFamily: \"Poppins\",\n      fontSize: \"16px\",\n      color: \"#FFFFFF\",\n      fontWeight: 300,\n      lineHeight: \"140%\"\n    }\n  };\n  if (screenType === \"tablet\" || screenType === \"mobile\") {\n    return {\n      ...common,\n      form: {\n        ...common.form,\n        maxWidth: 600,\n        flexDirection: \"row\",\n        alignItems: \"center\"\n      },\n      inputField: {\n        ...common.inputField,\n        padding: 2,\n        fontSize: 16\n      },\n      submitButton: {\n        ...common.submitButton,\n        width: \"auto\",\n        fontSize: 20,\n        padding: \"20px 16px\"\n      }\n    };\n  }\n  return common;\n}\naddPropertyControls(PromoForm, {\n  id: {\n    title: \"Form ID\",\n    type: ControlType.String,\n    placeholder: \"page-feature-lang\",\n    description: \"Use clear and descriptive format e.g. `main-book-a-demo-en` so it will be consistent with HubSpot and easily identifiable\"\n  },\n  placeholder: {\n    title: \"Placeholder\",\n    type: ControlType.String\n  },\n  submitButtonTitle: {\n    title: \"Submit\",\n    type: ControlType.String\n  },\n  redirect: {\n    title: \"Redirect\",\n    type: ControlType.Link\n  },\n  screenType: {\n    title: \"Screen Type\",\n    type: ControlType.Enum,\n    options: [\"mobile\", \"tablet\", \"desktop\"],\n    optionTitles: [\"Mobile\", \"Tablet\", \"Desktop\"]\n  }\n});\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"PromoForm\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./PromoForm_1.map"],
  "mappings": "yIAEe,SAARA,EAA2BC,EAAO,CACvC,IAAMC,EAAUC,GAAK,CAEnBC,EAAO,SAAS,KAAOH,EAAM,UAAYG,EAAO,SAAS,IAC3D,EACMC,EAASC,EAAUL,EAAM,YAAc,SAAS,EACtD,OAAoBM,EAAM,OAAQ,CAChC,GAAIN,EAAM,GACV,MAA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Y,MACpB,EACA,kBAAmB,CACjB,MAAO,SACP,KAAMA,EAAY,MACpB,EACA,SAAU,CACR,MAAO,WACP,KAAMA,EAAY,IACpB,EACA,WAAY,CACV,MAAO,cACP,KAAMA,EAAY,KAClB,QAAS,CAAC,SAAU,SAAU,SAAS,EACvC,aAAc,CAAC,SAAU,SAAU,SAAS,CAC9C,CACF,CAAC",
  "names": ["PromoForm", "props", "onClick", "e", "window", "styles", "getStyles", "u", "p", "screenType", "common", "addPropertyControls", "ControlType"]
}
