{"version":3,"file":"MailchimpForm.D4rintO5.mjs","names":["useState","__esmMin","init_ssg_sandbox_shims","_e","p","c","init_jsx_runtime","init_npm_react_18_3_1","window","init_framer_CaDWdxiz","addPropertyControls","ControlType","MailchimpForm","props","status","setStatus","message","setMessage","hasNext","nextLink","submit","form","data","params","pair","cb","script","msg","resp","already","font","input","goldBtn","nextText","nextLabel","regions","r","i","HONEYPOT","submitLabel","init_MailchimpForm"],"sources":["https:/framerusercontent.com/modules/Jq6KmIqyV3xnUHeQLKHJ/JHYYOrPbsYuPGwI4s47m/MailchimpForm.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const ACTION=\"https://gmail.us9.list-manage.com/subscribe/post-json?u=0a7fa8c2aa92513d6663efca1&id=f946b91109&f_id=00bf53e1f0\";const HONEYPOT=\"b_0a7fa8c2aa92513d6663efca1_f946b91109\";export default function MailchimpForm(props){const{regions,submitLabel,nextText,nextLabel,nextLink}=props;const[status,setStatus]=useState(\"idle\");const[message,setMessage]=useState(\"\");const hasNext=typeof nextLink===\"string\"&&nextLink.trim()!==\"\";function submit(e){e.preventDefault();const form=e.currentTarget;const data=new FormData(form);const params=new URLSearchParams;for(const pair of data.entries())params.append(pair[0],pair[1]);const cb=\"mc_cb_\"+Date.now();params.append(\"c\",cb);setStatus(\"loading\");setMessage(\"\");const script=document.createElement(\"script\");window[cb]=function(resp){const msg=(resp&&resp.msg||\"\").replace(/<[^>]*>/g,\"\");const already=/already subscribed/i.test(msg);if(resp&&resp.result===\"success\"||already){setStatus(\"success\");setMessage(already?\"You are already registered with this email.\":msg||\"Thank you! Please check your email to confirm your subscription.\");form.reset();}else{setStatus(\"error\");setMessage(msg||\"Sorry, something went wrong. Please try again.\");}delete window[cb];if(script.parentNode)script.parentNode.removeChild(script);};script.src=ACTION+\"&\"+params.toString();document.body.appendChild(script);}const font=\"Montserrat, sans-serif\";const input={width:\"100%\",height:\"54px\",background:\"#F7F5EF\",border:\"1px solid rgba(36,27,51,0.12)\",borderRadius:\"10px\",padding:\"0 18px\",fontSize:\"16px\",color:\"#241B33\",fontFamily:font,outline:\"none\",boxSizing:\"border-box\"};const goldBtn={display:\"block\",width:\"100%\",boxSizing:\"border-box\",textAlign:\"center\",background:\"#FACA07\",border:\"none\",borderRadius:\"12px\",padding:\"18px\",fontSize:\"15px\",fontWeight:700,letterSpacing:\"0.04em\",textTransform:\"uppercase\",color:\"#241B33\",cursor:\"pointer\",fontFamily:font,textDecoration:\"none\"};// Step 2 — shown only after a successful registration\nif(status===\"success\"&&hasNext){return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:\"16px\",fontFamily:font},children:[/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:\"15px\",color:\"#1E7A46\",lineHeight:1.5},children:[\"✓ \",message]}),nextText?/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"17px\",color:\"#241B33\",lineHeight:1.6},children:nextText}):null,/*#__PURE__*/_jsx(\"a\",{href:nextLink,target:\"_blank\",rel:\"noopener\",style:goldBtn,children:nextLabel})]});}return /*#__PURE__*/_jsxs(\"form\",{className:\"mcf\",onSubmit:submit,style:{width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:\"14px\",fontFamily:font},children:[/*#__PURE__*/_jsx(\"style\",{children:\".mcf input::placeholder{color:#9A93A6}.mcf input:focus,.mcf select:focus{border-color:#B4924C}\"}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",name:\"FNAME\",placeholder:\"Enter your first name…\",style:input}),/*#__PURE__*/_jsx(\"input\",{type:\"email\",name:\"EMAIL\",required:true,placeholder:\"Enter your email…*\",style:input}),/*#__PURE__*/_jsx(\"input\",{type:\"tel\",name:\"PHONE\",placeholder:\"Phone number (optional)\",style:input}),/*#__PURE__*/_jsxs(\"select\",{name:\"REGION\",defaultValue:\"\",required:true,style:input,children:[/*#__PURE__*/_jsx(\"option\",{value:\"\",disabled:true,children:\"Select your region\"}),regions.map((r,i)=>/*#__PURE__*/_jsx(\"option\",{value:r,children:r},i))]}),/*#__PURE__*/_jsxs(\"label\",{style:{display:\"flex\",gap:\"12px\",alignItems:\"flex-start\",fontSize:\"13px\",color:\"#6B6377\",lineHeight:1.5},children:[/*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",required:true,style:{marginTop:\"3px\",accentColor:\"#FACA07\",width:\"18px\",height:\"18px\",flex:\"0 0 auto\"}}),/*#__PURE__*/_jsx(\"span\",{children:\"I agree to the terms & conditions. By providing my phone number, I agree to receive messages and a call from The Essence to discuss opportunities and services offered.\"})]}),/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:\"13px\",color:\"#8A6D1F\"},children:[\"View the \",/*#__PURE__*/_jsx(\"a\",{href:\"/privacy-policy\",style:{color:\"#8A6D1F\",textDecoration:\"underline\"},children:\"Privacy Policy\"}),\" & \",/*#__PURE__*/_jsx(\"a\",{href:\"/terms-and-conditions\",style:{color:\"#8A6D1F\",textDecoration:\"underline\"},children:\"Terms and Conditions\"}),\".\"]}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:\"-5000px\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"input\",{type:\"text\",name:HONEYPOT,tabIndex:-1,defaultValue:\"\"})}),/*#__PURE__*/_jsx(\"button\",{type:\"submit\",disabled:status===\"loading\",style:{...goldBtn,opacity:status===\"loading\"?.7:1},children:status===\"loading\"?\"Sending…\":submitLabel}),message?/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"14px\",color:status===\"success\"?\"#1E7A46\":\"#B4453B\",lineHeight:1.5,marginTop:\"2px\"},children:message}):null]});}MailchimpForm.defaultProps={regions:[\"United Kingdom\",\"Brasil\",\"Norway\",\"Moldova\"],submitLabel:\"Join The Waitlist\",nextText:\"\",nextLabel:\"Pay Deposit\",nextLink:\"\"};addPropertyControls(MailchimpForm,{regions:{type:ControlType.Array,title:\"Regions\",control:{type:ControlType.String},defaultValue:[\"United Kingdom\",\"Brasil\",\"Norway\",\"Moldova\"]},submitLabel:{type:ControlType.String,title:\"Submit Label\",defaultValue:\"Join The Waitlist\"},nextText:{type:ControlType.String,title:\"After-Signup Text\",displayTextArea:true,defaultValue:\"\"},nextLabel:{type:ControlType.String,title:\"After-Signup Button\",defaultValue:\"Pay Deposit\"},nextLink:{type:ControlType.Link,title:\"After-Signup Link\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MailchimpForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MailchimpForm.map"],"mappings":"A,+LAAgU,SAAwBY,EAAc,EAAM,CAAC,GAAK,CAAC,UAAQ,cAAY,WAAS,YAAU,YAAUC,EAAW,CAACC,EAAOC,GAAWf,EAAS,MAAM,EAAO,CAACgB,EAAQC,GAAYjB,EAAS,EAAE,EAAQkB,EAAQ,OAAOC,GAAW,UAAUA,EAAS,KAAK,IAAI,GAAG,SAASC,EAAO,EAAE,CAAC,EAAE,eAAe,EAAE,IAAMC,EAAK,EAAE,cAAoBC,EAAK,IAAI,SAASD,CAAI,EAAQE,EAAO,IAAI,gBAAgB,IAAI,IAAMC,KAAQF,EAAK,QAAQ,EAAEC,EAAO,OAAOC,EAAK,GAAGA,EAAK,EAAE,EAAE,IAAMC,EAAG,SAAS,KAAK,IAAI,EAAEF,EAAO,OAAO,IAAIE,CAAE,EAAEV,EAAU,SAAS,EAAEE,EAAW,EAAE,EAAE,IAAMS,EAAO,SAAS,cAAc,QAAQ,EAAE,EAAOD,GAAI,SAAS,EAAK,CAAC,IAAME,GAAKC,GAAMA,EAAK,KAAK,GAAA,CAAI,QAAQ,WAAW,EAAE,EAAQC,EAAQ,sBAAsB,KAAKF,CAAG,EAAKC,GAAMA,EAAK,SAAS,WAAWC,GAASd,EAAU,SAAS,EAAEE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