{"version":3,"file":"HeliumOSform.C27BH2TC.mjs","names":["useState","useMemo"],"sources":["https:/framerusercontent.com/modules/0spPVJUEsSW1GV2cT25l/r67UGXcxT3Klrg0ncK6a/GIF_color.js","https:/framerusercontent.com/modules/HeSAmpS6lhEXSsq60i9B/VDnmHkybKoy13Pgv45Ts/HeliumOSform.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function MakeWhite(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,filter:\"brightness(0) invert(1)\"}});}\nexport const __FramerMetadata__ = {\"exports\":{\"MakeWhite\":{\"type\":\"reactHoc\",\"name\":\"MakeWhite\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GIF_color.map","/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */// HeliumOS form → Formspark. Follows the site language: on the Spanish locale every visible text, the\n// Turnstile check and the after-submit pages are Spanish. Values sent to Formspark (incl. the interest\n// options) stay in English so submissions are consistent whatever the visitor's language.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useMemo,useState}from\"react\";import{useLocaleInfo}from\"framer\";const SOLUTIONS=[// [value, English label (also what is submitted), Spanish label]\n[\"subscriber_management\",\"Subscriber management\",\"Gesti\\xf3n de suscriptores\"],[\"network_connectivity\",\"Network connectivity\",\"Conectividad de red\"],[\"intelligent_analytics\",\"Intelligent Analytics\",\"Anal\\xedtica inteligente\"],[\"integrations\",\"Integrations\",\"Integraciones\"],[\"wifioffload\",\"Wi-Fi Offload\",\"Descarga a Wi-Fi\"],[\"deploynetwork\",\"Deploy Network\",\"Desplegar una red\"],[\"venue_coverage_tools\",\"Venue coverage tools\",\"Herramientas de cobertura para recintos\"],[\"quality_wifi_experience\",\"Quality Wi-Fi experience\",\"Experiencia Wi-Fi de calidad\"],[\"wifi_visibility\",\"Wi-Fi visibility\",\"Visibilidad de Wi-Fi\"],[\"helium_network\",\"Helium Network\",\"Red Helium\"],[\"not_sure_yet\",\"Not sure yet\",\"Todav\\xeda no lo s\\xe9\"]];const TEXT={en:{name:\"Your name\",email:\"Email address\",interest:\"What are you interested in?\",selectAll:\"Select all that apply.\",message:\"How can we help?\",acceptBefore:\"I accept the\",privacy:\"privacy policy\",marketing:\"I'd like marketing emails from Helium.\",send:\"Send\"},es:{name:\"Tu nombre\",email:\"Correo electr\\xf3nico\",interest:\"\\xbfQu\\xe9 te interesa?\",selectAll:\"Selecciona todas las que apliquen.\",message:\"\\xbfC\\xf3mo podemos ayudarte?\",acceptBefore:\"Acepto la\",privacy:\"pol\\xedtica de privacidad\",marketing:\"Quiero recibir correos de marketing de Helium.\",send:\"Enviar\"}};// The legal pages only exist in English, so this link always opens the English page.\nconst PRIVACY_URL=\"https://www.helium.com/legal/privacy\";export default function HeliumOSForm(props){const{activeLocale}=useLocaleInfo();const isEs=/^es/i.test(activeLocale?.code||activeLocale?.slug||\"\");const T=isEs?TEXT.es:TEXT.en;const site=\"https://www.helium.com\"+(isEs?\"/es\":\"\");const[selectedSolutions,setSelectedSolutions]=useState([]);const toggleSolution=value=>{setSelectedSolutions(current=>{if(current.includes(value)){return current.filter(solution=>solution!==value);}if(value===\"not_sure_yet\"){return[value];}return[...current.filter(solution=>solution!==\"not_sure_yet\"),value];});};const actionWithUtms=useMemo(()=>{const base=\"https://submit-form.com/sNwBM25o9\";if(typeof window===\"undefined\")return base;const src=new URLSearchParams(window.location.search);const utm=new URLSearchParams;for(const[k,v]of src.entries()){if(k&&v&&k.toLowerCase().startsWith(\"utm_\")){utm.append(k,v);}}const qs=utm.toString();return qs?`${base}?${qs}`:base;},[]);useEffect(()=>{if(document.querySelector('script[src*=\"challenges.cloudflare.com/turnstile\"]')){return;}const script=document.createElement(\"script\");script.src=\"https://challenges.cloudflare.com/turnstile/v0/api.js\";script.async=true;script.defer=true;document.head.appendChild(script);},[]);return /*#__PURE__*/_jsxs(\"form\",{action:actionWithUtms,\"data-formtrack\":true,lang:isEs?\"es\":\"en\",style:{backgroundColor:\"none\",fontSize:18,display:\"flex\",flexDirection:\"column\",fontFamily:\"'Figtree', sans-serif\"},children:[/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"_redirect\",value:`${site}/success`}),/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"_append\",value:\"false\"}),/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"_error\",value:`${site}/error`}),/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"language\",value:isEs?\"es\":\"en\"}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",name:\"company_website\",tabIndex:-1,autoComplete:\"off\",\"aria-hidden\":\"true\",style:{position:\"absolute\",left:\"-9999px\",width:\"1px\",height:\"1px\",opacity:0,pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",id:\"name\",name:\"name\",placeholder:T.name,\"aria-label\":T.name,required:true,style:{padding:\"20px\",fontFamily:\"'Figtree', sans-serif\",color:\"black\",borderRadius:50,border:0,fontSize:18,outline:\"none\",backgroundColor:\"#EEE\"}}),/*#__PURE__*/_jsx(\"label\",{htmlFor:\"email\",style:{padding:\"10px 0 5px 0\",color:\"black\"}}),/*#__PURE__*/_jsx(\"input\",{type:\"email\",id:\"email\",name:\"email\",placeholder:T.email,\"aria-label\":T.email,required:true,style:{padding:\"20px\",color:\"black\",fontFamily:\"'Figtree', sans-serif\",borderRadius:50,border:0,fontSize:18,outline:\"none\",backgroundColor:\"#EEE\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{margin:\"20px 0 0 0\",padding:\"20px\",borderRadius:20,backgroundColor:\"#EEE\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{margin:\"0 0 4px 0\",color:\"black\",fontFamily:\"'Figtree', sans-serif\",fontSize:18,fontWeight:500,lineHeight:1.3},children:T.interest}),/*#__PURE__*/_jsx(\"div\",{style:{margin:\"0 0 16px 0\",color:\"#808080\",fontFamily:\"'Figtree', sans-serif\",fontSize:14,lineHeight:1.4},children:T.selectAll}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexWrap:\"wrap\",gap:10},children:SOLUTIONS.map(([value,label,labelEs],index)=>/*#__PURE__*/_jsx(\"div\",{style:{flexBasis:value===\"not_sure_yet\"?\"100%\":\"auto\",marginTop:value===\"not_sure_yet\"?2:0},children:/*#__PURE__*/_jsxs(\"label\",{style:{display:\"inline-flex\",alignItems:\"center\",padding:\"10px 14px\",color:selectedSolutions.includes(value)?\"white\":\"#606060\",fontFamily:\"'Figtree', sans-serif\",fontSize:16,lineHeight:1.2,borderRadius:50,border:selectedSolutions.includes(value)?\"1px solid #5E25FD\":\"1px solid #D5D5D5\",backgroundColor:selectedSolutions.includes(value)?\"#5E25FD\":\"white\",cursor:\"pointer\",userSelect:\"none\",transition:\"background-color 160ms ease, border-color 160ms ease, color 160ms ease\"},children:[/*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",name:`solutions[${index}]`,value:label,checked:selectedSolutions.includes(value),onChange:()=>toggleSolution(value),style:{position:\"absolute\",opacity:0,pointerEvents:\"none\"}}),isEs?labelEs:label]})},value))})]}),/*#__PURE__*/_jsx(\"label\",{htmlFor:\"message\",style:{padding:\"10px 0 5px 0\",color:\"white\"}}),/*#__PURE__*/_jsx(\"textarea\",{id:\"message\",name:\"message\",placeholder:T.message,\"aria-label\":T.message,style:{padding:\"20px\",color:\"black\",fontFamily:\"'Figtree', sans-serif\",borderRadius:20,border:0,fontSize:18,height:150,outline:\"none\",backgroundColor:\"#EEE\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"20px 0 0 0\"},children:[/*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",name:\"terms\",id:\"terms\",value:\"terms_accepted\",required:true,style:{margin:\"0 10px 10px 0\",height:18,width:18,accentColor:\"#5E25FD\"}}),/*#__PURE__*/_jsxs(\"label\",{htmlFor:\"terms\",style:{color:\"#808080\",position:\"relative\",top:-3,fontSize:16},children:[T.acceptBefore,\" \",/*#__PURE__*/_jsx(\"a\",{href:PRIVACY_URL,target:\"_blank\",rel:\"noopener\",style:{color:\"#5E25FD\",textDecoration:0},children:T.privacy})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"10px 0 0 0\"},children:[/*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",name:\"subscribe\",id:\"subscribe\",value:\"subscribed_to_newsletter\",style:{margin:\"0 10px 10px 0\",height:18,width:18,accentColor:\"#5E25FD\"}}),/*#__PURE__*/_jsx(\"label\",{htmlFor:\"subscribe\",style:{color:\"#808080\",position:\"relative\",top:-3,fontSize:16},children:T.marketing})]}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:15,width:\"100%\"},children:/*#__PURE__*/_jsx(\"div\",{className:\"cf-turnstile\",\"data-sitekey\":\"0x4AAAAAAEjId_u96yIaGfF0\",\"data-appearance\":\"always\",\"data-size\":\"flexible\",\"data-language\":isEs?\"es\":\"en\"})}),/*#__PURE__*/_jsx(\"button\",{className:\"framer-1tghtuq\",type:\"submit\",style:{padding:\"15px\",color:\"white\",borderRadius:50,border:0,fontSize:18,marginTop:20,backgroundColor:\"#5E25FD\",fontFamily:\"'Figtree', sans-serif\",fontWeight:500,width:\"100%\",cursor:\"pointer\"},children:T.send})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HeliumOSForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HeliumOSform.map"],"mappings":"wMAA2C,SAAgB,EAAU,EAAU,CAAC,MAAO,IAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,yBAAyB,CAAC,CAAC,CAAE,iBAApJ,KCQe,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,gBAAc,EAAc,EAAQ,EAAK,OAAO,KA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