1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7324],{17324:function(e,a,i){i.d(a,{a:function(){return y}});var l=i(52322),d=i(53738),t=i(71354),n=i(2046),r=i(70287),s=i(49248),c=i(78361),o=i(31186),g=i(94659),u=i(27777),h=i(45650),x=i(9877),_=i(5879),b=i(87254),j=i(2784),p=i(38290),v=i(94199),m=i(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%","50%"],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"})}],I=[{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"})}],y=e=>{let{onSuccess:a,onError:i,context:y="get-started"}=e,{user:N,refetch:D}=(0,m.SE)(),[z,E]=(0,j.useState)(!1),[q,w]=(0,j.useState)(void 0),[W,F]=(0,j.useState)(void 0),[M,B]=(0,j.useState)(!1),[L,U]=(0,j.useState)(void 0),[X,{loading:G,error:K}]=(0,p.kDo)(),[Q,H]=(0,j.useState)(void 0),[P,T]=(0,j.useState)("student"),O="education"===L||"education"===q?Q&&P:L,A=q&&!L,Y=(0,j.useCallback)(()=>{let e="education"===L||"education"===q?"".concat(L,"_").concat(P,"_").concat(Q):L;X({variables:{input:{id:null==N?void 0:N.id,referrer:W,jobFunction:e}}}).then(()=>(E(!0),null==D?void 0:D())).then(()=>{a&&a()}).catch(e=>{console.error('[GetStarted.UserInfo] Error updating user info "'.concat(null==N?void 0:N.id,'"'),e.message),E(!1),i&&i()})},[L,Q,P,i,a,W,D,X,null==N?void 0:N.id,q]),{formControlMaxW:V,saveButtonText:J,categoryQuestion:Z}=C[y];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:V,as:"fieldset",isRequired:!0,children:[(0,l.jsx)(r.l,{children:Z()}),(0,l.jsx)(s.E,{onChange:e=>{w(e),"education"===e?U("education"):U(void 0)},value:q,children:(0,l.jsx)(t.K,{direction:"column",spacing:2,children:k.map(e=>{let{id:a,label:i}=e;return(0,l.jsx)(c.Y,{value:a,children:i()},a)})})})]}),q&&(0,l.jsxs)(l.Fragment,{children:["education"!==q&&(0,l.jsxs)(n.NI,{maxW:V,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,onChange:e=>{let a=e.target.value;"work"===q&&"education"===a&&T("teacher"),U(a)},children:f.map((e,a)=>{let{label:i,id:d}=e;return(0,l.jsx)("option",{value:d,children:i()},"".concat(d,"-").concat(a))})})]}),("education"===q||"education"===L)&&(0,l.jsxs)(n.NI,{maxW:V,isRequired:!0,children:[(0,l.jsx)(r.l,{children:(0,l.jsx)(_.cC,{id:"B+ClFT"})}),(0,l.jsxs)(g.g,{spacing:2,children:[(0,l.jsx)(o.P,{placeholder:b.ag._({i
1d:"rjLlrw"}),isRequired:!0,value:P,onChange:e=>{T(()=>e.target.value)},children:I.map((e,a)=>{let{label:i,id:d}=e;return(0,l.jsx)("option",{value:d,children:i()},"".concat(d,"-").concat(a))})}),(0,l.jsx)(o.P,{placeholder:b.ag._({id:"rNbKca"}),isRequired:!0,onChange:e=>{H(()=>e.target.value)},children:R.map((e,a)=>{let{label:i,id:d}=e;return(0,l.jsx)("option",{value:d,children:i()},"".concat(d,"-").concat(a))})})]}),(0,l.jsx)(n.Q6,{fontSize:"xs",children:(0,l.jsx)(_.cC,{id:"9sEdx4"})})]}),(0,l.jsxs)(n.NI,{maxW:V,children:[(0,l.jsx)(r.l,{children:(0,l.jsx)(_.cC,{id:"bxuHg8"})}),(0,l.jsxs)(g.g,{spacing:2,children:[(0,l.jsx)(o.P,{placeholder:b.ag._({id:"rjLlrw"}),value:M?"other":W,onChange:e=>{"other"===e.target.value?(B(!0),F("")):(B(!1),F(e.target.value))},children:S.map((e,a)=>{let{label:i,id:d}=e;return(0,l.jsx)("option",{value:d,children:i()},"".concat(d,"-").concat(a))})}),M&&(0,l.jsx)(u.I,{type:"text",value:W,onChange:e=>{F(e.target.value)}})]}),(0,l.jsx)(n.Q6,{fontSize:"xs",children:W&&(null==W?void 0:W.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)(x.kH,{label:(0,l.jsx)(_.cC,{id:"5G+MQW"}),isDisabled:!A,placement:"top",children:(0,l.jsx)(d.xu,{children:(0,l.jsx)(h.z,{variant:"solid",size:"lg",isDisabled:z||!!K||!O,isLoading:G||z,onClick:Y,children:J()})})})})]})})}}}]); 2//# sourceMappingURL=7324-46fb313eeb2fa789.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.