{"version":3,"file":"TryItOutForm_1.BO4Ez8NG.mjs","names":["useState","React","e"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/HPcZzNfPjERelHSNOr7P/RIbq9HHD05SwK7HOgncp/Overrides.js","https:/framerusercontent.com/modules/NXu56CIaVRiDVkyeeig7/ePKXDcKc1LBH6THmZjcq/TryItOutForm_1.js"],"sourcesContent":["import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// Learn more: https://www.framer.com/docs/guides/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withVideoSurveyId(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,surveyId:\"26314087-98f5-40d2-8488-0769bad02cca\"});};}export function withWaitlistSurveyId(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,surveyId:\"17b1409d-5e00-46bd-ae5d-102bd8e2d8de\"});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withVideoSurveyId\":{\"type\":\"reactHoc\",\"name\":\"withVideoSurveyId\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withWaitlistSurveyId\":{\"type\":\"reactHoc\",\"name\":\"withWaitlistSurveyId\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Overrides.map","/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import React from\"react\";const buttonStyle={backgroundColor:\"rgb(71, 72, 255)\",color:\"rgb(255, 255, 255)\",padding:\"15px\",borderRadius:\"8px\",fontWeight:700,fontSize:\"16px\",fontFamily:'\"Manrope\", \"Manrope Placeholder\", sans-serif',outline:\"none\",border:\"none\",cursor:\"pointer\",transition:\"0.3s\",textDecoration:\"none\"};const buttonHoverStyle={backgroundColor:\"rgb(207, 207, 231)\"};const inputStyle={width:\"100%\",padding:\"12px\",borderRadius:\"8px\",fontSize:\"16px\",backgroundColor:\"#ffffff\",color:\"#190F3F\",boxShadow:\"rgb(255, 255, 255) 0px 0px 0px 0px inset, rgba(200, 200, 200, 0.5) 0px 0px 0px 1px inset\",outline:\"none\",border:\"none\"};const formStyle={display:\"grid\",gridTemplateColumns:\"1fr auto\",gap:\"16px\",width:\"100%\"};export default function TryItOutForm({surveyId}){const[hovered,setHovered]=React.useState(false);const mergedButtonStyle={...buttonStyle,...hovered?buttonHoverStyle:{}};const handleSubmit=e=>{e.preventDefault();const email=e.currentTarget.elements.email.value;window.open(`https://api.outset.ai/interviews/public-surveys/17b1409d-5e00-46bd-ae5d-102bd8e2d8de/start/?email=${email}`,\"_blank\");};return /*#__PURE__*/_jsxs(\"form\",{style:formStyle,onSubmit:handleSubmit,children:[/*#__PURE__*/_jsx(\"input\",{type:\"email\",name:\"email\",placeholder:\"example@acme.com\",required:true,style:inputStyle}),/*#__PURE__*/_jsx(\"input\",{id:\"try-it\",type:\"submit\",value:\"Try it\",style:mergedButtonStyle,onMouseEnter:()=>setHovered(true),onMouseLeave:()=>setHovered(false),className:\"try_yourself_submit\"})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TryItOutForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TryItOutForm_1.map"],"mappings":"8MAA8E,SAAgB,EAAY,EAAO,CACjH,IAAM,EAAU,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,CAAC,CAClD,EAAa,GAAU,CAC1B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAU,MAAM,EAAE,EAAU,MAAM,OAAO,OAAO,CAAC,GAAG,EAAU,MAAM,GAAG,EAAS,CAAC,EAChI,EAAW,OAAO,GAAS,SAAS,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,EAC7D,EAAa,IAAI,IACjB,EAAc,GAAU,CAC3B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAW,EAAE,EAAW,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