1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="60cef4ca-7f2b-4d8d-a4d2-c584e23bddb6",e._sentryDebugIdIdentifier="sentry-dbid-60cef4ca-7f2b-4d8d-a4d2-c584e23bddb6")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3462,6148],{13577:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/resume/wizard/job-preferences",function(){return n(83224)}])},21963:(e,t,n)=>{"use strict";n.d(t,{AI:()=>c,Br:()=>s,IT:()=>m,LI:()=>o,Wx:()=>a,ii:()=>l,lv:()=>f,yB:()=>r});var i=n(16636);let a=e=>({...e,fields:Object.keys(e.fields).filter(t=>e.fields[t])}),r=(e,t)=>{let n={};return e.forEach(e=>{n={...n,...s(e,t)}}),n},s=(e,t)=>{let n=Object.keys(e.fields),a={};for(let r of n){if("object"==typeof e.fields[r]){a={...a,[r]:d(r,e,t)};continue}let n=e.fields[r];if(t[n]&&t[n].tid){a={...a,[r]:(0,i.DD)(t[n])};continue}if(t[n]&&t[n].length>0&&t[n][0].tid){a={...a,[r]:(0,i.BC)(t[n])};continue}t[n]&&"Image"===t[n].__typename&&(a=t[n].url?{...a,[r]:t[n].url}:{...a,[r]:null}),a={...a,[r]:t[n]}}return a},d=(e,t,n)=>{let i=t.fields[e],a={};return i&&Object.keys(i.fields).forEach(r=>{if("object"==typeof i.fields[e])a={...a,[r]:d(r,t,n)};else{let e=i.fields[r];a={...a,[r]:n?.[i.name]?.[e]}}}),a},l=(e,t,n=!1)=>{let i={};return e.forEach(e=>{i={...i,...o(e,t,n)}}),i},o=(e,t,n=!1)=>{let i=Object.keys(e.fields),a={};for(let r of i){let i=e.fields[r];if(i){if(t[r]&&t[r].tid&&!t[r].level){a={...a,[i]:n?{tid:t[r].tid,label:t[r].name}:t[r].tid};continue}if(t[r]&&t[r].length>0&&t[r][0]?.tid&&!t[r][0]?.level){a={...a,[i]:t[r].map(e=>n?{tid:e.tid,label:e.label}:e.tid)};continue}if(t[r]&&t[r].length>0&&t[r][0]?.term&&t[r][0]?.level>=0&&t[r][0]?.term?.tid===0){a={...a,[i]:t[r].map(e=>({level:e.level,label:e.term.label}))};continue}if(t[r]&&t[r].length>0&&t[r][0]?.term&&t[r][0]?.level>=0){a={...a,[i]:t[r].map(({term:e,__typename:t,label:n,...i})=>({tid:e.tid,...i}))};continue}if(e.fields[r]&&"object"==typeof e.fields[r]){let n=e.fields[r];if(!t?.[r]||0===Object.keys(t?.[r]).length){a={...a,[n.name]:void 0};continue}a={...a,[n.name]:u(r,e,t)};continue}a={...a,[i]:t[r]}}}return a},u=(e,t,n)=>{let i=t.fields[e],a={};return i&&Object.keys(i.fields).forEach(r=>{"object"==typeof i.fields[e]?a={...a,[i.fields[r]]:u(r,t,n)}:n?.[e]&&(a={...a,[i.fields[r]]:n[e][r]})}),a},c=(e,t)=>t.privateFields?.[e],m=(e,t)=>{if(!t?.includes)return!1;let n=0,i=Object.keys(e.fields);for(let e of i)t.includes(e)&&n++;return n===i.length},f=e=>Object.values(e).sort((t,n)=>{let i=t?.order??Object.keys(e).indexOf(t.key),a=n?.order??Object.keys(e).indexOf(n.key);return i<a?-1:+(i>a)}).reduce(function(e,t){return e[t.key]=t,e},{})},32395:e=>{var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CustomResumeFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Resume"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}],loc:{start:0,end:47}};t.loc.source={body:"fragment CustomResumeFields on Resume {\n id\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}t.definitions.forEach(function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,n)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,n)}),t.definitions&&t.definitions.forEach(function(t){e(t,n)})}(e,t),n[e.name.value]=t}}),e.exports=t,e.exports.CustomResumeFields=function(e,t){var a={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var r=n[t]||new Set,s=new Set,d=new Set;for(r.forEach(function(e){d.add(e)});d.size>0;){var l=d;d=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(n[e]||new Set).forEach(function(e){d.add(e)}))})}
1return s.forEach(function(t){var n=i(e,t);n&&a.definitions.push(n)}),a}(t,"CustomResumeFields")},41167:(e,t,n)=>{"use strict";n.d(t,{m:()=>f});var i=n(37876),a=n(17175),r=n(92347),s=n(65656),d=n(88564),l=n(97607),o=n.n(l);let u=(0,a.F)([o().box],{variants:{disabled:{true:o().boxDisabled}},defaultVariants:{disabled:!1}}),c=(0,a.F)([o().wrapButton],{variants:{disabled:{true:o().wrapButtonDisabled}}}),m=(0,a.F)([o().icon],{variants:{disabled:{true:o().iconDisabled}}});function f({onClick:e,icon:t,button:n,iconColor:a="gray2",children:l,asButton:o=!1,actionText:b,disabled:p=!1}){let _=(0,i.jsxs)(d.A,{className:u({disabled:p}),"data-testid":"box-action",children:[(0,i.jsx)("span",{className:m({disabled:p}),...a&&{style:{color:`var(--color-${a})`}},children:t}),(0,i.jsx)(s.A,{size:"small"}),l,(0,i.jsx)(s.A,{size:"medium"}),(0,i.jsx)("div",{children:!n&&b?(0,i.jsx)(r.Ay,{...e&&!p?{onClick:e}:null,buttonStyle:"primary",disabled:p,children:b}):n})]});return o?(0,i.jsx)("button",{className:c({disabled:p}),...e&&!p?{onClick:e}:null,children:_}):_}},43900:(e,t,n)=>{"use strict";n.d(t,{O:()=>u});var i=n(37876);n(14232);var a=n(90255),r=n(77742),s=n(8733),d=n(41167),l=n(32521),o=n(65656);let u=({routeRedirect:e="/",title:t,text:n})=>{let u=(0,r.A)();return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.A,{href:e,children:(0,i.jsxs)(d.m,{actionText:u.formatMessage({id:"access_denied_home",defaultMessage:"Back to home"}),icon:(0,i.jsx)(l.X,{title:u.formatMessage({id:"access_denied_icon",defaultMessage:"Access denied"})}),children:[(0,i.jsx)("h1",{"data-test-id":"access_denied_title",children:t||(0,i.jsx)(s.A,{id:"job_error_no_accesss_title",defaultMessage:"Access Denied"})}),(0,i.jsx)(o.K,{}),n||(0,i.jsx)(s.A,{id:"job_error_no_accesss",defaultMessage:"You don't have access to this page. Make sure that you are logged in and accessing a page\n that you are authorized to visit."})]})})})}},53136:(e,t,n)=>{"use strict";n.d(t,{w:()=>a});var i=n(35181);function a(e=null,t,n={}){let r=n.RESUME_BADGES_ACTIVE,s=n.SEASONAL_JOBS_ENABLED,d=n.FIELDS_OF_STUDY_FEATURE_ACTIVE;return(0,i.J1)` 2 fragment ResumeFragment on Resume { 3 id 4 user { 5 id 6 firstName 7 lastName 8 displayName 9 } 10 privateFieldsAccess(organizationId: ${e}) 11 title 12 homeLocation 13 availableStart 14 birthday 15 picture(style: "thumbnail") { 16 url 17 } 18 email 19 firstName 20 lastName 21 careerStatus { 22 tid 23 label 24 } 25 desiredOccupation { 26 tid 27 label 28 parent { 29 tid 30 label 31 } 32 } 33 desiredLocation 34 desiredSalary { 35 tid 36 label 37 } 38 education { 39 id 40 degreeLevel { 41 tid 42 label 43 } 44 institution 45 studyProgram 46 summary 47 location 48 timePeriod { 49 startDate 50 endDate 51 untilNow 52 } 53 ${d?`fieldOfStudy { 54 tid 55 label 56 }`:""} 57 ${""} 58 } 59 workXP { 60 id 61 companyName 62 jobTitle 63 employmentType { 64 tid 65 label 66 } 67 occupation { 68 tid 69 label 70 } 71 location 72 timePeriod { 73 startDate 74 endDate 75 untilNow 76 } 77 summary 78 ${""} 79 } 80 employmentType { 81 tid 82 label 83 } 84 languages { 85 level 86 label 87 term { 88 tid 89 label 90 } 91 } 92 languageNotes 93 phone 94 resumeState { 95 key 96 value 97 } 98 salutation 99 skills { 100 level 101 label 102 term { 103 tid 104 label 105 } 106 } 107 skillsNotes 108 about 109 attachments { 110 id 111 url 112 fileName 113 isCv 114 } 115 hasAttachment 116 created 117 changed 118 completeness { 119 completed 120 currentPercent 121 incomplete 122 nextFieldLabel 123 nextFieldName 124 nextPercent 125 total 126 } 127 academicPrefix 128 academicPostfix 129 ${t?"bookmarked":""} 130 ${s?` 131 availabilityPeriods { 132 startDate 133 endDate 134 } 135 `:""} 136 ${r?` 137 badges { 138 id 139 name 140 description 141 icon(style: "thumbnail") { 142 url 143 alt 144 } 145 } 146 `:""} 147 } 148 `}},56334:(e,t,n)=>{"use strict";n.d(t,{O:()=>d});var i=n(35181),a=n(32395),r=n.n(a),s=n(53136);let d=(e=null,t,n=null,a={})=>{let d=(0,s.w)(e,t,a);return(0,i.J1)` 149 ${d} 150 ${r()} 151 query resume($userId: Int, $language: String) { 152 resumeByUserId(userId: $userId, language: $language) { 153 errors 154 resume: content { 155 ... on Resume { 156 ...ResumeFragment 157 ...CustomResumeFields 158 ${e&&n?` 159 resumeContact(organizationId: ${e}){ 160 id 161 recruiterId 162 state 163 } 164 `:""} 165 } 166 } 167 } 168 } 169 `}},83224:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>T,default:()=>R});var i=n(37876),a=n(14232),r=n(8733),s=n(21963),d=n(31167),l=n(64177),o=n(56334),u=n(53248),c=n(92073),m=n.n(c),f=n(89099),b=n.n(f),p=n(3317),_=n(12531),v=n(93619),S=n(35581);let y="submit_resume_job_preferences_form",E=function({resume:e,onSubmit:t}){let{WIZARD:n}=(0,S.WV)(),a={...n.RESUME.FIELD_INFO.job_preferences},r=[(0,s.Wx)(a)];return(0,i.jsx)(v.A,{name:"profile",bundle:"resume",entity:(0,s.Br)(a,e),fieldGroups:r,renderButtons:({})=>(0,i.jsx)("button",{style:{display:"none"},id:y,type:"submit"}),onSubmit:t})};var h=n(43900),k=n(63424),g=n(80841),x=n(65656),j=n(88564);let A=function({children:e,buttons:t,steps:n,errorList:a,error:s,accessDenied:d,resume:l}){return(0,i.jsxs)(k.I,{Steps:n,children:[s&&(0,i.jsx)(g.s,{alertStyle:"danger",children:(0,i.jsx)(r.A,{id:"resume_error",defaultMessage:"There was an error loading the resume."})}),d&&(0,i.jsx)(h.O,{}),a&&(0,i.jsxs)(i.Fragment,{children:[a,(0,i.jsx)(x.K,{})]}),l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{"data-test-id":"resume-wizard-job-preferences-title",children:(0,i.jsx)(r.A,{id:"resume_step_preferences_title",defaultMessage:"Set your preferences"})}),(0,i.jsx)(x.K,{}),(0,i.jsx)(j.a,{children:e}),(0,i.jsx)(x.K,{size:"medium"}),t,(0,i.jsx)(x.K,{size:"medium"})]})]})};var N=n(320),D=n(10582),I=n(94761),w=n(66343),F=n(75913);let O=function({user:e}){let t=(0,a.useContext)(D.B),n=(0,a.useContext)(D.f),{WIZARD:c,RESUME:f,JOBS:v}=(0,S.WV)(),h={...c.RESUME.FIELD_INFO.job_preferences},{getConfigByName:k}=(0,F.UK)(),x=!!k("jobiqo_resume_bookmark")?.value[0],[j,O,T]=(0,I.M)("resume-wizard-step",n.pathname);(0,a.useEffect)(()=>{O(n.pathname)},[n]);let R=null,{isLast:B,currentStep:L}=(0,w.p)(),U=e.id,{data:C,loading:P,error:M}=(0,d.I)((0,o.O)(null,x,null,{RESUME_BADGES_ACTIVE:f.RESUME_BADGES_ACTIVE,FIELDS_OF_STUDY_FEATURE_ACTIVE:f.FIELDS_OF_STUDY_FEATURE_ACTIVE,SEASONAL_JOBS_ENABLED:v.SEASONAL_JOBS_ENABLED}),{variables:{userId:U,language:t.locale}});M&&(R=(0,i.jsx)(g.s,{alertStyle:"danger",type:"assertive",children:(0,i.jsx)(r.A,{id:"resume_job_preferences_error",defaultMessage:"Error updating your job preferences."})}));let[V,{error:$,data:J}]=(0,l.n)(m());return $&&(R=(0,i.jsx)(g.s,{alertStyle:"danger",type:"assertive",children:(0,i.jsx)(r.A,{id:"resume_job_preferences_error",defaultMessage:"Error updating your job preferences."})})),J?.updateResumeJobPreferencesSection?.errors.length>0&&(R=(0,i.jsx)(u.k,{errors:J?.updateResumeJobPreferencesSection?.errors})),(0,i.jsx)(A,{buttons:(0,i.jsx)(p.h,{onSubmit:()=>{document.getElementById(y)?.click()}}),steps:(0,i.jsx)(_.A,{}),error:M||!P&&!C?.resumeByUserId,accessDenied:!C?.resumeByUserId?.resume&&!P,resume:C?.resumeByUserId?.resume,errorList:R,children:(0,i.jsx)(E,{resume:C?.resumeByUserId?.resume,onSubmit:n=>{V({variables:{id:C.resumeByUserId.resume.id,data:(0,s.LI)(h,n)},refetchQueries:[{query:(0,o.O)(null,x,null,{RESUME_BADGES_ACTIVE:f.RESUME_BADGES_ACTIVE,FIELDS_OF_STUDY_FEATURE_ACTIVE:f.FIELDS_OF_STUDY_FEATURE_ACTIVE,SEASONAL_JOBS_ENABLED:v.SEASONAL_JOBS_ENABLED}),variables:{userId:U,language:t.locale}}]}).then(t=>{if(!t.errors&&t.data?.updateResumeJobPreferencesSection?.errors){let t={...C?.resumeByUserId?.resume,...(0,s.LI)(h,n)},i=(0,N.yv)(B,L,j,O,T,b().query,e,t);b().push(i)}})}})})};(0,n(89685).I)({});var T=!0;let R=({user:e})=>e?(0,i.jsx)(O,{user:e}):null},89685:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});var i=n(78805),a=n(69139);let r=({gssp:e,redirectTo:t="/403",addDestinationParameterFromUrl:n=!0})=>async r=>{let s=await (0,i.wz)(r),d=await (0,i.wR)(r),l=await (0,i.vT)(s);if(!d){let e="/user/login";return n&&(e+="?destination="+encodeURIComponent(r.resolvedUrl)),{redirect:{destination:(0,a.OM)(r,e),permanent:!1},props:{}}}return l?e?await e(r):{props:{}}:{redirect:{destination:(0,a.OM)(r,t),permanent:!1},props:{}}}},92073:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateResumeJobPreferencesSection"}
169,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ResumeJobPreferencesSectionInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateResumeJobPreferencesSection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"errors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Resume"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:241}};t.loc.source={body:"mutation updateResumeJobPreferencesSection(\n $id: Int!\n $data: ResumeJobPreferencesSectionInput!\n) {\n updateResumeJobPreferencesSection(id: $id, data: $data) {\n errors\n content {\n ... on Resume {\n id\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}t.definitions.forEach(function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,n)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,n)}),t.definitions&&t.definitions.forEach(function(t){e(t,n)})}(e,t),n[e.name.value]=t}}),e.exports=t,e.exports.updateResumeJobPreferencesSection=function(e,t){var a={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var r=n[t]||new Set,s=new Set,d=new Set;for(r.forEach(function(e){d.add(e)});d.size>0;){var l=d;d=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(n[e]||new Set).forEach(function(e){d.add(e)}))})}return s.forEach(function(t){var n=i(e,t);n&&a.definitions.push(n)}),a}(t,"updateResumeJobPreferencesSection")},97607:e=>{e.exports={box:"boxAction_box__hwfsd",boxDisabled:"boxAction_boxDisabled__fyz6W",wrapButton:"boxAction_wrapButton__4qIEh",wrapButtonDisabled:"boxAction_wrapButtonDisabled__c0bLA",icon:"boxAction_icon__tWDJE",iconDisabled:"boxAction_iconDisabled__AmCj0"}}},e=>{e.O(0,[1121,6701,9307,4272,5406,8724,7579,8564,8618,2557,2243,6989,7843,6734,3057,261,5769,636,6593,8792],()=>e(e.s=13577)),_N_E=e.O()}]); 170//# sourceMappingURL=job-preferences-d33346866977692f.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.