{"version":3,"file":"Mailchimp_Newsletter_Signup.BZ1opFCf.mjs","names":["useMemo","useCallback"],"sources":["https:/framerusercontent.com/modules/WQ5o1WuLAiGMKaGkNd6G/OOOkCrymfFp1eDLVVirQ/Mailchimp_Newsletter_Signup.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useCallback,useMemo}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function MailchimpNewsletterSignup(props){const{submitLabel,surfaceColor,borderColor,accentColor,textColor,radius,gap,font}=props;const baseInputStyle=useMemo(()=>({width:\"100%\",minWidth:0,height:44,border:`1px solid ${borderColor}`,borderRadius:radius,background:surfaceColor,color:textColor,padding:\"10px 12px\",outline:\"none\",boxSizing:\"border-box\",fontFamily:font.fontFamily,fontSize:font.fontSize,fontWeight:font.fontWeight,lineHeight:font.lineHeight,letterSpacing:font.letterSpacing,fontStyle:font.fontStyle}),[borderColor,radius,surfaceColor,textColor,font]);const formStyle=useMemo(()=>({display:\"flex\",flexDirection:\"column\",gap:`${gap}px`,width:\"100%\"}),[gap]);const inputsGridStyle=useMemo(()=>({display:\"grid\",gridTemplateColumns:\"repeat(auto-fit, minmax(170px, 1fr))\",gap:`${gap}px`,width:\"100%\",alignItems:\"end\"}),[gap]);const buttonRowStyle=useMemo(()=>({display:\"flex\",justifyContent:\"center\",width:\"100%\"}),[]);const buttonStyle=useMemo(()=>({height:44,border:\"none\",borderRadius:radius,background:accentColor,color:\"#FFFFFF\",cursor:\"pointer\",padding:\"10px 16px\",whiteSpace:\"nowrap\",fontFamily:font.fontFamily,fontSize:font.fontSize,fontWeight:font.fontWeight,lineHeight:font.lineHeight,letterSpacing:font.letterSpacing,fontStyle:font.fontStyle}),[radius,accentColor,font]);const hiddenLabelStyle=useMemo(()=>({position:\"absolute\",width:1,height:1,padding:0,margin:-1,overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",whiteSpace:\"nowrap\",border:0}),[]);const noopSubmit=useCallback(()=>{// Native HTML form post handles submission to Mailchimp in a new tab.\n},[]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"auto\"},children:/*#__PURE__*/_jsxs(\"form\",{action:\"https://committeeforauckland.us5.list-manage.com/subscribe/post?u=0fbc21b5eb3ea553f0acb78bd&id=4bc7f3886f&f_id=00f47bebf0\",method:\"post\",target:\"_blank\",noValidate:true,style:formStyle,onSubmit:noopSubmit,children:[/*#__PURE__*/_jsxs(\"div\",{style:inputsGridStyle,children:[/*#__PURE__*/_jsxs(\"div\",{style:{minWidth:0},children:[/*#__PURE__*/_jsx(\"label\",{htmlFor:\"mce-EMAIL\",style:hiddenLabelStyle,children:\"Email address\"}),/*#__PURE__*/_jsx(\"input\",{id:\"mce-EMAIL\",type:\"email\",name:\"EMAIL\",required:true,\"aria-required\":\"true\",placeholder:\"Email address\",style:baseInputStyle})]}),/*#__PURE__*/_jsxs(\"div\",{style:{minWidth:0},children:[/*#__PURE__*/_jsx(\"label\",{htmlFor:\"mce-FNAME\",style:hiddenLabelStyle,children:\"First name\"}),/*#__PURE__*/_jsx(\"input\",{id:\"mce-FNAME\",type:\"text\",name:\"FNAME\",placeholder:\"First name\",style:baseInputStyle})]}),/*#__PURE__*/_jsxs(\"div\",{style:{minWidth:0},children:[/*#__PURE__*/_jsx(\"label\",{htmlFor:\"mce-LNAME\",style:hiddenLabelStyle,children:\"Last name\"}),/*#__PURE__*/_jsx(\"input\",{id:\"mce-LNAME\",type:\"text\",name:\"LNAME\",placeholder:\"Last name\",style:baseInputStyle})]})]}),/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"tags\",value:\"4226615\"}),/*#__PURE__*/_jsxs(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",left:\"-5000px\"},children:[/*#__PURE__*/_jsx(\"label\",{htmlFor:\"mce-hp\",style:hiddenLabelStyle,children:\"Leave this field empty\"}),/*#__PURE__*/_jsx(\"input\",{id:\"mce-hp\",type:\"text\",name:\"b_0fbc21b5eb3ea553f0acb78bd_4bc7f3886f\",tabIndex:-1,defaultValue:\"\"})]}),/*#__PURE__*/_jsx(\"div\",{style:buttonRowStyle,children:/*#__PURE__*/_jsx(\"button\",{type:\"submit\",style:buttonStyle,children:submitLabel})})]})});}addPropertyControls(MailchimpNewsletterSignup,{submitLabel:{type:ControlType.String,title:\"Submit Label\",defaultValue:\"Subscribe\"},surfaceColor:{type:ControlType.Color,title:\"Surface\",defaultValue:\"#FFFFFF\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"#EEEEEE\"},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#007BFF\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#000000\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:4,min:0,max:24,step:1},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:12,min:4,max:40,step:1},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MailchimpNewsletterSignup\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Mailchimp_Newsletter_Signup.map"],"mappings":"mLAGG,SAAwB,EAA0B,EAAM,CAAC,GAAK,CAAC,cAAY,eAAa,cAAY,cAAY,YAAU,SAAO,MAAI,QAAM,EAAY,EAAeA,OAAa,CAAC,MAAM,OAAO,SAAS,EAAE,OAAO,GAAG,OAAO,aAAa,IAAc,aAAa,EAAO,WAAW,EAAa,MAAM,EAAU,QAAQ,YAAY,QAAQ,O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