{"version":3,"file":"EdgeEmailInquiry.D3ChnI2t.mjs","names":["React.useState","__esmMin","window","init_ssg_sandbox_shims","_e","p","c","init_jsx_runtime","init_npm_react_18_3_1","init_framer_DDfsYcI0","addPropertyControls","ControlType","EdgeEmailInquiry","props","opened","setOpened","isProspect","mode","fields","compose","event","data","rows","v","value","key","subject","body","mailto","recipient","labelStyle","inputStyle","inputType","name","style","placeholder","required","init_EdgeEmailInquiry"],"sources":["https:/framerusercontent.com/modules/M4oPJP0bcoLS6SxMnJZc/Llw2CLyRSTNKxGn54KJJ/EdgeEmailInquiry.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function EdgeEmailInquiry(props){const{mode=\"contact\",recipient=\"edgesportstraining.info@gmail.com\",style}=props;const[opened,setOpened]=React.useState(false);const isProspect=mode===\"prospect\";const fields=isProspect?[[\"Player Name\",\"Player's full name\",true],[\"Graduation Year\",\"Year\",true],[\"School\",\"School\",true],[\"Positions\",\"Primary and secondary positions\",false],[\"Current Team\",\"Current team\",false],[\"Parent Name\",\"Parent/guardian name\",true],[\"Parent Phone\",\"Phone number\",true],[\"Parent Email\",\"name@email.com\",true]]:[[\"Parent Name\",\"Parent or guardian name\",true],[\"Phone\",\"Phone number\",true],[\"Email\",\"name@email.com\",true],[\"Athlete Name and Age\",\"Athlete name and age\",true]];function compose(event){event.preventDefault();const data=new FormData(event.currentTarget);const rows=[];data.forEach((value,key)=>{const v=String(value).trim();if(v)rows.push(key+\": \"+v);});const subject=isProspect?\"Texas Edge 14U–HS Prospect Evaluation Inquiry\":\"Texas Edge Website Inquiry\";const body=\"Hello Texas Edge,\\n\\n\"+rows.join(\"\\n\")+\"\\n\\nThank you.\";const mailto=\"mailto:\"+recipient+\"?subject=\"+encodeURIComponent(subject)+\"&body=\"+encodeURIComponent(body);setOpened(true);window.location.href=mailto;}const labelStyle={display:\"flex\",flexDirection:\"column\",gap:7,fontSize:11,fontWeight:800,color:\"#ED3047\",letterSpacing:\".075em\",textTransform:\"uppercase\"};const inputStyle={boxSizing:\"border-box\",width:\"100%\",height:46,border:\"1px solid #DADADA\",background:\"#FAFAFA\",color:\"#171717\",borderRadius:4,padding:\"0 13px\",fontSize:14,fontFamily:\"Inter, sans-serif\",fontWeight:400,outlineOffset:3};const inputType=name=>/Email/.test(name)?\"email\":/Phone/.test(name)?\"tel\":\"text\";return /*#__PURE__*/_jsxs(\"div\",{style:{fontFamily:\"Inter, sans-serif\",color:\"#F6F6F6\",width:\"100%\",...style},children:[/*#__PURE__*/_jsxs(\"form\",{onSubmit:compose,style:{display:\"grid\",gridTemplateColumns:\"repeat(auto-fit,minmax(min(100%,260px),1fr))\",gap:18},children:[fields.map(([name,placeholder,required])=>/*#__PURE__*/_jsxs(\"label\",{style:labelStyle,children:[name,\" \",required?\"• REQUIRED\":\"\",/*#__PURE__*/_jsx(\"input\",{name:name,placeholder:placeholder,required:required,type:inputType(name),style:inputStyle})]},name)),/*#__PURE__*/_jsxs(\"label\",{style:labelStyle,children:[\"Baseball or Softball • REQUIRED\",/*#__PURE__*/_jsxs(\"select\",{name:\"Sport\",required:true,defaultValue:\"\",style:inputStyle,children:[/*#__PURE__*/_jsx(\"option\",{value:\"\",disabled:true,children:\"Select sport\"}),/*#__PURE__*/_jsx(\"option\",{value:\"Baseball\",children:\"Baseball\"}),/*#__PURE__*/_jsx(\"option\",{value:\"Softball\",children:\"Softball\"})]})]}),!isProspect&&/*#__PURE__*/_jsxs(\"label\",{style:labelStyle,children:[\"Interested In • REQUIRED\",/*#__PURE__*/_jsxs(\"select\",{name:\"Interested In\",required:true,defaultValue:\"\",style:inputStyle,children:[/*#__PURE__*/_jsx(\"option\",{value:\"\",disabled:true,children:\"Select a topic\"}),/*#__PURE__*/_jsx(\"option\",{value:\"Select Teams\",children:\"Select Teams\"}),/*#__PURE__*/_jsx(\"option\",{value:\"T.E.S.T. Training\",children:\"T.E.S.T. Training\"}),/*#__PURE__*/_jsx(\"option\",{value:\"Tryouts\",children:\"Tryouts\"}),/*#__PURE__*/_jsx(\"option\",{value:\"College Recruiting\",children:\"College Recruiting\"}),/*#__PURE__*/_jsx(\"option\",{value:\"Winter Program\",children:\"Winter Program\"}),/*#__PURE__*/_jsx(\"option\",{value:\"Private Lessons\",children:\"Private Lessons\"}),/*#__PURE__*/_jsx(\"option\",{value:\"Other\",children:\"Other\"})]})]}),/*#__PURE__*/_jsxs(\"label\",{style:{...labelStyle,gridColumn:\"1 / -1\"},children:[\"Message (optional)\",/*#__PURE__*/_jsx(\"textarea\",{name:\"Message\",rows:4,placeholder:\"Anything else we should know?\",style:{...inputStyle,height:\"auto\",minHeight:112,padding:\"12px 13px\",resize:\"vertical\"}})]}),/*#__PURE__*/_jsxs(\"div\",{style:{gridColumn:\"1 / -1\",display:\"flex\",flexWrap:\"wrap\",alignItems:\"center\",gap:16},children:[/*#__PURE__*/_jsx(\"button\",{type:\"submit\",style:{border:\"none\",borderRadius:4,background:\"#EB1F3A\",padding:\"17px 22px\",color:\"#FFFFFF\",fontFamily:\"Inter, sans-serif\",fontSize:12,fontWeight:800,letterSpacing:\".04em\",cursor:\"pointer\"},children:\"OPEN INQUIRY EMAIL\"}),/*#__PURE__*/_jsx(\"a\",{href:\"mailto:\"+recipient,style:{color:\"#FFFFFF\",fontSize:13,textDecoration:\"underline\"},children:\"Email us directly\"})]})]}),/*#__PURE__*/_jsx(\"p\",{style:{color:\"#AFAFAF\",fontSize:12,lineHeight:1.6,margin:\"15px 0 0\"},children:\"Selecting “Open Inquiry Email” creates a filled-out message in your email app. Review and send it there. No information is submitted to the website automatically.\"}),opened&&/*#__PURE__*/_jsx(\"p\",{role:\"status\",style:{fontSize:12,color:\"#FAFAFA\"},children:\"Your email app should open with a prepared message. If it doesn't, use the direct email link or call/text Texas Edge.\"})]});}EdgeEmailInquiry.defaultProps={mode:\"contact\",recipient:\"edgesportstraining.info@gmail.com\"};addPropertyControls(EdgeEmailInquiry,{mode:{type:ControlType.Enum,title:\"Form\",options:[\"contact\",\"prospect\"],optionTitles:[\"Contact\",\"14U–HS Prospect\"]},recipient:{type:ControlType.String,title:\"Email\",defaultValue:\"edgesportstraining.info@gmail.com\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EdgeEmailInquiry\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EdgeEmailInquiry.map"],"mappings":"A,+LAGG,SAAwBY,EAAiB,EAAM,CAAC,GAAK,CAAC,OAAK,UAAU,YAAU,oCAAoC,SAAOC,EAAW,CAACC,EAAOC,GAAWf,EAAe,EAAK,EAAQgB,EAAWC,IAAO,WAAiBC,EAAOF,EAAW,CAAC,CAAC,cAAc,qBAAqB,EAAI,EAAE,CAAC,kBAAkB,OAAO,EAAI,EAAE,CAAC,SAAS,SAAS,EAAI,EAAE,CAAC,YAAY,kCAAkC,EAAK,EAAE,CAAC,eAAe,eAAe,EAAK,EAAE,CAAC,cAAc,uBAAuB,EAAI,EAAE,CAAC,eAAe,eAAe,EAAI,EAAE,CAAC,eAAe,iBAAiB,EAAI,CAAC,EAAE,CAAC,CAAC,cAAc,0BAA0B,EAAI,EAAE,CAAC,QAAQ,eAAe,EAAI,EAAE,CAAC,QAAQ,iBAAiB,EAAI,EAAE,CAAC,uBAAuB,uBAAuB,EAAI,CAAC,EAAE,SAASG,EAAQ,EAAM,CAACC,EAAM,eAAe,EAAE,IAAMC,EAAK,IAAI,SAASD,EAAM,aAAa,EAAQE,EAAK,CAAC,EAAED,EAAK,SAAS,EAAM,IAAM,CAAC,IAAME,EAAE,OAAOC,CAAK,CAAC,CAAC,KAAK,EAAKD,GAAED,EAAK,KAAKG,EAAI,KAAK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