PageSourceSearch

https://www.votesmart.org/_next/static/chunks/pages/account-general-999fbede128027c3.js

js votesmart.org collected 2026-09-24 08:35:56 UTC 7,393 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6181],{66242:function(e,r,i){"use strict";i.d(r,{Z:function(){return x}});var t=i(67294),n=i(90512),a=i(94780),s=i(90948),l=i(28628),o=i(55113),d=i(1588),c=i(34867);function getCardUtilityClass(e){return(0,c.ZP)("MuiCard",e)}(0,d.Z)("MuiCard",["root"]);var u=i(85893);let useUtilityClasses=e=>{let{classes:r}=e;return(0,a.Z)({root:["root"]},getCardUtilityClass,r)},m=(0,s.ZP)(o.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,r)=>r.root})({overflow:"hidden"}),h=t.forwardRef(function(e,r){let i=(0,l.i)({props:e,name:"MuiCard"}),{className:t,raised:a=!1,...s}=i,o={...i,raised:a},d=useUtilityClasses(o);return(0,u.jsx)(m,{className:(0,n.Z)(d.root,t),elevation:a?8:void 0,ref:r,ownerState:o,...s})});var x=h},60220:function(e,r,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account-general",function(){return i(92922)}])},92922:function(e,r,i){"use strict";i.r(r),i.d(r,{default:function(){return account_general}});var t=i(85893);i(67294);var n=i(82175),a=i(16310),s=i(27709),l=i(67720),o=i(86886),d=i(61903),c=i(11057),u=i(23972),m=i(23795),h=i(46157),x=i(47275);let f=a.Ry({fullName:a.Z_().trim().min(2,"Please enter a valid name").max(50,"Please enter a valid name").required("Please specify your first name"),email:a.Z_().trim().email("Please enter a valid email address").required("Email is required."),bio:a.Z_().trim().max(500,"Should be less than 500 chars"),country:a.Z_().trim().min(2,"Please enter a valid name").max(80,"Please enter a valid name").required("Please specify your country name"),city:a.Z_().trim().min(2,"Please enter a valid name").max(80,"Please enter a valid name").required("Please specify your city name"),address:a.Z_().required("Please specify your address").min(2,"Please enter a valid address").max(200,"Please enter a valid address")});var General_General=()=>{let e=(0,n.TA)({initialValues:{fullName:"",bio:"",email:"",country:"",city:"",address:""},validationSchema:f,onSubmit:e=>e});return(0,t.jsx)(x.Z,{children:(0,t.jsx)(h.Z,{children:(0,t.jsxs)(s.Z,{children:[(0,t.jsx)(u.Z,{variant:"h6",gutterBottom:!0,fontWeight:700,children:"Change your private information"}),(0,t.jsxs)(u.Z,{variant:"subtitle2",color:"text.secondary",children:["Please read our"," ",(0,t.jsx)(m.Z,{color:"primary",href:"/company-terms",underline:"none",children:"terms of use"})," ","to be informed how we manage your private data."]}),(0,t.jsx)(s.Z,{paddingY:4,children:(0,t.jsx)(l.Z,{})}),(0,t.jsx)("form",{onSubmit:e.handleSubmit,children:(0,t.jsxs)(o.ZP,{container:!0,spacing:4,children:[(0,t.jsxs)(o.ZP,{item:!0,xs:12,sm:6,children:[(0,t.jsx)(u.Z,{variant:"subtitle2",sx:{marginBottom:2},fontWeight:700,children:"Enter your first name"}),(0,t.jsx)(d.Z,{label:"First name *",variant:"outlined",name:"fullName",fullWidth:!0,value:e.values.fullName,onChange:e.handleChange,error:e.touched.fullName&&!!e.errors.fullName,helperText:e.touched.fullName&&e.errors.fullName})]}),(0,t.jsxs)(o.ZP,{item:!0,xs:12,sm:6,children:[(0,t.jsx)(u.Z,{variant:"subtitle2",sx:{marginBottom:2},fontWeight:700,children:"Enter your email"}),(0,t.jsx)(d.Z,{label:"Email *",variant:"outlined",name:"email",fullWidth:!0,value:e.values.email,onChange:e.handleChange,error:e.touched.email&&!!e.errors.email,helperText:e.touched.email&&e.errors.email})]}),(0,t.jsxs)(o.ZP,{item:!0,xs:12,children:[(0,t.jsx)(u.Z,{variant:"subtitle2",sx:{marginBottom:2},fontWeight:700,children:"Bio"}),(0,t.jsx)(d.Z,{label:"Bio",variant:"outlined",name:"bio",multiline:!0,rows:5,fullWidth:!0,value:e.values.bio,onChange:e.handleChange,error:e.touched.bio&&!!e.errors.bio,helperText:e.touched.bio&&e.errors.bio})]}),(0,t.jsx)(o.ZP,{item:!0,xs:12,children:(0,t.jsx)(l.Z,{})}),(0,t.jsxs)(o.ZP,{item:!0,xs:12,sm:6,children:[(0,t.jsx)(u.Z,{variant:"subtitle2",sx:{marginBottom:2},fontWeight:700,children:"Country"}),(0,t.jsx)(d.Z,{label:"Country *",variant:"outlined",name:"country",fullWidth:!0,value:e.values.country,onChange:e.handleChange,error:e.touched.country&&!!e.errors.country,helperText:e.touched.country&&e.errors.country})]}),(0,t.jsxs)(o.ZP,{item:!0,xs:12,sm:6,children:[(0,t.jsx)(u.Z,{variant:"subtitle2",sx:{marginBottom:2},fontWeight:700,children:"City"}),(0,t.jsx)(d.Z,{label:"City *",variant:"outlined",name:"city",fullWidth:!0,value:e.values.city,onChange:e.handleChange,error:e.touched.city&&!!e.errors.city,helperText:e.touched.city&&e.errors.city})]}),(0,t.jsxs)(o.ZP,{item:!0,xs:12,children:[(0,t.jsx)(u.Z,{variant:"subtitle2",sx:{marginBottom:2},fontWeight:700,children:"Enter your address"}),(0,t.jsx)(d.Z,{label:"Address *",variant:"outlined",name:"address",fullWidth:!0,value:e.values.address,onChange:e.handleChange,error:e.touched.address&&!!e.errors.address,helperText:e.touched.address&&e.errors.address})]}),(0,t.jsx)(o.ZP,{item:!0,container:!0,xs:12,children:(0,t.jsxs)(s.Z,{display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:{xs:"stretched",sm:"center"},justifyContent:"space-between",width:1,margin:"0 auto",children:[(0,t.jsx)(s.Z,{marginBottom:{xs:1,sm:0},children:(0,t.jsxs)(u.Z,{variant:"subtitle2",children:["You may also consider to update your"," ",(0,t.jsx)(m.Z,{color:"primary",href:"/account-billing",underline:"none",children:"billing information."})]})}),(0,t.jsx)(c.Z,{size:"large",variant:"contained",type:"submit",children:"Save"})]})})]})})]})})})},account_general=()=>(0,t.jsx)(General_General,{})},46157:function(e,r,i){"use strict";i.d(r,{Z:function(){return g}});var t=i(85893),n=i(67294),a=i(45697),s=i.n(a),l=i(2734),o=i(27709),d=i(66242),c=i(78462),u=i(97212),m=i(86886),h=i(23972),x=i(41918);let f=[{id:"general",href:"/account-general",title:"General"},{id:"security",href:"/account-security",title:"Security"},{id:"notifications",href:"/account-notifications",title:"Notifications"},{id:"billing",href:"/account-billing",title:"Billing Information"}],Page=e=>{let{children:r}
1=e,[i,a]=(0,n.useState)("");(0,n.useEffect)(()=>{a(window&&window.location?window.location.pathname:"")},[]);let s=(0,l.Z)();return(0,t.jsxs)(o.Z,{children:[(0,t.jsx)(o.Z,{bgcolor:"primary.main",paddingY:4,children:(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(h.Z,{variant:"h4",fontWeight:700,gutterBottom:!0,sx:{color:"common.white"},children:"Account settings"}),(0,t.jsx)(h.Z,{variant:"h6",sx:{color:"common.white"},children:"Change account information and settings"})]})}),(0,t.jsx)(x.Z,{paddingTop:"0 !important",marginTop:-8,children:(0,t.jsxs)(m.ZP,{container:!0,spacing:4,children:[(0,t.jsx)(m.ZP,{item:!0,xs:12,md:3,children:(0,t.jsx)(d.Z,{sx:{boxShadow:3},children:(0,t.jsx)(c.Z,{disablePadding:!0,sx:{display:{xs:"inline-flex",md:"flex"},flexDirection:{xs:"row",md:"column"},overflow:"auto",flexWrap:"nowrap",width:"100%",paddingY:{xs:3,md:4},paddingX:{xs:4,md:0}},children:f.map(e=>(0,t.jsx)(u.ZP,{component:"a",href:e.href,disableGutters:!0,sx:{marginRight:{xs:2,md:0},flex:0,paddingX:{xs:0,md:3},borderLeft:{xs:"none",md:"2px solid transparent"},borderLeftColor:{md:i===e.href?s.palette.primary.main:"transparent"}},children:(0,t.jsx)(h.Z,{variant:"subtitle1",noWrap:!0,color:i===e.href?"text.primary":"text.secondary",children:e.title})},e.id))})})}),(0,t.jsx)(m.ZP,{item:!0,xs:12,md:9,children:(0,t.jsx)(d.Z,{sx:{boxShadow:3,padding:4},children:r})})]})})]})};Page.propTypes={children:s().node};var g=Page}},function(e){e.O(0,[6448,2372,3780,7275,9774,2888,179],function(){return e(e.s=60220)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.