1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2973],{17324:function(e,i,a){a.d(i,{a:function(){return E}});var l=a(52322),d=a(28535),t=a(43297),n=a(35183),r=a(97166),c=a(7344),s=a(59905),o=a(73481),u=a(17993),g=a(85573),x=a(62614),h=a(94523),_=a(5879),b=a(87254),j=a(2784),p=a(93202),v=a(94199),m=a(36651);let f=[{id:"consulting",label:()=>b.ag._({id:"m5xed+"})},{id:"creator",label:()=>b.ag._({id:"UE2beD"})},{id:"customer_service",label:()=>b.ag._({id:"FfYIy2"})},{id:"data",label:()=>b.ag._({id:"HKH+W+"})},{id:"design",label:()=>b.ag._({id:"f8fH8W"})},{id:"education",label:()=>b.ag._({id:"aqxYLv"})},{id:"engineering",label:()=>b.ag._({id:"SUXBxp"})},{id:"finance",label:()=>b.ag._({id:"8V6XO3"})},{id:"human_resources",label:()=>b.ag._({id:"aDLrMs"})},{id:"leadership",label:()=>b.ag._({id:"HyFz7F"})},{id:"legal",label:()=>b.ag._({id:"vifyyw"})},{id:"marketing",label:()=>b.ag._({id:"vo2a+a"})},{id:"operations",label:()=>b.ag._({id:"B1MDds"})},{id:"product",label:()=>b.ag._({id:"K47k8R"})},{id:"recruiting",label:()=>b.ag._({id:"bn0SqF"})},{id:"sales",label:()=>b.ag._({id:"mUv9U4"})},{id:"other",label:()=>b.ag._({id:"/IX/7x"})}],C={"get-started":{saveButtonText:()=>b.ag._({id:"ZDIydz"}),formControlMaxW:["100%","80%","70%"],categoryQuestion:()=>b.ag._({id:"kJizcc"})},modal:{saveButtonText:()=>b.ag._({id:"hQRttt"}),formControlMaxW:["100%","60%"],categoryQuestion:()=>b.ag._({id:"06/kLN"})},setup:{saveButtonText:()=>b.ag._({id:"xGVfLh"}),formControlMaxW:["100%"],categoryQuestion:()=>b.ag._({id:"kJizcc"})}},k=[{id:"work",label:()=>b.ag._({id:"rgBHdd"})},{id:"education",label:()=>b.ag._({id:"RKJfzm"})},{id:"personal",label:()=>b.ag._({id:"jo0oU2"})}],R=[{id:"primary",label:()=>b.ag._({id:"LldObG"})},{id:"secondary",label:()=>b.ag._({id:"AtXGMV"})},{id:"university",label:()=>b.ag._({id:"DEb9mB"})},{id:"other",label:()=>b.ag._({id:"/IX/7x"})}],y=[{id:"student",label:()=>b.ag._({id:"a0qEkS"})},{id:"teacher",label:()=>b.ag._({id:"lypRAW"})},{id:"administrator",label:()=>b.ag._({id:"Faptqt"})},{id:"other",label:()=>b.ag._({id:"/IX/7x"})}],S=[{id:"friend",label:()=>b.ag._({id:"Gw0M4G"})},{id:"internet",label:()=>b.ag._({id:"mRh0Qq"})},{id:"search",label:()=>b.ag._({id:"z4/LHW"})},{id:"tiktok",label:()=>b.ag._({id:"zyUxcw"})},{id:"instagram",label:()=>b.ag._({id:"zzlbbf"})},{id:"youtube",label:()=>b.ag._({id:"9Q6UKX"})},{id:"linkedin",label:()=>b.ag._({id:"gggTBm"})},{id:"other",label:()=>b.ag._({id:"/IX/7x"})}],E=e=>{let{onSuccess:i,onError:a,context:E="get-started"}=e,{user:I,refetch:M}=(0,m.SE)(),[N,D]=(0,j.useState)(!1),[q,z]=(0,j.useState)(void 0),[U,w]=(0,j.useState)(void 0),[L,W]=(0,j.useState)(!1),[F,B]=(0,j.useState)(void 0),[K,{loading:X,error:G}]=(0,p.kDo)(),[Q,H]=(0,j.useState)(void 0),[P,O]=(0,j.useState)("student"),T="education"===F||"education"===q?Q&&P:F,A=q&&!F,Y=(0,j.useCallback)(()=>{let e="education"===F||"education"===q?"".concat(F,"_").concat(P,"_").concat(Q):F;K({variables:{input:{id:null==I?void 0:I.id,referrer:U,jobFunction:e}}}).then(()=>(D(!0),null==M?void 0:M())).then(()=>{i&&i()}).catch(e=>{console.error('[GetStarted.UserInfo] Error updating user info "'.concat(null==I?void 0:I.id,'"'),e.message),D(!1),a&&a()})},[F,Q,P,a,i,U,M,K,null==I?void 0:I.id,q]),{formControlMaxW:J,saveButtonText:V,categoryQuestion:Z}=C[E];return(0,l.jsx)(d.xu,{w:"100%",children:(0,l.jsxs)(t.K,{pt:6,alignItems:"center",spacing:6,alignSelf:"center",mb:10,children:[(0,l.jsxs)(n.NI,{maxW:J,as:"fieldset",isRequired:!0,children:[(0,l.jsx)(r.l,{children:Z()}),(0,l.jsx)(c.E,{onChange:e=>{z(e),"education"===e&&"education"!==F?B("education"):B(void 0)},value:q,children:(0,l.jsx)(t.K,{direction:"column",spacing:2,children:k.map(e=>{let{id:i,label:a}=e;return(0,l.jsx)(s.Y,{value:i,children:a()},i)})})})]}),q&&(0,l.jsxs)(l.Fragment,{children:["education"!==q&&(0,l.jsxs)(n.NI,{maxW:J,isRequired:!0,children:[(0,l.jsx)(r.l,{children:(0,l.jsx)(_.cC,{id:"SYYw/x"})}),(0,l.jsx)(o.P,{placeholder:b.ag._({id:"rjLlrw"}),isRequired:!0,value:F,onChange:e=>{let i=e.target.value;"work"===q&&"education"===i&&O("teacher"),B(i)},children:f.map((e,i)=>{let{label:a,id:d}=e;return(0,l.jsx)("option",{value:d,children:a()},"".concat(d,"-").concat(i))})})]}),("education"===q||"education"===F)&&(0,l.jsxs)(n.NI,{maxW:J,isRequired:!0,children:[(0,l.jsx)(r.l,{children:(0,l.jsx)(_.cC,{id:"B+ClFT"})}),(0,l.jsxs)(u.g,{spacing:2,children:[(0,l.jsx)(o.P,{placeholder:b.ag._({i
1d:"rjLlrw"}),isRequired:!0,value:P,onChange:e=>{O(()=>e.target.value)},children:y.map((e,i)=>{let{label:a,id:d}=e;return(0,l.jsx)("option",{value:d,children:a()},"".concat(d,"-").concat(i))})}),(0,l.jsx)(o.P,{placeholder:b.ag._({id:"rNbKca"}),isRequired:!0,onChange:e=>{H(()=>e.target.value)},value:Q,children:R.map((e,i)=>{let{label:a,id:d}=e;return(0,l.jsx)("option",{value:d,children:a()},"".concat(d,"-").concat(i))})})]}),(0,l.jsx)(n.Q6,{fontSize:"xs",children:(0,l.jsx)(_.cC,{id:"9sEdx4"})})]}),(0,l.jsxs)(n.NI,{maxW:J,children:[(0,l.jsx)(r.l,{children:(0,l.jsx)(_.cC,{id:"bxuHg8"})}),(0,l.jsxs)(u.g,{spacing:2,children:[(0,l.jsx)(o.P,{placeholder:b.ag._({id:"rjLlrw"}),value:L?"other":U,onChange:e=>{"other"===e.target.value?(W(!0),w("")):(W(!1),w(e.target.value))},children:S.map((e,i)=>{let{label:a,id:d}=e;return(0,l.jsx)("option",{value:d,children:a()},"".concat(d,"-").concat(i))})}),L&&(0,l.jsx)(g.I,{type:"text",value:U,onChange:e=>{w(e.target.value)}})]}),(0,l.jsx)(n.Q6,{fontSize:"xs",children:U&&(null==U?void 0:U.length)>4?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(_.cC,{id:"RNrV8M",values:{GRANT_PROPER_NOUN:v.XI}})," ",(0,l.jsx)("span",{role:"img","aria-label":b.ag._({id:"8K1shM"}),children:"\uD83D\uDE4F"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(_.cC,{id:"Bhgibl",values:{GRANT_PROPER_NOUN:v.XI}})," ",(0,l.jsx)("span",{role:"img","aria-label":b.ag._({id:"bh5RqM"}),children:"\uD83D\uDE0A"})]})})]})]}),(0,l.jsx)(t.K,{alignItems:"center",spacing:4,pt:4,children:(0,l.jsx)(h.kH,{label:(0,l.jsx)(_.cC,{id:"5G+MQW"}),isDisabled:!A,placement:"top",children:(0,l.jsx)(d.xu,{children:(0,l.jsx)(x.z,{variant:"solid",size:"lg",isDisabled:N||!!G||!T,isLoading:X||N,onClick:Y,children:V()})})})})]})})}},52610:function(e,i,a){a.d(i,{My:function(){return r},rK:function(){return o},r_:function(){return c},up:function(){return s}});var l=a(52322),d=a(5879),t=a(87254),n=a(93202);let r=1,c=()=>t.ag._({id:"cyLJM2"}),s=()=>t.ag._({id:"6h5uMS"}),o={[n.r3E.Admin]:{title:(0,l.jsx)(d.cC,{id:"U3pytU"}),description:(0,l.jsx)(d.cC,{id:"U4MLdj"})},[n.r3E.Member]:{title:(0,l.jsx)(d.cC,{id:"OvoEq7"}),description:(0,l.jsx)(d.cC,{id:"nslZjr"})}}}}]); 2//# sourceMappingURL=2973-12ba8476bf5f1396.js.map
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.