PageSourceSearch

https://www.zesty.io/_next/static/chunks/3198-a28fcad788272743.js

js zesty.io collected 2026-10-02 05:44:13 UTC 11,720 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3198],{57354:function(e,t,a){var r=a(64836);t.Z=void 0;var i=r(a(64938)),n=a(85893),s=(0,i.default)((0,n.jsx)("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt");t.Z=s},33198:function(e,t,a){a.d(t,{yX:function(){return r.yX},g2:function(){return r.g2},G7:function(){return r.G7},pd:function(){return r.pd},l1:function(){return r.l1},Q:function(){return r.Q},yI:function(){return r.yI}});var r=a(14149);a(79574),a(69545),a(40209)},69545:function(e,t,a){a.d(t,{J:function(){return f}});var r=a(85893),i=a(67294),n=a(15861),s=a(51233),o=a(69417),l=a(86886),d=a(69181),c=a(53342),h=a(5152);let u=a.n(h)()(()=>Promise.resolve().then(a.bind(a,53342)).then(e=>e.AccountsTable),{loadableGenerated:{webpack:()=>[53342]}}),m=[{value:0,label:"Hide"},{value:1,label:"Show"}],p=[{value:"List",label:"List"},{value:"Grid",label:"Grid"}],f=()=>{let{ZestyAPI:e,userInfo:t}=(0,d.q)(e=>e),[a,h]=i.useState(!1),f=t?.prefs&&JSON.parse(t?.prefs),[x,w]=i.useState(),[b,j]=i.useState(),y=()=>{(0,c.SuccessMsg)({title:"Success"})},g=e=>{(0,c.ErrorMsg)({text:e.error})},Z=async t=>{let a=t?.ZUID,r={firstName:t?.firstName,lastName:t?.lastName,prefs:JSON.stringify({...f,teamOptions:x,instance_layout:b})},i=await e.updateUser(a,r);i.error||y(i),i.error&&g(i),h(!1)},v=[{id:1,name:"Manage Teams",description:"Show or Hide Teams",action:(0,r.jsx)(c.AccountsSelect,{list:m,setterFn:w,value:x,setdirty:h})},{id:2,name:"Instance View",description:"Grid or List View",action:(0,r.jsx)(c.AccountsSelect,{list:p,setterFn:j,value:b&&b[0]?.toUpperCase()+b?.slice(1),setdirty:h})}],S=[{field:"id",headerName:"ID",hide:!0},{field:"name",headerName:"Preference Name",width:300,editable:!1,sortable:!1,renderHeader:()=>(0,r.jsx)(c.AccountsTableHead,{children:"Preference Name"}),renderCell:e=>(0,r.jsx)(n.Z,{variant:"body2",children:e.row.name})},{field:"description",headerName:"Description",width:300,editable:!1,sortable:!1,renderHeader:()=>(0,r.jsx)(c.AccountsTableHead,{children:"Description"}),renderCell:e=>(0,r.jsx)(n.Z,{variant:"body2",children:e.row.description})},{field:"action",headerName:"",width:200,editable:!1,sortable:!1,renderHeader:()=>(0,r.jsx)(s.Z,{width:1,pl:6,children:(0,r.jsx)(o.Z,{fullWidth:!0,variant:"contained",disabled:!a,onClick:()=>Z(t),color:"primary",children:"Save"})}),renderCell:e=>e.row.action}];return i.useEffect(()=>{w(f?.teamOptions),j(f?.instance_layout)},[f?.teamOptions,f?.instance_layout]),(0,r.jsxs)(l.ZP,{container:!0,children:[(0,r.jsx)(c.AccountsHeader,{title:"Preference",description:"Manage your Preference"}),(0,r.jsx)(l.ZP,{item:!0,xs:12,children:(0,r.jsx)(s.Z,{p:4,children:(0,r.jsx)(u,{loading:!1,rows:v,columns:S,pageSize:100,autoHeight:!0})})})]})}},40209:function(e,t,a){a.d(t,{c:function(){return b}});var r=a(85893),i=a(73653),n=a(86886),s=a(90629),o=a(51233),l=a(15861),d=a(69417),c=a(82175),h=a(57354),u=a(69181),m=a(73518),p=a(48837),f=a(20377),x=a(23621),w=a(67294);let b=e=>{let{getUser:t}=e,{userInfo:a,ZestyAPI:b}=(0,u.q)(e=>e),j=a?.authyEnabled,{enqueueSnackbar:y}=(0,f.Ds)(),[g,Z]=(0,w.useState)(!1),v=async e=>{let{oldPassword:t,newPassword:r}=e,i=a.ZUID,n=await b.updateUser(i,{oldPassword:t,password:r},"?action=updatePassword");await (0,x.notistackMessage)(y,{message:"Successfully changed password!",callback:async()=>{window.location.replace("/logout")}},n)},S=(0,c.TA)({validationSchema:p.h.twoFactorAuth,initialValues:{areaCode:"",phoneNumber:""},onSubmit:async e=>{await P(e),S.resetForm()}}),N=(0,c.TA)({validationSchema:p.h.password,initialValues:{oldPassword:"",newPassword:"",confirmNewPassword:""},onSubmit:async e=>{await v(e),N.resetForm()}}),P=async e=>{let{areaCode:r,phoneNumber:i}=e,n=a.ZUID,s=await b.updateUser(n,{authyPhoneCountryCode:r,authyPhoneNumber:i,submitted:!1},"?action=enableAuthy");await (0,x.notistackMessage)(y,{message:"Successfully enabled authy!",callback:async()=>await t()},s)},C=async()=>{Z(!0);let e=a.ZUID,r=await b.updateUser(e,{authyEnabled:!1});await (0,x.notistackMessage)(y,{message:"Successfully disabled authy!"},r),Z(!1),await t()};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.sv,{title:"Security",description:"Manage your Authentication"}),(0,r.jsxs)(n.ZP,{container:!0,px:4,spacing:2,children:[(0,r.jsx)(n.ZP,{item:!0,lg:6,xs:12,children:(0,r.jsx)(s.Z,{boxShadow:4,sx:{p:4,height:"100%"},children:(0,r.jsx)("form",{noValidate:!0,onSubmit:N.handleSubmit,children:(0,r.jsxs)(o.Z,{spacing:2,children:[(0,r.jsx)(l.Z,{variant:"h6",children:"Change Password"}),(0,r.jsx)(m.yt,{name:"oldPassword",type:"password",customLabel:"Old Password",formik:N}),(0,r.jsx)(m.yt,{name:"newPassword",type:"password",customLabel:"New Password",formik:N}),(0,r.jsx)(m.yt,{name:"confirmNewPassword",type:"password",customLabel:"Confirm New Password",formik:N}),(0,r.jsx)(i.Z,{variant:"contained",type:"submit",fullWidth:!0,loading:N.isSubmitting,children:"Submit"})]})})})}),(0,r.jsx)(n.ZP,{item:!0,lg:6,xs:12,children:(0,r.jsxs)(s.Z,{boxShadow:4,sx:{p:4,height:"100%"},children:[(0,r.jsxs)(o.Z,{spacing:2,children:[(0,r.jsx)(l.Z,{variant:"h6",children:"Two Factor Authentication"}),(0,r.jsx)(l.Z,{color:"text.secondary",children:"Information on the 2FA setup and the phone number that should be used."}),(0,r.jsx)(l.Z,{color:"text.secondary",children:"How to install the app and additional information"}),(0,r.jsx)(d.Z,{target:"_blank",rel:"noopener noreferrer",href:"https://authy.com/what-is-2fa/",endIcon:(0,r.jsx)(h.Z,{color:"primary"}),sx:{alignSelf:"end"},children:"Learn More"})]}),(0,r.jsx)("form",{noValidate:!0,onSubmit:S.handleSubmit,children:(0,r.jsxs)(o.Z,{spacing:2,children:[(0,r.jsxs)(o.Z,{mt:2,direction:"row",justifyContent:"space-between",children:[(0,r.jsx)(l.Z,{variant:"h6",children:"Phone number for 2FA"}),(0,r.jsx)("img",{src:"https://seeklogo.com/images/A/authy-logo-5598145895-seeklogo.com.png?v=637714439950000000",alt:"zesty auth",height:"40",width:"40"})]}),j?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.Z,{direction:"row",spacing:1,children:[(0,r.jsx)(m.yt,{label:"Country Code",name:"areaCode",formik:S}),(0,r.jsx)(m.yt,{label:"Phone Number",name:"phoneNumber",formik:S})]}),(0,r.jsx)(i.Z,{disabled:!0,variant:"contained",loading:S.isSubmitting,fullWidth:!0,type:"submit",children:"Enable Two Factor Authentication"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.Z,{color:"text.secondary",children:[a?.authyPhoneCountryCode,a?.authyPhoneNumber]}),(0,r.jsx)(i.Z,{variant:"contained",fullWidth:!0,type:"submit",loading:g,onClick:C,children:"Disable Two Factor Authentication"})]})]})})]})})]})]})}},79574:function(e,t,a){a.d(t,{A:function(){return E}});var r=a(85893),i=a(15861),n=a(69417),s=a(51233),o=a(86886),l=a(67294),d=a(69181),c=a(86455),h=a.n(c),u=a(555),m=a(77630),p=a.n(m),f=a(60888),x=a(96540),w=a(57976),b=a(87114),j=a(77957),y=a(73518),g=a(82175),Z=a(53342),v=a(82079),S=a(5152);let N=a.n(S)()(()=>Promise.resolve().then(a.bind(a,53342)).then(e=>
1e.AccountsTable),{loadableGenerated:{webpack:()=>[53342]}}),P=p()(h()),C=async e=>{dataLayer.push({event:"SignupLead",value:"1"});try{let t=await fetch("https://us-central1-zesty-prod.cloudfunctions.net/zoho",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}});return await t.json()}catch(e){console.warn(e)}},k=e=>{let{emails:t,userInfo:a,deleteEmail:o,loading:l}=e,d=t?.map(e=>({...e,id:e.verificationCode||Math.random()}));return(0,r.jsx)(s.Z,{p:4,children:(0,r.jsx)(N,{loading:l,rows:d,columns:[{field:"id",headerName:"ID",hide:!0},{field:"address",headerName:"Email",width:400,editable:!1,sortable:!1,renderHeader:()=>(0,r.jsx)(y.tZ,{children:"Email"}),renderCell:e=>(0,r.jsx)(i.Z,{variant:"body2",children:e.row.address})},{field:"description",headerName:"Description",width:400,editable:!1,sortable:!1,renderHeader:()=>(0,r.jsx)(y.tZ,{children:"Description"}),renderCell:e=>(0,r.jsx)(i.Z,{variant:"body2",children:e.row.name||"-"})},{field:"primary",headerName:"Primary",width:200,editable:!1,sortable:!1,renderHeader:()=>(0,r.jsx)(y.tZ,{children:"Primary"}),renderCell:e=>{let t=e?.row?.address===a?.email?(0,r.jsx)(f.Z,{color:"success"}):"";return(0,r.jsx)(i.Z,{variant:"body2",children:t})}},{field:"verified",headerName:"Verified",width:200,editable:!1,sortable:!1,renderHeader:()=>(0,r.jsx)(y.tZ,{children:"Verified"}),renderCell:e=>{let t=e.row.responseReceived?(0,r.jsx)(f.Z,{color:"success"}):"";return(0,r.jsx)(i.Z,{variant:"body2",children:t})}},{field:"action",headerName:"",width:100,editable:!1,sortable:!1,renderCell:e=>{let t=e.row,i=e?.row?.address===a?.email;return(0,r.jsx)(y.Yv,{title:(0,r.jsx)(n.Z,{sx:{display:i?"none":"block"},variant:"text",color:"primary",children:(0,r.jsx)(w.Z,{color:"disabled"})}),id:"actions",items:[{title:"Delete Email",action:()=>o(t.address)}],colorInvert:!1})}}],pageSize:100,autoHeight:!0})})},A=e=>{let{userInfo:t}=e,a="https://www.gravatar.com/avatar/"+(0,u.f)(t?.email);return(0,r.jsx)(s.Z,{width:1,children:(0,r.jsxs)(s.Z,{direction:"row",width:1,justifyContent:"center",children:[(0,r.jsx)("img",{src:a,alt:"",width:100,height:100}),(0,r.jsx)(n.Z,{target:"_blank",rel:"noreferrer",href:"https://en.gravatar.com/",children:"Edit"})]})})},E=e=>{let{getUser:t,loading:a,setloading:i}=e,{userInfo:s,ZestyAPI:c}=(0,d.q)(e=>e),[h,u]=l.useState([]),m=async()=>{await t(),(0,y.fh)({title:"Update Success"})},p=async e=>{await t(),(0,y.CV)({text:e?.error})},f=()=>{(0,y.fh)({title:"Email Deleted "})},w=e=>{(0,y.CV)({text:e.error})},b=e=>{u(e.data)},g=e=>{(0,y.CV)({text:e.error})},Z=async()=>{i(!0);let e=await c.getUserEmails();e.error||b(e),e.error&&g(e),i(!1)},S=async e=>{let t=await c.deleteUserEmail(e);t.error||f(t),t.error&&w(t),await Z()},N=async e=>{let t=s?.prefs&&JSON.parse(s?.prefs),{projectType:a,userType:r,goal:i,company:n,preferred_framework:o,preferred_component_system:l,projectName:d,projectDescription:u,instance_zuid:f,phoneNumber:x}=t||{},w={...s,projectType:a,userType:r,goal:i,company:n,preferred_framework:o,preferred_component_system:l,role:e?.persona,phoneNumber:x,projectDescription:u,emails:h,projectName:d,instance_zuid:f},b=(0,v.t)(w,"Trial","Trial","Unknown","Website","",s.ZUID),j={firstName:e.firstName,lastName:e.lastName,prefs:JSON.stringify({...t,persona:e?.persona})};await C(b);let y=await c.updateUser(s.ZUID,j);y.error||m(y),y.error&&p(y)};return l.useEffect(()=>{Z()},[]),(0,r.jsxs)(o.ZP,{container:!0,children:[(0,r.jsxs)(y.sv,{title:"Profile",description:"Manage your Profile",children:[(0,r.jsx)(n.Z,{color:"primary",variant:"contained",onClick:()=>{P.fire({title:"Edit Profile",html:(0,r.jsx)(I,{onSubmit:N,userInfo:s}),showConfirmButton:!1})},startIcon:(0,r.jsx)(j.Z,{}),children:"Edit Profile"}),(0,r.jsx)(n.Z,{color:"primary",variant:"outlined",onClick:()=>{P.fire({title:"Add Email Address",html:(0,r.jsx)(y._D,{getUserEmails:Z}),showConfirmButton:!1})},startIcon:(0,r.jsx)(x.Z,{}),children:"Add Email"})]}),(0,r.jsx)(o.ZP,{item:!0,xs:12,children:(0,r.jsx)(k,{loading:a,deleteEmail:S,userInfo:s,emails:h})})]})},I=e=>{let{onSubmit:t,userInfo:a}=e,i="string"==typeof a?.prefs&&JSON.parse(a?.prefs),n=(0,g.TA)({validationSchema:Z.accountsValidations.userName,initialValues:{firstName:a?.firstName,lastName:a?.lastName,persona:i?.persona},onSubmit:async e=>{await t(e),n.resetForm()}});return(0,r.jsxs)(s.Z,{gap:4,children:[(0,r.jsx)(A,{userInfo:a}),(0,r.jsx)("form",{noValidate:!0,onSubmit:n.handleSubmit,children:(0,r.jsxs)(s.Z,{gap:2,children:[(0,r.jsx)(y.yt,{name:"firstName",label:"First Name",formik:n}),(0,r.jsx)(y.yt,{name:"lastName",label:"Last Name",formik:n}),(0,r.jsx)(y.ih,{label:"Role",name:"persona",formik:n,options:b.joinAppConstants.roleList}),(0,r.jsx)(y.c1,{loading:n.isSubmitting,children:"Submit"})]})})]})}}}]);

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.