1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1457],{59175:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/user/account",function(){return n(15737)}])},99295:function(e,a,n){"use strict";n.d(a,{h:function(){return l}});const l=[{code:"AD",label:"Andorra",phone:"376"},{code:"AE",label:"United Arab Emirates",phone:"971"},{code:"AF",label:"Afghanistan",phone:"93"},{code:"AG",label:"Antigua and Barbuda",phone:"1-268"},{code:"AI",label:"Anguilla",phone:"1-264"},{code:"AL",label:"Albania",phone:"355"},{code:"AM",label:"Armenia",phone:"374"},{code:"AO",label:"Angola",phone:"244"},{code:"AQ",label:"Antarctica",phone:"672"},{code:"AR",label:"Argentina",phone:"54"},{code:"AS",label:"American Samoa",phone:"1-684"},{code:"AT",label:"Austria",phone:"43"},{code:"AU",label:"Australia",phone:"61",suggested:!0},{code:"AW",label:"Aruba",phone:"297"},{code:"AX",label:"Alland Islands",phone:"358"},{code:"AZ",label:"Azerbaijan",phone:"994"},{code:"BA",label:"Bosnia and Herzegovina",phone:"387"},{code:"BB",label:"Barbados",phone:"1-246"},{code:"BD",label:"Bangladesh",phone:"880"},{code:"BE",label:"Belgium",phone:"32"},{code:"BF",label:"Burkina Faso",phone:"226"},{code:"BG",label:"Bulgaria",phone:"359"},{code:"BH",label:"Bahrain",phone:"973"},{code:"BI",label:"Burundi",phone:"257"},{code:"BJ",label:"Benin",phone:"229"},{code:"BL",label:"Saint Barthelemy",phone:"590"},{code:"BM",label:"Bermuda",phone:"1-441"},{code:"BN",label:"Brunei Darussalam",phone:"673"},{code:"BO",label:"Bolivia",phone:"591"},{code:"BR",label:"Brazil",phone:"55"},{code:"BS",label:"Bahamas",phone:"1-242"},{code:"BT",label:"Bhutan",phone:"975"},{code:"BV",label:"Bouvet Island",phone:"47"},{code:"BW",label:"Botswana",phone:"267"},{code:"BY",label:"Belarus",phone:"375"},{code:"BZ",label:"Belize",phone:"501"},{code:"CA",label:"Canada",phone:"1",suggested:!0},{code:"CC",label:"Cocos (Keeling) Islands",phone:"61"},{code:"CD",label:"Congo, Democratic Republic of the",phone:"243"},{code:"CF",label:"Central African Republic",phone:"236"},{code:"CG",label:"Congo, Republic of the",phone:"242"},{code:"CH",label:"Switzerland",phone:"41"},{code:"CI",label:"Cote d'Ivoire",phone:"225"},{code:"CK",label:"Cook Islands",phone:"682"},{code:"CL",label:"Chile",phone:"56"},{code:"CM",label:"Cameroon",phone:"237"},{code:"CN",label:"China",phone:"86"},{code:"CO",label:"Colombia",phone:"57"},{code:"CR",label:"Costa Rica",phone:"506"},{code:"CU",label:"Cuba",phone:"53"},{code:"CV",label:"Cape Verde",phone:"238"},{code:"CW",label:"Curacao",phone:"599"},{code:"CX",label:"Christmas Island",phone:"61"},{code:"CY",label:"Cyprus",phone:"357"},{code:"CZ",label:"Czech Republic",phone:"420"},{code:"DE",label:"Germany",phone:"49",suggested:!0},{code:"DJ",label:"Djibouti",phone:"253"},{code:"DK",label:"Denmark",phone:"45"},{code:"DM",label:"Dominica",phone:"1-767"},{code:"DO",label:"Dominican Republic",phone:"1-809"},{code:"DZ",label:"Algeria",phone:"213"},{code:"EC",label:"Ecuador",phone:"593"},{code:"EE",label:"Estonia",phone:"372"},{code:"EG",label:"Egypt",phone:"20"},{code:"EH",label:"Western Sahara",phone:"212"},{code:"ER",label:"Eritrea",phone:"291"},{code:"ES",label:"Spain",phone:"34"},{code:"ET",label:"Ethiopia",phone:"251"},{code:"FI",label:"Finland",phone:"358"},{code:"FJ",label:"Fiji",phone:"679"},{code:"FK",label:"Falkland Islands (Malvinas)",phone:"500"},{code:"FM",label:"Micronesia, Federated States of",phone:"691"},{code:"FO",label:"Faroe Islands",phone:"298"},{code:"FR",label:"France",phone:"33",suggested:!0},{code:"GA",label:"Gabon",phone:"241"},{code:"GB",label:"United Kingdom",phone:"44"},{code:"GD",label:"Grenada",phone:"1-473"},{code:"GE",label:"Georgia",phone:"995"},{code:"GF",label:"French Guiana",phone:"594"},{code:"GG",label:"Guernsey",phone:"44"},{code:"GH",label:"Ghana",phone:"233"},{code:"GI",label:"Gibraltar",phone:"350"},{code:"GL",label:"Greenland",phone:"299"},{code:"GM",label:"Gambia",phone:"220"},{code:"GN",label:"Guinea",phone:"224"},{code:"GP",label:"Guadeloupe",phone:"590"},{code:"GQ",label:"Equatorial Guinea",phone:"240"},{code:"GR",label:"Greece",phone:"30"},{code:"GS",label:"South Georgia and the South Sandwich Islands",phone:"500"},{code:"GT",label:"Guatemala",phone:"502"},{code:"GU",label:"Guam",phone:"1-671"},{code:"GW",label:"Guinea-Bissau",phone:"245"},{code:"GY",label:"Guyana",phone:"592"},{code:"HK",label:"Hong Kong",phone:"852"},{code:"HM",label:"Heard Island and McDonald Islands",phone:"672"},{code:"HN",label:"Honduras",phone:"504"},{code:"HR",label:"Croatia",phone:"385"},{code:"HT",label:"Haiti",phone:"509"},{code:"HU",label:"Hungary",phone:"36"},{code:"ID",label:"Indonesia",phone:"62"},{code:"IE",label:"Ireland",phone:"353"},{code:"IL",label:"Israel",phone:"972"},{code:"IM",label:"Isle of Man",phone:"44"}
1,{code:"IN",label:"India",phone:"91"},{code:"IO",label:"British Indian Ocean Territory",phone:"246"},{code:"IQ",label:"Iraq",phone:"964"},{code:"IR",label:"Iran, Islamic Republic of",phone:"98"},{code:"IS",label:"Iceland",phone:"354"},{code:"IT",label:"Italy",phone:"39"},{code:"JE",label:"Jersey",phone:"44"},{code:"JM",label:"Jamaica",phone:"1-876"},{code:"JO",label:"Jordan",phone:"962"},{code:"JP",label:"Japan",phone:"81",suggested:!0},{code:"KE",label:"Kenya",phone:"254"},{code:"KG",label:"Kyrgyzstan",phone:"996"},{code:"KH",label:"Cambodia",phone:"855"},{code:"KI",label:"Kiribati",phone:"686"},{code:"KM",label:"Comoros",phone:"269"},{code:"KN",label:"Saint Kitts and Nevis",phone:"1-869"},{code:"KP",label:"Korea, Democratic People's Republic of",phone:"850"},{code:"KR",label:"Korea, Republic of",phone:"82"},{code:"KW",label:"Kuwait",phone:"965"},{code:"KY",label:"Cayman Islands",phone:"1-345"},{code:"KZ",label:"Kazakhstan",phone:"7"},{code:"LA",label:"Lao People's Democratic Republic",phone:"856"},{code:"LB",label:"Lebanon",phone:"961"},{code:"LC",label:"Saint Lucia",phone:"1-758"},{code:"LI",label:"Liechtenstein",phone:"423"},{code:"LK",label:"Sri Lanka",phone:"94"},{code:"LR",label:"Liberia",phone:"231"},{code:"LS",label:"Lesotho",phone:"266"},{code:"LT",label:"Lithuania",phone:"370"},{code:"LU",label:"Luxembourg",phone:"352"},{code:"LV",label:"Latvia",phone:"371"},{code:"LY",label:"Libya",phone:"218"},{code:"MA",label:"Morocco",phone:"212"},{code:"MC",label:"Monaco",phone:"377"},{code:"MD",label:"Moldova, Republic of",phone:"373"},{code:"ME",label:"Montenegro",phone:"382"},{code:"MF",label:"Saint Martin (French part)",phone:"590"},{code:"MG",label:"Madagascar",phone:"261"},{code:"MH",label:"Marshall Islands",phone:"692"},{code:"MK",label:"Macedonia, the Former Yugoslav Republic of",phone:"389"},{code:"ML",label:"Mali",phone:"223"},{code:"MM",label:"Myanmar",phone:"95"},{code:"MN",label:"Mongolia",phone:"976"},{code:"MO",label:"Macao",phone:"853"},{code:"MP",label:"Northern Mariana Islands",phone:"1-670"},{code:"MQ",label:"Martinique",phone:"596"},{code:"MR",label:"Mauritania",phone:"222"},{code:"MS",label:"Montserrat",phone:"1-664"},{code:"MT",label:"Malta",phone:"356"},{code:"MU",label:"Mauritius",phone:"230"},{code:"MV",label:"Maldives",phone:"960"},{code:"MW",label:"Malawi",phone:"265"},{code:"MX",label:"Mexico",phone:"52"},{code:"MY",label:"Malaysia",phone:"60"},{code:"MZ",label:"Mozambique",phone:"258"},{code:"NA",label:"Namibia",phone:"264"},{code:"NC",label:"New Caledonia",phone:"687"},{code:"NE",label:"Niger",phone:"227"},{code:"NF",label:"Norfolk Island",phone:"672"},{code:"NG",label:"Nigeria",phone:"234"},{code:"NI",label:"Nicaragua",phone:"505"},{code:"NL",label:"Netherlands",phone:"31"},{code:"NO",label:"Norway",phone:"47"},{code:"NP",label:"Nepal",phone:"977"},{code:"NR",label:"Nauru",phone:"674"},{code:"NU",label:"Niue",phone:"683"},{code:"NZ",label:"New Zealand",phone:"64"},{code:"OM",label:"Oman",phone:"968"},{code:"PA",label:"Panama",phone:"507"},{code:"PE",label:"Peru",phone:"51"},{code:"PF",label:"French Polynesia",phone:"689"},{code:"PG",label:"Papua New Guinea",phone:"675"},{code:"PH",label:"Philippines",phone:"63"},{code:"PK",label:"Pakistan",phone:"92"},{code:"PL",label:"Poland",phone:"48"},{code:"PM",label:"Saint Pierre and Miquelon",phone:"508"},{code:"PN",label:"Pitcairn",phone:"870"},{code:"PR",label:"Puerto Rico",phone:"1"},{code:"PS",label:"Palestine, State of",phone:"970"},{code:"PT",label:"Portugal",phone:"351"},{code:"PW",label:"Palau",phone:"680"},{code:"PY",label:"Paraguay",phone:"595"},{code:"QA",label:"Qatar",phone:"974"},{code:"RE",label:"Reunion",phone:"262"},{code:"RO",label:"Romania",phone:"40"},{code:"RS",label:"Serbia",phone:"381"},{code:"RU",label:"Russian Federation",phone:"7"},{code:"RW",label:"Rwanda",phone:"250"},{code:"SA",label:"Saudi Arabia",phone:"966"},{code:"SB",label:"Solomon Islands",phone:"677"},{code:"SC",label:"Seychelles",phone:"248"},{code:"SD",label:"Sudan",phone:"249"},{code:"SE",label:"Sweden",phone:"46"},{code:"SG",label:"Singapore",phone:"65"},{code:"SH",label:"Saint Helena",phone:"290"},{code:"SI",label:"Slovenia",phone:"386"},{code:"SJ",label:"Svalbard and Jan Mayen",phone:"47"},{code:"SK",label:"Slovakia",phone:"421"},{code:"SL",label:"Sierra Leone",phone:"232"},{code:"SM",label:"San Marino",phone:"378"},{code:"SN",label:"Senegal",phone:"221"},{code:"SO",label:"Somalia",phone:"252"},{code:"SR",label:"Suriname",phone:"597"},{code:"SS",label:"South Sudan",phone:"211"},{code:"ST",label:"Sao Tome and Principe",phone:"239"},{code:"SV",label:"El Salvador",phone:"503"},{code:"SX",label:"Sint Maarten (Dutch part)",phone:"1-721"},{code:"SY",label:"Syrian Arab Republic",phone:"963"},{code:"SZ",label:"Swaziland",phone:"268"},{code:"TC",label:"Turks and Caicos Islands",phone:"1-649"},{code:"TD",label:"Chad",phone:"235"},{code:"TF",label:"French Southern Territories",phone:"262"},{code:"TG",label:"Togo",phone:"228"},{code:"TH",label:"Thailand",phone:"66"},{code:"TJ",label:"Tajikistan",phone:"992"},{code:"TK",label:"Tokelau",phone:"690"},{code:"TL",label:"Timor-Leste",phone:"670"},{code:"TM",label:"Turkmenistan",phone:"993"},{code:"TN",label:"Tunisia",phone:"216"},{code:"TO",label:"Tonga",phone:"676"},{code:"TR",label:"Turkey",phone:"90"},{code:"TT",label:"Trinidad and Tobago",phone:"1-868"},{code:"TV",label:"Tuvalu",phone:"688"},{code:"TW",label:"Taiwan, Province of China",phone:"886"},{code:"TZ",label:"United Republic of Tanzania",phone:"255"},{code:"UA",label:"Ukraine",phone:"380"},{code:"UG",label:"Uganda",phone:"256"},{code:"US",label:"United States",phone:"1",suggested:!0},{code:"UY",label:"Uruguay",phone:"598"},{code:"UZ",label:"Uzbekistan",phone:"998"},{code:"VA",label:"Holy See (Vatican City State)",phone:"379"},{code:"VC",label:"Saint Vincent and the Grenadines",phone:"1-784"},{code:"VE",label:"Venezuela",phone:"58"},{code:"VG",label:"British Virgin Islands",phone:"1-284"},{code:"VI",label:"US Virgin Islands",phone:"1-340"},{code:"VN",label:"Vietnam",phone:"84"},{code:"VU",label:"Vanuatu",phone:"678"},{code:"WF",label:"Wallis and Futuna",phone:"681"},{code:"WS",label:"Samoa",phone:"685"},{code:"XK",label:"Kosovo",phone:"383"},{code:"YE",label:"Yemen",phone:"967"},{code:"YT",label:"Mayotte",phone:"262"},{code:"ZA",label:"South Africa",phone:"27"},{code:"ZM",label:"Zambia",phone:"260"},{code:"ZW",label:"Zimbabwe",phone:"263"}]},70442:function(e,a,n){"use strict";n.d(a,{Z:function(){return p}});var l=n(85893),o=n(87357),i=n(26447),s=n(15861),c=n(12963),d=n(23795),r=n(41664),t=n.n(r);function h(e){let{link:a,activeLast:n,disabled:i}=e;const{name:s,href:c,icon:r}=a,h={typography:"body2",alignItems:"center",color:"text.primary",display:"inline-flex",...i&&!n&&{cursor:"default",pointerEvents:"none",color:"text.disabled"}},p=(0,l.jsxs)(l.Fragment,{children:[r&&(0,l.jsx)(o.Z,{component:"span",sx:{mr:1,display:"inherit","& svg":{width:20,height:20}},children:r}),s]});return c?(0,l.jsx)(d.Z,{component:t(),href:c,sx:h,children:p}):(0,l.jsxs)(o.Z,{sx:h,children:[" ",p," "]})}function p(e){let{links:a,action:n,heading:r,moreLink:t,activeLast:p,sx:u,...x}=e;const m=a[a.length-1].name;return(0,l.jsxs)(o.Z,{sx:{mb:5,...u},children:[(0,l.jsxs)(i.Z,{direction:"row",alignItems:"center",children:[(0,l.jsxs)(o.Z,{sx:{flexGrow:1},children:[r&&(0,l.jsx)(s.Z,{variant:"h4",gutterBottom:!0,children:r}),!!a.length&&(0,l.jsx)(c.Z,{separator:(0,l.jsx)(b,{}),...x,children:a.map((e=>(0,l.jsx)(h,{link:e,activeLast:p,disabled:e.name===m},e.name||"")))})]}),n&&(0,l.jsxs)(o.Z,{sx:{flexShrink:0},children:[" ",n," "]})]}),!!t&&(0,l.jsx)(o.Z,{sx:{mt:2},children:t.map((e=>(0,l.jsx)(d.Z,{noWrap:!0,href:e,variant:"body2",target:"_blank",rel:"noopener",sx:{dis
1play:"table"},children:e},e)))})]})}function b(){return(0,l.jsx)(o.Z,{component:"span",sx:{width:4,height:4,borderRadius:"50%",bgcolor:"text.disabled"}})}},15737:function(e,a,n){"use strict";n.r(a),n.d(a,{default:function(){return ne}});var l=n(85893),o=n(67294),i=n(9008),s=n.n(i),c=n(53156),d=n(37023),r=n(40044),t=n(87357),h=n(96259),p=n(45983),b=n(8242),u=n(7065),x=n(70442),m=n(89108),j=n(16310),v=n(87536),Z=n(47533),g=n(86886),y=n(66242),f=n(15861),S=n(26447),w=n(31812),C=n(16129),P=n(13162),A=n(99295),I=n(93229),M=n(1677);function k(){const{enqueueSnackbar:e}=(0,I.Ds)(),{user:a}=(0,C.E)(),n=j.Ry().shape({displayName:j.Z_().required("Name is required"),email:j.Z_().required("Email is required").email("Email must be a valid email address"),photoURL:j.nK().required("Avatar is required"),phoneNumber:j.Z_().required("Phone number is required"),country:j.Z_().required("Country is required"),address:j.Z_().required("Address is required"),state:j.Z_().required("State is required"),city:j.Z_().required("City is required"),zipCode:j.Z_().required("Zip code is required"),about:j.Z_().required("About is required")}),i={displayName:(null===a||void 0===a?void 0:a.displayName)||"",email:(null===a||void 0===a?void 0:a.email)||"",photoURL:(null===a||void 0===a?void 0:a.photoURL)||null,phoneNumber:(null===a||void 0===a?void 0:a.phoneNumber)||"",country:(null===a||void 0===a?void 0:a.country)||"",address:(null===a||void 0===a?void 0:a.address)||"",state:(null===a||void 0===a?void 0:a.state)||"",city:(null===a||void 0===a?void 0:a.city)||"",zipCode:(null===a||void 0===a?void 0:a.zipCode)||"",about:(null===a||void 0===a?void 0:a.about)||"",isPublic:(null===a||void 0===a?void 0:a.isPublic)||!1},s=(0,v.cI)({resolver:(0,Z.X)(n),defaultValues:i}),{setValue:c,handleSubmit:d,formState:{isSubmitting:r}}=s,h=(0,o.useCallback)((e=>{const a=e[0],n=Object.assign(a,{preview:URL.createObjectURL(a)});a&&c("photoURL",n,{shouldValidate:!0})}),[c]);return(0,l.jsx)(M.ZP,{methods:s,onSubmit:d((async a=>{try{await new Promise((e=>setTimeout(e,500))),e("Update success!"),console.log("DATA",a)}catch(n){console.error(n)}})),children:(0,l.jsxs)(g.ZP,{container:!0,spacing:3,children:[(0,l.jsx)(g.ZP,{item:!0,xs:12,md:4,children:(0,l.jsxs)(y.Z,{sx:{py:10,px:3,textAlign:"center"},children:[(0,l.jsx)(M.sX,{name:"photoURL",maxSize:3145728,onDrop:h,helperText:(0,l.jsxs)(f.Z,{variant:"caption",sx:{mt:2,mx:"auto",display:"block",textAlign:"center",color:"text.secondary"},children:["Allowed *.jpeg, *.jpg, *.png, *.gif",(0,l.jsx)("br",{})," max size of ",(0,P.oe)(3145728)]})}),(0,l.jsx)(M._e,{name:"isPublic",labelPlacement:"start",label:"Public Profile",sx:{mt:5}})]})}),(0,l.jsx)(g.ZP,{item:!0,xs:12,md:8,children:(0,l.jsxs)(y.Z,{sx:{p:3},children:[(0,l.jsxs)(t.Z,{rowGap:3,columnGap:2,display:"grid",gridTemplateColumns:{xs:"repeat(1, 1fr)",sm:"repeat(2, 1fr)"},children:[(0,l.jsx)(M.au,{name:"displayName",label:"Name"}),(0,l.jsx)(M.au,{name:"email",label:"Email Address"}),(0,l.jsx)(M.au,{name:"phoneNumber",label:"Phone Number"}),(0,l.jsx)(M.au,{name:"address",label:"Address"}),(0,l.jsxs)(M.Cc,{native:!0,name:"country",label:"Country",placeholder:"Country",children:[(0,l.jsx)("option",{value:""}),A.h.map((e=>(0,l.jsx)("option",{value:e.label,children:e.label},e.code)))]}),(0,l.jsx)(M.au,{name:"state",label:"State/Region"}),(0,l.jsx)(M.au,{name:"city",label:"City"}),(0,l.jsx)(M.au,{name:"zipCode",label:"Zip/Code"})]}),(0,l.jsxs)(S.Z,{spacing:3,alignItems:"flex-end",sx:{mt:3},children:[(0,l.jsx)(M.au,{name:"about",multiline:!0,rows:4,label:"About"}),(0,l.jsx)(w.Z,{type:"submit",variant:"contained",loading:r,children:"Save Changes"})]})]})})]})})}var N=n(87109);const T=[{value:"facebookLink",icon:(0,l.jsx)(u.Z,{icon:"eva:facebook-fill",width:24})},{value:"instagramLink",icon:(0,l.jsx)(u.Z,{icon:"ant-design:instagram-filled",width:24})},{value:"linkedinLink",icon:(0,l.jsx)(u.Z,{icon:"eva:linkedin-fill",width:24})},{value:"twitterLink",icon:(0,l.jsx)(u.Z,{icon:"eva:twitter-fill",width:24})}];function B(e){let{socialLinks:a}=e;const{enqueueSnackbar:n}=(0,I.Ds)(),o={facebookLink:a.facebookLink,instagramLink:a.instagramLink,linkedinLink:a.linkedinLink,twitterLink:a.twitterLink},i=(0,v.cI)({defaultValues:o}),{handleSubmit:s,formState:{isSubmitting:c}}=i;return(0,l.jsx)(M.ZP,{methods:i,onSubmit:s((async e=>{try{await new Promise((e=>setTimeout(e,500))),n("Update success!"),console.log("DATA",e)}catch(a){console.error(a)}})),children:(0,l.jsx)(y.Z,{sx:{p:3},children:(0,l.jsxs)(S.Z,{spacing:3,alignItems:"flex-end",children:[T.map((e=>(0,l.jsx)(M.au,{name:e.value,InputProps:{startAdornment:(0,l.jsx)(N.Z,{position:"start",children:e.icon})}},e.value))),(0,l.jsx)(w.Z,{type:"submit",variant:"contained",loading:c,children:"Save Changes"})]})})})}const L=[{value:"activityComments",label:"Email me when someone comments onmy article"},{value:"activityAnswers",label:"Email me when someone answers on my form"},{value:"activityFollows",label:"Email me hen someone follows me"}],G=[{value:"applicationNews",label:"News and announcements"},{value:"applicationProduct",label:"Weekly product updates"},{value:"applicationBlog",label:"Weekly blog digest"}],R=!0,E=!0,U=!1,_=!0,D=!1,F=!1;function K(){const{enqueueSnackbar:e}=(0,I.Ds)(),a={activityComments:R,activityAnswers:E,activityFollows:U,applicationNews:_,applicationProduct:D,applicationBlog:F},n=(0,v.cI)({defaultValues:a}),{handleSubmit:o,formState:{isSubmitting:i}}=n;return(0,l.jsx)(M.ZP,{methods:n,onSubmit:o((async a=>{try{await new Promise((e=>setTimeout(e,500))),e("Update success!"),console.log("DATA",a)}catch(n){console.error(n)}})),children:(0,l.jsxs)(y.Z,{sx:{p:3},children:[(0,l.jsx)(f.Z,{variant:"overline",component:"div",sx:{color:"text.secondary"},children:"Activity"}),(0,l.jsx)(S.Z,{alignItems:"flex-start",spacing:1,sx:{mt:2},children:L.map((e=>(0,l.jsx)(M._e,{name:e.value,label:e.label,sx:{m:0}},e.value)))}),(0,l.jsx)(f.Z,{variant:"overline",component:"div",sx:{color:"text.secondary",mt:5},children:"Application"}),(0,l.jsx)(S.Z,{alignItems:"flex-start",spacing:1,sx:{mt:2,mb:5},children:G.map((e=>(0,l.jsx)(M._e,{name:e.value,label:e.label,sx:{m:0}},e.value)))}),(0,l.jsx)(S.Z,{children:(0,l.jsx)(w.Z,{type:"submit",variant:"contained",loading:i,sx:{ml:"auto"},children:"Save Changes"})})]})})}function q(){const{enqueueSnackbar:e}=(0,I.Ds)(),a=j.Ry().shape({oldPassword:j.Z_().required("Old Password is required"),newPassword:j.Z_().required("New Password is required").min(6,"Password must be at least 6 characters").test("no-match","New password must be different than old password",((e,a)=>{let{parent:n}=a;return e!==n.oldPassword})),confirmNewPassword:j.Z_().oneOf([j.iH("newPassword")],"Passwords must match")}),n=(0,v.cI)({resolver:(0,Z.X)(a),defaultValues:{oldPassword:"",newPassword:"",confirmNewPassword:""}}),{reset:o,handleSubmit:i,formState:{isSubmitting:s}}=n;return(0,l.jsx)(M.ZP,{methods:n,onSubmit:i((async a=>{try{await new Promise((e=>setTimeout(e,500))),o(),e("Update success!"),console.log("DATA",a)}catch(n){console.error(n)}})),children:(0,l.jsx)(y.Z,{children:(0,l.jsxs)(S.Z,{spacing:3,alignItems:"flex-end",sx:{p:3},children:[(0,l.jsx)(M.au,{name:"oldPassword",type:"password",label:"Old Password"}),(0,l.jsx)(M.au,{name:"newPassword",type:"password",label:"New Password",helperText:(0,l.jsxs)(S.Z,{component:"span",direction:"row",alignItems:"center",children:[(0,l.jsx)(u.Z,{icon:"eva:info-fill",width:16,sx:{mr:.5}})," Password must be minimum 6+"]})}),(0,l.jsx)(M.au,{name:"confirmNewPassword",type:"password",label:"Confirm New Password"}),(0,l.jsx)(w.Z,{type:"submit",variant:"contained",loading:s,children:"Save Changes"})]})})})}var z=n(11057),W=n(67720);function V(e){let{addressBook:a}=e;return(0,l.jsxs)(y.Z,{sx:{p:3},children:[(0,l.jsxs)(S.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:3},children:[(0,l.jsx)(f.Z,{variant:"overline",sx:{color:"text.secondary"},children:"Billing Info"}),(0,l.jsx)(z.Z,{size:"small",startIcon:(0,l.jsx)(u.Z,{icon:"eva:plus-fill"}),children:"New Billing Address"})]}),(0,l.jsx)(S.Z,{spacing:3,divider:(0,l.jsx)(W.Z,{sx:{borderStyle:"dashed"}}),children:a.map((e=>(0,l.jsxs)(S.Z,{spacing:1,children:[(0,l.jsx)(f.Z,{variant:"subtitle1",children:e.name}),(0,l.jsxs)(f.Z,{variant:"body2",children:[(0,l.jsx)(t.Z,{component:"span",sx:{color:"text.secondary",mr:.5},children:"Address:"}),"".concat(e.street,", ").concat(e.city,", ").concat(e.state,", ").concat(e.country," ").concat(e.zipCode)]}),(0,l.jsxs)(f.Z,{variant:"body2",children:[(0,l.jsx)(t.Z,{component:"span",sx:{color:"text.secondary",mr:.5},children:"Phone:"}),e.phone]}
1),(0,l.jsxs)(S.Z,{direction:"row",spacing:1,children:[(0,l.jsx)(z.Z,{color:"error",size:"small",startIcon:(0,l.jsx)(u.Z,{icon:"eva:trash-2-outline"}),children:"Delete"}),(0,l.jsx)(z.Z,{size:"small",startIcon:(0,l.jsx)(u.Z,{icon:"eva:edit-fill"}),children:"Edit"})]})]},e.id)))})]})}var H=n(90629),O=n(93946),Y=n(53710),J=n(73296);function X(e){let{cards:a}=e;const[n,i]=(0,o.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(y.Z,{sx:{p:3},children:[(0,l.jsxs)(S.Z,{direction:"row",alignItems:"center",sx:{mb:3},children:[(0,l.jsx)(f.Z,{variant:"overline",sx:{flexGrow:1,color:"text.secondary"},children:"Payment Method"}),(0,l.jsx)(z.Z,{size:"small",startIcon:(0,l.jsx)(u.Z,{icon:"eva:plus-fill"}),onClick:()=>{i(!0)},children:"New card"})]}),(0,l.jsx)(S.Z,{spacing:2,direction:{xs:"column",md:"row"},children:a.map((e=>(0,l.jsxs)(H.Z,{variant:"outlined",sx:{p:3,width:1,position:"relative"},children:[(0,l.jsx)(Y.Z,{alt:"icon",src:"master_card"===e.cardType?"/assets/icons/payments/ic_mastercard.svg":"/assets/icons/payments/ic_visa.svg",sx:{mb:1,maxWidth:36}}),(0,l.jsx)(f.Z,{variant:"subtitle2",children:e.cardNumber}),(0,l.jsx)(O.Z,{sx:{top:8,right:8,position:"absolute"},children:(0,l.jsx)(u.Z,{icon:"eva:more-vertical-fill"})})]},e.id)))})]}),(0,l.jsx)(J.ug,{open:n,onClose:()=>{i(!1)}})]})}var Q=n(23795),$=n(69127);function ee(e){let{invoices:a}=e;return(0,l.jsxs)(S.Z,{spacing:3,alignItems:"flex-end",children:[(0,l.jsx)(f.Z,{variant:"overline",sx:{width:1,color:"text.secondary"},children:"Invoice History"}),(0,l.jsx)(S.Z,{spacing:2,sx:{width:1},children:a.map((e=>(0,l.jsxs)(S.Z,{direction:"row",justifyContent:"space-between",sx:{width:1},children:[(0,l.jsx)(f.Z,{variant:"body2",sx:{minWidth:120},children:(0,$.Mu)(e.createdAt)}),(0,l.jsx)(f.Z,{variant:"body2",children:(0,P.e_)(e.price)}),(0,l.jsx)(Q.Z,{children:"PDF"})]},e.id)))}),(0,l.jsx)(z.Z,{size:"small",color:"inherit",endIcon:(0,l.jsx)(u.Z,{icon:"eva:arrow-ios-forward-fill"}),children:"All invoices"})]})}function ae(e){let{cards:a,addressBook:n,invoices:o}=e;return(0,l.jsxs)(g.ZP,{container:!0,spacing:5,children:[(0,l.jsx)(g.ZP,{item:!0,xs:12,md:8,children:(0,l.jsxs)(S.Z,{spacing:3,children:[(0,l.jsxs)(y.Z,{sx:{p:3},children:[(0,l.jsx)(f.Z,{variant:"overline",sx:{mb:3,display:"block",color:"text.secondary"},children:"Your Plan"}),(0,l.jsx)(f.Z,{variant:"h4",children:"Premium"}),(0,l.jsxs)(t.Z,{sx:{mt:{xs:2,sm:0},position:{sm:"absolute"},top:{sm:24},right:{sm:24}},children:[(0,l.jsx)(z.Z,{size:"small",color:"inherit",variant:"outlined",sx:{mr:1},children:"Cancel plan"}),(0,l.jsx)(z.Z,{size:"small",variant:"outlined",children:"Upgrade plan"})]})]}),(0,l.jsx)(X,{cards:a}),(0,l.jsx)(V,{addressBook:n})]})}),(0,l.jsx)(g.ZP,{item:!0,xs:12,md:4,children:(0,l.jsx)(ee,{invoices:o})})]})}function ne(){const{themeStretch:e}=(0,m.K$)(),[a,n]=(0,o.useState)("general"),i=[{value:"general",label:"General",icon:(0,l.jsx)(u.Z,{icon:"ic:round-account-box"}),component:(0,l.jsx)(k,{})},{value:"billing",label:"Billing",icon:(0,l.jsx)(u.Z,{icon:"ic:round-receipt"}),component:(0,l.jsx)(ae,{cards:p.Po,addressBook:p.n,invoices:p.aH})},{value:"notifications",label:"Notifications",icon:(0,l.jsx)(u.Z,{icon:"eva:bell-fill"}),component:(0,l.jsx)(K,{})},{value:"social_links",label:"Social links",icon:(0,l.jsx)(u.Z,{icon:"eva:share-fill"}),component:(0,l.jsx)(B,{socialLinks:p.oE.socialLinks})},{value:"change_password",label:"Change password",icon:(0,l.jsx)(u.Z,{icon:"ic:round-vpn-key"}),component:(0,l.jsx)(q,{})}];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s(),{children:(0,l.jsx)("title",{children:" User: Account Settings | Minimal UI"})}),(0,l.jsxs)(c.Z,{maxWidth:!e&&"lg",children:[(0,l.jsx)(x.Z,{heading:"Account",links:[{name:"Dashboard",href:h.vB.root},{name:"User",href:h.vB.user.root},{name:"Account Settings"}]}),(0,l.jsx)(d.Z,{value:a,onChange:(e,a)=>n(a),children:i.map((e=>(0,l.jsx)(r.Z,{label:e.label,icon:e.icon,value:e.value},e.value)))}),i.map((e=>e.value===a&&(0,l.jsx)(t.Z,{sx:{mt:5},children:e.component},e.value)))]})]})}ne.getLayout=e=>(0,l.jsx)(b.Z,{children:e})},73296:function(e,a,n){"use strict";n.d(a,{Wz:function(){return T},A6:function(){return C},ug:function(){return f},U3:function(){return N}});var l=n(85893),o=n(67294),i=n(26447),s=n(15861),c=n(68061),d=n(90629),r=n(50480),t=n(49033),h=n(87357),p=n(50135),b=n(11057),u=n(7065),x=n(64666),m=n(37645),j=n(6514),v=n(87109),Z=n(93946),g=n(31425),y=n(46234);function f(e){let{onClose:a,...n}=e;const[s,c]=(0,o.useState)(null);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(x.Z,{maxWidth:"xs",onClose:a,...n,children:[(0,l.jsx)(m.Z,{children:" Add new card "}),(0,l.jsx)(j.Z,{sx:{overflow:"unset"}
1,children:(0,l.jsxs)(i.Z,{spacing:3,children:[(0,l.jsx)(p.Z,{fullWidth:!0,label:"Name on card"}),(0,l.jsx)(p.Z,{fullWidth:!0,label:"Card number"}),(0,l.jsxs)(i.Z,{direction:{xs:"column",sm:"row"},spacing:2,children:[(0,l.jsx)(p.Z,{label:"MM/YY"}),(0,l.jsx)(p.Z,{label:"CVV",InputProps:{endAdornment:(0,l.jsx)(v.Z,{position:"end",children:(0,l.jsx)(Z.Z,{size:"small",edge:"end",onClick:e=>{c(e.currentTarget)},children:(0,l.jsx)(u.Z,{icon:"eva:info-fill"})})})}})]})]})}),(0,l.jsxs)(g.Z,{children:[(0,l.jsx)(b.Z,{color:"inherit",variant:"outlined",onClick:a,children:"Cancel"}),(0,l.jsx)(b.Z,{variant:"contained",onClick:a,children:"Add"})]})]}),(0,l.jsx)(y.Z,{open:s,onClose:()=>{c(null)},arrow:"bottom-center",sx:{maxWidth:200,typography:"body2",textAlign:"center"},children:"Three-digit number on the back of your VISA card"})]})}const S=[{value:"paypal",title:"Paypal",icons:["/assets/icons/payments/ic_paypal.svg"]},{value:"credit_card",title:"Credit / Debit Card",icons:["/assets/icons/payments/ic_mastercard.svg","/assets/icons/payments/ic_visa.svg"]}],w=[{value:"visa1",label:"**** **** **** 1212 - Jimmy Holland"},{value:"visa2",label:"**** **** **** 2424 - Shawn Stokes"},{value:"mastercard",label:"**** **** **** 4545 - Cole Armstrong"}];function C(){const[e,a]=(0,o.useState)("paypal"),[n,d]=(0,o.useState)(!1),r=()=>{d(!0)};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(i.Z,{spacing:5,children:[(0,l.jsx)(s.Z,{variant:"h6",children:"Payment Method"}),(0,l.jsx)(c.Z,{value:e,onChange:e=>{a(e.target.value)},children:(0,l.jsx)(i.Z,{spacing:3,children:S.map((a=>(0,l.jsx)(P,{option:a,isSelected:e===a.value,hasChild:"credit_card"===a.value,isCreditMethod:"credit_card"===a.value&&"credit_card"===e,onOpen:r},a.title)))})})]}),(0,l.jsx)(f,{open:n,onClose:()=>{d(!1)}})]})}function P(e){let{option:a,hasChild:n,isSelected:o,isCreditMethod:s,onOpen:c}=e;const{value:x,title:m,icons:j}=a;return(0,l.jsxs)(d.Z,{variant:"outlined",sx:{display:"flex",alignItems:"center",position:"relative",transition:e=>e.transitions.create("all"),...n&&{flexWrap:"wrap"},...o&&{boxShadow:e=>e.customShadows.z20}},children:[(0,l.jsx)(r.Z,{value:x,control:(0,l.jsx)(t.Z,{checkedIcon:(0,l.jsx)(u.Z,{icon:"eva:checkmark-circle-2-fill"})}),label:m,sx:{py:2,pl:2.5,flexGrow:1,mr:0}}),(0,l.jsx)(i.Z,{spacing:1,direction:"row",alignItems:"center",sx:{position:"absolute",right:20,top:24},children:j.map((e=>(0,l.jsx)(h.Z,{component:"img",src:e},e)))}),s&&(0,l.jsxs)(i.Z,{alignItems:"flex-start",sx:{px:3,width:1},children:[(0,l.jsx)(p.Z,{select:!0,fullWidth:!0,label:"Card",SelectProps:{native:!0},children:w.map((e=>(0,l.jsx)("option",{value:e.value,children:e.label},e.value)))}),(0,l.jsx)(b.Z,{size:"small",startIcon:(0,l.jsx)(u.Z,{icon:"eva:plus-fill"}),onClick:c,sx:{my:3},children:"Add new card"})]})]})}var A=n(72852),I=n(67720),M=n(31812),k=n(3256);function N(e){let{sx:a,...n}=e;return(0,l.jsxs)(h.Z,{sx:{p:5,borderRadius:2,bgcolor:"background.neutral",...a},...n,children:[(0,l.jsx)(s.Z,{variant:"h6",sx:{mb:5},children:"Summary"}),(0,l.jsxs)(i.Z,{spacing:2.5,children:[(0,l.jsxs)(i.Z,{direction:"row",justifyContent:"space-between",children:[(0,l.jsx)(s.Z,{variant:"body2",sx:{color:"text.secondary"},children:"Subscription"}),(0,l.jsx)(k.Z,{color:"error",children:"PREMIUM"})]}),(0,l.jsxs)(i.Z,{direction:"row",justifyContent:"space-between",children:[(0,l.jsx)(s.Z,{variant:"body2",sx:{color:"text.secondary"},children:"Billed Monthly"}),(0,l.jsx)(A.Z,{defaultChecked:!0})]}),(0,l.jsxs)(i.Z,{spacing:1,direction:"row",justifyContent:"flex-end",children:[(0,l.jsx)(s.Z,{variant:"h5",children:"$"}),(0,l.jsx)(s.Z,{variant:"h2",children:"9.99"}),(0,l.jsx)(s.Z,{component:"span",sx:{mb:1,alignSelf:"center",color:"text.secondary"},children:"/mo"})]}),(0,l.jsx)(I.Z,{sx:{borderStyle:"dashed"}}),(0,l.jsxs)(i.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(s.Z,{variant:"h6",children:"Total Billed"}),(0,l.jsx)(s.Z,{variant:"h6",children:"$9.99*"})]}),(0,l.jsx)(I.Z,{sx:{borderStyle:"dashed"}})]}),(0,l.jsx)(s.Z,{component:"div",variant:"caption",sx:{color:"text.secondary",mt:1},children:"* Plus applicable taxes"}),(0,l.jsx)(M.Z,{fullWidth:!0,size:"large",type:"submit",variant:"contained",sx:{mt:5,mb:3},children:"Upgrade My Plan"}),(0,l.jsxs)(i.Z,{alignItems:"center",spacing:1,children:[(0,l.jsxs)(i.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,l.jsx)(u.Z,{icon:"eva:shield-fill",sx:{color:"primary.main"}}),(0,l.jsx)(s.Z,{variant:"subtitle2",children:"Secure credit card payment"})]}),(0,l.jsx)(s.Z,{variant:"caption",sx:{color:"text.secondary",textAlign:"center"},children:"This is a secure 128-bit SSL encrypted payment"})]})]})}function T(){return(0,l.jsxs)("div",{children:[(0,l.jsx)(s.Z,{variant:"h6",children:"Billing Address"}),(0,l.jsxs)(i.Z,{spacing:3,mt:5,children:[(0,l.jsx)(p.Z,{fullWidth:!0,label:"Person name"}),(0,l.jsx)(p.Z,{fullWidth:!0,label:"Phone number"}),(0,l.jsx)(p.Z,{fullWidth:!0,label:"Email"}),(0,l.jsx)(p.Z,{fullWidth:!0,label:"Address"})]})]})}}},function(e){e.O(0,[1664,3461,4564,2679,8618,5464,7417,8360,4386,135,568,7423,2077,7918,4084,6628,4782,1812,6886,7964,5099,8159,141,9485,7848,3178,1677,5983,8242,9774,2888,179],(function(){return a=59175,e(e.s=a);var a}));var a=e.O();_N_E=a}]);
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.