PageSourceSearch

https://www.cvonline.lt/_next/static/chunks/2159-be86936b94798609.js

js cvonline.lt collected 2026-09-24 19:19:20 UTC 75,799 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2159],{46094:function(e,t,n){n.d(t,{Z:function(){return D}});n(59749),n(86544);var i=n(67294),a=n(37808),r=n(86896),s=n(96253),o=(n(69358),n(38077),n(81919),n(47522),n(99474),n(59499)),c=n(4730),l=(n(752),n(60228),n(76265),n(66449)),d=n(71321),p=n(31767),u=n(69065),m=n(82929),v=n(19275),h=n(29701),f=n(3419),x=n(30719),j=n(11537),b=n(2664),g=n(54847),w=n(55472),y=n(92765),_=n(85893),O=["dateFrom","dateTo"];function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N=function(e){return(0,_.jsx)("svg",k(k({},e),{},{children:(0,_.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,_.jsx)("path",{stroke:"#EC2359",d:"m1.537 4.5.929 13h9.068l.929-13H1.537z"}),(0,_.jsx)("path",{fill:"#EC2359",d:"M6 0h3v2h5v1H0V2h5V0h1zm0 1v1h2V1H6z"})]})}))};N.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"18"};var C=function(e){return(0,_.jsx)("svg",k(k({},e),{},{children:(0,_.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,_.jsx)("path",{fill:"#EC2359",d:"M6 0h3v2h5v1H0V2h5V0h1zm0 1v1h2V1H6zM1 4h12l-1 14H2L1 4z"}),(0,_.jsx)("path",{stroke:"#EC2359",d:"M-5-3h24v24H-5z"})]})}))};C.defaultProps={width:"14",height:"18",xmlns:"http://www.w3.org/2000/svg"};var P=function(e){return(0,_.jsx)("svg",k(k({},e),{},{children:(0,_.jsx)("path",{d:"M8 15c-3.86 0-7-3.14-7-7s3.14-7 7-7 7 3.14 7 7-3.14 7-7 7m.5-7.5V5h-1v2.5H5v1h2.5V11h1V8.5H11v-1H8.5zM8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0z",fillRule:"evenodd"})}))};P.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var I=function(e){var t=e.cvId,n=e.education,o=e.educationLevel,p=e.saveEducation,u=e.addEducation,b=e.deleteEducation,g=e.getCV,Z=e.initialize,I=e.handleSubmit,E=e.onCancel,S=e.destroy,F=(0,i.useState)(!1),z=F[0],D=F[1],W=(0,r.Z)();(0,i.useEffect)((function(){if(n.id&&"NEW"!==n.id){var e=n.dateFrom,t=n.dateTo,i=(0,c.Z)(n,O),a=k(k({},i),{},{startYear:e.substring(0,4)});t&&(a.endYear=t.substring(0,4)),i.description&&D(!0),Z(a)}else Z()}),[n,Z]);var M=function(){E(),S()},V=(0,x.n9)(W),T=(0,x.SS)(W),H=(0,x.kE)(W),L=(0,x.ZS)(W),R=!n.id||"NEW"===n.id;return(0,_.jsxs)("form",{className:"cv-item-form",children:[(0,_.jsxs)("div",{className:"cv-item-form__header",children:[o?(0,_.jsx)(a.Z,{id:"education.secondTitle"}):(0,_.jsx)(a.Z,{id:"education.title"}),(0,_.jsx)(l.Z,{action:R?M:function(){n.id&&"NEW"!==n.id&&b(t,n.id).then((function(){return g(t)})),M()},textKey:"confirmation.delete.education",primaryBtn:"confirmation.delete.label",iconMain:(0,_.jsx)(N,{}),iconActive:(0,_.jsx)(C,{})})]}),(0,_.jsx)(d.Z,{name:"level",component:v.Z,options:V,placeholder:(0,_.jsx)(a.Z,{id:"education.level.label"}),validate:[f.C1]}),!!o&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(d.Z,{name:"schoolName",label:"education.schoolName.label",component:m.Z,validate:[f.C1,f.C5],isFullWidth:!0}),"UNIVERSITY"===o&&(0,_.jsx)(d.Z,{name:"degree",component:v.Z,options:T,placeholder:(0,_.jsx)(a.Z,{id:"education.degree.label"}),validate:[f.C1]}),(0,_.jsxs)("div",{className:"cv-item-form__period",children:[(0,_.jsx)("span",{className:"cv-item-form__period-label",children:(0,_.jsx)(a.Z,{id:"education.period"})}),(0,_.jsxs)("div",{className:"cv-item-form__period-columns",children:[(0,_.jsx)("div",{className:"cv-item-form__period-column",children:(0,_.jsx)(d.Z,{name:"startYear",label:"education.startYear.label",component:m.Z,type:"number",validate:[f.C1,f.ZP,f.Ti],isFullWidth:!0})}),(0,_.jsx)("div",{className:"cv-item-form__period-column",children:(0,_.jsx)(d.Z,{name:"endYear",label:"education.endYear.label",component:m.Z,type:"number",validate:[f.ZP,f.Ti,f.hw],isFullWidth:!0})})]})]}),("UNIVERSITY"===o||"VOCATIONAL"===o)&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(d.Z,{name:"category",component:v.Z,options:H,placeholder:(0,_.jsx)(a.Z,{id:"education.category.label"})}),(0,_.jsx)(d.Z,{name:"speciality",component:v.Z,options:L,placeholder:(0,_.jsx)(a.Z,{id:"education.specialty.label"})})]}),z&&(0,_.jsx)(d.Z,{name:"description",label:"education.description.label",component:h.Z,validate:[f.px],inputStyle:{height:90},isFullWidth:!0})]}),o&&!z&&(0,_.jsx)(j.Z,{onClick:function(){return D(!0)},children:(0,_.jsxs)("span",{className:"cv-item-form__add",children:[(0,_.jsx)(P,{}),(0,_.jsx)(a.Z,{id:"education.addDescription"})]})}),(!o||o&&z)&&(0,_.jsx)("span",{}),(0,_.jsx)(y.Z,{id:n.id,handleSubmit:I((function(e){if((0,s.UN)(e)){var i=(0,w.be)(e),a=function(){return g(t)};"NEW"!==n.id?p(t,n.id,i,a):u(t,i,a)}M()})),onCancel:M})]})},E={form:"education-form",destroyOnUnmount:!1,enableReinitialize:!0,keepDirtyOnReinitialize:!0,shouldError:function(e){return(0,s.UN)(e.values)},onSubmitSuccess:function(e,t,n){n.destroy()},onSubmitFail:function(e){console.warn("form submit fail",e)}};I.defaultProps={educationLevel:null};var S=(0,p.Z)("education-form"),F=(0,u.Z)(E)((0,b.$j)((function(e){return{educationLevel:S(e,"level")}}),{getCV:g.Yk,saveEducation:g.Uv,addEducation:g.r_,deleteEducation:g.yp})(I)),z=function(e){var t=e.data,n=e.cvId,i=e.isOpen,o=e.toggleForm,c=(0,r.Z)();return i?(0,_.jsx)("div",{className:"cv-preview-item",children:(0,_.jsx)("div",{className:"cv-preview-item__form",children:(0,_.jsx)(F,{education:t,cvId:n,onCancel:o})})}):(0,_.jsxs)("div",{className:"cv-preview-item",children:[(0,_.jsxs)("div",{className:"cv-preview-item__header",children:[(0,_.jsx)("strong",{className:"cv-preview-item__title",children:t.schoolName}),!!o&&(0,_.jsx)("button",{"aria-label":c.formatMessage({id:"cv.editButton"}),type:"button",className:"link-btn",onClick:o,children:(0,_.jsx)(a.Z,{id:"cv.editButton"})})]}),(0,_.jsxs)("p",{className:"cv-preview-item__text",children:[t.degree?(0,_.jsx)(a.Z,{id:"degree.".concat(t.degree,".label")}):(0,_.jsx)(a.Z,{id:"education.".concat(t.level,".label")}),t.category&&(0,_.jsxs)(_.Fragment,{children:[",\xa0",(0,_.jsx)(a.Z,{id:"educationCategory.".concat(t.category,".label")})]}),t.speciality&&(0,_.jsxs)(_.Fragment,{children:[",\xa0",(0,_.jsx)(a.Z,{id:"educationSpeciality.".concat(t.speciality,".label")})]})]}),(0,_.jsxs)("p",{className:"cv-preview-item__text cv-preview-item__text--secondary",children:[(0,s.fY)(t.dateFrom),t.dateTo&&(0,_.jsxs)(_.Fragment,{children:["\xa0\u2013\xa0",(0,s.fY)(t.dateTo)]})]}),t.description&&(0,_.jsx)("p",{className:"cv-preview-item__text cv-preview-item__text-description",children:t.description})]})};z.defaultProps={isOpen:!1,toggleForm:null};var D=z},83531:function(e,t,n){n.d(t,{Z:function(){return Z}});n(50886),n(69358),n(6203),n(65137);var i=n(67294),a=n(37808),r=n(52934),s=n(59499),o=(n(34284),n(25728),n(60228),n(59749),n(38077),n(81919),n(47522),n(99474),n(71321)),c=n(69065),l=n(92158),d=n(49011),p=n(82929),u=n(96253),m=n(45536),v=n(2664),h=n(54847),f=n(86896),x=n(92765),j=n(85893);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?b(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w,y={enableReinitialize:!0,keepDirtyOnReinitialize:!0,onSubmitFail:function(e){console.warn("form submit fail",e)}},_=(0,v.$j)(null,{getCV:h.Yk,saveExpectedSalary:h.Sc,hideMinimumSalary:h.T8,updateExpectedCategories:h.dK,updateExpectedPositions:h.aK,updateExpectedLocations:h.tU,updateExpectedWorkTimes:h.pC})((w=function(e){var t=e.cvId,n=e.sectionId,r=e.data,s=e.locations,c=e.initialize,v=e.handleSubmit,h=e.destroy,b=e.onCancel,w=e.getCV,y=e.saveExpectedSalary,_=e.hideMinimumSalary,O=e.updateExpectedCategories,Z=e.updateExpectedPositions,k=e.updateExpectedLocations,N=e.updateExpectedWorkTimes,C=(0,i.useState)(!1),P=C[0],I=C[1],E=(0,i.useState)({}),S=E[0],F=E[1],z=(0,f.Z)();(0,i.useEffect)((function(){var e={},t=[];switch(n){case"expectations-positions":t.push({name:"position",type:l.Z}),e.position=Object.keys(r).map((function(e){return{id:e,label:r[e],value:r[e]}})),console.log(e);break;case"expectations-categories":t.push({name:"category",type:d.Z,options:u.bd.map((function(e){return{value:e,label:"".concat(z.formatMessage({id:"workCategory.".concat(e,".label")}))}}))}),e.category=r;break;case"expectations-locations":t.push({name:"locations",grouped:!0,options:[{id:"towns",options:s.towns.map((function(e){var t={townId:e.id,countyId:e.countyId,countryId:e.countryId,value:"town-".concat(e.id),label:e.name},n=r.find((function(t){return t.townId===e.id}));return n&&(t.id=n.id),t}))},{id:"counties",options:Object.keys(s.counties).map((function(e){var t=parseInt(e,10),n={countyId:t,countryId:s.counties[e].countryId,value:"county-".concat(e),label:s.counties[e].name},i=r.find((function(e){return!e.townId&&e.countyId===t}));return i&&(n.id=i.id),n}))},{id:"countries",options:Object.keys(s.countries).map((function(e){var t=parseInt(e,10),n={countryId:t,value:"country-".concat(e),label:z.formatMessage({id:"country.".concat(s.countries[e].iso,".label")})},i=r.find((function(e){return!e.countyId&&e.countryId===t}));return i&&(n.id=i.id),n}))}],type:d.Z}),e.locations=r.map((function(e){return e.townId?g({value:"town-".concat(e.townId)},e):e.countyId?g({value:"county-".concat(e.countyId)},e):g({value:"country-".concat(e.countryId)},e)}));break;case"expectations-work-times":t.push({name:"workTimeTypes",type:d.Z,options:u.xd.map((function(e){return{value:e,label:"".concat(z.formatMessage({id:"workTime.".concat(e,".label")}))}}))}),e.workTimeTypes=r;break;case"expectations-salary":t.push({name:"minimumSalary",label:!0,type:p.Z,fieldType:"number"},{name:"minimumSalaryHidden",label:!0,type:m.Z,fieldType:"checkbox"}),e.minimumSalary=r.minimumSalary,e.minimumSalaryHidden=r.minimumSalaryHidden}c(e),F(t),I(!0)}),[c,r]);var D=function(){b(),h()};return P?(0,j.jsxs)("form",{className:"cv-item-form",children:[S.map((function(e){return(0,j.jsx)(o.Z,{label:e.label?"expectations.".concat(e.name,".label"):null,placeholder:e.label?null:(0,j.jsx)(a.Z,{id:"expectations.".concat(e.name,".label")}),name:e.name,component:e.type,options:e.options,grouped:e.grouped,type:e.fieldType,isFullWidth:!0},e.name)})),(0,j.jsx)(x.Z,{handleSubmit:v((function(e){if((0,u.UN)(e)){var i,a;switch(n){case"expectations-salary":i=function(){return y(t,e.minimumSalary||0).then((function(){return _(t,e.minimumSalaryHidden)}))};break;case"expectations-categories":i=function(){return O(t,e.category)};break;case"expectations-positions":a=e.position.map((function(e){return e.value})),i=function(){return Z(t,a)};break;case"expectations-locations":a=e.locations.map((function(e){return{townId:e.townId,countyId:e.countyId,countryId:e.countryId}})),i=function(){return k(t,a)};break;case"expectations-work-times":i=function(){return N(t,e.workTimeTypes)}}i().then((function(){return w(t)}))}D()})),onCancel:D})]}):null},function(e){var t=e.sectionId,n=g({form:"expectation-item-form-".concat(t)},y),i=(0,c.Z)(n)(w);return(0,j.jsx)(i,g({},e))})),O=function(e){var t=e.data,n=e.isOpen,i=e.cvId,s=e.toggleForm,o=e.sectionId,c=e.locations;if(n)return(0,j.jsx)("div",{className:"cv-preview-item",children:(0,j.jsx)("div",{className:"cv-preview-item__form",children:(0,j.jsx)(_,{cvId:i,data:t,onCancel:s,sectionId:o,locations:c})})});var l=function(e,t){switch(e){case"expectations-categories":return t.map((function(e){return(0,j.jsx)(r.Z,{data:{value:(0,j.jsx)(a.Z,{id:"workCategory.".concat(e,".label")})}},e)}));case"expectations-positions":return Object.keys(t).length>0&&(0,j.jsx)("p",{className:"cv-edit-section__content",children:Object.keys(t).map((function(e){return(0,j.jsx)(r.Z,{data:{value:t[e]}},e)}))});case"expectations-locations":return t.map((function(e){return e.townId||e.countyId?e.countyId&&!e.townId?(0,j.jsx)(r.Z,{data:{value:e.countyName}},"county-".concat(e.countyName)):(0,j.jsx)(r.Z,{data:{value:e.townName}},"town-".concat(e.townName)):(0,j.jsx)(r.Z,{data:{value:(0,j.jsx)(a.Z,{id:"country.".concat(e.countryIso,".label")})}},"country-".concat(e.countryIso))}));case"expectations-work-times":return t.map((function(e){return(0,j.jsx)(r.Z,{data:{value:(0,j.jsx)(a.Z,{id:"workTime.".concat(e,".label")})}},e)}));case"expectations-salary":return(0,j.jsx)("p",{className:"cv-edit-section__content",children:t.minimumSalary||"\u2013"});default:return(0,j.jsx)("strong",{className:"cv-preview-item__title",children:(0,j.jsx)("p",{children:"string"===typeof t?t:t.sort().join(", ")})})}}(o,t);return(0,j.jsx)("div",{className:"cv-preview-item",children:l})};O.defaultProps={isOpen:!1,locations:{},toggleForm:null};var Z=O},719:function(e,t,n){n.d(t,{Z:function(){return F}});n(59749),n(86544);var i=n(67294),a=n(96253),r=n(37808),s=n(75207),o=n(87509),c=n(86896),l=(n(69358),n(38077),n(81919),n(47522),n(99474),n(59499)),d=(n(50886),n(752),n(60228),n(76265),n(71321)),p=n(69065),u=n(82929),m=n(29701),v=n(19275),h=n(3419),f=n(11537),x=n(66449),j=n(96702),b=n(2664),g=n(54847),w=n(55472),y=n(92765),_=n(85893);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?O(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=function(e){return(0,_.jsx)("svg",Z(Z({},e),{},{children:(0,_.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,_.jsx)("path",{stroke:"#EC2359",d:"m1.537 4.5.929 13h9.068l.929-13H1.537z"}),(0,_.jsx)("path",{fill:"#EC2359",d:"M6 0h3v2h5v1H0V2h5V0h1zm0 1v1h2V1H6z"})]})}))};k.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"18"};var N=function(e){return(0,_.jsx)("svg",Z(Z({},e),{},{children:(0,_.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,_.jsx)("path",{fill:"#EC2359",d:"M6 0h3v2h5v1H0V2h5V0h1zm0 1v1h2V1H6zM1 4h12l-1 14H2L1 4z"}),(0,_.jsx)("path",{stroke:"#EC2359",d:"M-5-3h24v24H-5z"})]})}))};N.defaultProps={width:"14",height:"18",xmlns:"http://www.w3.org/2000/svg"};var C=function(e){return(0,_.jsx)("svg",Z(Z({},e),{},{children:(0,_.jsx)("path",{d:"M8 15c-3.86 0-7-3.14-7-7s3.14-7 7-7 7 3.14 7 7-3.14 7-7 7m.5-7.5V5h-1v2.5H5v1h2.5V11h1V8.5H11v-1H8.5zM8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0z",fillRule:"evenodd"})}))};C.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var P=[{value:"01",label:"months.jan"},{value:"02",label:"months.feb"},{value:"03",label:"months.mar"},{value:"04",label:"months.apr"},{value:"05",label:"months.may"},{value:"06",label:"months.jun"},{value:"07",label:"months.jul"},{value:"08",label:"months.aug"},{value:"09",label:"months.sep"},{value:"10",label:"months.oct"},{value:"11",label:"months.nov"},{value:"12",label:"months.dec"}],I={form:"work-experience-form",destroyOnUnmount:!1,enableReinitialize:!0,keepDirtyOnReinitialize:!0,shouldError:function(e){return(0,a.UN)(e.values)},onSubmitFail:function(e){console.warn("form submit fail",e)}},E=(0,p.Z)(I)((0,b.$j)(null,{getCV:g.Yk,saveWorkExperience:g.Dp,addWorkExperience:g.xZ,deleteWorkExperience:g.aC})((function(e){var t=e.cvId,n=e.data,s=e.initialize,o=e.handleSubmit,l=e.destroy,p=e.getCV,b=e.saveWorkExperience,g=e.addWorkExperience,O=e.deleteWorkExperience,I=e.onCancel,E=(0,i.useState)(!1),S=E[0],F=E[1];(0,i.useEffect)((function(){if(n.id&&"NEW"!==n.id){var e=n.companyName,t=n.category,i=n.positionName,a=n.description,r=n.startDate,o=n.endDate,c={companyName:e,positionName:i,category:t,description:a,startDateYear:r.substring(0,4),startDateMonth:r.substring(5,7)};o&&(c.endDateYear=o.substring(0,4),c.endDateMonth=o.substring(5,7)),a&&F(!0),s(c)}else s()}),[n,s]);var z=function(){I(),l()},D=(0,c.Z)(),W=a.bd.map((function(e){return{value:e,label:"".concat(D.formatMessage({id:"workCategory.".concat(e,".label")}))}})),M=P.map((function(e){return Z(Z({},e),{},{label:D.formatMessage({id:e.label})})})),V=!n.id||"NEW"===n.id;return(0,_.jsxs)("form",{className:"cv-item-form",children:[(0,_.jsxs)("div",{className:"cv-item-form__header",children:[(0,_.jsx)(r.Z,{id:"workExperience.title"}),(0,_.jsx)(x.Z,{action:V?z:function(){"NEW"!==n.id&&O(t,n.id).then((function(){return p(t)})),z()},textKey:"confirmation.delete.work.experience",primaryBtn:"confirmation.delete.label",iconMain:(0,_.jsx)(k,{}),iconActive:(0,_.jsx)(N,{})})]}),(0,_.jsx)(d.Z,{name:"companyName",label:"workExperience.companyName.label",component:u.Z,validate:[h.C1,h.C5],isFullWidth:!0}),(0,_.jsx)(d.Z,{name:"category",component:v.Z,options:W,placeholder:(0,_.jsx)(r.Z,{id:"workExperience.category.label"}),validate:[h.C1]}),(0,_.jsx)(d.Z,{name:"positionName",label:"workExperience.positionName.label",component:u.Z,validate:[h.C1,h.C5],isFullWidth:!0}),(0,_.jsx)(j.Z,{monthsOptions:M,isCustomOrder:"LT"===(0,a.ge)()}),S?(0,_.jsx)(d.Z,{name:"description",label:"workExperience.description.label",component:m.Z,inputStyle:{height:90},validate:[h.mG],isFullWidth:!0}):(0,_.jsx)(f.Z,{onClick:function(){return F(!0)},children:(0,_.jsxs)("span",{className:"cv-item-form__add",children:[(0,_.jsx)(C,{}),(0,_.jsx)(r.Z,{id:"workExperience.addDescription"})]})}),(0,_.jsx)(y.Z,{handleSubmit:o((function(e){if((0,a.UN)(e)){var i=(0,w.A)(e);(n.id&&"NEW"!==n.id?function(){return b(t,n.id,i)}
1:function(){return g(t,i)})().then((function(){return p(t)}))}z()})),onCancel:z})]})}))),S=function(e){var t=e.data,n=e.cvId,i=e.isOpen,l=e.toggleForm,d=(0,c.Z)(),p=d.locale;if(i)return(0,_.jsx)("div",{className:"cv-preview-item",children:(0,_.jsx)("div",{className:"cv-preview-item__form",children:(0,_.jsx)(E,{data:t,cvId:n,onCancel:l})})});var u=(0,s.x)(t.startDate,t.endDate)?(0,o.E)(t.startDate,30):t.endDate,m=(0,a.Oo)(t.startDate,u,p);return(0,_.jsxs)("div",{className:"cv-preview-item",children:[(0,_.jsxs)("div",{className:"cv-preview-item__header",children:[(0,_.jsx)("strong",{className:"cv-preview-item__title",children:t.positionName}),!!l&&(0,_.jsx)("button",{"aria-label":d.formatMessage({id:"cv.editButton"}),type:"button",className:"link-btn",onClick:l,children:(0,_.jsx)(r.Z,{id:"cv.editButton"})})]}),(0,_.jsxs)("p",{className:"cv-preview-item__text",children:[t.companyName," \u2014 ",(0,_.jsx)(r.Z,{id:"workCategory.".concat(t.category,".label")})]}),(0,_.jsxs)("p",{className:"cv-preview-item__text cv-preview-item__text--secondary",children:[(0,a.Pb)(t.startDate,p),t.endDate&&(0,_.jsxs)(_.Fragment,{children:["\xa0\u2013\xa0",(0,a.Pb)(t.endDate,p),"\xa0(",m,")"]}),!t.endDate&&(0,_.jsxs)(_.Fragment,{children:["\xa0\u2013\xa0",(0,_.jsx)(r.Z,{id:"cv.workExperience.currentlyWorking"})]})]}),t.description&&(0,_.jsx)("p",{className:"cv-preview-item__text cv-preview-item__text-description",children:t.description})]})};S.defaultProps={isOpen:!1,toggleForm:null};var F=S},31559:function(e,t,n){n.d(t,{Z:function(){return x}});n(69358),n(59749),n(38077),n(60228),n(81919),n(47522),n(99474);var i=n(59499),a=(n(50886),n(67294)),r=n(55472),s=(n(6203),n(87759)),o=n(2664),c=n(54847),l=n(92765),d=n(85893),p=[".jpg",".jpeg",".png",".doc",".docx",".pdf"],u=(0,o.$j)(null,{getCV:c.Yk,saveCvFiles:c._S})((function(e){var t=e.cvId,n=e.data,i=e.onCancel,r=e.saveCvFiles,o=e.getCV,c=(0,a.useState)([]),u=c[0],m=c[1],v=(0,a.useState)(!1),h=v[0],f=v[1];(0,a.useEffect)((function(){m(n),f(!0)}),[n]);return h?(0,d.jsxs)("div",{className:"cv-item-form",children:[(0,d.jsx)(s.Z,{files:u,onChange:function(e){return m(e)},accept:p.join(","),fileCountLimit:3,fileSizeLimit:5}),(0,d.jsx)(l.Z,{handleSubmit:function(){var e=u.map((function(e){return e.fileId}));r(t,e).then((function(){return o(t)})),i()},onCancel:i})]}):null}));function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e){return(0,d.jsx)("svg",v(v({},e),{}
1,{children:(0,d.jsx)("path",{d:"m5.303 13.281 8.87-8.87a3.413 3.413 0 0 1 4.822.003c1.348 1.348 1.383 3.59.076 4.896l-8.575 8.575c-.907.908-2.475.873-3.424-.075-.948-.948-.982-2.516-.074-3.424l7.136-7.136.7.7-7.137 7.136c-.519.52-.484 1.465.075 2.024.56.56 1.505.594 2.025.075l8.575-8.575c.927-.927.892-2.528-.077-3.496a2.423 2.423 0 0 0-3.422-.003l-8.87 8.87a3.465 3.465 0 0 0 4.898 4.898l7.505-7.504.7.7-7.505 7.504c-1.734 1.734-4.558 1.733-6.294-.003s-1.738-4.56-.004-6.295z",fill:"#2f8dfc",fillRule:"evenodd"})}))};h.defaultProps={height:"24",width:"24",xmlns:"http://www.w3.org/2000/svg"};var f=function(e){var t=e.data,n=e.isOpen,i=e.toggleForm,a=e.cvId;return n?(0,d.jsx)("div",{className:"cv-preview-item",children:(0,d.jsx)("div",{className:"cv-preview-item__form",children:(0,d.jsx)(u,{data:t,onCancel:i,cvId:a})})}):(0,d.jsx)(d.Fragment,{children:t.map((function(e){return(0,d.jsx)("div",{className:"cv-preview-item",children:(0,d.jsxs)("a",{className:"cv-preview-item__file",rel:"noopener noreferrer",target:"_blank",href:(0,r.WT)("/files-service/".concat(e.fileId,"?isPreview=true")),children:[(0,d.jsx)(h,{}),e.fileName]},e.fileId)},e.fileId)}))})};f.defaultProps={isOpen:!1,toggleForm:null};var x=f},80258:function(e,t,n){n.d(t,{Z:function(){return F}});n(69358),n(59749),n(38077),n(60228),n(81919),n(47522),n(99474);var i=n(59499),a=(n(34284),n(67294)),r=n(55472),s=n(37808),o=n(86896),c=n(96253),l=n(4730),d=(n(752),n(76265),n(71321)),p=n(69065),u=n(86631),m=n(82929),v=n(80557),h=n(3419),f=n(66449),x=n(2664),j=n(54847),b=n(92765),g=n(85893),w=["dateIssued"];function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=function(e){return(0,g.jsx)("svg",_(_({},e),{},{children:(0,g.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,g.jsx)("path",{stroke:"#EC2359",d:"m1.537 4.5.929 13h9.068l.929-13H1.537z"}),(0,g.jsx)("path",{fill:"#EC2359",d:"M6 0h3v2h5v1H0V2h5V0h1zm0 1v1h2V1H6z"})]})}))};O.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"18"};var Z=function(e){return(0,g.jsx)("svg",_(_({},e),{},{children:(0,g.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,g.jsx)("path",{fill:"#EC2359",d:"M6 0h3v2h5v1H0V2h5V0h1zm0 1v1h2V1H6zM1 4h12l-1 14H2L1 4z"}),(0,g.jsx)("path",{stroke:"#EC2359",d:"M-5-3h24v24H-5z"})]})}))};Z.defaultProps={width:"14",height:"18",xmlns:"http://www.w3.org/2000/svg"};var k=function(e){return(0,g.jsx)("svg",_(_({},e),{},{children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 15c-3.86 0-7-3.14-7-7s3.14-7 7-7 7 3.14 7 7-3.14 7-7 7zM8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm.5 6v6h-1V6h1zm0-1V4h-1v1h1z",fill:"#2F8DFC"})}))};k.defaultProps={width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var N={form:"license-form",destroyOnUnmount:!1,enableReinitialize:!0,keepDirtyOnReinitialize:!0,shouldError:function(e){return(0,c.UN)(e.values)},onSubmitSuccess:function(e,t,n){n.destroy()},onSubmitFail:function(e){console.warn("form submit fail",e)}},C=(0,p.Z)(N)((0,x.$j)(null,{getCV:j.Yk,addLicense:j.cP,saveLicense:j.K3,deleteLicense:j.Xz})((function(e){var t=e.cvId,n=e.license,i=e.initialize,o=e.destroy,p=e.handleSubmit,x=e.saveLicense,j=e.addLicense,y=e.deleteLicense,N=e.getCV,C=e.onCancel;(0,a.useEffect)((function(){if(n.id&&"NEW"!==n.id){var e=n.dateIssued,t=_({},(0,l.Z)(n,w));e&&(t.dateIssued=e.substring(0,4)),i(t)}else i()}),[]);var P=function(){C(),o()},I=!n.id||"NEW"===n.id;return(0,g.jsxs)("form",{className:"cv-item-form",children:[(0,g.jsxs)("div",{className:"cv-item-form__header",children:[(0,g.jsx)(s.Z,{id:"license.title"}),(0,g.jsx)(f.Z,{action:I?P:function(){n.id&&"NEW"!==n.id&&y(t,n.id).then((function(){return N(t)})),P()},textKey:"confirmation.delete.license",primaryBtn:"confirmation.delete.label",iconMain:(0,g.jsx)(O,{}),iconActive:(0,g.jsx)(Z,{})})]}),(0,g.jsx)(d.Z,{name:"name",label:"license.name.label",component:m.Z,validate:[h.C1,h.C5],autoComplete:"off",isFullWidth:!0}),(0,g.jsxs)("div",{className:"cv-item-form__with-tooltip",children:[(0,g.jsx)(d.Z,{name:"identifierUrl",label:"license.idOrUrl.label",validate:[h.Pv],component:m.Z,isFullWidth:!0}),(0,g.jsx)("div",{className:"cv-item-form__with-tooltip-button",children:(0,g.jsx)(u.Z,{tooltipTextKey:"license.idOrUrl.tooltip",overlayStyle:{zIndex:5e3},children:(0,g.jsx)(k,{})})})]}),(0,g.jsx)(d.Z,{name:"issuedBy",label:"license.issuedBy.label",component:m.Z,validate:[h.C5],isFullWidth:!0}),(0,g.jsx)(d.Z,{name:"dateIssued",label:"license.dateIssued.label",component:m.Z,type:"number",validate:[h.ZP,h.Ti],isFullWidth:!0}),(0,g.jsx)(d.Z,{name:"fileId",label:"license.file.label",component:v.Z,accept:".jpg, .jpeg, .png, .doc, .docx, .pdf",maxFileSizeInMB:5,defaultFileName:n.fileName,isFullWidth:!0}),(0,g.jsx)(b.Z,{id:n.id,handleSubmit:p((function(e){if((0,c.UN)(e)){var i=(0,r.f_)(e);(n.id&&"NEW"!==n.id?function(){return x(t,n.id,i)}:function(){return j(t,i)})().then((function(){return N(t)}))}P()})),onCancel:P})]})})));function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?P(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=function(e){return(0,g.jsx)("svg",I(I({},e),{},{children:(0,g.jsx)("path",{d:"m5.303 13.281 8.87-8.87a3.413 3.413 0 0 1 4.822.003c1.348 1.348 1.383 3.59.076 4.896l-8.575 8.575c-.907.908-2.475.873-3.424-.075-.948-.948-.982-2.516-.074-3.424l7.136-7.136.7.7-7.137 7.136c-.519.52-.484 1.465.075 2.024.56.56 1.505.594 2.025.075l8.575-8.575c.927-.927.892-2.528-.077-3.496a2.423 2.423 0 0 0-3.422-.003l-8.87 8.87a3.465 3.465 0 0 0 4.898 4.898l7.505-7.504.7.7-7.505 7.504c-1.734 1.734-4.558 1.733-6.294-.003s-1.738-4.56-.004-6.295z",fill:"#2f8dfc",fillRule:"evenodd"})}))};E.defaultProps={height:"24",width:"24",xmlns:"http://www.w3.org/2000/svg"};var S=function(e){var t=e.data,n=e.cvId,i=e.isOpen,a=e.toggleForm,l=(0,o.Z)();return i?(0,g.jsx)("div",{className:"cv-preview-item",children:(0,g.jsx)("div",{className:"cv-preview-item__form",children:(0,g.jsx)(C,{license:t,cvId:n,onCancel:a})})}):(0,g.jsxs)("div",{className:"cv-preview-item",children:[(0,g.jsxs)("div",{className:"cv-preview-item__header",children:[(0,g.jsxs)("strong",{className:"cv-preview-item__title",children:[t.fileId&&(0,g.jsx)("p",{className:"cv-preview-item__text",children:(0,g.jsxs)("a",{className:"cv-preview-item__file",rel:"noopener noreferrer",target:"_blank",href:(0,r.WT)("/files-service/".concat(t.fileId)),children:[(0,g.jsx)(E,{}),t.name]},t.fileId)}),!t.fileId&&(0,g.jsx)("p",{className:"cv-preview-item__text",children:t.name})]}),!!a&&(0,g.jsx)("button",{"aria-label":l.formatMessage({id:"cv.editButton"}),type:"button",className:"link-btn",onClick:a,children:(0,g.jsx)(s.Z,{id:"cv.editButton"})})]}),t.identifierUrl&&(0,g.jsx)("p",{className:"cv-preview-item__text",children:t.identifierUrl}),t.issuedBy&&(0,g.jsx)("p",{className:"cv-preview-item__text",children:(0,g.jsx)(s.Z,{id:"cv.licensesItem.issuedBy",values:{value:t.issuedBy}})}),t.dateIssued&&(0,g.jsx)("p",{className:"cv-preview-item__text cv-preview-item__text--secondary",children:(0,c.fY)(t.dateIssued)})]})};S.defaultProps={isOpen:!1,toggleForm:null};var F=S},22955:function(e,t,n){n.d(t,{Z:function(){return O}});n(37960);var i=n(67294),a=n(37808),r=n(86896),s=n(59499),o=(n(752),n(60228),n(76265),n(69358),n(59749),n(38077),n(81919),n(47522),n(99474),n(71321)),c=n(69065),l=n(82929),d=n(3419),p=n(66449),u=n(96253),m=n(2664),v=n(54847),h=n(92765),f=n(85893);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=function(e){return(0,f.jsx)("svg",j(j({},e),{},{children:(0,f.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,f.jsx)("path",{stroke:"#EC2359",d:"m1.537 4.5.929 13h9.068l.929-13H1.537z"}),(0,f.jsx)("path",{fill:"#EC2359",d:"M6 0h3v2h5v1H0V2h5V0h1zm0 1v1h2V1H6z"})]})}))};b.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"18"};var g=function(e){return(0,f.jsx)("svg",j(j({},e),{},{children:(0,f.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,f.jsx)("path",{fill:"#EC2359",d:"M6 0h3v2h5v1H0V2h5V0h1zm0 1v1h2V1H6zM1 4h12l-1 14H2L1 4z"}),(0,f.jsx)("path",{stroke:"#EC2359",d:"M-5-3h24v24H-5z"})]})}))};g.defaultProps={width:"14",height:"18",xmlns:"http://www.w3.org/2000/svg"};var w={form:"link-form",enableReinitialize:!0,keepDirtyOnReinitialize:!0,shouldError:function(e){return(0,u.UN)(e.values)},onSubmitFail:function(e){console.warn("form submit fail",e)}},y=(0,c.Z)(w)((0,m.$j)(null,{getCV:v.Yk,saveLink:v.iY,addLink:v.MJ,deleteLink:v.Yw})((function(e){var t=e.cvId,n=e.link,r=e.saveLink,s=e.addLink,c=e.deleteLink,m=e.getCV,v=e.initialize,x=e.handleSubmit,j=e.destroy,w=e.onCancel;(0,i.useEffect)((function(){n.id&&"NEW"!==n.id?v(n):v()}),[n,v]);var y=function(){w(),j()},_=!n.id||"NEW"===n.id;return(0,f.jsxs)("form",{className:"cv-item-form",children:[(0,f.jsxs)("div",{className:"cv-item-form__header",children:[(0,f.jsx)(a.Z,{id:"link.title.value"}),(0,f.jsx)(p.Z,{action:_?y:function(){n.id&&"NEW"!==n.id&&c(t,n.id).then((function(){return m(t)})),y()},textKey:"confirmation.delete.link",primaryBtn:"confirmation.delete.label",iconMain:(0,f.jsx)(b,{}),iconActive:(0,f.jsx)(g,{})})]}),(0,f.jsx)(o.Z,{name:"link",label:"link.link.label",component:l.Z,validate:[d.C1,d.Pv,d.u$],isFullWidth:!0}),(0,f.jsx)(o.Z,{name:"title",label:"link.title.label",component:l.Z,validate:[d.C5],isFullWidth:!0}),(0,f.jsx)(h.Z,{id:n.id,handleSubmit:x((function(e){(0,u.UN)(e)&&(n.id&&"NEW"!==n.id?function(){return r(t,n.id,e)}:function(){return s(t,e)})().then((function(){return m(t)}));y()})),onCancel:y})]})}))),_=function(e){var t=e.data,n=e.isOpen,i=e.cvId,s=e.toggleForm,o=(0,r.Z)();return n?(0,f.jsx)("div",{className:"cv-preview-item",children:(0,f.jsx)("div",{className:"cv-preview-item__form",children:(0,f.jsx)(y,{link:t,cvId:i,onCancel:s})})}):(0,f.jsxs)("div",{className:"cv-preview-item",children:[(0,f.jsxs)("div",{className:"cv-preview-item__header",children:[(0,f.jsx)("strong",{className:"cv-preview-item__title",children:t.title||t.link}),!!s&&(0,f.jsx)("button",{"aria-label":o.formatMessage({id:"cv.editButton"}),type:"button",className:"link-btn",onClick:s,children:(0,f.jsx)(a.Z,{id:"cv.editButton"})})]}),t.title&&(0,f.jsx)("p",{className:"cv-preview-item__text",children:t.link})]})};_.defaultProps={isOpen:!1,toggleForm:null};var O=_},21757:function(e,t,n){n.d(t,{Z:function(){return W}});n(69358),n(59749),n(38077),n(60228),n(81919),n(47522),n(99474);var i=n(59499),a=n(95627),r=n.n(a),s=(n(34338),n(67294)),o=n(41664),c=n.n(o),l=n(37808),d=n(55472),p=n(2664),u=n(81768),m=n(4730),v=(n(50886),n(34284),n(65137),n(71321)),h=n(69065),f=n(82929),x=n(19275),j=n(99298),b=n(3419),g=n(54847),w=n(96253),y=n(92765),_=n(85893),O=["firstName","lastName","email","dateBirth","location","imageName","
1imageId"];function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N={form:"personal-data-form",enableReinitialize:!0,keepDirtyOnReinitialize:!0,onSubmitFail:function(e){console.warn("form submit fail",e)}},C=(0,h.Z)(N)((0,p.$j)(null,{getCVPersonalData:g.XT,saveCVPersonalData:g.$x})((function(e){var t=e.cvId,n=e.data,i=e.locations,a=e.saveCVPersonalData,r=e.getCVPersonalData,o=e.initialize,c=e.handleSubmit,p=e.destroy,u=e.onCancel,h=(0,s.useState)([]),g=h[0],Z=h[1];(0,s.useEffect)((function(){var e=n.firstName,t=n.lastName,a=n.email,r=n.dateBirth,s=n.location,c=k({firstName:e,lastName:t,email:a,imageName:n.imageName,imageId:n.imageId},(0,m.Z)(n,O)),l=i.towns.map((function(e){return{value:"town[".concat(e.id,"]"),label:e.name,id:e.id}})),d=Object.keys(i.counties).map((function(e){return{value:"county[".concat(i.counties[e].id,"]"),label:i.counties[e].name}})),p=Object.keys(i.countries).map((function(e){return{value:"country[".concat(i.countries[e].id,"]"),label:i.countries[e].name}}));l.sort((function(e,t){return e.label.localeCompare(t.label)})),d.sort((function(e,t){return e.label.localeCompare(t.label)})),p.sort((function(e,t){return e.label.localeCompare(t.label)})),(0,w.iw)(l);var u,v,h,f=l;if(f=(f=f.concat(d)).concat(p),Z(f),r&&"____-__-__"!==r&&"LT"!==(0,w.ge)()?(u=r.substring(8,10),v=r.substring(5,7),h=r.substring(0,4),c.dateBirth="".concat(u,"-").concat(v,"-").concat(h)):r&&"____-__-__"!==r&&"LT"===(0,w.ge)()&&(h=r.substring(0,4),v=r.substring(5,7),u=r.substring(8,10),c.dateBirth="".concat(h,"-").concat(v,"-").concat(u)),s){c.location=s.townId?"town[".concat(s.townId,"]"):s.countyId?"county[".concat(s.countyId,"]"):"country[".concat(s.countryId,"]")}o(c)}),[o,n,i]);var N=function(){u(),p()},C=(0,w.ge)();return(0,_.jsxs)("form",{className:"cv-item-form",children:[(0,_.jsx)(v.Z,{name:"firstName",label:"personalData.firstName.label",component:f.Z,validate:[b.C1,b.C5],isFullWidth:!0}),(0,_.jsx)(v.Z,{name:"lastName",label:"personalData.lastName.label",component:f.Z,validate:[b.C1,b.C5],isFullWidth:!0}),(0,_.jsx)(v.Z,{name:"email",type:"email",label:"personalData.email.label",component:f.Z,validate:[b.C1,b.C5,b.Jh],isFullWidth:!0}),(0,_.jsx)(v.Z,{name:"phoneNumber",type:"tel",label:"personalData.phoneNumber.label",component:f.Z,validate:[b.C5,b.Mn],isFullWidth:!0}),(0,_.jsx)(v.Z,{name:"dateBirth",label:"personalData.dateBirth.label",component:f.Z,mask:"LT"===C?"9999-99-99":"99-99-9999",validate:[b.qb],isFullWidth:!0}),(0,_.jsx)(v.Z,{name:"location",component:x.Z,options:g,menuPortalTarget:document.body,styles:{menuPortal:function(e){return k(k({},e),{},{zIndex:9999})}},placeholder:(0,_.jsx)(l.Z,{id:"personalData.location.label"})}),(0,_.jsx)("br",{className:"hide-mobile"}),(0,_.jsx)(v.Z,{name:"imageId",fileName:n.imageName,fileId:n.imageId,component:j.Z,addButtonText:"personalData.addPhoto",changeButtonText:"personalData.changePhoto",accept:".jpg, .jpeg, .png",maxFileSizeInMB:5,forceCompress:!0,isSmall:!0}),(0,_.jsx)(y.Z,{handleSubmit:c((function(e){if((0,w.UN)(e)){var n=(0,d.yT)(e,i);a(t,n,(function(){return r(t)}))}N()})),onCancel:N})]})}))),P=n(95952),I=[".personal-data-preview.jsx-4273455811{display:block;}",".personal-data-preview__header.jsx-4273455811{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0 0 ".concat(P.W0.s," 0;}"),".personal-data-preview__user.jsx-4273455811{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".personal-data-preview__user-photo.jsx-4273455811{display:inline-block;vertical-align:top;width:80px;height:80px;margin:0 ".concat(P.W0.s," 0 0;border:1px solid ").concat(P.O9.grey3,";}"),".personal-data-preview__user-photo.jsx-4273455811 img,.personal-data-preview__user-photo.jsx-4273455811 svg{width:100%;height:100%;object-fit:contain;object-position:50% 50%;}",".personal-data-preview__footer.jsx-4273455811{border-top:1px solid ".concat(P.O9.grey3,";padding:").concat(P.W0.s,";margin-top:").concat(P.W0.s,";margin-bottom:-").concat(P.W0.m,";margin-left:-").concat(P.W0.m,";margin-right:-").concat(P.W0.m,";display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}"),".personal-data-preview__footer-pdf.jsx-4273455811{width:33%;padding-left:".concat(P.W0.xs,";}"),".personal-data-preview__location.jsx-4273455811{display:block;font-size:14px;color:".concat(P.O9.secondary,";}"),".personal-data-preview__contacts.jsx-4273455811{margin:".concat(P.W0.s," 0 0 0;padding:").concat(P.W0.s," 0 0 0;border-top:1px solid ").concat(P.O9.grey3,";}"),".personal-data-preview__item.jsx-4273455811{margin:0;}",".personal-data-preview__button.jsx-4273455811{margin-top:31px;}","@media screen and (max-width:".concat(P.J7.desktopCutoff,"){.personal-data-preview__header.jsx-4273455811{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.personal-data-preview__header-back.jsx-4273455811{background:").concat(P.O9.grey4,";height:70px;border-bottom:1px solid ").concat(P.O9.grey3,";width:100%;}.personal-data-preview__user.jsx-4273455811{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;
1margin-top:-70px;padding:").concat(P.W0.m," 0 ").concat(P.W0.xs,";display:block;}.personal-data-preview__user-photo.jsx-4273455811{margin-left:auto;margin-right:auto;display:block;z-index:2;}.personal-data-preview__location.jsx-4273455811{display:block;margin:0 ").concat(P.W0.m,";font-size:16px;}.personal-data-preview__cv-name.jsx-4273455811{display:block;border-top:1px solid ").concat(P.O9.grey3,";margin:").concat(P.W0.xs," ").concat(P.W0.m,";padding:").concat(P.W0.s," 0 0 0;font-weight:600;}.personal-data-preview__contacts-panel.jsx-4273455811{padding:0;}.personal-data-preview__contacts.jsx-4273455811{margin:").concat(P.W0.xs," ").concat(P.W0.m,";}}")];I.__hash="4273455811";var E=I;function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var z=function(e){return(0,_.jsx)("svg",F(F({},e),{},{children:(0,_.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,_.jsx)("path",{fill:"#FFF",stroke:"#040429",strokeOpacity:".15",d:"M.5.5h79v79H.5z"}),(0,_.jsx)("path",{fill:"#F2F2F4",d:"M1 1h78v78H1z"}),(0,_.jsx)("path",{fill:"#DADADF",d:"M0 0h80v80H0z"}),(0,_.jsx)("path",{fill:"#F2F2F4",d:"M71 94.494H9l6.475-23.681C16.738 66.196 20.875 63 25.593 63h28.814c4.717 0 8.856 3.196 10.118 7.813L71 94.493z"}),(0,_.jsx)("path",{fill:"#B3B3BE",d:"M49 63H31l9 15z"}),(0,_.jsx)("path",{fill:"#FFF",d:"M40 67c-3.519 0-6.282-2.083-5.977-4.505L35.092 54h9.816l1.069 8.495C46.282 64.917 43.519 67 40 67m17.563-26H22.437A3.447 3.447 0 0 1 19 37.563v-.126A3.447 3.447 0 0 1 22.437 34h35.126A3.447 3.447 0 0 1 61 37.437v.126A3.447 3.447 0 0 1 57.563 41"}),(0,_.jsx)("path",{fill:"#FFF",d:"M22.064 24.583c.646 7.661 2.289 9.8 2.289 17.34C24.353 50.176 31.158 56.951 40 57c8.841-.048 15.647-6.823 15.647-15.078 0-7.538 1.643-9.678 2.29-17.339C58.696 15.566 52.631 8.048 40 8c-12.632.048-18.697 7.566-17.936 16.583z"})]})}))};z.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"80",height:"80"};var D=function(e){var t=e.cvId,n=e.data,i=e.locations,a=e.cvName,s=e.isOpen,o=e.toggleForm,p=e.user,m=e.showCandidatesLink,v=e.application;return s?(0,_.jsx)(C,{cvId:t,data:n,onCancel:o,locations:i}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"jsx-".concat(E.__hash)+" personal-data-preview",children:[(0,_.jsxs)("div",{className:"jsx-".concat(E.__hash)+" personal-data-preview__header",children:[(0,_.jsx)("div",{className:"jsx-".concat(E.__hash)+" personal-data-preview__header-back hide-desktop"}),(0,_.jsxs)("div",{className:"jsx-".concat(E.__hash)+" personal-data-preview__user",children:[(0,_.jsx)("span",{className:"jsx-".concat(E.__hash)+" personal-data-preview__user-photo",children:n.imageId?(0,_.jsx)("img",{src:(0,d.WT)(p&&"EMPLOYER"===p.userType?"/cv-service/search/file/".concat(n.imageId):"/files-service/".concat(n.imageId)),alt:"".concat(n.firstName," ").concat(n.lastName),className:"jsx-".concat(E.__hash)}):(0,_.jsx)(z,{})}),(0,_.jsxs)("span",{className:"jsx-".concat(E.__hash)+" personal-data-preview__user-name",children:[n.firstName," ",n.lastName]})]})]}),(0,_.jsx)("span",{className:"jsx-".concat(E.__hash)+" personal-data-preview__cv-name hide-desktop",children:a}),n.location&&(0,_.jsxs)("span",{className:"jsx-".concat(E.__hash)+" personal-data-preview__location",children:[n.location.townName&&(0,_.jsxs)(_.Fragment,{children:[n.location.townName,",\xa0"]}),n.location.countyName&&(0,_.jsxs)(_.Fragment,{children:[n.location.countyName,",\xa0"]}),(0,_.jsx)(l.Z,{id:"country.".concat(n.location.countryIso,".label")})]}),(0,_.jsxs)("div",{className:"jsx-".concat(E.__hash)+" personal-data-preview__contacts",children:[(0,_.jsx)("p",{className:"jsx-".concat(E.__hash)+" personal-data-preview__item",children:n.phoneNumber}),(0,_.jsx)("p",{className:"jsx-".concat(E.__hash)+" personal-data-preview__item",children:(0,_.jsx)("a",{href:"mailto:".concat(n.email),className:"jsx-".concat(E.__hash),children:n.email})})]}),m&&(0,_.jsx)("div",{className:"jsx-".concat(E.__hash)+" personal-data-preview__button hide-desktop",children:(0,_.jsx)(c(),{href:"/employer/".concat(v.employerId,"/vacancy/").concat(v.vacancyId,"/applicants"),children:(0,_.jsx)(u.Z,{isSecondary:!0,isFullWidth:!0,children:(0,_.jsx)(l.Z,{id:"candidates.view.all"})})})})]}),(0,_.jsx)(r(),{id:E.__hash,children:E})]})};D.defaultProps={isOpen:!1,toggleForm:null,showCandidatesLink:!1};var W=(0,p.$j)()(D)},79501:function(e,t,n){n.d(t,{Z:function(){return E}});var i=n(59499),a=(n(34338),n(34284),n(69358),n(59749),n(38077),n(60228),n(81919),n(47522),n(99474),n(67294)),r=n(37808),s=n(86896),o=(n(752),n(76265),n(71321)),c=n(69065),l=n(82929),d=n(29701),p=n(3419),u=n(11537),m=n(66449),v=n(96253),h=n(2664),f=n(54847),x=n(92765),j=n(85893);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?b(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=function(e){return(0,j.jsx)("svg",g(g({},e),{},{children:(0,j.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,j.jsx)("path",{stroke:"#EC2359",d:"m1.537 4.5.929 13h9.068l.929-13H1.537z"}),(0,j.jsx)("path",{fill:"#EC2359",d:"M6 0h3v2h5v1H0V2h5V0h1zm0 1v1h2V1H6z"})]})}))};w.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"18"};var y=function(e){return(0,j.jsx)("svg",g(g({},e),{},{children:(0,j.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,j.jsx)("path",{fill:"#EC2359",d:"M6 0h3v2h5v1H0V2h5V0h1zm0 1v1h2V1H6zM1 4h12l-1 14H2L1 4z"}),(0,j.jsx)("path",{stroke:"#EC2359",d:"M-5-3h24v24H-5z"})]})}))};y.defaultProps={width:"14",height:"18",xmlns:"http://www.w3.org/2000/svg"};var _=function(e){return(0,j.jsx)("svg",g(g({},e),{},{children:(0,j.jsx)("path",{d:"M8 15c-3.86 0-7-3.14-7-7s3.14-7 7-7 7 3.14 7 7-3.14 7-7 7m.5-7.5V5h-1v2.5H5v1h2.5V11h1V8.5H11v-1H8.5zM8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0z",fillRule:"evenodd"})}))};_.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var O={form:"reference-form",destroyOnUnmount:!1,enableReinitialize:!0,keepDirtyOnReinitialize:!0,shouldError:function(e){return(0,v.UN)(e.values)},onSubmitSuccess:function(e,t,n){n.destroy()},onSubmitFail:function(e){console.warn("form submit fail",e)}},Z=(0,c.Z)(O)((0,h.$j)(null,{getCV:f.Yk,saveReference:f.Mg,addReference:f.O8,deleteReference:f.dc})((function(e){var t=e.cvId,n=e.reference,i=e.initialize,s=e.handleSubmit,c=e.destroy,h=e.saveReference,f=e.addReference,b=e.deleteReference,g=e.getCV,O=e.onCancel,Z=(0,a.useState)(!1),k=Z[0],N=Z[1];(0,a.useEffect)((function(){n.id&&"NEW"!==n.id?(n.recommendationText&&N(!0),i(n)):i()}),[i,n]);var C=function(){O(),c()},P=!n.id||"NEW"===n.id;return(0,j.jsxs)("form",{onSubmit:s,className:"cv-item-form",children:[(0,j.jsxs)("div",{className:"cv-item-form__header",children:[(0,j.jsx)(r.Z,{id:"reference.title"}),(0,j.jsx)(m.Z,{action:P?C:function(){n.id&&"NEW"!==n.id&&b(t,n.id).then((function(){return g(t)})),C()},textKey:"confirmation.delete.reference",primaryBtn:"confirmation.delete.label",iconMain:(0,j.jsx)(w,{}),iconActive:(0,j.jsx)(y,{})})]}),(0,j.jsx)(o.Z,{name:"name",label:"reference.name.label",component:l.Z,validate:[p.C1,p.C5],isFullWidth:!0}),(0,j.jsx)(o.Z,{name:"companyName",label:"reference.companyName.label",component:l.Z,validate:[p.C5],isFullWidth:!0}),(0,j.jsx)(o.Z,{name:"occupation",label:"reference.occupation.label",component:l.Z,validate:[p.C5],isFullWidth:!0}),(0,j.jsx)("p",{className:"group-label",children:(0,j.jsx)(r.Z,{id:"reference.contacts"})}),(0,j.jsx)(o.Z,{name:"phone",type:"tel",label:"reference.phone.label",component:l.Z,validate:[p.C5,p.Mn],isFullWidth:!0}),(0,j.jsx)(o.Z,{name:"email",type:"email",label:"reference.email.label",component:l.Z,validate:[p.C1,p.C5,p.Jh],isFullWidth:!0}),k&&(0,j.jsx)(o.Z,{name:"recommendationText",label:"reference.recommendationText.label",component:d.Z,validate:[p.mG],inputStyle:{height:90},isFullWidth:!0}),k?(0,j.jsx)("span",{}):(0,j.jsx)(u.Z,{onClick:function(){return N(!0)},children:(0,j.jsxs)("span",{className:"cv-item-form__add",children:[(0,j.jsx)(_,{}),(0,j.jsx)(r.Z,{id:"reference.addRecommendationText"})]})}),(0,j.jsx)(x.Z,{id:n.id,handleSubmit:s((function(e){(0,v.UN)(e)&&(n.id&&"NEW"!==n.id?function(){return h(t,n.id,e)}:function(){return f(t,e)})().then((function(){return g(t)}));C()})),onCancel:C})]})})));function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEac
1h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C=function(e){return(0,j.jsx)("svg",N(N({},e),{},{children:(0,j.jsx)("path",{d:"M8 1C4.14 1 1 4.14 1 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7m0 15A8 8 0 1 0 8 0a8 8 0 0 0 0 16zM5.71 9.57 5 8.861l3.095-3.095 3.139 3.14-.709.708-2.43-2.43L5.71 9.57z",fill:"none",fillRule:"evenodd"})}))};C.defaultProps={width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg"};var P=function(e){return(0,j.jsx)("svg",N(N({},e),{},{children:(0,j.jsx)("path",{d:"M8 15c-3.86 0-7-3.14-7-7s3.14-7 7-7 7 3.14 7 7-3.14 7-7 7M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.71 6.43 5 7.139l3.095 3.095 3.139-3.14-.709-.708-2.43 2.43L5.71 6.43z",fillRule:"evenodd"})}))};P.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var I=function(e){var t=(0,a.useState)(!1),n=t[0],i=t[1],o=e.data,c=e.isOpen,l=e.cvId,d=e.toggleForm,p=(0,s.Z)(),u=o.occupation&&o.companyName?"".concat(o.occupation," \u2014 ").concat(o.companyName):o.occupation||o.companyName;return c?(0,j.jsx)("div",{className:"cv-preview-item",children:(0,j.jsx)("div",{className:"cv-preview-item__form",children:(0,j.jsx)(Z,{reference:o,cvId:l,onCancel:d})})}):(0,j.jsxs)("div",{className:"cv-preview-item",children:[(0,j.jsxs)("div",{className:"cv-preview-item__header",children:[(0,j.jsx)("strong",{className:"cv-preview-item__title",children:o.name}),!!d&&(0,j.jsx)("button",{"aria-label":p.formatMessage({id:"cv.editButton"}),type:"button",className:"link-btn",onClick:d,children:(0,j.jsx)(r.Z,{id:"cv.editButton"})})]}),u&&(0,j.jsx)("p",{className:"cv-preview-item__text",children:u}),o.phone&&(0,j.jsx)("p",{className:"cv-preview-item__text",children:o.phone}),o.email&&(0,j.jsx)("p",{className:"cv-preview-item__text",children:(0,j.jsx)("a",{href:"mailto:".concat(o.email),children:o.email})}),o.recommendationText&&(0,j.jsxs)("p",{className:"cv-preview-item__text",children:[n?(0,j.jsx)("div",{children:o.recommendationText}):"",(0,j.jsx)("button",{type:"button",className:"link-btn",onClick:function(){i(!n)},children:n?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(C,{}),(0,j.jsx)(r.Z,{id:"pagination.show.less"})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(P,{}),(0,j.jsx)(r.Z,{id:"pagination.show.more"})]})})]})]})};I.defaultProps={isOpen:!1,toggleForm:null};var E=I},16566:function(e,t,n){n.d(t,{Z:function(){return _}});n(50886);var i=n(67294),a=n(52934),r=(n(69358),n(59749),n(81919),n(47522),n(99474),n(90116)),s=n(59499),o=(n(34338),n(38077),n(60228),n(37808)),c=n(69065),l=n(31767),d=n(96253),p=n(95048),u=n(2664),m=n(54847),v=n(34244),h=n(92765),f=n(85893);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=function(e){var t=e.cv,n=e.selectedSkills,a=e.positions,s=e.data,c=e.isToDevelop,l=e.getCV,u=e.updateSkills,m=e.updateCvSkillsPredictions,v=e.initialize,x=e.handleSubmit,b=e.destroy,g=e.onCancel,w=function(e){var n={};if(e&&e.length>0)n={skills:e.map((function(e){return e.label}))};else if(t.skills&&t.skills.length>0){n={skills:t.skills.map((function(e){return e.value}))}}else n=a?{positionNames:a}:t;m(n)};(0,i.useEffect)((function(){var e=s.map((function(e){return j(j({},e),{},{value:e.key||e.value,label:e.value})}));v({skills:e}),w(e)}),[s,v]);var y=function(){g(),b()};return(0,f.jsxs)("form",{className:"cv-item-form",children:[(0,f.jsx)(p.Z,{fieldName:"skills",placeholder:(0,f.jsx)(o.Z,{id:"skills.skill.label"}),addSkill:function(t){var i=[].concat((0,r.Z)(n),[j(j({},t),{},{value:t.key||t.value,label:t.value})]);e.change("skills",i)},removeSkill:function(e){w(n.filter((function(t){return t.id!==e})))},positionValuesForSkillSuggestions:a,allData:t,withSuggestions:!0,type:"CV_SKILLS"}),(0,f.jsx)(h.Z,{handleSubmit:x((function(e){(0,d.UN)(e)&&u(t.id,e.skills,c).then((function(){return l(t.id)})),y()})),onCancel:y})]})},g={form:"skills-form",enableReinitialize:!0,keepDirtyOnReinitialize:!0,onSubmitFail:function(e){console.warn("form submit fail",e)}};b.defaultProps={positions:null,selectedSkills:null,isToDevelop:!1};var w=(0,c.Z)(g)((0,u.$j)((function(e){return{selectedSkills:(0,l.Z)("skills-form")(e,"skills"),skillsSuggestions:e.suggestions.cvSkillsSuggestions,skillsSuggestionStatistics:e.suggestions.cvSkillsSuggestionStatistics}}),{getCV:m.Yk,addSkill:m.v7,removeSkill:m.Jt,updateSkills:m.MU,updateCvSkillsPredictions:v.H1,setSkillSuggestionAccepted:v.KV})(b)),y=function(e){var t=e.data,n=e.isOpen,i=e.toggleForm,r=e.cv,s=e.sectionId;return n?(0,f.jsx)("div",{className:"cv-preview-item",children:(0,f.jsx)("div",{className:"cv-preview-item__form",children:(0,f.jsx)(w,{cv:r,data:t,onCancel:i,isToDevelop:"expectations-skills"===s})})}):(0,f.jsx)("div",{className:"cv-preview-item",children:t.map((function(e){return(0,f.jsx)(a.Z,{data:e},"skill-".concat(e.id))}))})};y.defaultProps={isOpen:!1,toggleForm:null};var _=y},31501:function(e,t,n){n.d(t,{Z:function(){return N}});var i=n(67294),a=n(37808),r=n(86896),s=n(96253),o=(n(59749),n(38077),n(81919),n(47522),n(99474),n(59499)),c=n(4730),l=(n(69358),n(752),n(60228),n(76265),n(71321)),d=n(69065),p=n(82929),u=n(3419),m=n(66449),v=n(2664),h=n(54847),f=n(55472),x=n(92765),j=n(85893),b=["dateOfIssue"];function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?g(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=function(e){return(0,j.jsx)("svg",w(w({},e),{},{children:(0,j.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,j.jsx)("path",{stroke:"#EC2359",d:"m1.537 4.5.929 13h9.068l.929-13H1.537z"}),(0,j.jsx)("path",{fill:"#EC2359",d:"M6 0h3v2h5v1H0V2h5V0h1zm0 1v1h2V1H6z"})]})}))};y.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"18"};var _=function(e){return(0,j.jsx)("svg",w(w({},e),{},{children:(0,j.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,j.jsx)("path",{fill:"#EC2359",d:"M6 0h3v2h5v1H0V2h5V0h1zm0 1v1h2V1H6zM1 4h12l-1 14H2L1 4z"}),(0,j.jsx)("path",{stroke:"#EC2359",d:"M-5-3h24v24H-5z"})]})}))};_.defaultProps={width:"14",height:"18",xmlns:"http://www.w3.org/2000/svg"};var O={form:"training-form",destroyOnUnmount:!1,enableReinitialize:!0,keepDirtyOnReinitialize:!0,shouldError:function(e){return Object.keys(e.values).length>0},onSubmitSuccess:function(e,t,n){n.destroy()},onSubmitFail:function(e){console.warn("form submit fail",e)}},Z=(0,d.Z)(O)((0,v.$j)(null,{getCV:h.Yk,saveTraining:h.xT,addTraining:h.JF,deleteTraining:h.C_})((function(e){var t=e.cvId,n=e.training,r=e.initialize,o=e.handleSubmit,d=e.saveTraining,v=e.addTraining,h=e.deleteTraining,g=e.getCV,O=e.onCancel,Z=e.destroy;(0,i.useEffect)((function(){if(n.id&&"NEW"!==n.id){var e=n.dateOfIssue,t=w({},(0,c.Z)(n,b));e&&(t.dateOfIssue=e.substring(0,4)),r(t)}else r()}),[n,r]);var k=function(){O(),Z()},N=!n.id||"NEW"===n.id;return(0,j.jsxs)("form",{className:"cv-item-form",children:[(0,j.jsxs)("div",{className:"cv-item-form__header",children:[(0,j.jsx)(a.Z,{id:"training.title.value"}),(0,j.jsx)(m.Z,{action:N?k:function(){n.id&&"NEW"!==n.id&&h(t,n.id).then((function(){return g(t)})),k()},textKey:"confirmation.delete.training",primaryBtn:"confirmation.delete.label",iconMain:(0,j.jsx)(y,{}),iconActive:(0,j.jsx)(_,{})})]}),(0,j.jsx)(l.Z,{name:"title",label:"training.title.label",component:p.Z,validate:[u.C1,u.C5],isFullWidth:!0}),(0,j.jsx)(l.Z,{name:"organizationName",label:"training.organizationName.label",component:p.Z,validate:[u.C5],isFullWidth:!0}),(0,j.jsx)(l.Z,{name:"location",label:"training.location.label.".concat((0,s.ge)()),component:p.Z,validate:[u.C5],isFullWidth:!0}),(0,j.jsx)(l.Z,{name:"dateOfIssue",label:"training.dateOfIssue.label",component:p.Z,validate:[u.ZP,u.Ti],mask:"9999",isFullWidth:!0}),(0,j.jsx)(x.Z,{id:n.id,handleSubmit:o((function(e){if((0,s.UN)(e)){var i=(0,f.GG)(e);(n.id&&"NEW"!==n.id?function(){return d(t,n.id,i)}:function(){return v(t,i)})().then((function(){return g(t)}))}k()})),onCancel:k})]})}))),k=function(e){var t=e.data,n=e.isOpen,i=e.cvId,o=e.toggleForm,c=(0,r.Z)();return n?(0,j.jsx)("div",{className:"cv-preview-item",children:(0,j.jsx)("div",{className:"cv-preview-item__form",children:(0,j.jsx)(Z,{training:t,cvId:i,onCancel:o})})}):(0,j.jsxs)("div",{className:"cv-preview-item",children:[(0,j.jsxs)("div",{className:"cv-preview-item__header",children:[(0,j.jsx)("strong",{className:"cv-preview-item__title",children:t.title}),!!o&&(0,j.jsx)("button",{"aria-label":c.formatMessage({id:"cv.editButton"}),type:"button",className:"link-btn",onClick:o,children:(0,j.jsx)(a.Z,{id:"cv.editButton"})})]}),(0,j.jsx)("p",{className:"cv-preview-item__text",children:t.organizationName}),t.dateOfIssue&&(0,j.jsxs)("span",{className:"cv-preview-item__text cv-preview-item__text--secondary",children:[(0,s.fY)(t.dateOfIssue),t.dateOfIssue&&t.location?", ":""]}),t.location&&(0,j.jsx)("span",{className:"cv-preview-item__text cv-preview-item__text--secondary",children:t.location})]})};k.defaultProps={isOpen:!1,toggleForm:null};var N=k},99972:function(e,t,n){n.d(t,{Z:function(){return H}});n(69358),n(59749),n(38077),n(60228),n(81919),n(47522),n(99474);var i=n(59499),a=n(95627),r=n.n(a),s=(n(89730),n(34338),n(50886),n(34284),n(67294)),o=n(37808),c=n(19723),l=n(41664),d=n.n(l),p=n(93967),u=n.n(p),m=n(96994),v=n(40792),h=n(83563),f=n(2491),x=n(81768),j=n(22452),b=n(90116),g=n(4730),w=n(86896),y=(n(79288),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.singleForm,i=void 0!==n&&n;if(Array.isArray(e))return 0===e.length;if(!i)return!1;if(!e||"object"!==typeof e)return!0;
1if("minimumSalary"in e||"minimumSalaryHidden"in e){var a=e;return!(Number(a.minimumSalary)>0)}return 0===Object.keys(e).length}),_=n(87),O=n(85893),Z=["cvId","sectionId","sectionTitle","addButtonTitle","sectionData","ItemComponent","wrapContent","singleForm","isEdit","applicantQuestions","applicantAnswers","isEmployer"];function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C=function(e){return(0,O.jsx)("svg",N(N({},e),{},{children:(0,O.jsx)("path",{d:"M8 15c-3.86 0-7-3.14-7-7s3.14-7 7-7 7 3.14 7 7-3.14 7-7 7m.5-7.5V5h-1v2.5H5v1h2.5V11h1V8.5H11v-1H8.5zM8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0z",fillRule:"evenodd"})}))};C.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var P=function(e){return(0,O.jsx)("svg",N(N({},e),{},{children:(0,O.jsx)("path",{d:"M8 15c-3.86 0-7-3.14-7-7s3.14-7 7-7 7 3.14 7 7-3.14 7-7 7M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.71 6.43 5 7.139l3.095 3.095 3.139-3.14-.709-.708-2.43 2.43L5.71 6.43z",fill:"none",fillRule:"evenodd"})}))};P.defaultProps={width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg"};var I=function(e){return(0,O.jsx)("svg",N(N({},e),{},{children:(0,O.jsx)("path",{d:"M8 15c-3.86 0-7-3.14-7-7s3.14-7 7-7 7 3.14 7 7-3.14 7-7 7M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.71 9.804l2.386-2.386 2.43 2.43.708-.71L8.094 6 5 9.095l.71.71z",fill:"none",fillRule:"evenodd"})}))};I.defaultProps={width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg"};var E=function(e){var t,n=e.cvId,i=e.sectionId,a=e.sectionTitle,c=e.addButtonTitle,l=e.sectionData,d=e.ItemComponent,p=e.wrapContent,u=e.singleForm,m=e.isEdit,v=e.applicantQuestions,h=e.applicantAnswers,f=e.isEmployer,x=(0,g.Z)(e,Z),j=(0,s.useState)(!1),k=j[0],E=j[1],S=(0,s.useState)(null),F=S[0],z=S[1],D=(0,w.Z)(),W=function(e){z(F===e?null:e)},M=function(){W(u?i:"NEW")},V=Array.isArray(l);if(!F&&y(l,{singleForm:u}))return m?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{className:"jsx-".concat(_.Z.__hash)+" cv-section-preview",children:(0,O.jsx)("div",{className:"jsx-".concat(_.Z.__hash)+" cv-section-preview__header",children:(0,O.jsxs)("button",{"aria-label":D.formatMessage({id:c}),type:"button",onClick:M,className:"jsx-".concat(_.Z.__hash)+" link-btn",children:[(0,O.jsx)(C,{}),(0,O.jsx)(o.Z,{id:c})]})})}),(0,O.jsx)(r(),{id:_.Z.__hash,children:_.Z})]}):null;if(!V||u)t=(0,O.jsx)(d,N({sectionId:i,data:l,toggleForm:m?function(){return W(i)}:null,isOpen:F===i,cvId:n,applicantQuestions:v,applicantAnswers:h,isEmployer:f},x));else{var T=l.length>3&&!k?l.slice(0,3):l;"NEW"===F&&(T=[{id:"NEW"}].concat((0,b.Z)(T))),t=T.map((function(e,t){return(0,O.jsx)(d,N({data:e,toggleForm:m?function(){return W(e.id)}:null,isOpen:F===e.id,cvId:n},x),e.id||t)}))}var H="NEW"===F||F===i,L=V&&c?c:"cv.editButton";return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"jsx-".concat(_.z.__hash," jsx-").concat(_.Z.__hash)+" cv-section-preview",children:[(0,O.jsxs)("div",{className:"jsx-".concat(_.z.__hash," jsx-").concat(_.Z.__hash)+" cv-section-preview__header",children:[(0,O.jsx)("h2",{className:"jsx-".concat(_.z.__hash," jsx-").concat(_.Z.__hash)+" cv-section-preview__title",children:(0,O.jsx)(o.Z,{id:a})}),m&&(0,O.jsx)("button",{"aria-label":D.formatMessage({id:H?"cancel":L}),type:"button",onClick:M,className:"jsx-".concat(_.z.__hash," jsx-").concat(_.Z.__hash)+" link-btn",children:(0,O.jsx)(o.Z,{id:H?"cancel":L})})]}),p?(0,O.jsx)("div",{className:"jsx-".concat(_.z.__hash," jsx-").concat(_.Z.__hash)+" cv-section-preview__content",children:t}):t,!u&&Array.isArray(l)&&l.length>3&&(0,O.jsx)("div",{className:"jsx-".concat(_.z.__hash," jsx-").concat(_.Z.__hash)+" cv-section-preview__footer",children:(0,O.jsx)("button",{type:"button",onClick:function(){return E(!k)},className:"jsx-".concat(_.z.__hash," jsx-").concat(_.Z.__hash)+" link-btn",children:k?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(I,{}),(0,O.jsx)(o.Z,{id:"cv.show.less"})]}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(P,{}),(0,O.jsx)(o.Z,{id:"cv.show.more",values:{value:l.length-3}})]})})})]}),(0,O.jsx)(r(),{id:_.z.__hash,children:_.z}),(0,O.jsx)(r(),{id:_.Z.__hash,children:_.Z})]})};E.defaultProps={wrapContent:!1,singleForm:!1,contactHidden:!1,isEdit:!1,isEmployer:!1,applicantQuestions:[],applicantAnswers:[]};var S=E,F=n(95952),z=[".cv-page.jsx-3480658057{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}",".cv-page__additional.jsx-3480658057{padding:12px 12px 0 0;z-index:2;}",".cv-page.jsx-3480658057 .react-tabs__tab-list{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".cv-page__content.jsx-3480658057{min-width:50vw;}",".cv-page__content--two-column.jsx-3480658057{width:66%;margin-right:".concat(F.W0.m,";min-width:unset;border:1px solid ").concat(F.O9.grey3,";border-radius:2px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}"),".cv-page__sidebar.jsx-3480658057{width:33%;position:-webkit-sticky;position:sticky;top:10px;}",".cv-page__sidebar-wrapper.jsx-3480658057{border:1px solid ".concat(F.O9.grey3,";border-radius:2px;}"),".cv-page__sidebar-button.jsx-3480658057{margin-top:24px;}",".cv-page__sidebar-content.jsx-3480658057{padding:".concat(F.W0.m,";}"),".cv-page__sidebar-footer.jsx-3480658057{border-top:1px solid ".concat(F.O9.grey3,";padding:").concat(F.W0.s,";display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}"),".cv-page__sidebar-footer-pdf.jsx-3480658057{width:33%;}",".cv-page__sidebar-footer-pdf--first.jsx-3480658057{padding-left:".concat(F.W0.xs,";}"),"@media screen and (max-width:".concat(F.J7.desktopCutoff,"){.cv-page__tab-first{-webkit-order:-1 !important;-ms-flex-order:-1 !important;order:-1 !important;}.cv-page.jsx-3480658057{display:block;}.cv-page__footer-pdf.jsx-3480658057{width:33%;padding-left:").concat(F.W0.xs,";}.cv-page__footer.jsx-3480658057{background-color:#fff;bottom:0;left:0;right:0;padding:").concat(F.W0.s," ").concat(F.W0.l,";z-index:100;border:none;border-top:1px solid ").concat(F.O9.grey3,";position:fixed;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:58px;}.cv-page__content.jsx-3480658057{width:100%;border-left:0;border-right:0;border-radius:0;}.cv-page__additional-icon.jsx-3480658057{display:block;}}")];z.__hash="3480658057";var D=z;function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?W(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}[".cv-preview-application__letter-header.jsx-3885882996{margin-bottom:".concat(F.W0.m,";}"),".cv-preview-application__letter-button.jsx-3885882996{margin-top:".concat(F.W0.s,";}"),".cv-preview-application__letter-button-content.jsx-3885882996{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".cv-preview-application__letter-button-content.jsx-3885882996>svg{margin-right:".concat(F.W0.xs,";}"),".cv-preview-application__files-header.jsx-3885882996{margin-bottom:".concat(F.W0.s,";}"),".cv-preview-application__files-item.jsx-3885882996{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".cv-preview-application__files-item.jsx-3885882996>svg{margin-right:".concat(F.W0.xxs,";}"),".cv-preview-application__letter-content.jsx-3885882996{overflow-wrap:break-word;}","@media screen and (max-width:".concat(F.J7.desktopCutoff,"){.cv-preview-application__letter-content.jsx-3885882996{inline-size:330px;overflow-wrap:break-word;}}")].__hash="3885882996";var V=function(e){return(0,O.jsx)("svg",M(M({},e),{},{children:(0,O.jsx)("path",{d:"M.53 2.49c0-.85.676-1.54 1.51-1.54s1.51.69 1.51 1.54c0 .85-.676 1.54-1.51 1.54S.53 3.34.53 2.49zm0 6.5c0-.85.676-1.54 1.51-1.54s1.51.69 1.51 1.54c0 .85-.676 1.54-1.51 1.54S.53 9.84.53 8.99zm0 6.5c0-.85.676-1.54 1.51-1.54s1.51.69 1.51 1.54c0 .85-.676 1.54-1.51 1.54S.53 16.34.53 15.49z",fillRule:"evenodd"})}))};V.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"4",height:"19"};var T=function(e){var t=e.cv,n=e.user,i=e.isEdit,a=e.sections,l=e.condensed,p=e.isEmployer,b=e.application,g=e.isPdfLoading,w=e.downloadCVPDF,y=e.sidebarContent,_=e.pdfLocale,Z=e.applicantQuestions,k=e.applicantAnswers,N=e.showCandidatesLink;if(!t||!t.id)return null;
1var C=(0,s.useState)(0),P=C[0],I=C[1],E=function(e){return(0,O.jsx)(S,M(M({sectionId:e.id,sectionTitle:e.sectionTitle||"cv.".concat(e.title,".title"),addButtonTitle:e.addButtonTitle||"cv.".concat(e.title,".add"),sectionData:e.data,singleForm:e.singleForm,ItemComponent:e.ItemComponent,cvId:t.id,isEdit:i,user:n},e.additional),{},{application:b,applicationId:b.id,applicantQuestions:Z,applicantAnswers:k,isEmployer:p,showCandidatesLink:N}),"section-".concat(e.id))},F=b.motivationLetter,z=b.files,W=!!F||!!z,T=[{id:"application",type:"button",label:(0,O.jsx)(o.Z,{id:"cv.sections.application"}),action:function(){return I(4)}},{id:"additional",type:"button",label:(0,O.jsx)(o.Z,{id:"cv.sections.additional"}),action:function(){return I(3)}}],H=W?T:T.slice(-1),L=u()({"cv-page__content":!0,"cv-page__content--two-column":!l}),R=["main","expectations","additional"],B=["contacts"].concat(R);return l&&R.push("contacts"),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"jsx-".concat(v.Z.__hash," jsx-").concat(D.__hash)+" cv-page hide-mobile",children:[(0,O.jsxs)("div",{className:"jsx-".concat(v.Z.__hash," jsx-").concat(D.__hash)+" "+(L||""),children:[(0,O.jsxs)(c.mQ,{children:[(0,O.jsxs)(c.td,{children:[R.map((function(e){return(0,O.jsx)(c.OK,{children:(0,O.jsx)(o.Z,{id:"cv.sections.".concat(e)})},"tab-".concat(e))})),W&&(0,O.jsx)(c.OK,{children:(0,O.jsx)(o.Z,{id:"cv.sections.application"})})]}),R.map((function(e){return(0,O.jsx)(c.x4,{children:a[e].content.map((function(e){return E(e)}))},"panel-".concat(e))})),W&&(0,O.jsx)(c.x4,{children:(0,O.jsx)(h.Z,{uuid:b.uuid,user:n,files:b.files,applicationId:b.id,motivationLetter:b.motivationLetter})})]}),(0,O.jsx)(j.Z,{footer:!0,showLabel:!0,user:n})]}),!l&&(0,O.jsxs)("div",{className:"jsx-".concat(v.Z.__hash," jsx-").concat(D.__hash)+" cv-page__sidebar hide-mobile",children:[(0,O.jsxs)("div",{className:"jsx-".concat(v.Z.__hash," jsx-").concat(D.__hash)+" cv-page__sidebar-wrapper",children:[y||(0,O.jsx)("div",{className:"jsx-".concat(v.Z.__hash," jsx-").concat(D.__hash)+" cv-page__sidebar-content",children:a.contacts.content.map((function(e){return E(e)}))}),b&&b.pdfUrl&&(0,O.jsx)("div",{className:"jsx-".concat(v.Z.__hash," jsx-").concat(D.__hash)+" cv-page__sidebar-footer",children:(0,O.jsx)("span",{className:"jsx-".concat(v.Z.__hash," jsx-").concat(D.__hash)+" cv-page__sidebar-footer-pdf",children:(0,O.jsx)(f.Z,{pdfLocale:_,link:b.pdfUrl,isPdfLoading:g,downloadCVPDF:w,cvName:p?"".concat(t.personalData.firstName," ").concat(t.personalData.lastName):t.name})})})]}),N&&(0,O.jsx)("div",{className:"jsx-".concat(v.Z.__hash," jsx-").concat(D.__hash)+" cv-page__sidebar-button",children:(0,O.jsx)(d(),{href:"/employer/".concat(b.employerId,"/vacancy/").concat(b.vacancyId,"/applicants"),children:(0,O.jsx)(x.Z,{isSecondary:!0,isFullWidth:!0,children:(0,O.jsx)(o.Z,{id:"candidates.view.all"})})})})]})]}),(0,O.jsxs)("div",{className:"jsx-".concat(v.Z.__hash," jsx-").concat(D.__hash)+" cv-page hide-desktop",children:[(0,O.jsxs)(c.mQ,{selectedIndex:P,onSelect:function(e){return I(e)},children:[(0,O.jsx)(c.td,{children:B.map((function(e){return"additional"===e?(0,O.jsx)("div",{className:"jsx-".concat(v.Z.__hash," jsx-").concat(D.__hash)+" cv-page__additional",children:(0,O.jsx)(m.Z,{items:H,menuIcon:(0,O.jsx)(V,{}),down:!0})},"select-".concat(e)):(0,O.jsx)(c.OK,{children:(0,O.jsx)(o.Z,{id:"cv.sections.".concat(e)})},"tab-".concat(e))}))}),B.map((function(e){return(0,O.jsx)(c.x4,{children:a[e].content.map((function(e){return E(e)}))},"panel-".concat(e))})),W&&(0,O.jsx)(c.x4,{children:(0,O.jsx)(h.Z,{user:n,uuid:b.uuid,files:b.files,applicationId:b.id,motivationLetter:b.motivationLetter})})]}),(0,O.jsx)(j.Z,{footer:!0,showLabel:!0,user:n}),b&&b.pdfUrl&&(0,O.jsx)("div",{className:"jsx-".concat(v.Z.__hash," jsx-").concat(D.__hash)+" cv-page__footer",children:(0,O.jsx)("span",{className:"jsx-".concat(v.Z.__hash," jsx-").concat(D.__hash)+" personal-data-preview__footer-pdf personal-data-preview__footer-pdf--first",children:(0,O.jsx)(f.Z,{pdfLocale:_,link:b.pdfUrl,isPdfLoading:g,downloadCVPDF:w,cvName:p?"".concat(t.personalData.firstName," ").concat(t.personalData.lastName):t.name})})})]}),(0,O.jsx)(r(),{id:v.Z.__hash,children:v.Z}),(0,O.jsx)(r(),{id:D.__hash,children:D})]})};T.defaultProps={user:null,isEdit:!1,application:{},condensed:!1,isEmployer:!1,isPdfLoading:!1,sidebarContent:null,downloadCVPDF:void 0,pdfLocale:void 0,applicantQuestions:[],applicantAnswers:[],showCandidatesLink:!1};var H=T},75745:function(e,t,n){n.d(t,{g:function(){return h}});n(34284),n(50886),n(86466);var i=n(21757),a=n(719),r=n(46094),s=n(31002),o=n(80258),c=n(45448),l=n(16566),d=n(83531),p=n(31501),u=n(79501),m=n(22955),v=n(31559),h=function(e,t,n){return{contacts:{content:[{id:"personal-data",title:"personalData",addButtonTitle:"cv.editButton",data:e.personalData,additional:{locations:n,cvName:e.name,cvId:e.id},ItemComponent:i.Z,singleForm:!0}]},main:{content:[{id:"work-experience",title:"workExperience",data:e.experiences,ItemComponent:a.Z},{id:"education",title:"education",data:e.educations,ItemComponent:r.Z},{id:"driving-licenses",title:"driving.licenses",data:e.licences.driversLicences.length>0?e.licences.driversLicences:[],ItemComponent:s.Z,singleForm:!0},{id:"licenses",title:"licenses",data:e.licences.licencesCertificates,ItemComponent:o.Z},{id:"languages",title:"languages",data:e.languages,additional:{availableLanguages:t},ItemComponent:c.Z,singleForm:!0},{id:"skills",title:"skills",data:e.skills,additional:{positions:e.experiences.map((function(e){return e.positionName})),cv:e}
1,ItemComponent:l.Z,singleForm:!0}]},expectations:{content:[{id:"expectations-categories",title:"expectations.categories",data:e.expectations.categories,ItemComponent:d.Z,singleForm:!0},{id:"expectations-positions",title:"expectations.positions",data:e.expectations.positions,ItemComponent:d.Z,singleForm:!0},{id:"expectations-skills",title:"expectationsSkills",data:e.skillsToDevelop,additional:{positions:Object.values(e.expectations.positions),cv:e},ItemComponent:l.Z,singleForm:!0},{id:"expectations-work-times",title:"expectationsWorkType",data:e.expectations.workTimes,ItemComponent:d.Z,addButtonTitle:"cv.expectationsWorkType.title",singleForm:!0},{id:"expectations-locations",title:"expectationsLocations",data:e.expectations.locations,additional:{locations:n},ItemComponent:d.Z,addButtonTitle:"cv.expectationsLocations.title",singleForm:!0},{id:"expectations-salary",title:"expectationsSalary",sectionTitle:"cv.expectationsSalary.title.label",data:{minimumSalary:e.expectations.minimumSalary,minimumSalaryHidden:e.expectations.minimumSalaryHidden},ItemComponent:d.Z,singleForm:!0}]},additional:{content:[{id:"trainings",title:"trainings",data:e.trainings,ItemComponent:p.Z},{id:"references",title:"references",data:e.references,ItemComponent:u.Z},{id:"links",title:"links",data:e.links,ItemComponent:m.Z},{id:"files",title:"files",data:e.cvFiles,ItemComponent:v.Z,singleForm:!0}]}}}}}]);

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.