1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9cefd6b3-8df8-522c-9d5c-74f4a75e6dbc")}catch(e){}}(); 3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[332],{2566:(e,i,n)=>{"use strict";n.r(i),n.d(i,{default:()=>v});var r=n(6029),l=n(5729),a=n(5669),t=n.n(a),s=n(1278),d=n(4567),c=n(1077),o=n(5687),h=n(2446);let u=(0,d.I4)("span",{color:"$rhyhorn"}),x=(0,d.I4)(d.dW.ContentWrapper,{padding:"1.8rem $xxlarge"}),m=(0,d.I4)("p",{fontFamily:"$newDefault",fontSize:"$newInfo",lineHeight:"$info","& + &":{paddingTop:"2.4rem"}}),p=(0,d.I4)("h2",{fontFamily:"$default",fontSize:"$attribution",lineHeight:"$attribution",textTransform:"uppercase",marginTop:"$xxxlarge",marginBottom:"$small"}),j=(0,d.I4)("ul",{margin:"$xxxlarge 0",display:"flex",flexDirection:"column",gap:"$xxxlarge"}),f=(0,d.I4)("p",{maxWidth:"290px",overflow:"hidden",textOverflow:"ellipsis"}),g=(0,d.I4)("a",{...d.MH}),y=(0,d.I4)("p",{"@xsmall":{maxWidth:"20rem",wordBreak:"break-word"}}),k=()=>{var e,i,n;let a=(0,s.useRouter)(),[u,x]=(0,h.MW)(),{token:m}=(0,c.GH)();(0,l.useEffect)(()=>{m||a.push("/login")},[a,m]);let k=(0,o.uft)(),{mutateAsync:v}=(0,o.gRx)(),b=(0,o.t8y)(),_=(0,o.jcP)(null==(e=k.data)?void 0:e.id),w=(null==(i=b.data)?void 0:i.capabilities.settings.is_scim_enabled)&&(null==(n=_.data)?void 0:n.is_scim),I=(0,l.useRef)(null),D=(0,l.useCallback)(e=>{x({kind:"success",title:"Success",message:e})},[x]),P=(0,l.useCallback)(async()=>{await v({marketing_opt_in:!1})},[v]),O=(0,l.useCallback)(async()=>{await v({marketing_opt_in:!0})},[v]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t(),{children:(0,r.jsx)("title",{children:"Account Settings | Parsec"})}),u,(0,r.jsx)(p,{children:"Basic Settings"}),(0,r.jsx)("p",{children:"You can change these at any time."}),(0,r.jsxs)(j,{children:[(0,r.jsx)(h.B5,{as:"li",title:"Profile Picture",description:"A nice identifier for your profile and friends.",children:k.data?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.eu,{userId:k.data.id,nonce:k.data.avatar_nonce,size:36}),(0,r.jsx)(h.Fm,{onSuccess:D,userId:k.data.id,nonce:k.data.avatar_nonce,children:(0,r.jsx)(d.$n,{level:"link",kind:"primary","aria-label":"Change profile picture",children:"Change"})}),(0,r.jsx)(h.Kx,{onSuccess:D,children:(0,r.jsx)(d.$n,{kind:"error",level:"link","aria-label":"Remove profile picture",children:"Remove"})})]}):null}),(0,r.jsx)(h.B5,{as:"li",title:"Username",description:"Choose whatever name suits you best.",children:k.data?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.m_,{triggerRef:I,showOnOverflow:!0,tooltipText:k.data.name,children:(0,r.jsx)(f,{ref:I,children:k.data.name})}),!w&&(0,r.jsx)(h.HF,{id:k.data.id,name:k.data.name,children:(0,r.jsx)(d.$n,{level:"link",kind:"primary","aria-label":"Edit username",children:"Edit"})})]}):null}),(0,r.jsx)(h.B5,{as:"li",title:"Email",description:"Used for security, account ID and communications.",children:k.data?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y,{children:k.data.email}),!w&&(0,r.jsx)(d.$n,{"aria-label":"Edit email",level:"link",kind:"primary",onClick:()=>a.push("/change-email"),children:"Edit"})]}):null}),k.data?(0,r.jsx)(h.B5,{as:"li",title:"Offers and Product Updates",description:(0,r.jsxs)(r.Fragment,{children:["Parsec and Unity may send me"," ",(0,r.jsx)(g,{href:"https://create.unity.com/marketingactivities?_ga=2.36720550.708690487.1685630706-1605599102.1672861974",target:"_blank",rel:"noopener noreferrer",children:"Marketing Activities"})," ","(including via email and social media)."]}),children:(()=>{var e,i;return(null==(e=k.data)?void 0:e.marketing_opt_in)?(0,r.jsxs)(r.Fragment,{children:["Opted In"," ",(0,r.jsx)(C,{onOptOut:P,children:(0,r.jsx)(d.$n,{level:"link",kind:"error",children:"Disable"})})]}):(null==(i=k.data)?void 0:i.marketing_opt_in)===null?(0,r.jsx)($,{onOptIn:O,onOptOut:P,children:(0,r.jsx)(d.$n,{level:"link",kind:"primary",children:"Set Preference"})}):(0,r.jsx)(W,{onOptIn:O,children:(0,r.jsx)(d.$n,{level:"link",kind:"primary",children:"Opt-in"})})})()}):null]}),(0,r.jsx)(d.cG,{}),(0,r.jsx)(p,{children:"Advanced Settings"}),(0,r.jsx)(j,{children:(0,r.jsx)(h.B5,{as:"li",title:"Delete Account",description:(0,r.jsxs)(r.Fragment,{children:["We are here to have fun. If you are frustrated with something about Parsec or you need some help, check our"," ",(0,r.jsx)(g,{href:"https://support.parsec.app",children:"support page"})," ","or"," ",(0,r.jsx)(g,{href:"https://discordapp.com/invite/cQjEGFy",children:"Discord"}),". We would love to help."]}),children:k.data?(0,r.jsx)(h.fP,{email:k.data.email,children:(0,r.jsx)(d.$n,{kind:"error",level:"secondary",children:"Delete Account"})}):null})})]})};k.getLayout=e=>(0,r.jsx)(h.wk,{displayUserInfo:!0,pageTitle:"Account",children:e});let v=k,W=e=>{let{children:i,onOptIn:n}=e;return(0,r.jsxs)(d.dW,{children:[(0,r.jsx)(d.dW.Trigger,{asChild:!0,children:i}),(0,r.jsx)(d.dW.Portal,{children:(0,r.jsx)(d.dW.Overlay,{children:(0,r.jsxs)(d.dW.Content,{size:d.K5.Small,children:[(0,r.jsx)(d.dW.Header,{children:(0,r.jsx)(d.dW.Title,{asChild:!0,children:(0,r.jsx)("h1",{children:"Edit Preferences"})})}),(0,r.jsx)(x,{children:(0,r.jsx)(m,{children:"You'll receive communications for special offers and product updates from Parsec. You can opt-out at any time from your account page."})}),(0,r.jsxs)(d.dW.Footer,{children:[(0,r.jsx)(d.$n,{kind:"primary",onClick:n,children:"Confirm"}),(0,r.jsx)(d.dW.Close,{asChild:!0,children:(0,r.jsx)(d.$n,{level:"secondary",kind:"neutral",children:"Cancel"})})]})]})})})]})},C=e=>{let{children:i,onOptOut:n}=e;return(0,r.jsxs)(d.WD,{children:[(0,r.jsx)(d.WD.Trigger,{asChild:!0,children:i}),(0,r.jsx)(d.WD.Portal,{children:(0,r.jsx)(d.WD.Overlay,{children:(0,r.jsxs)(d.WD.Content,{size:"small",children:[(0,r.jsxs)(d.WD.Header,{children:[(0,r.jsx)(d.WD.Title,{asChild:!0,css:{fontFamily:"$newDefault",fontSize:"$subtitle",fontWeight:"$bold",lineHeight:"2.9rem"},children:(0,r.jsx)("h1",{children:"Edit Preferences"})}),(0,r.jsx)(d.s6.bL,{children:(0,r.jsx)(d.WD.Description,{children:"If you opt-out, you'll no longer receive marketing activities (including offers and product updates) from Unity and Parsec. You can always opt back in later if you want to continue receiving communications. If you choose to not subscribe, you'll still receive important transactional emails."})})]}),(0,r.jsxs)(d.WD.ContentWrapper,{css:{padding:"1.8rem $xxlarge"},children:[(0,r.jsx)(m,{children:"If you opt-out, you'll no longer receive marketing activities (including offers and product updates) from Unity and Parsec. You can always opt back in later if you want to continue receiving communications."}),(0,r.jsx)(m,{children:"If you choose to not subscribe, you'll still receive important transactional emails."})]}),(0,r.jsxs)(d.WD.Footer,{children:[(0,r.jsx)(d.WD.Action,{asChild:!0,children:(0,r.jsx)(d.$n,{kind:"error",onClick:n,children:"Opt-out"})}),(0,r.jsx)(d.WD.Cancel,{asChild:!0,children:(0,r.jsx)(d.$n,{level:"secondary",kind:"neutral",children:"Cancel"})})]})]})})})]})},$=e=>{let{children:i,onOptIn:n,onOptOut:l}=e;return(0,r.jsxs)(d.dW,{children:[(0,r.jsx)(d.dW.Trigger,{asChild:!0,children:i}),(0,r.jsx)(d.dW.Portal,{children:(0,r.jsx)(d.dW.Overlay,{children:(0,r.jsxs)(d.dW.Content,{size:d.K5.Small,children:[(0,r.jsx)(d.dW.Header,{children:(0,r.jsx)(d.dW.Title,{asChild:!0,children:(0,r.jsx)("h1",{children:"Edit Preferences"})})}),(0,r.jsx)(x,{children:(0,r.jsxs)(m,{children:["I agree to have Marketing Activities directed to me by and receive marketing and promotional information from Unity, including via email and social media"," ",(0,r.jsx)(u,{children:"(optional)"}),"."]})}),(0,r.jsxs)(d.dW.Footer,{children:[(0,r.jsx)(d.$n,{kind:"error",onClick:n,children:"Opt-In"}),(0,r.jsx)(d.dW.Close,{asChild:!0,children:(0,r.jsx)(d.$n,{level:"secondary",kind:"neutral",onClick:l,children:"Not Interested"})})]})]})})})]})}},9874:(e,i,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(2566)}])}},e=>{e.O(0,[636,593,792],()=>e(e.s=9874)),_N_E=e.O()}]); 4//# sourceMappingURL=index-fe5666e9f76341bd.js.map 5//# debugId=9cefd6b3-8df8-522c-9d5c-74f4a75e6dbc
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.