1try{let n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new n.Error).stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="ace4fb3e-0c96-4e05-9ceb-577d96ab3fe8",n._sentryDebugIdIdentifier="sentry-dbid-ace4fb3e-0c96-4e05-9ceb-577d96ab3fe8")}catch(n){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2628],{12351:function(n,e,i){i.d(e,{Z:function(){return J}});var t=i(52322),l=i(82778),o=i(10241),r=i(12866),a=i(27358),d=i(5045),s=i(46448),u=i(40335),c=i(36933),p=i(72694);let v=r.ZP.div.withConfig({displayName:"layout__Wrapper",componentId:"sc-95758605-0"})(["height:100dvh;background:",";display:grid;grid-template-rows:auto 1fr;transition:300ms;"],n=>{let{theme:e,isCompleted:i}=n;return i?e.colors.success.container:e.colors.warning.container}),f=r.ZP.div.withConfig({displayName:"layout__Header",componentId:"sc-95758605-1"})(["position:relative;padding:",";display:flex;flex-direction:column;gap:",";align-items:center;"],n=>{let{theme:e}=n;return e.spacing[6]},n=>{let{theme:e}=n;return e.spacing[2]}),g=r.ZP.span.withConfig({displayName:"layout__Emoji",componentId:"sc-95758605-2"})(["font-size:48px;"]),m=r.ZP.div.withConfig({displayName:"layout__Texts",componentId:"sc-95758605-3"})(["text-align:center;"]),h=(0,r.ZP)(a.Z).attrs({size:"large"}).withConfig({displayName:"layout__Title",componentId:"sc-95758605-4"})(["color:",";"],n=>{let{theme:e}=n;return e.colors.text.static}),x=(0,r.ZP)(s.ZP).withConfig({displayName:"layout__CloseButton",componentId:"sc-95758605-5"})(["position:absolute;top:",";inset-inline-end:",";"],n=>{let{theme:e}=n;return e.spacing[3]},n=>{let{theme:e}=n;return e.spacing[3]}),j=r.ZP.div.withConfig({displayName:"layout__Content",componentId:"sc-95758605-6"})(["background:",";padding:",";border-top-left-radius:",";border-top-right-radius:",";overflow-y:auto;"],n=>{let{theme:e}=n;return e.colors.surface.base},n=>{let{theme:e}=n;return e.spacing[6]},n=>{let{theme:e}=n;return e.radius.lg},n=>{let{theme:e}=n;return e.radius.lg});var _=function(n){let{children:e,onClose:i,isCompleted:l=!1,completionScore:o}=n,{t:r}=(0,c.$)();return(0,t.jsxs)(v,{isCompleted:l,children:[(0,t.jsxs)(f,{children:[(0,t.jsx)(g,{children:"\uD83C\uDF1F"}),(0,t.jsxs)(m,{children:[(0,t.jsx)(h,{children:r(l?"profile_completed":"complete_profile")}),(0,t.jsx)(d.Z,{children:r("profile_completion_alert_title")})]}),(0,t.jsx)(p.Z,{score:null!=o?o:0,variant:"container"}),i&&(0,t.jsx)(x,{icon:(0,t.jsx)(u.Z,{}),variant:"GHOST",onClick:i})]}),(0,t.jsx)(j,{children:e})]})},y=i(2784),b=i(84436),C=i(39394),P=i(19626),I=i(55835),Z=i(54404),w=i(67862),E=i(81548),F=i(37884),N=i(8901);function T(){let n=(0,w._)(["\n query ProfileCompletionFormQuery($eventId: ID!) {\n event: Core_event(_id: $eventId) {\n id: _id\n community {\n id\n editableProfileFields\n }\n eventPerson {\n ...ProfileCompletionEventPersonFragment\n withEvent(eventId: $eventId) {\n id\n fields {\n ...FieldUnionEditFragment\n }\n }\n }\n }\n }\n ","\n ","\n"]);return T=function(){return n},n}let B=(0,E.Ps)(T(),N.n,b.yh);var L=i(33379);function k(){let n=(0,w._)(["\n mutation UpdateProfileCompletionMutation(\n $eventId: ID!\n $input: Core_UpdateEventPersonInput!\n ) {\n Core_updateEventPerson(input: $input) {\n eventPerson {\n ...ProfileCompletionEventPersonFragment\n withEvent(eventId: $eventId) {\n id\n fields {\n ...FieldUnionEditFragment\n }\n }\n }\n }\n }\n ","\n ","\n"]);return k=function(){return n},n}let z=(0,E.Ps)(k(),N.n,b.yh);var D=i(82637),S=i(55028),$=i(96413),U=i(32636);function G(){return(0,t.jsxs)("div",{children:[(0,t.jsx)(U.Z,{size:14,maxWidth:"80px",marginBottom:1}),(0,t.jsx)(D.L,{})]})}var O=function(n){let{initialValue:e,onSave:i}=n,{t:l}=(0,c.$)(),[o,r]=(0,y.useState)(e),[a,d]=(0,y.useState)(!1),s=async()=>{o!==e&&(d(!0),await i({jobTitle:o}),d(!1))};return(0,t.jsxs)("div",{children:[(0,t.jsx)(S.Z,{marginBottom:1,children:l("jobTitle")}),(0,t.jsx)(D.Z,{value:o,onChange:n=>
1r(n.target.value),onBlur:s,placeholder:l("jobTitle"),endNode:a?(0,t.jsx)($.Z,{"data-testid":"loading-icon"}):void 0})]})};function H(){return(0,t.jsxs)("div",{children:[(0,t.jsx)(U.Z,{size:14,maxWidth:"80px",marginBottom:1}),(0,t.jsx)(D.L,{})]})}var M=function(n){let{initialValue:e,onSave:i}=n,{t:l}=(0,c.$)(),[o,r]=(0,y.useState)(e),[a,d]=(0,y.useState)(!1),s=async()=>{o!==e&&(d(!0),await i({organization:o}),d(!1))};return(0,t.jsxs)("div",{children:[(0,t.jsx)(S.Z,{marginBottom:1,children:l("company")}),(0,t.jsx)(D.Z,{value:o,onChange:n=>r(n.target.value),onBlur:s,placeholder:l("company"),endNode:a?(0,t.jsx)($.Z,{"data-testid":"loading-icon"}):void 0})]})};let W=r.ZP.div.withConfig({displayName:"form-content__FormWrapper",componentId:"sc-ac1a2370-0"})(["display:flex;flex-direction:column;gap:",";"],n=>{let{theme:e}=n;return e.spacing[6]}),R=r.ZP.div.withConfig({displayName:"form-content__FieldGroup",componentId:"sc-ac1a2370-1"})(["display:flex;flex-direction:column;gap:",";"],n=>{let{theme:e}=n;return e.spacing[4]});function V(){return(0,t.jsx)(W,{children:(0,t.jsxs)(R,{children:[(0,t.jsx)(G,{}),(0,t.jsx)(H,{})]})})}var A=function(){var n,e;let{event:i}=(0,I.v)(),{fields:o,eventPersonId:r,editableProfileFields:d,jobTitle:s,organization:u,loading:c}=function(){var n,e,i,t,l,o,r,a,d,s;let{event:u}=(0,I.v)(),c=null!==(l=null==u?void 0:u.id)&&void 0!==l?l:"",{data:p,loading:v,error:f}=(0,F.aM)(B,{variables:{eventId:c},skip:!c}),g=null==p?void 0:null===(n=p.event)||void 0===n?void 0:n.eventPerson;return{fields:null!==(o=null==g?void 0:null===(e=g.withEvent)||void 0===e?void 0:e.fields)&&void 0!==o?o:[],eventPersonId:null!==(r=null==g?void 0:g.id)&&void 0!==r?r:null,editableProfileFields:null!==(a=null==p?void 0:null===(t=p.event)||void 0===t?void 0:null===(i=t.community)||void 0===i?void 0:i.editableProfileFields)&&void 0!==a?a:[],jobTitle:null!==(d=null==g?void 0:g.jobTitle)&&void 0!==d?d:null,organization:null!==(s=null==g?void 0:g.organization)&&void 0!==s?s:null,loading:v,error:f}}(),{updateBuiltInField:p,updateCustomField:v}=function(n){var e;let{eventPersonId:i}=n,{event:t}=(0,I.v)(),o=(0,l.h)(),r=null!==(e=null==t?void 0:t.id)&&void 0!==e?e:"",[a,{loading:d}]=(0,L.D)(z,{onError:o});return{updateBuiltInField:(0,y.useCallback)(async n=>{await a({variables:{eventId:r,input:{eventPersonId:i,...n}}})},[a,r,i]),updateCustomField:(0,y.useCallback)(async n=>{await a({variables:{eventId:r,input:{eventPersonId:i,customFields:[n]}}})},[a,r,i]),loading:d}}({eventPersonId:null!=r?r:""}),f=(0,y.useRef)(null),g=(0,y.useRef)(!1);if((0,y.useEffect)(()=>{c||!r||g.current||(g.current=!0,(0,P.L)({category:"Profile Completion",action:"Viewed profile completion form"}))},[c,r]),c||!r)return null;null===f.current&&(f.current=function(n,e,i,t){let l=new Set;for(let o of(!n.includes(C.EGB.JOB_TITLE)||(null==e?void 0:e.trim())||l.add("__jobTitle"),!n.includes(C.EGB.COMPANY)||(null==i?void 0:i.trim())||l.add("__organization"),t))(0,Z.Hp)(o)&&!(0,Z.nn)(o)&&(0,b.FR)(o)&&l.add(o.definition.id);return l}(d,s,u,o));let m=f.current,h=o.filter(n=>(0,Z.Hp)(n)&&!(0,Z.nn)(n)&&m.has(n.definition.id)),x=d.includes(C.EGB.JOB_TITLE)&&m.has("__jobTitle"),j=d.includes(C.EGB.COMPANY)&&m.has("__organization"),{defaultFields:_,sections:w}=(0,Z.Zx)(h),E=x||j||_.length>0,N=null!==(n=null==i?void 0:i.language)&&void 0!==n?n:"en_US",T=null!==(e=null==i?void 0:i.translationLanguages)&&void 0!==e?e:[];return E||0!==w.length?(0,t.jsxs)(W,{children:[E&&(0,t.jsxs)(R,{children:[x&&(0,t.jsx)(O,{initialValue:null!=s?s:"",onSave:p}),j&&(0,t.jsx)(M,{initialValue:null!=u?u:"",onSave:p}),_.map(n=>(0,t.jsx)(b.ZP,{field:n,defaultLanguage:N,translationLanguages:T,onUpdate:v},n.definition.id))]}),w.map(n=>(0,t.jsxs)(R,{children:[n.name&&(0,t.jsx)(a.Z,{size:"small",children:n.name}),n.fields.map(n=>(0,t.jsx)(b.ZP,{field:n,defaultLanguage:N,translationLanguages:T,onUpdate:v},n.definition.id))]},n.id))]}):null},J=function(n){let{onClose:e}=n,{completionScore:i,isCompleted:r,loading:a,error:d}=(0,o.DO)();return a?(0,t.jsx)(_,{onClose:e,children:(0,t.jsx)(V,{})}):d?(0,t.jsx)(_,{onClose:e,children:(0,t.jsx)(l.Z,{error:d})}):(0,t.jsx)(_,{onClose:e,completionScore:i,isCompleted:r,children:(0,t.jsx)(A,{})})}},92369:function(n,e,i){i.d(e,{N:function(){return d}});var t=i(52322),l=i(55835),o=i(11817);function r(n){let{children:e,...i}=n,{event:r}=(0,l.v)();return(0,t.jsx)(o.Z,{...i,event:r,children:e})}function a(n,e){return(0,t.jsx)(r,{...e,children:n})}function d(n){function e(e){return(0,t.jsx)(n,{...e})}return e.getInitialProps=n.getInitialProps,e.getLayout=n.getLayout?(e,i)=>{var t;return null===(t=n.getLayout)||void 0===t?void 0:t.call(n,a(e,i),i)}:a,e}}}]);
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.