1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="ca1a6af8-df70-4e64-9dda-d0e58f55c386",e._sentryDebugIdIdentifier="sentry-dbid-ca1a6af8-df70-4e64-9dda-d0e58f55c386")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6908],{33072:function(e,l,i){i.d(l,{F:function(){return a}});var t=i(3926),n=i(8406),s=i(65998);let a={getOffre:async(e,l)=>await (0,t.Z)((0,n.hR)(e,"".concat("https://api.carrevolutis.com","/offres/").concat(l),{method:"get"})),getListOffre:async(e,l)=>{let{page:i,order:a,limit:o=0,search:r=s.W.search,contrats:c="all",xp:d="all",etudes:m="all",langues:p="all",idsCompetences:u="all",idsMetiers:x="all",pays:f="all",localisations:h="all",secteurs:g="all",typesSociete:v="all",rayon:b,societeId:j=0,pageId:y=0,isSearchRestricted:N=!0,history:Z,companySize:w="all",specializedSectors:k="all",eventsHighlightedOn:C="all",handiLevels:S="all"}=l;return await (0,t.Z)((0,n.hR)(e,"https://api.carrevolutis.com/offres",{method:"post",body:JSON.stringify({page:i,order:a,limit:o,search:r,contrats:c,xp:d,etudes:m,langues:p,idsCompetences:u,idsMetiers:x,pays:f,localisations:h,secteurs:g,typesSociete:v,rayon:b,societeId:j,pageId:y,isSearchRestricted:N,history:Z,companySize:w,specializedSectors:k,eventsHighlightedOn:C,handiLevels:S}),headers:{"Content-Type":"application/json"}}))},saveSearchOffres:async(e,l,i,s,a,o)=>{if(""!==e)return await (0,t.Z)((0,n.hR)(e,"https://api.carrevolutis.com/offres/search/add",{method:"post",body:JSON.stringify({localisationFilter:l,contratFilter:i,advancedFilter:s,searchFilter:a,isSearchRestricted:o}),headers:{"Content-Type":"application/json"}}))},saveUnregisteredSearchOffres:async(e,l,i,s)=>{let{localisation:a,contrat:o,advanced:r,search:c,isSearchRestricted:d}=i;return await (0,t.Z)((0,n.hR)(e,"".concat("https://api.carrevolutis.com","/offres/search/add"),{method:"post",body:JSON.stringify({email:l,localisationFilter:a,contratFilter:o,advancedFilter:r,searchFilter:c,isSearchRestricted:d,captchaToken:s}),headers:{"Content-Type":"application/json"}}))},getSocietesQuiRecrutent:async e=>await (0,t.Z)((0,n.yP)(e,"https://api.carrevolutis.com/offres/societesQuiRecrutent",{method:"get",headers:{"Content-Type":"application/json"}})),getSearchOffres:async function(e,l){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=new URLSearchParams;return s.append("count",i.toString()),l&&s.append("alertToken",l),await (0,t.Z)((0,n.hR)(e||"","".concat("https://api.carrevolutis.com","/offres/search/list?").concat(s.toString()),{method:"get",headers:{"Content-Type":"application/json"}}))},getListOffresPourVous:async function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return await (0,t.Z)((0,n.hR)(e,"https://api.carrevolutis.com/offres/pourvous?count="+l,{method:"get",headers:{"Content-Type":"application/json"}}))},getMesCandidatures:async e=>await (0,t.Z)((0,n.hR)(e,"https://api.carrevolutis.com/settings/mes-candidatures",{method:"get"})),getOffresByMetier:async e=>await (0,t.Z)((0,n.hR)(e,"https://api.carrevolutis.com/offres/pourvousByMetier",{method:"get",headers:{"Content-Type":"application/json"}})),setAlerteSearchOffre:async(e,l,i,s)=>{let a={idRecherche:l,alerteEmail:i};return s&&(a.alertToken=s),await (0,t.Z)((0,n.hR)(e,"https://api.carrevolutis.com/offres/search/alerteEmail",{method:"post",body:JSON.stringify(a),headers:{"Content-Type":"application/json"}}))},deleteSearchOffre:async(e,l,i)=>{let s={offreRechercheId:l};return i&&(s.alertToken=i),await (0,t.Z)((0,n.hR)(e,"https://api.carrevolutis.com/offres/search/delete",{method:"post",body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}))},editSearchOffer:async(e,l)=>{if(""!==e)return l.alertToken||delete l.alertToken,await (0,t.Z)((0,n.hR)(e,"https://api.carrevolutis.com/offres/search/edit",{method:"post",body:JSON.stringify(l),headers:{"Content-Type":"application/json"}}))},setVueSearch:async(e,l,i)=>{let s={idRecherche:l};return i&&(s.alertToken=i),await (0,t.Z)((0,n.hR)(e,"".concat("https://api.carrevolutis.com","/offres/search/vue"),{method:"post",body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}))},apply:async(e,l)=>{if(""!==e)return await (0,t.Z)((0,n.hR)(e,"https://api.carrevolutis.com/offres/appl
1y",{method:"post",body:JSON.stringify({idOffre:l}),headers:{"Content-Type":"application/json"}}))},addeditFirstSearchOffre:async(e,l)=>{if(""!==e)return await (0,t.Z)((0,n.hR)(e,"https://api.carrevolutis.com/offres/search/addeditAfterInscription",{method:"post",body:JSON.stringify(l),headers:{"Content-Type":"application/json"}}))},clic:async(e,l)=>{if(""!==e)return await (0,t.Z)((0,n.hR)(e,"https://api.carrevolutis.com/offres/clic",{method:"post",body:JSON.stringify({idOffre:l}),headers:{"Content-Type":"application/json"}}))},getOffersWidget:async(e,l)=>{let{nbOffers:i,tags:t}=l,n=new URLSearchParams;return n.append("nbOffers",i.toString()),t.forEach(e=>n.append("tags[]",e)),await fetch("https://api.carrevolutis.com/offres/widget?"+n.toString(),{method:"get",headers:{"Content-Type":"application/json",authorization:"Api-key "+e}})},triggerAlternanceEvent:async(e,l)=>{if(""!==e)return await (0,t.Z)((0,n.hR)(e,"https://api.carrevolutis.com/offres/clicAlternanceOffer",{method:"post",body:JSON.stringify({idOffre:l}),headers:{"Content-Type":"application/json"}}))}}},13995:function(e,l,i){i.d(l,{Z:function(){return p}});var t=i(74817);i(71248);var n=i(26873),s=i(19418),a=i(3175),o=i(49309),r=i(38746),c=i(99189),d=i(19249),m=e=>{let{title:l,onSubmit:i,children:n,cancelText:m,confirmText:p}=e,{handleClose:u}=(0,o.vR)(),{t:x}=(0,d.Z)();return(0,t.jsxs)(s.wD,{children:[(0,t.jsxs)(s.sk,{children:[(0,t.jsx)(s.tm,{children:(0,t.jsxs)(s.z8,{children:[(0,t.jsx)(a.G,{icon:["fas","exclamation-triangle"],className:"mr-1",style:{color:r.colors.error}}),l]})}),(0,t.jsxs)(s.D7,{onClick:u,children:[(0,t.jsx)(a.G,{icon:["far","times"]}),(0,t.jsx)("span",{className:"sr-only",children:x("global:common.close")})]})]}),(0,t.jsx)("div",{className:"px-3 md:px-2 leading-normal",children:n}),(0,t.jsxs)(s._M,{children:[(0,t.jsx)(c.Z,{variant:"clear",onClick:u,children:null!=m?m:x("global:common.cancel")}),(0,t.jsx)(c.Z,{variant:"action",onClick:()=>{i(),null==u||u()},children:null!=p?p:x("global:common.confirm")})]})]})},p=e=>{let{visible:l,onClose:i,title:s,description:a,onSubmit:o,...r}=e;return(0,t.jsx)(n.ZP,{visible:l,onClose:i,children:(0,t.jsx)(m,{title:s,onSubmit:o,...r,children:a})})}},10426:function(e,l,i){var t=i(74817),n=i(38746),s=i(3175);i(71248);var a=i(85059);let o=a.ZP.div.withConfig({componentId:"sc-afffe539-0"})(["display:flex;width:116px;height:144px;flex-direction:column;justify-content:center;align-items:center;&.selectable{cursor:pointer;}&.horizontal{flex-direction:row;width:inherit;height:inherit;justify-content:flex-start;}@media (","){&.horizontal-mobile{flex-direction:row;width:inherit;height:inherit;justify-content:flex-start;}}"],n.bp.md),r=a.ZP.div.withConfig({componentId:"sc-afffe539-1"})(["width:76px;height:76px;border-radius:50%;border:2px dashed ",";display:flex;justify-content:center;align-items:center;font-size:32px;color:",";",".selectable:hover &{background:rgba(18,171,125,0.1);border:2px solid ",";color:",";}",".active &,",".active.selectable &{background:",";color:#fff;border-width:0;}",".horizontal &{width:42px;height:42px;font-size:18px;}@media (","){",".horizontal-mobile &{width:42px;height:42px;font-size:18px;}}",".disabled &{background:#f0f2f5;color:",";border-width:0;}"],n.colors.gray40,n.colors.gray40,o,n.colors.green,n.colors.green,o,o,n.colors.green,o,n.bp.md,o,o,n.colors.gray40),c=a.ZP.div.withConfig({componentId:"sc-afffe539-2"})(["color:",";margin-top:10px;font-size:14px;user-select:none;.active &{font-weight:bold;}",".disabled &{opacity:0.7;}",".horizontal &{margin-top:0;margin-left:25px;}@media (","){",".horizontal-mobile &{margin-top:0;margin-left:15px;}}"],n.colors.gray60,o,o,n.bp.md,o);l.Z=e=>{let{selectable:l,active:i,nom:n,ico:a,variant:d,disabled:m,onClick:p}=e;return(0,t.jsxs)(o,{className:"".concat(l?"selectable":""," ").concat(i?"active":""," ").concat("horizontal"==d&&"horizontal"||"horizontal-mobile"==d&&"horizontal-mobile"||""," ").concat(m?"disabled":""),onClick:p,children:[(0,t.jsx)(r,{children:(0,t.jsx)(s.G,{icon:[i?"fas":"far",a]})}),(0,t.jsx)(c,{children:n})]})}},21814:function(e,l,i){var t=i(74817),n=i(19249),s=i(71248);let a=i(85059).ZP.div.withConfig({componentId:"sc-f5bfb3f1-0"})(["overflow-wrap:break-word;overflow-wrap:word-wrap;"]),o=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");l.Z=e=>{let{text:l,length:i,textMore:r,textLess:c,detectLinks:d,noShowMore:m}=e,{t:p}
1=(0,n.Z)(),[u,x]=(0,s.useState)(!0),[f,h]=(0,s.useState)(null),[g,v]=(0,s.useState)(null);if((0,s.useEffect)(()=>{let e=o(l);e=e.replace(/\r\n|\r|\n/g,"<br>");let n=o(l);if(l.length>i&&(n="".concat(o(l.slice(0,i)),"...")),n=n.replace(/\r\n|\r|\n/g,"<br>"),d){let l=/((?:http[s]?:\/\/)?([a-zÃ-ú0-9\-_]+\.){1,3}[a-z]{2,3}(?![\w])(?:\/{1}[a-z0-9\-_]+)*(?:(\?[a-z0-9=a-z0-9\-_%]+)?(?:&[a-z0-9=a-z0-9\-_.%]+))*)/gi;e=e.replace(l,e=>'<a href="'.concat((-1===e.indexOf("://")?"http://":"")+e,'" target="_blank" rel="noopener noreferrer">').concat(e,"</a>")),n=n.replace(l,e=>'<a href="'.concat((-1===e.indexOf("://")?"http://":"")+e,'" target="_blank" rel="noopener noreferrer">').concat(e,"</a>"))}v((0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:n}})),h((0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:e}}))},[d,i,l]),l.length<=i||m)return(0,t.jsx)("div",{children:f});let b=r||p("global:common.read-more"),j=c||p("global:common.hide");return(0,t.jsx)("div",{children:(0,t.jsxs)(a,{className:"mb-1",children:[u?g:f," ",(0,t.jsx)("a",{className:"cursor-pointer",onClick:()=>x(!u),children:u?b:j})]})})}},28038:function(e,l,i){i.d(l,{x:function(){return u},Z:function(){return h}});var t=i(74817),n=i(71248),s=i(85059),a=i(38746);let o=s.ZP.div.withConfig({componentId:"sc-3b0f3346-0"})(["position:relative;height:100%;display:flex;flex-direction:column;.scrollable-area{flex:1;min-height:0;position:relative;}"]),r=s.ZP.div.withConfig({componentId:"sc-3b0f3346-1"})(["display:flex;position:relative;",".tabs-basic &{@media (","){flex-wrap:nowrap;overflow-x:auto;&::-webkit-scrollbar{display:none;}}}",".tabs-basic &::before{content:'';position:absolute;bottom:0px;left:0;right:0;height:3px;background:",";}"],o,a.bp.md,o,a.colors.gray20),c=s.ZP.div.withConfig({componentId:"sc-3b0f3346-2"})(["cursor:pointer;user-select:none;",".tabs-basic &{position:relative;color:",";height:44px;display:flex;align-items:center;padding:0 10px;font-size:16px;&::before{content:'';position:absolute;bottom:0px;left:0;width:100%;height:3px;background:",";opacity:0;}&.active{color:",";font-weight:bold;&::before{opacity:1;}}@media (","){flex:0 0 auto;}}",".tabs-alt &{position:relative;color:",";border-radius:6px 6px 0 0;font-size:14px;font-weight:bold;height:40px;display:flex;align-items:center;padding:0 13px;&.active{background:#fff;color:#000;&::after{background:#fff;content:'';position:absolute;top:100%;left:0;height:5px;width:100%;}}}",".tabs-alt & + &{margin-left:10px;}"],o,a.colors.gray60,a.colors.secondary,a.colors.secondary,a.bp.md,o,e=>e.textColorInactive?e.textColorInactive:"#fff",o),d=s.ZP.span.withConfig({componentId:"sc-3b0f3346-3"})(["",".tabs-alt &{display:flex;font-weight:bold;font-size:11px;text-align:left;text-transform:uppercase;color:#ffffff;border-radius:6px;padding:4px 8px;background:rgba(255,255,255,0.1);margin-left:10px;}",".tabs-alt .active &{color:",";background:rgba(28,40,127,0.1);}",".tabs-basic &{display:flex;font-weight:bold;font-size:11px;text-align:left;text-transform:uppercase;color:#ffffff;border-radius:3px;padding:1px 5px;background:",";margin-left:10px;}",".tabs-basic .active &{background:",";}"],o,o,a.colors.main,o,a.colors.gray60,o,a.colors.secondary),m=s.ZP.div.withConfig({componentId:"sc-3b0f3346-4"})(["position:relative;flex:1;min-height:0;"]),p=s.ZP.div.withConfig({componentId:"sc-3b0f3346-5"})(["position:relative;z-index:10;height:100%;display:flex;flex-direction:column;",".tabs-alt &{background:#fff;border-radius:6px;}"],o),u=e=>(0,t.jsx)(p,{style:e.style,id:e.key,children:e.children});var x=i(3175);let f=n.memo(e=>{let{children:l,defaultActiveKey:i,variant:s,onChange:a,textColorInactive:p,delegateTab:h,delegateActiveTab:g}=e,[v,b]=(0,n.useState)(i&&i||void 0);return f.displayName="Tabs",(0,n.useEffect)(()=>{null==a||a(h||v)},[v,h,a]),(0,n.useEffect)(()=>{i||void 0!==h||n.Children.map(l,(e,l)=>{if((0,n.isValidElement)(e)&&e.type==u&&0==l){var i;let l=null===(i=e.key)||void 0===i?void 0:i.toString();g?g(l):b(l)}})},[i,l,g,h]),(0,t.jsxs)(o,{className:"".concat("basic"==s?"tabs-basic":"alt"==s?"tabs-alt":"tabs-basic"),children:[(0,t.jsx)(r,{children:(()=>{let e=[];return n.Children.map(l,l=>{if((0,n.isValidElement)(l)&&l.type==u){var i;
1let n=l.props,s=n.tab,a=n.notif,o=null===(i=l.key)||void 0===i?void 0:i.toString(),r=n.incomplete;e.push((0,t.jsxs)(c,{onClick:()=>g?g(o):b(o),className:o==(h||v)?"active":"",textColorInactive:p,children:[s," ",void 0!=a&&0!=a&&(0,t.jsx)(d,{children:a}),r&&(0,t.jsx)("span",{className:"ml-05",children:(0,t.jsx)(x.G,{icon:["fas","exclamation-triangle"],className:"text-sm"})})]},o))}}),e})()}),(0,t.jsx)(m,{children:(()=>{let e=[];return n.Children.map(l,l=>{if((0,n.isValidElement)(l)&&l.type==u){var i;let t=null===(i=l.key)||void 0===i?void 0:i.toString();e.push((0,n.cloneElement)(l,{style:t!=(h||v)?{display:"none"}:{}}))}}),e})()})]})});var h=f},91269:function(e,l,i){var t=i(74817),n=i(38746),s=i(37518),a=i.n(s);i(71248);let o=i(85059).ZP.span.withConfig({componentId:"sc-7459588c-0"})(["display:inline-flex;font-weight:bold;line-height:1;font-size:",";text-align:center;"," color:",";",";border-radius:3px;padding:",";background:",";a{color:inherit;text-decoration:none;}"],e=>"small"==e.size&&"9px"||"large"==e.size&&"16px"||"12px",e=>"small"==e.size&&"text-transform: uppercase;",e=>"outline-green"==e.variant?n.colors.secondary:"lightgray"==e.variant?n.colors.gray60:"#ffffff",e=>"outline-green"==e.variant&&"box-shadow: inset 0 0 0 2px ".concat(n.colors.secondary),e=>"small"==e.size&&"4px 5px 2px"||"large"==e.size&&"7px 10px"||"6px 8px",e=>e.color&&e.color||"red"==e.variant&&n.colors.error||"orange"==e.variant&&"#FF8D27"||"blue"==e.variant&&"#3A90E1"||"black"==e.variant&&"#0A0E27"||"green"==e.variant&&n.colors.green||"main"==e.variant&&n.colors.main||"gray"==e.variant&&"#8589AD"||"lightgray"==e.variant&&n.colors.lightgrey||"outline-green"==e.variant&&"transparent"||!e.variant&&n.colors.green);l.Z=e=>{let{children:l,href:i}=e;return(0,t.jsx)(o,{...e,children:i?(0,t.jsx)(a(),{href:i,children:l}):l})}},38810:function(e,l,i){i.d(l,{Z:function(){return r}});var t=i(74817),n=i(49782),s=i.n(n),a=i(16666),o=i(33647),r=e=>{let{name:l,startDateName:i,endDateName:n,onChangeDate:r,selectsRange:c,startDate:d,endDate:m,inline:p,size:u,...x}=e,[f,h,g]=(0,a.U$)(l),{setFieldTouched:v,setFieldValue:b}=(0,a.u6)(),j="".concat(h.error&&h.touched?"textfield-error":""," ").concat(p?"textfield-inline":""," ").concat("small"==u?"textfield-small":""),y=c?"".concat(d?s()(d,"dd/MM/yyyy"):"???"," - ").concat(m?s()(m,"dd/MM/yyyy"):"â"):void 0;return(0,t.jsx)(o.Z,{...x,name:l,selected:c?void 0:f.value,onChange:e=>{c?i&&n&&Array.isArray(e)&&(b(i,e[0]),b(n,e[1]),v(f.name,!0,!1),null==r||r(e)):(g.setValue(e),v(f.name,!0,!1),null==r||r(e))},selectsRange:c,startDate:d,endDate:m,inline:p,size:u,className:j,value:y})}},68439:function(e,l,i){i.d(l,{Z:function(){return j}});var t=i(74817),n=i(71248),s=i(38746),a=i(85059);let o=a.ZP.div.withConfig({componentId:"sc-c9fe08a3-0"})(["display:flex;@media (","){flex-direction:column;}"],s.bp.md),r=a.ZP.div.withConfig({componentId:"sc-c9fe08a3-1"})(["margin-right:20px;@media (","){margin-right:0;}"],s.bp.md),c=a.ZP.div.withConfig({componentId:"sc-c9fe08a3-2"})(["flex-grow:1;display:flex;flex-direction:column;justify-content:center;@media (","){margin-top:20px;}"],s.bp.md),d=a.ZP.div.withConfig({componentId:"sc-c9fe08a3-3"})(["font-weight:bold;font-size:1em;line-height:1.5;"]),m=a.ZP.div.withConfig({componentId:"sc-c9fe08a3-4"})(["opacity:0.7;line-height:1.5;"]),p=a.ZP.div.withConfig({componentId:"sc-c9fe08a3-5"})(["margin-top:10px;display:flex;"]),u=a.ZP.input.withConfig({componentId:"sc-c9fe08a3-6"})(["position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden;"]);var x=i(16666),f=i(99189),h=i(73894),g=i(4838),v=i(20150),b=i(19249),j=e=>{let{name:l,rolePic:i,instructions:s,type:a,actualPic:j,initials:y}=e,{t:N}=(0,b.Z)(),[Z,,w]=(0,x.U$)(e),[k,C]=(0,n.useState)(),[S,I]=(0,n.useState)(!1),P=(0,n.useRef)(null),E=()=>{var e;return null===(e=P.current)||void 0===e?void 0:e.click()};if(S)return(0,t.jsx)(g.Z,{baseImage:k,handleSave:e=>{C(e),w.setValue(e),I(!1)},handleCancel:()=>{I(!1)},type:a});let _=null!=Z.value&&0!=Z.value.length||j.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{children:(0,t.jsx)(f.Z,{variant:"outline",onClick:E,type:"button",children:N("global:profile.edit-photo")})}),(0,t.jsx)("div",{className:"ml-1",children:(0,t.jsx)(f.Z,{variant:"delete",type:"button",onClick:()=>w.setValue(""),children:N("global:common.delete")})})]}):(0,t.jsx)(f.Z,{variant:"action",onClick:E,type:"button",children:N("global:profile.add-photo")});return(0,t.jsxs)(o,{children:[(0,t.jsx)(r,{children:"user"==a?(0,t.jsx)(h.Z,{name:y,size:"128",src:null!=Z.value?Z.value:j}
1):"company"==a?(0,t.jsx)(v.Z,{name:y,size:128,src:null!=Z.value?Z.value:j}):void 0}),(0,t.jsxs)(c,{children:[(0,t.jsx)(d,{children:i}),(0,t.jsx)(m,{children:s}),(0,t.jsx)(p,{children:_}),(0,t.jsx)(u,{type:"file",name:l,id:l,ref:P,onChange:e=>{let l=e.currentTarget;if(l.files&&l.files.length>0){let e=new FileReader;e.addEventListener("load",()=>C(e.result)),e.readAsDataURL(l.files[0]),I(!0)}},accept:"image/gif, image/jpeg, image/png"})]})]})}},54265:function(e,l,i){var t=i(74817),n=i(71248),s=i(16666),a=i(99143);l.Z=e=>{let[l,i,o]=(0,s.U$)(e),{autoGrow:r,rows:c,onChange:d}=e,m=(0,n.useCallback)(e=>{let l=e.target;if(o.setValue(l.value),r){l.rows=1;let e=Math.round((l.scrollHeight-20)/24);l.rows=e}null==d||d(e)},[o,r,d]),p=r?"textarea-autogrowth":"",u=i.error&&i.touched?"textarea-error":"";return(0,t.jsx)(a._,{className:"".concat(u," ").concat(p),children:(0,t.jsx)(a.F,{rows:c||4,...l,...e,onChange:m})})}},38587:function(e,l,i){i.d(l,{Z:function(){return t.Z}});var t=i(54265)},14831:function(e,l,i){i.d(l,{T:function(){return x},l:function(){return u}});var t=i(74817),n=i(71248),s=i(73772),a=i(64678),o=i(62117),r=i(629),c=i(47226);let d={},m={},p=(0,n.createContext)(null),u=()=>{let e=(0,n.useContext)(p);if(null!==e)return e;throw Error("CoreDataContext was used outside of its Provider")},x=e=>{let{children:l,types:i=[]}=e,u=(0,r.v9)(e=>e.auth.ctoken),[x,f]=(0,n.useState)(i),[h,g]=(0,n.useState)(!1),[v,b]=(0,n.useState)([]),[j,y]=(0,n.useState)([]),[N,Z]=(0,n.useState)([]),[w,k]=(0,n.useState)([]),[C,S]=(0,n.useState)([]),[I,P]=(0,n.useState)([]),E=(0,n.useCallback)(function(){for(var e=arguments.length,l=Array(e),i=0;i<e;i++)l[i]=arguments[i];f(e=>{let i=l.filter(l=>!e.includes(l));return i.length>0?[...e,...i]:e})},[]);return(0,n.useEffect)(()=>{if(!u)return;let e=!0;g(!0);let l=[],i=[o.TB],t=(i,t,n,s)=>{if(!x.includes(i))return;let a=t();if(a){n(a);return}if(m[i]){l.push(m[i].then(()=>{let l=t();e&&l&&n(l)}));return}m[i]=s().then(l=>{e&&n(l)}).finally(()=>{delete m[i]}),l.push(m[i])};return t("secteurs",()=>d.secteurs,Z,()=>s.u.getSecteurs(u).then(e=>(d.secteurs=e.data?(0,a.fV)(e.data.data,"nom","id"):[],d.secteurs))),t("specializedSectors",()=>d.specializedSectors,k,()=>s.u.getSpecializedSectors(u,{marquesId:i}).then(e=>(d.specializedSectors=e.data?(0,a.fV)(e.data.data,"nom","id"):[],d.specializedSectors))),t("langues",()=>d.langues,S,()=>s.u.getLangues(u).then(e=>(d.langues=e.data?(0,a.fV)(e.data,"nom","id"):[],d.langues))),t("metiers",()=>d.metiers,b,()=>s.u.getMetiers(u,{marqueIds:i,variant:"compact"}).then(e=>(d.metiers=e.data?(0,a.yc)(e.data.data,"nom","id"):[],d.metiers))),t("competences",()=>d.competences,y,()=>s.u.getCompetences(u,{marqueIds:i}).then(e=>(d.competences=e.data?(0,a.fV)(e.data.data,"nom","id"):[],d.competences))),t("categories",()=>d.categories,P,()=>c.H.getCategories(u).then(e=>{var l;let i=null!==(l=e.data)&&void 0!==l?l:[];return d.categories=i,i})),Promise.all(l).then(()=>{e&&g(!1)}),()=>{e=!1}},[u,x]),(0,t.jsx)(p.Provider,{value:{metiers:v,competences:j,secteurs:N,specializedSectors:w,languesItems:C,categories:I,isLoading:h,setTypes:f,loadTypes:E},children:l})}},65998:function(e,l,i){i.d(l,{$:function(){return o},W:function(){return s}});var t=i(51659),n=i.n(t);let s={search:"",isSearchRestricted:!0,localisation:{rayon:80,pays:[],localisations:[]},contrat:{typesContrat:[]},advanced:{xps:[],lvlEtudes:[],secteurs:[],langues:[],typesSociete:[],idsMetiers:[],idsCompetences:[],companySize:[],specializedSectors:[],eventsHighlightedOn:[]},handiLevels:{levels:[]}},a=(e,l)=>{if(!e)return l;try{return JSON.parse(e)}catch(e){return l}},o=e=>{var l;return{search:null!==(l=e.search)&&void 0!==l?l:s.search,isSearchRestricted:n()(e.isSearchRestricted)?s.isSearchRestricted:"0"!==e.isSearchRestricted,localisation:{rayon:e.rayon?parseInt(String(e.rayon)):s.localisation.rayon,pays:e.pays?a(e.pays,s.localisation.pays):s.localisation.pays,localisations:e.loc?a(e.loc,s.localisation.localisations):s.localisation.localisations},contrat:{typesContrat:e.typesContrat?e.typesContrat.split(","):s.contrat.typesContrat},advanced:{xps:e.xps?e.xps.split(","):s.advanced.xps,lvlEtudes:e.lvlEtudes?e.lvlEtudes.split(","):s.advanced.lvlEtudes,secteurs:e.secteurs?e.secteurs.split(","):s.advanced.secteurs,langues:e.langues?e.langues.split(","):s.advanced.langues,typesSociete:e.typesSociete?e.typesSociete.split(","):s.advanced.typesSociete,idsMetiers:e.idsMetiers?e.idsMetiers.split(","):s.advanced.idsMetiers,idsCompetences:e.idsCompetences?e.idsCompetences.split(","):s.advanced.idsCompetences,companySize:e.companySize?e.companySize.split(","):s.advanced.companySize,specializedSectors:e.specializedSectors?e.specializedSectors.split(","):s.advanced.specializedSectors,eventsHighlightedOn:e.eventsHighlightedOn?e.eventsHighlightedOn.split(","):s.advanced.eventsHighlightedOn},handiLevels:{levels:e.handiLevels?e.handiLevels.split(","):s.handiLevels.levels}}}},5188:function(e,l,i){i.d(l,{Z:function(){return x}});var t=i(74817),n=i(86247),s=i(45247),a=i(3175),o=i(19249),r=i(71248),c=e=>{let{checked:l,disabled:i,busy:c,help:d,onChange:m}=e,{t:p}=(0,o.Z)(),u=(0,r.useId)();return(0,t.jsxs)("div",{className:"flex items-center py-1 text-left","aria-busy":c,children:[(0,t.jsxs)("div",{className:"flex-1 min-w-0 text-lg font-bold leading-normal",children:[(0,t.jsx)("span",{id:u,children:p("global:profile.cv-recruiter-visibility")})," ",(0,t.jsx)(s.Z,{content:d,trigger:"mouseenter focus click",children:(0,t.jsx)("span",{tabIndex:0,role:"img",className:"ml-05 text-base text-gray80 curs
1or-help","aria-label":p("global:profile.cv-visibility-info"),children:(0,t.jsx)(a.G,{icon:["far","circle-question"]})})})]}),(0,t.jsx)("div",{className:"ml-1 flex-shrink-0",children:(0,t.jsxs)("div",{className:"flex items-center",children:[l&&(0,t.jsx)("span",{className:"text-gray60 mr-1",children:p("global:settings.enabled")}),(0,t.jsx)(n.Z,{checked:l,disabled:i,"aria-labelledby":u,onChange:()=>m(!l)})]})})]})},d=i(38484),m=i(50647),p=i(65210),u=i(629),x=e=>{let{disabled:l=!1,onSaved:i}=e,{t:n}=(0,o.Z)(),s=(0,u.I0)(),a=(0,u.v9)(e=>e.auth.userSite),x=(0,u.v9)(e=>e.auth.token),[f,h]=(0,r.useState)(!1),g=!!(null==a?void 0:a.visibiliteRecruteur),v=g&&!!(null==a?void 0:a.visibiliteCvRecruteur),b=async e=>{if(x&&a&&!f){h(!0);try{var l;let t=await d.v.editVisibilite(x,"cvRecruteur",e);if(!(null===(l=t.data)||void 0===l?void 0:l.status))throw Error("save_failed");let n={visibiliteRecruteur:t.data.visibiliteRecruteur,visibiliteCvRecruteur:t.data.visibiliteCvRecruteur};s(p.u.setProfile({...a,...n})),null==i||i(n)}catch(e){(0,m.Sj)(n("global:profile.cv-visibility-save-error"))}finally{h(!1)}}};return(0,t.jsx)(c,{checked:v,disabled:l||f||!g||!x,busy:f,onChange:b,help:[n("global:profile.cv-recruiter-visibility-help"),!g&&n("global:profile.cv-recruiter-visibility-disabled")].filter(Boolean).join(" ")})}},45702:function(e,l,i){i.d(l,{Z:function(){return lZ}});var t=i(74817),n=i(71248),s=i(629),a=i(62117),o=i(73894),r=i(3175),c=i(85059),d=i(28851);let m=c.ZP.div.withConfig({componentId:"sc-43f720b5-0"})(["border-bottom:2px solid #fff;"]),p=c.ZP.div.withConfig({componentId:"sc-43f720b5-1"})(["background:#aceef2;border-bottom:2px solid #fff;overflow:hidden;position:relative;"]),u=c.ZP.div.withConfig({componentId:"sc-43f720b5-2"})(["top:-15px;left:-15px;opacity:0.1;font-size:62px;"]),x=c.ZP.div.withConfig({componentId:"sc-43f720b5-3"})(["background:#c3e2e5;position:relative;border-bottom-right-radius:60px;"]);var f=e=>{let{profil:l,offrePostulation:i,eventPostulation:n,postulationAfterInscription:s}=e;return i?s?(0,t.jsx)(x,{className:"px-3 py-3",children:(0,t.jsx)("div",{className:"relative z-10 text-center text-xl",children:(0,t.jsx)(d.Z,{i18nKey:"global:profile.complete-your-application",components:{bold:(0,t.jsx)("strong",{})},values:{firstname:l.prenom,author:i.auteur.nom}})})}):(0,t.jsxs)(p,{className:"px-3 py-2",children:[(0,t.jsx)(u,{className:"absolute z-0",children:(0,t.jsx)(r.G,{icon:["far","paper-plane"]})}),(0,t.jsx)("div",{className:"relative z-10 text-xl",children:(0,t.jsx)(d.Z,{i18nKey:"global:profile.complete-your-application",components:{bold:(0,t.jsx)("strong",{})},values:{firstname:l.prenom,author:i.auteur.nom}})})]}):n?(0,t.jsxs)(p,{className:"px-3 py-2",children:[(0,t.jsx)(u,{className:"absolute z-0",children:(0,t.jsx)(r.G,{icon:["far","paper-plane"]})}),(0,t.jsx)("div",{className:"relative z-10 text-lg",children:(0,t.jsx)(d.Z,{i18nKey:"global:profile.complete-your-application-event",components:{bold:(0,t.jsx)("strong",{})},values:{firstname:l.prenom,title:n.titre}})})]}):(0,t.jsx)(m,{children:(0,t.jsxs)("div",{className:"flex items-center px-3 py-2",children:[(0,t.jsx)("div",{className:"mr-1",children:(0,t.jsx)(o.Z,{name:"".concat(l.prenom," ").concat(l.nom),src:l.photo.normal?l.photo.normal:"",size:"40"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-bold",children:"".concat(l.prenom," ").concat(l.nom)}),(0,t.jsx)("div",{className:"text-sm",children:l.poste})]})]})})},h=i(38746);let g=c.ZP.div.withConfig({componentId:"sc-51a91525-0"})(["position:relative;"]),v=c.ZP.div.withConfig({componentId:"sc-51a91525-1"})(["cursor:pointer;user-select:none;position:relative;color:",";height:80px;display:flex;align-items:center;padding:0 30px;font-size:16px;font-weight:bold;border-bottom:2px solid #fff;&.active{color:#000;background:#fff;.ico{color:",";}}
1"],h.colors.gray60,h.colors.secondary),b=c.ZP.div.withConfig({componentId:"sc-51a91525-2"})(["position:absolute;right:20px;"]),j=e=>{let{id:l,handleClick:i,selectedKey:n,icon:s,incomplete:a,forceActive:o}=e,c=n===l||o?"active":"";return(0,t.jsxs)(v,{onClick:()=>{l&&(null==i||i(l))},className:"".concat(c),children:[(0,t.jsx)("div",{className:"mr-1 text-xl w-3 flex items-center justify-center",children:(0,t.jsx)(r.G,{icon:s,className:"ico"})}),(0,t.jsx)("div",{className:"flex-1",children:e.children}),a&&(0,t.jsx)(b,{className:"text-warning",children:(0,t.jsx)(r.G,{icon:["fas","exclamation-triangle"]})})]})},y=e=>{let{handleClick:l,selectedKey:i}=e;return(0,t.jsx)(g,{children:n.Children.map(e.children,e=>{if((0,n.isValidElement)(e))return e.type==j?(0,n.cloneElement)(e,{handleClick:l,selectedKey:i,id:e.key,icon:e.props.icon,incomplete:e.props.incomplete}):e})})};y.Menu=j;var N=i(68401),Z=i(99189),w=i(47842),k=i(19249);let C=c.ZP.div.withConfig({componentId:"sc-cc64a080-0"})(["> div + div{margin-top:15px;}"]),S=c.ZP.div.withConfig({componentId:"sc-cc64a080-1"})(["width:60px;height:4px;border-radius:6px;background:",";"],h.colors.secondary);var I=e=>{let{profil:l,setEditStep:i,setEdit:n,eventPostulation:o}=e,{t:c}=(0,k.Z)(),m=(0,s.v9)(e=>e.pageOffre.offrePostulation),p=(0,s.v9)(e=>e.pageOffre.postulationAfterInscription),u=(0,w.TR)(l,"accueil",m,!!o);return(0,t.jsx)("div",{className:"flex h-full p-4 md:p-2 overflow-auto",children:(0,t.jsxs)("div",{className:"m-auto w-full flex -mx-1",children:[(0,t.jsxs)("div",{className:"px-1 md:w-full",children:[(0,t.jsxs)("div",{className:"font-bold w-3/4 text-3xl",children:[(0,t.jsx)(r.G,{icon:["fas","exclamation-triangle"],className:"text-warning text-l"})," ",(m?c("global:profile.complete-apply-to-offer",{name:m.auteur.nom}):o&&(0,t.jsx)(d.Z,{i18nKey:"global:profile.complete-apply-to-event",components:{bold:(0,t.jsx)("strong",{className:"ml-05"})},values:{title:o.titre}}))||c("global:profile.complete-access-to-features",{marque:c("marque-name")})]}),(0,t.jsx)(S,{className:"my-2"}),(0,t.jsx)("div",{className:"text-lg leading-normal text-gray80",children:c("global:profile.update-profile-text")}),!p&&(0,t.jsxs)(C,{className:"my-3 font-bold",children:[(0==l.xps.length||m&&l.xps.length<1)&&(0,t.jsxs)("div",{children:[(0,t.jsx)("a",{className:"cursor-pointer",onClick:()=>{i("xps")},children:c("global:profile.professional-career")}),(0,t.jsx)(r.G,{icon:["fas","exclamation-triangle"],className:"text-warning ml-1 text-sm"})]}),0==l.formations.length&&(0,t.jsxs)("div",{children:[(0,t.jsx)("a",{className:"cursor-pointer",onClick:()=>{i("formation")},children:c("global:common.educations")}),(0,t.jsx)(r.G,{icon:["fas","exclamation-triangle"],className:"text-warning ml-1 text-sm"})]}),0==l.metiers.length&&(0,t.jsxs)("div",{children:[(0,t.jsx)("a",{className:"cursor-pointer",onClick:()=>{i("metier")},children:c("global:common.jobs")}),(0,t.jsx)(r.G,{icon:["fas","exclamation-triangle"],className:"text-warning ml-1 text-sm"})]}),"handicarriere"!==a.hf&&0==l.competences.length&&(0,t.jsxs)("div",{children:[(0,t.jsx)("a",{className:"cursor-pointer",onClick:()=>{i("skills")},children:c("common.competences")}),(0,t.jsx)(r.G,{icon:["fas","exclamation-triangle"],className:"text-warning ml-1 text-sm"})]}),0==l.langues.length&&(0,t.jsxs)("div",{children:[(0,t.jsx)("a",{className:"cursor-pointer",onClick:()=>{i("langs")},children:c("global:common.languages")}),(0,t.jsx)(r.G,{icon:["fas","exclamation-triangle"],className:"text-warning ml-1 text-sm"})]}),""==l.resume&&!m&&(0,t.jsxs)("div",{children:[(0,t.jsx)("a",{className:"cursor-pointer",onClick:()=>{i("perso")},children:c("global:common.summary")}),(0,t.jsx)(r.G,{icon:["fas","exclamation-triangle"],className:"text-warning ml-1 text-sm"})]}),!l.photo.normal&&!m&&(0,t.jsxs)("div",{children:[(0,t.jsx)("a",{className:"cursor-pointer",onClick:()=>{i("photo")},children:c("global:profile.profile-picture")}),(0,t.jsx)(r.G,{icon:["fas","exclamation-triangle"],className:"text-warning ml-1 text-sm"})]}),0==l.xpsAsso.length&&!m&&(0,t.jsxs)("div",{children:[(0,t.jsx)("a",{className:"cursor-pointer",onClick:()=>{i("xps_asso")},children:c("global:profile.associative-experience")}),(0,t.jsx)(r.G,{icon:["fas","exclamation-triangle"],className:"text-warning ml-1 text-sm"})]}),0==l.qualites.length&&!m&&(0,t.jsxs)("div",{children:[(0,t.jsx)("a",{className:"cursor-pointer",onClick:()=>{i("qualites")},children:c("global:common.qualities")}),(0,t.jsx)(r.G,{icon:["fas","exclamation-triangle"],className:"text-warning ml-1 text-sm"})]}),0==l.centresInteret.length&&!m&&(0,t.jsxs)("div",{children:[(0,t.jsx)("a",{className:"cursor-pointer",onClick:()=>{i("hobby")},children:c("global:profile.interests")}),(0,t.jsx)(r.G,{icon:["fas","exclamation-triangle"],className:"text-warning ml-1 text-sm"})]})]}),""!==u&&(0,t.jsxs)("div",{className:"mt-4 space-x-1",children:[(0,t.jsx)(Z.Z,{variant:"action",type:"button",onClick:()=>{p&&n(!0),i("import")},children:c("global:profile.import-profile")}),(0,t.jsx)(Z.Z,{variant:"clear",type:"button",onClick:()=>{p&&n(!0),i(u)},children:c("global:profile.manual-complete")}
1)]})]}),(0,t.jsx)("div",{className:"px-1 w-1/2 md:hidden",children:(0,t.jsx)("img",{src:(0,N.P)("/images/config-profil.svg"),alt:"profile configuration icon",className:"w-full"})})]})})},P=i(28038),E=i(73772),_=i(60415),A=i(87675),z=i(8336),M=i(64678),T=i(16666),q=i(93720),R=i(93742),O=i(20831),D=i(68138),F=i(35714),G=e=>{let{profil:l,setProfil:i,setEditStep:o,eventPostulation:r}=e,{t:c}=(0,k.Z)(),d=(0,s.v9)(e=>e.auth.ctoken),m=(0,s.v9)(e=>e.auth.token),[p,u]=(0,n.useState)([]),x=(0,O.useMediaQuery)({maxWidth:1200}),f=(0,s.v9)(e=>e.pageOffre.offrePostulation),h=(0,s.v9)(e=>e.pageOffre.postulationAfterInscription),g=!!l&&l.xps.length>=1&&l.formations.length>=1&&l.metiers.length>=1&&(l.competences.length>=1||"handicarriere"===a.hf)&&l.langues.length>=1&&l.tauxCompletion>=70;(0,n.useEffect)(()=>{d&&E.u.getCompetences(d,{marqueIds:[a.TB]}).then(e=>{let l=e.data.data;u((0,M.fV)(l,"nom","id"))})},[d]);let v={skills:l.competences.map(e=>({idCompetence:e.id.toString(),valueSkill:e.niveau?e.niveau.toString():"0"}))},b=(0,n.useCallback)(e=>{m&&F.K.addEditCompetence(m,e.skills).then(e=>{e.data&&e.data.status&&i(e.data.data)})},[i,m]),j=(e,l,i)=>l.filter(l=>l.value===i.idCompetence||!e.find(e=>e.idCompetence===l.value)),y=(0,w.TR)(l,"skills",f,!!r);return(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsx)(T.J9,{initialValues:v,onSubmit:()=>void 0,children:e=>{let{values:l}=e;return(0,t.jsxs)(T.l0,{className:"flex-1 min-h-0 flex flex-col",children:[(0,t.jsx)(D._,{onChange:b,debounceTime:1e3}),(0,t.jsx)(T.F2,{name:"skills",children:e=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center my-3 md:my-2",children:[(0,t.jsx)("div",{className:"text-3xl md:hidden",children:c("common.competences")}),(0,t.jsx)("div",{className:"ml-auto md:ml-0 md:w-full",children:(0,t.jsx)(Z.Z,{variant:"normal",leftIcon:"plus",type:"button",onClick:()=>e.insert(0,{idCompetence:"",valueSkill:"1"}),fullWidth:x,children:c("profile.add-competence-button")})})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(q.Z,{className:"h-full",children:l.skills&&l.skills.length>0?l.skills.map((i,n)=>(0,t.jsxs)("div",{className:"flex py-1 items-center md:flex-col",children:[(0,t.jsxs)("div",{className:"w-10/12 md:w-full",children:[(0,t.jsxs)("div",{className:"flex md:flex-col",children:[(0,t.jsxs)("div",{className:"w-1/3 md:w-full",children:[(0,t.jsx)(A.Z,{children:c("common.competences")}),(0,t.jsx)(z.Z,{name:"skills.".concat(n,".idCompetence"),items:j(l.skills,p,i),placeholder:c("login_signup.signup.step1.form.competence-placeholder")})]}),(0,t.jsxs)("div",{className:"w-1/3 ml-auto md:w-full md:mt-2",children:[(0,t.jsx)(A.Z,{children:c("global:common.level")}),(0,t.jsx)(z.Z,{name:"skills.".concat(n,".valueSkill"),items:(0,a.qT)(c),placeholder:c("global:login_signup.signup.step1.form.competence-level-placeholder"),noSearch:!0})]})]}),(0,t.jsx)("div",{className:"mt-1",children:(0,t.jsx)(_.Z,{value:i.valueSkill&&parseInt(i.valueSkill)/4*100||0})})]}),(0,t.jsx)("div",{className:"w-2/12 text-right pr-05 md:w-full md:mt-2",children:(0,t.jsx)(Z.Z,{type:"button",onClick:()=>e.remove(n),size:"small",variant:"outline",fullWidth:x,children:c("global:common.delete")})})]},n)):(0,t.jsx)(R.Z,{sectionName:c("common.competences"),icon:"laptop-code",button:(0,t.jsx)(Z.Z,{variant:"action",leftIcon:"plus",onClick:()=>e.push({idCompetence:"",valueSkill:"0"}),type:"button",children:c("profile.add-competence-button")})})})})]})})]})}}),(0,t.jsx)("div",{className:"text-right mt-2",children:(0,t.jsx)(Z.Z,{variant:"action",fullWidth:x,type:"button",onClick:()=>o(y),disabled:(!g||h)&&0==l.competences.length,children:"postulationConfirmation"===y?c("global:common.submit-application"):c("global:common.next-step")})})]})},K=e=>{let{profil:l,setProfil:i,setEditStep:o,eventPostulation:r}=e,{t:c}=(0,k.Z)(),d=(0,s.v9)(e=>e.auth.ctoken),m=(0,s.v9)(e=>e.auth.token),p=(0,O.useMediaQuery)({maxWidth:1200}),u=(0,s.v9)(e=>e.pageOffre.offrePostulation),x=(0,s.v9)(e=>e.pageOffre.postulationAfterInscription),f=!!l&&l.xps.length>=1&&l.formations.length>=1&&l.metiers.length>=1&&(l.competences.length>=1||"handicarriere"===a.hf)&&l.langues.length>=1&&l.tauxCompletion>
1=70,[h,g]=(0,n.useState)([]);(0,n.useEffect)(()=>{d&&E.u.getLangues(d).then(e=>{e.data&&g((0,M.fV)(e.data,"nom","id"))})},[d]);let v={langues:l.langues.map(e=>({idLangue:e.id.toString(),valueSkill:e.lvl?e.lvl.toString():"0"}))},b=(0,n.useCallback)(e=>{m&&F.K.addEditLangue(m,e.langues).then(e=>{e.data&&e.data.status&&i(e.data.data)})},[i,m]),j=(0,w.TR)(l,"langs",u,!!r);return(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsx)(T.J9,{initialValues:v,onSubmit:()=>void 0,children:e=>{let{values:l}=e;return(0,t.jsxs)(T.l0,{className:"flex-1 min-h-0 flex flex-col",children:[(0,t.jsx)(D._,{onChange:b,debounceTime:1e3}),(0,t.jsx)(T.F2,{name:"langues",children:e=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center my-3 md:my-2",children:[(0,t.jsx)("div",{className:"text-3xl md:hidden",children:c("global:common.languages")}),(0,t.jsx)("div",{className:"ml-auto md:ml-0 md:w-full",children:(0,t.jsx)(Z.Z,{variant:"normal",leftIcon:"plus",type:"button",onClick:()=>e.insert(0,{idLangue:"",valueSkill:"1"}),fullWidth:p,children:c("global:profile.add-language-button")})})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(q.Z,{className:"h-full",children:l.langues&&l.langues.length>0?l.langues.map((l,i)=>(0,t.jsxs)("div",{className:"flex py-1 items-center md:flex-col",children:[(0,t.jsxs)("div",{className:"w-10/12 md:w-full",children:[(0,t.jsxs)("div",{className:"flex md:flex-col",children:[(0,t.jsxs)("div",{className:"w-1/3 md:w-full",children:[(0,t.jsx)(A.Z,{children:c("global:common.fields.language")}),(0,t.jsx)(z.Z,{name:"langues.".concat(i,".idLangue"),items:h,placeholder:c("global:common.form.language-placeholder")})]}),(0,t.jsxs)("div",{className:"w-1/3 ml-auto md:w-full md:mt-2",children:[(0,t.jsx)(A.Z,{children:c("global:common.level")}),(0,t.jsx)(z.Z,{name:"langues.".concat(i,".valueSkill"),items:(0,a.Qm)(c),placeholder:c("global:login_signup.signup.step1.form.competence-level-placeholder"),noSearch:!0})]})]}),(0,t.jsx)("div",{className:"mt-1",children:(0,t.jsx)(_.Z,{value:l.valueSkill&&parseInt(l.valueSkill)/6*100||0})})]}),(0,t.jsx)("div",{className:"w-2/12 text-right pr-05 md:w-full md:mt-2",children:(0,t.jsx)(Z.Z,{type:"button",onClick:()=>e.remove(i),size:"small",variant:"outline",fullWidth:p,children:c("global:common.delete")})})]},i)):(0,t.jsx)(R.Z,{sectionName:c("global:common.languages"),icon:"globe",button:(0,t.jsx)(Z.Z,{variant:"action",leftIcon:"plus",onClick:()=>e.push({idLangue:"",valueSkill:"1"}),type:"button",children:c("global:profile.add-language-button")})})})})]})})]})}}),(0,t.jsx)("div",{className:"text-right mt-2",children:(0,t.jsx)(Z.Z,{variant:"action",fullWidth:p,type:"button",onClick:()=>o(j),disabled:(!f||x)&&0==l.langues.length,children:"postulationConfirmation"===j?c("global:common.submit-application"):c("global:common.next-step")})})]})},W=e=>{let{profil:l,setProfil:i,menu:s,setEditStep:o,eventPostulation:r}=e,{t:c}
1=(0,k.Z)(),[d,m]=(0,n.useState)("skills"==s?"skills":"langues");return(0,n.useEffect)(()=>{s&&m("skills"==s?"skills":"langues")},[s]),(0,t.jsx)("div",{className:"h-full flex flex-col px-3 pb-3 pt-2 md:px-2",children:(0,t.jsx)("div",{className:"flex-1 min-h-0",children:"handicarriere"===a.hf?(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(K,{profil:l,setProfil:i,setEditStep:o,eventPostulation:r})}):(0,t.jsxs)(P.Z,{fullHeight:!0,defaultActiveKey:"skills"==s?"skills":"langues",delegateTab:d,delegateActiveTab:m,children:[(0,t.jsx)(P.x,{tab:c("common.competences"),incomplete:0==l.competences.length,children:(0,t.jsx)(G,{profil:l,setProfil:i,setEditStep:o,eventPostulation:r})},"skills"),(0,t.jsx)(P.x,{tab:c("global:common.languages"),incomplete:0==l.langues.length,children:(0,t.jsx)(K,{profil:l,setProfil:i,setEditStep:o,eventPostulation:r})},"langues")]})})})},L=i(4915),V=i(49964),$=i(59432),J=i(38587),Q=i(74155),U=i(41339),X=i(96183),B=i(11735),H=i(38810),Y=i(37424),ee=i(53703),el=e=>{let{setEditMode:l,setProfil:i,formationAddedit:o}=e,r=(0,s.v9)(e=>e.auth.token),{t:c}=(0,k.Z)(),d=(0,n.useCallback)(e=>ee.N.getSocietesAC("",10,e,[],"ecole"),[]),m=(0,n.useRef)({label:"nom",value:"id"}),p={id:o?o.id:0,titre:o?o.titre:"",diplome:o?o.diplome:"",nomCertif:o?o.nomCertif:"",id_etablissement:(null==o?void 0:o.societe)?o.societe.id:"",nom_etablissement:o?o.etablissement:"",city:o&&o.ville?{address:"",city:o.ville.nom,country:o.pays.nom,dep:o.dpt.nom,formatted_address:o.ville.cp+" "+o.ville.nom+", "+o.pays.nom,lat:o.ville.lat,lng:o.ville.lng,region:o.region.nom,typeOfLocation:"locality",zip:o.ville.cp}:null,anneeDebut:o&&o.anneeDebut?(0,Y.Z)(o.anneeDebut):null,anneeFin:o&&o.anneeFin?(0,Y.Z)(o.anneeFin):null,en_cours:!!o&&(null==o.anneeFin||0==o.anneeFin),description:o?o.description:""},u=p.nom_etablissement?[{label:p.nom_etablissement,value:p.id_etablissement}]:[],x=U.Ry().shape({titre:U.Z_().trim().required(c("global:profile.form.required-education-title")),nom_etablissement:U.Z_().trim().required(c("global:common.form.required-school")),city:U.Ry().required(c("global:common.form.required-city2")).nullable(),description:U.Z_().trim().min(20,c("global:common.form.min-char",{count:20})).max(500,c("global:common.form.max-char",{count:500})),anneeDebut:U.hT().when("diplome",{is:"CERT",then:U.hT().nullable(),otherwise:U.hT().required(c("global:common.form.required-date")).nullable()}),anneeFin:U.hT().nullable().when("anneeDebut",(e,l)=>e?l.min(e):l)}),f=(0,n.useCallback)(e=>{r&&F.K.addEditFormation(r,e).then(e=>{e.data&&e.data.status&&(i(e.data.data),l(!1))})},[r,i,l]);return(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsx)("div",{className:"flex items-center mt-4 p-3 md:mt-0 md:p-2",children:(0,t.jsx)("div",{className:"text-3xl",children:c("global:common.educations")})}),(0,t.jsx)(T.J9,{initialValues:p,validationSchema:x,onSubmit:e=>{f(e)},children:e=>{let{values:i}=e;return(0,t.jsxs)(T.l0,{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[(0,t.jsx)(q.Z,{className:"flex-1 min-h-0",children:(0,t.jsxs)("div",{className:"px-3 md:px-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(A.Z,{children:c("global:profile.form.education-title")}),(0,t.jsx)(V.Z,{name:"titre"}),(0,t.jsx)(X.Z,{name:"titre"})]}),(0,t.jsxs)("div",{className:"flex -mx-1 mt-2 md:flex-col",children:[(0,t.jsxs)("div",{className:"px-1 w-1/2 md:w-full",children:[(0,t.jsx)(A.Z,{children:c("global:profile.form.latest-degree")}),(0,t.jsx)(z.Z,{name:"diplome",items:(0,a.r1)(c),placeholder:c("global:login_signup.signup.step1.form.degree-placeholder"),noSearch:!0})]}),(0,t.jsxs)("div",{className:"px-1 w-1/2 md:w-full md:mt-2",children:[(0,t.jsx)(A.Z,{children:c("global:profile.form.school")}),(0,t.jsx)(Q.Z,{name:"id_etablissement",apiCallback:d,apiFormat:m.current,fieldValue:"nom_etablissement",placeholder:"",items:u}),(0,t.jsx)(X.Z,{name:"nom_etablissement"})]})]}),"CERT"==i.diplome&&(0,t.jsx)("div",{className:"flex -mx-1 mt-2 md:flex-col",children:(0,t.jsxs)("div",{className:"px-1 w-1/2 md:w-full",children:[(0,t.jsx)(A.Z,{children:c("global:profile.form.certification-name")}),(0,t.jsx)(V.Z,{name:"nomCertif"})]})}),(0,t.jsxs)("div",{className:"flex -mx-1 mt-2 md:flex-col",children:[(0,t.jsxs)("div",{className:"px-1 w-1/3 md:w-full",children:[(0,t.jsx)(A.Z,{children:c("global:profile.form.city")}),(0,t.jsx)(B.Z,{name:"city",placeholder:"",mode:"regions"}),(0,t.jsx)(X.Z,{name:"city"})]}),"CERT"!=i.diplome&&(0,t.jsxs)("div",{className:"px-1 w-1/3 md:w-full md:mt-2",children:[(0,t.jsx)(A.Z,{children:c("global:profile.form.start-year")}),(0,t.jsx)(H.Z,{name:"anneeDebut",showYearPicker:!0,dateFormat:"yyyy",portalId:"calendar"}),(0,t.jsx)(X.Z,{name:"anneeDebut"})]}),(0,t.jsxs)("div",{className:"px-1 w-1/3 md:w-full md:mt-2",children:[(0,t.jsx)(A.Z,{children:"CERT"==i.diplome?c("global:profile.form.graduation-year"):c("global:profile.form.finish-year")}),(0,t.jsx)(H.Z,{name:"anneeFin",showYearPicker:!0,dateFormat:"yyyy",disabled:i.en_cours,portalId:"calendar"}),"CERT"!=i.diplome&&(0,t.jsx)("div",{className:"mt-1",children:(0,t.jsx)($.Z,{label:c("global:common.in-progress"),name:"en_cours"})})]})]}),(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsx)(A.Z,{supplement:(0,t.jsxs)("span",{className:"text-gray60",children:["(",c("global:common.form.min-char",{count:20}),")"]}),children:c("global:common.description")}),(0,t.jsx)(J.Z,{name:"description"}),(0,t.jsx)(X.Z,{name:"description"})]})]})}),(0,t.jsx)("div",{id:"calendar"}),(0,t.jsxs)("div",{className:"p-3 flex justify-end",children:[(0,t.jsx)("div",{className:"mr-1",children:(0,t.jsx)(Z.Z,{variant:"outline",type:"button",onClick:()=>l(!1),children:c("global:common.cancel")})}),(0,t.jsx)("div",{children:(0,t.jsx)(Z.Z,{variant:"action",type:"submit",children:c("global:common.save-changes")}
1)})]})]})}})]})};let ei=c.ZP.div.withConfig({componentId:"sc-259b65d0-0"})(["& + &{margin-top:30px;}"]);var et=e=>{let{setProfil:l,profil:i,editMode:o,formationAddedit:r,setEditStep:c,setEdit:d,eventPostulation:m}=e,{t:p}=(0,k.Z)(),u=!!i&&i.xps.length>=1&&i.formations.length>=1&&i.metiers.length>=1&&(i.competences.length>=1||"handicarriere"===a.hf)&&i.langues.length>=1&&i.tauxCompletion>=70,[x,f]=(0,n.useState)(!!o&&o),h=(0,O.useMediaQuery)({maxWidth:1200}),[g,v]=(0,n.useState)(r||null),b=(0,s.v9)(e=>e.auth.token),j=(0,s.v9)(e=>e.pageOffre.offrePostulation),y=(0,s.v9)(e=>e.pageOffre.postulationAfterInscription),N=(0,n.useCallback)(e=>{b&&F.K.removeFormation(b,e).then(e=>{e.data&&e.data.status&&l(e.data.data)})},[b,l]),C=(0,w.TR)(i,"formation",j,!!m);return((0,n.useEffect)(()=>{null!=o&&f(o)},[o]),x)?(0,t.jsx)(el,{setEditMode:f,setProfil:l,formationAddedit:g}):(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center mt-4 p-3 md:mt-0 md:p-2",children:[(0,t.jsx)("div",{className:"text-3xl md:hidden",children:p("global:common.educations")}),(0,t.jsx)("div",{className:"ml-auto md:ml-0 md:w-full",children:(0,t.jsx)(Z.Z,{variant:"normal",leftIcon:"plus",onClick:()=>{f(!0),null==d||d(!0),v(null)},fullWidth:h,children:p("global:profile.add-education-button")})})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(q.Z,{className:"h-full",children:(0,t.jsxs)("div",{className:"px-3 md:px-2",children:[i.formations.map((e,l)=>(0,t.jsxs)(ei,{className:"flex md:flex-col",children:[(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(L.Z,{formation:e,edit:!0,setEditMode:f,setFormationAddedit:v})}),(0,t.jsx)("div",{className:"ml-2 p-05 md:ml-auto",children:(0,t.jsx)(Z.Z,{size:"small",variant:"outline",onClick:()=>N(e.id),children:p("global:common.delete")})})]},l)),0==i.formations.length&&(0,t.jsx)(R.Z,{sectionName:p("global:common.educations"),icon:"graduation-cap",button:(0,t.jsx)(Z.Z,{variant:"action",leftIcon:"plus",onClick:()=>{f(!0),v(null)},type:"button",children:p("global:profile.add-education-button")})})]})})}),(0,t.jsx)("div",{className:"text-right p-3 md:p-2",children:(0,t.jsx)(Z.Z,{variant:"action",fullWidth:h,type:"button",onClick:()=>c(C),disabled:(!u||y)&&0==i.formations.length,children:"postulationConfirmation"===C?p("global:common.submit-application"):p("global:common.next-step")})})]})},en=i(39673),es=i(92515),ea=e=>{let{setEditMode:l,setProfil:i,hobbyAddedit:n,profil:o}=e,{t:r}=(0,k.Z)(),c=(0,s.v9)(e=>e.auth.token),d=Object.keys((0,a.yw)(r)).map(e=>({ico:(0,a.yw)(r)[e].ico,label:(0,a.yw)(r)[e].nom,value:e})),m={type:n?n.type:"",description:n?n.description:""},p=U.Ry().shape({type:U.Z_().trim().required(r("global:profile.form.required-type")),description:U.Z_().trim().required(r("global:profile.form.required-description"))}),u=e=>{c&&(n?(n.type=e.type,n.description=e.description):o.centresInteret.push(e),F.K.addEditInterets(c,o.centresInteret).then(e=>{e.data&&e.data.status&&(i(e.data.data),l(!1))}))};return(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsx)("div",{className:"flex items-center mt-3 mb-3",children:(0,t.jsx)("div",{className:"text-3xl",children:r("global:profile.interests")})}),(0,t.jsx)("div",{className:"flex-1 min-h-0 flex",children:(0,t.jsx)(T.J9,{initialValues:m,validationSchema:p,onSubmit:e=>u(e),children:()=>(0,t.jsxs)(T.l0,{className:"flex-1 min-h-0 flex flex-col",children:[(0,t.jsxs)(q.Z,{className:"flex-1 min-h-0",children:[(0,t.jsx)("div",{className:"text-gray80",children:r("global:profile.select-interest")}),(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsx)(es.Z,{variant:"button",name:"type",items:d,direction:"horizontal"}),(0,t.jsx)(X.Z,{name:"type"})]}),(0,t.jsxs)("div",{className:"mt-3",children:[(0,t.jsx)(A.Z,{children:r("global:common.description")}),(0,t.jsx)(J.Z,{name:"description"}),(0,t.jsx)(X.Z,{name:"description"})]})]}),(0,t.jsxs)("div",{className:"mt-3 flex justify-end",children:[(0,t.jsx)("div",{className:"mr-1",children:(0,t.jsx)(Z.Z,{variant:"outline",type:"button",onClick:()=>l(!1),children:r("global:common.cancel")})}),(0,t.jsx)("div",{children:(0,t.jsx)(Z.Z,{variant:"action",type:"submit",children:r("global:common.save-changes")}
1)})]})]})})})]})};let eo=c.ZP.div.withConfig({componentId:"sc-ad8f3d7c-0"})(["& + &{margin-top:30px;}"]);var er=e=>{let{profil:l,setProfil:i,editMode:a,hobbyAddedit:o,setEditStep:r}=e,{t:c}=(0,k.Z)(),[d,m]=(0,n.useState)(!!a&&a),p=(0,O.useMediaQuery)({maxWidth:1200}),[u,x]=(0,n.useState)(o||null),f=(0,s.v9)(e=>e.auth.token),h=(0,s.v9)(e=>e.pageOffre.offrePostulation),g=(0,n.useCallback)(e=>{f&&(l.centresInteret.splice(e,1),F.K.addEditInterets(f,l.centresInteret).then(e=>{e.data&&e.data.status&&i(e.data.data)}))},[f,l.centresInteret,i]);if(d)return(0,t.jsx)(ea,{profil:l,setProfil:i,setEditMode:m,hobbyAddedit:u});let v=(0,w.TR)(l,"hobby",h);return(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center mt-3 mb-3 md:flex-col md:items-start",children:[(0,t.jsx)("div",{className:"text-3xl",children:c("global:profile.interests")}),(0,t.jsx)("div",{className:"ml-auto md:ml-0 md:mt-2 md:w-full",children:(0,t.jsx)(Z.Z,{variant:"normal",leftIcon:"plus",onClick:()=>{m(!0),x(null)},fullWidth:p,children:c("global:profile.add-interest-button")})})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsxs)(q.Z,{className:"h-full",children:[l.centresInteret.map((e,l)=>(0,t.jsxs)(eo,{className:"flex md:flex-col",children:[(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(en.Z,{centreInteret:e,edit:!0,setEditMode:m,setHobbyAddedit:x},l)}),(0,t.jsx)("div",{className:"ml-2 p-05 md:ml-0 md:mt-1 md:w-full md:text-right",children:(0,t.jsx)(Z.Z,{size:"small",variant:"outline",type:"button",onClick:()=>g(l),children:c("global:common.delete")})})]},l)),0==l.centresInteret.length&&(0,t.jsx)(R.Z,{sectionName:c("global:profile.interests"),icon:"user-tie",button:(0,t.jsx)(Z.Z,{variant:"action",leftIcon:"plus",onClick:()=>{m(!0),x(null)},type:"button",children:c("global:profile.add-interest-button")})})]})}),(0,t.jsx)("div",{className:"mt-3 flex justify-end",children:(0,t.jsx)("div",{className:"md:w-full",children:(0,t.jsx)(Z.Z,{variant:"action",fullWidth:p,type:"button",onClick:()=>r(v),children:"postulationConfirmation"===v?c("global:common.submit-application"):c("global:common.next-step")})})})]})},ec=i(68439),ed=e=>{var l,i;let{profil:a,setProfil:o,setEditStep:r}=e,c=(0,s.v9)(e=>e.auth.token),{t:d}=(0,k.Z)(),m=(0,O.useMediaQuery)({maxWidth:1200}),p=(0,s.v9)(e=>e.pageOffre.offrePostulation),u=(0,s.v9)(e=>e.pageOffre.postulationAfterInscription),x={profilpic:(null==a?void 0:null===(l=a.photo)||void 0===l?void 0:l.normal)?null==a?void 0:null===(i=a.photo)||void 0===i?void 0:i.normal:""},f=(0,n.useCallback)(e=>{c&&F.K.addEditPhoto(c,e.profilpic).then(e=>{e.data&&e.data.status&&o(e.data.data)})},[o,c]),h=u?"xps_asso":(0,w.TR)(a,"photo",p);return(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsx)("div",{className:"flex items-center mt-3 mb-3",children:(0,t.jsx)("div",{className:"text-3xl",children:d("global:profile.profile-picture")})}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(T.J9,{initialValues:x,onSubmit:()=>void 0,children:()=>(0,t.jsxs)(T.l0,{children:[(0,t.jsx)(D._,{onChange:f}),(0,t.jsx)("div",{className:"text-gray80",children:d("global:profile.edit-profile-picture")}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(ec.Z,{name:"profilpic",initials:"".concat(null==a?void 0:a.prenom," ").concat(null==a?void 0:a.nom),actualPic:x.profilpic,type:"user",rolePic:d("global:profile.profile-picture"),instructions:d("global:profile.accepted-formats")})})]})})}),(0,t.jsx)("div",{className:"text-right p-3 md:p-0 md:mt-2",children:(0,t.jsx)("div",{children:(0,t.jsx)(Z.Z,{variant:"action",fullWidth:m,type:"button",onClick:()=>r(h),children:"postulationConfirmation"===h?d("global:common.submit-application"):d("global:common.next-step")})})})]})},em=i(10426);let ep=c.ZP.div.withConfig({componentId:"sc-6c588ffb-0"})(["grid-template-columns:",";"],e=>e.$nbCol?"repeat(".concat(e.$nbCol,", minmax(0, 1fr))"):"repeat(5, minmax(0, 1fr))");var eu=e=>{let{items:l,name:i,max:n,nbCol:s}=e,[a,,o]=(0,T.U$)(i),r=e=>{if(a.value.includes(e)){let l=Array.from(a.value),i=l.indexOf(e);l.splice(i,1),o.setValue(l)}else{if(n&&a.value.length>=n)return;let l=[...a.value,e];o.setValue(l)}};return(0,t.jsx)(ep,{className:"grid gap-x-1",$nbCol:s,children:l.map((e,l)=>(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(em.Z,{id:e.id,ico:e.ico,nom:e.nom,selectable:!(void 0!=n&&a.value.length>=n&&!a.value.includes(e.id)),active:a.value.includes(e.id),onClick:()=>r(e.id),disabled:void 0!=n&&a.value.length>=n&&!a.value.includes(e.id)})},l))})},ex=e=>{let{profil:l,setProfil:i,setEditStep:a}=e,{t:o}=(0,k.Z)(),r=(0,s.v9)(e=>e.auth.ctoken),c=(0,s.v9)(e=>e.auth.token),d=(0,s.v9)(e=>e.pageOffre.offrePostulation),m=(0,s.v9)(e=>
1e.pageOffre.postulationAfterInscription),[p,u]=(0,n.useState)([]),x=(0,O.useMediaQuery)({maxWidth:1200}),f={qualite:l.qualites.map(e=>e.id)};(0,n.useEffect)(()=>{r&&E.u.getQualites(r).then(e=>{e.data&&u(e.data.data)})},[r]);let h=(0,n.useCallback)(e=>{c&&F.K.addEditQualites(c,e.qualite).then(e=>{e.data&&e.data.status&&i(e.data.data)})},[i,c]),g=m?"hobby":(0,w.TR)(l,"qualites",d);return(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsx)("div",{className:"flex items-center mt-3 mb-3",children:(0,t.jsx)("div",{className:"text-3xl",children:o("global:common.qualities")})}),(0,t.jsxs)("div",{className:"flex-1 min-h-0 flex flex-col",children:[(0,t.jsx)("div",{className:"mb-2",children:o("global:profile.qualities-text",{max:4})}),(0,t.jsx)(q.Z,{className:"flex-1 min-h-0",children:(0,t.jsx)(T.J9,{initialValues:f,onSubmit:()=>void 0,children:()=>(0,t.jsxs)(T.l0,{children:[(0,t.jsx)(D._,{onChange:h,debounceTime:1e3}),(0,t.jsx)(eu,{name:"qualite",items:p,max:4,nbCol:x?2:4})]})})}),(0,t.jsx)("div",{className:"mt-3 flex justify-end",children:(0,t.jsx)("div",{className:"md:w-full",children:(0,t.jsx)(Z.Z,{variant:"action",fullWidth:x,type:"button",onClick:()=>a(g),children:o("postulationConfirmation"===g?"global:common.submit-application":"global:common.next-step")})})})]})]})},ef=e=>{let{profil:l,setProfil:i,setEditStep:n,onClose:a}=e,o=(0,s.v9)(e=>e.auth.token),r=(0,s.v9)(e=>e.pageOffre.offrePostulation),c=(0,s.v9)(e=>e.pageOffre.postulationAfterInscription),{t:d}=(0,k.Z)(),m={resume:l.resume},p=U.Ry().shape({resume:U.Z_().trim().max(1e3,d("global:common.form.max-char",{count:1e3}))}),u=c?"photo":(0,w.TR)(l,"perso",r),x=l.tauxCompletion>=60&&"postulationConfirmation"!==u,f=e=>{o&&F.K.addEditResume(o,e).then(e=>{e.data&&e.data.status&&i(e.data.data)})},h=(0,O.useMediaQuery)({maxWidth:1200});return(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsx)("div",{className:"flex items-center mt-3 mb-3",children:(0,t.jsx)("div",{className:"text-3xl",children:d("global:common.summary")})}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)("div",{children:(0,t.jsx)(T.J9,{initialValues:m,validationSchema:p,onSubmit:()=>void 0,children:()=>(0,t.jsx)(T.l0,{children:(0,t.jsxs)("div",{children:[(0,t.jsx)(A.Z,{supplement:(0,t.jsx)("span",{className:"text-gray60",children:d("global:profile.form.optional-max-char",{count:1e3})}),children:d("global:common.summary")}),(0,t.jsx)(J.Z,{name:"resume",rows:6,maxLength:1e3,style:{maxHeight:"420px"},onBlur:e=>f(e.target.value)}),(0,t.jsx)(X.Z,{name:"resume"})]})})})})}),(0,t.jsxs)("div",{className:"text-right mt-2 flex justify-end",children:[x&&(0,t.jsx)("div",{className:"mr-2",children:(0,t.jsx)(Z.Z,{variant:"action",fullWidth:h,type:"button",onClick:()=>null==a?void 0:a(),children:d("global:common.finish")})}),(0,t.jsx)(Z.Z,{variant:"action",fullWidth:h,type:"button",onClick:()=>n(u),children:"postulationConfirmation"===u?d("global:common.submit-application"):d("global:common.next-step")})]})]})},eh=i(54439),eg=e=>{let{setEditMode:l,setProfil:i,xpAddedit:o}=e,r=(0,s.v9)(e=>e.auth.token),{t:c}=(0,k.Z)(),d=Object.entries((0,a.DJ)(c)).map(e=>{let[l,i]=e;return{ico:i.ico,label:i.nom,value:l}}),m={id:o?o.id:0,titre:o?o.titre:"",description:o?o.description:"",type:o?o.type:"",etablissement:o?o.asso:"",city:o&&o.ville?{address:"",city:o.ville.nom,country:o.pays.nom,dep:o.dpt.nom,formatted_address:o.ville.cp+" "+o.ville.nom+", "+o.pays.nom,lat:o.ville.lat,lng:o.ville.lng,region:o.region.nom,typeOfLocation:"locality",zip:o.ville.cp}:null,anneeDebut:o&&o.anneeDebut?(0,Y.Z)(o.anneeDebut):null,anneeFin:o&&o.anneeFin?(0,Y.Z)(o.anneeFin):null,en_cours:!!o&&(null==o.anneeFin||0==o.anneeFin)},p=U.Ry().shape({titre:U.Z_().trim().required(c("global:profile.form.required-job-title")),type:U.Z_().trim().required(c("global:profile.form.required-type")),etablissement:U.Z_().trim().required(c("global:common.form.required-school")),description:U.Z_().trim().required(c("global:profile.form.required-description")),city:U.Ry().required(c("global:common.form.required-city2")).nullable(),anneeDebut:U.hT().required(c("global:common.form.required-date")).nullable(),anneeFin:U.hT().nullable().when("anneeDebut",(e,l)=>e?l.min(e):l)}),u=(0,n.useCallback)(e=>{r&&F.K.addEditXpAsso(r,e).then(e=>{e.data&&e.data.status&&(i(e.data.data),l(!1))})},[r,i,l]);return(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsx)("div",{className:"flex items-center mt-3 mb-3",children:(0,t.jsx)("div",{className:"text-3xl",children:c("global:profile.associative-experience")})}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(q.Z,{className:"h-full",children:(0,t.jsx)(T.J9,{initialValues:m,validationSchema:p,onSubmit:e=>{u(e)},children:e=>{let{values:i}=e;return(0,t.jsxs)(T.l0,{className:"overflow-hidden",children:[(0,t.jsx)("div",{className:"text-gray80",children:c("global:profile.form.association-type")}),(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsx)(es.Z,{variant:"button",name:"type",items:d,direction:"horizontal"}),(0,t.jsx)(X.Z,{name:"type"})]}),(0,t.jsxs)("div",{className:"flex -mx-1 mt-3 md:flex-col",children:[(0,t.jsxs)("div",{className:"px-1 w-1/2 md:w-full",children:[(0,t.jsx)(A.Z,{children:c("global:common.fields.title")}),(0,t.jsx)(V.Z,{name:"titre"}),(0,t.jsx)(X.Z,{name:"titre"})]}),(0,t.jsxs)("div",{className:"px-1 w-1/2 md:w-full md:mt-2",children:[(0,t.jsx)(A.Z,{children:c("global:profile.form.school")}),(0,t.jsx)(V.Z,{name:"etablissement"}),(0,t.jsx)(X.Z,{name:"etablissement"})]})]}),(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsx)(A.Z,{children:c("global:common.description")}),(0,t.jsx)(J.Z,{name:"description"}),(0,t.jsx)(X.Z,{name:"description"})]}),(0,t.jsxs)("div",{className:"flex -mx-1 mt-2 md:flex-col",children:[(0,t.jsxs)("div",{className:"px-1 w-1/3 md:w-full",children:[(0,t.jsx)(A.Z,{children:c("global:profile.form.city")}),(0,t.jsx)(B.Z,{name:"city",placeholder:"",mode:"regions"}),(0,t.jsx)(X.Z,{name:"city"})]}),(0,t.jsxs)("div",{className:"px-1 w-1/3 md:w-full md:mt-2",children:[(0,t.jsx)(A.Z,{children:c("global:profile.form.start-year")}),(0,t.jsx)(H.Z,{name:"anneeDebut",showMonthYearPicker:!0,dateFormat:"MM/yyyy"}),(0,t.jsx)(X.Z,{name:"anneeDebut"})]}),(0,t.jsxs)("div",{className:"px-1 w-1/3 md:w-full md:mt-2",children:[(0,t.jsx)(A.Z,{children:c("global:profile.form.finish-year")}),(0,t.jsx)(H.Z,{name:"anneeFin",showMonthYearPicker:!0,dateFormat:"MM/yyyy",disabled:i.en_cours}),(0,t.jsx)("div",{className:"mt-1",children:(0,t.jsx)($.Z,{label:c("global:common.in-progress"),name:"en_cours"})})]})]}),(0,t.jsxs)("div",{className:"mt-3 flex justify-end",children:[(0,t.jsx)("div",{className:"mr-1",children:(0,t.jsx)(Z.Z,{variant:"outline",type:"button",onClick:()=>l(!1),children:c("global:common.cancel")})}),(0,t.jsx)("div",{children:(0,t.jsx)(Z.Z,{variant:"action",type:"submit",children:c("global:common.save-changes")}
1)})]})]})}})})})]})};let ev=c.ZP.div.withConfig({componentId:"sc-7a74ea48-0"})(["& + &{margin-top:30px;}"]);var eb=e=>{let{profil:l,setProfil:i,xpAddedit:a,editMode:o,setEditStep:r}=e,{t:c}=(0,k.Z)(),[d,m]=(0,n.useState)(!!o&&o),p=(0,O.useMediaQuery)({maxWidth:1200}),[u,x]=(0,n.useState)(a||null),f=(0,s.v9)(e=>e.auth.token),h=(0,s.v9)(e=>e.pageOffre.offrePostulation),g=(0,s.v9)(e=>e.pageOffre.postulationAfterInscription),v=(0,n.useCallback)(e=>{f&&F.K.removeXpAsso(f,e).then(e=>{e.data&&e.data.status&&i(e.data.data)})},[f,i]),b=g?"qualites":(0,w.TR)(l,"xps_asso",h);return d?(0,t.jsx)(eg,{setProfil:i,setEditMode:m,xpAddedit:u}):(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center mt-4 p-3 md:mt-0 md:p-2",children:[(0,t.jsx)("div",{className:"text-3xl",children:c("global:profile.associative-experience")}),(0,t.jsx)("div",{className:"ml-auto md:ml-0 md:w-full",children:(0,t.jsx)(Z.Z,{variant:"normal",leftIcon:"plus",onClick:()=>{m(!0),x(null)},fullWidth:p,children:c("global:profile.add-experience-button")})})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsxs)(q.Z,{className:"h-full",children:[l.xpsAsso.map((e,l)=>(0,t.jsxs)(ev,{className:"flex md:flex-col",children:[(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(eh.Z,{xpAsso:e,edit:!0,setEditMode:m,setXpAddedit:x})}),(0,t.jsx)("div",{className:"ml-2 p-05 md:ml-0 md:mt-2 md:text-right",children:(0,t.jsx)(Z.Z,{size:"small",variant:"outline",type:"button",onClick:()=>v(e.id),children:c("global:common.delete")})})]},l)),0==l.xpsAsso.length&&(0,t.jsx)(R.Z,{sectionName:c("global:common.experiences"),icon:"user-tie",button:(0,t.jsx)(Z.Z,{variant:"action",leftIcon:"plus",onClick:()=>{m(!0),x(null)},type:"button",children:c("global:profile.add-experience-button")})})]})}),(0,t.jsx)("div",{className:"mt-3 flex justify-end md:mt-2",children:(0,t.jsx)("div",{className:"flex justify-end w-full",children:(0,t.jsx)(Z.Z,{variant:"action",fullWidth:p,type:"button",onClick:()=>r(b),children:"postulationConfirmation"===b?c("global:common.submit-application"):c("global:common.next-step")})})})]})},ej=e=>{let{profil:l,setProfil:i,menu:s,xpAssoAddedit:a,editMode:o,hobbyAddedit:r,setEditStep:c,onClose:d}=e,{t:m}=(0,k.Z)(),p="perso"==s?"resume":"photo"==s?"photo":"xps_asso"==s?"xpAsso":"qualites"==s?"qualite":"hobby"==s?"hobby":"",[u,x]=(0,n.useState)(p);return(0,n.useEffect)(()=>{s&&x(p)},[p,s]),(0,t.jsx)("div",{className:"h-full px-3 pb-3 pt-2 md:px-2",children:(0,t.jsx)("div",{className:"h-full",children:(0,t.jsxs)(P.Z,{fullHeight:!0,defaultActiveKey:p,delegateActiveTab:e=>c("resume"==e?"perso":"xpAsso"==e?"xps_asso":"qualite"==e?"qualites":void 0==e?"":e),delegateTab:u,children:[(0,t.jsx)(P.x,{tab:m("global:common.summary"),incomplete:""==l.resume,children:(0,t.jsx)(ef,{profil:l,setProfil:i,setEditStep:c,onClose:d})},"resume"),(0,t.jsx)(P.x,{tab:m("global:profile.profile-picture"),incomplete:!l.photo.normal,children:(0,t.jsx)(ed,{profil:l,setProfil:i,setEditStep:c})},"photo"),(0,t.jsx)(P.x,{tab:m("global:profile.associative-experience"),incomplete:0==l.xpsAsso.length,children:(0,t.jsx)(eb,{profil:l,setProfil:i,xpAddedit:a,editMode:o,setEditStep:c})},"xpAsso"),(0,t.jsx)(P.x,{tab:m("global:common.qualities"),incomplete:0==l.qualites.length,children:(0,t.jsx)(ex,{profil:l,setProfil:i,setEditStep:c})},"qualite"),(0,t.jsx)(P.x,{tab:m("global:profile.interests"),incomplete:0==l.centresInteret.length,children:(0,t.jsx)(er,{profil:l,setProfil:i,hobbyAddedit:r,editMode:o,setEditStep:c,onClose:d})},"hobby")]})})})},ey=i(76769),eN=i(14831),eZ=e=>{let{profil:l,setProfil:i,setEditStep:a,eventPostulation:o}=e,{t:r}=(0,k.Z)(),c=(0,s.v9)(e=>e.auth.token),d=(0,s.v9)(e=>e.pageOffre.offrePostulation),m=(0,s.v9)(e=>e.pageOffre.postulationAfterInscription),{metiers:p}=(0,eN.l)(),u=(0,O.useMediaQuery)({maxWidth:1200}),[x]=(0,n.useState)({metiers:l.metiers.map(e=>e.id.toString())}),f=e=>{c&&F.K.editMetiers(c,e).then(e=>{e.data&&e.data.status&&i(e.data.data)})},h=(0,w.TR)(l,"metier",d,!!o);return(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsx)("div",{className:"flex items-center mt-4 p-3 md:mt-0 md:p-2",children:(0,t.jsx)("div",{className:"text-3xl md:hidden",children:r("global:common.jobs")})}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)("div",{className:"px-3 md:px-2",children:(0,t.jsx)(T.J9,{initialValues:x,enableReinitialize:!0,onSubmit:()=>void 0,children:e=>{let{values:l}=e;return(0,t.jsx)(T.l0,{children:(0,t.jsxs)("div",{className:"w-1/2 md:w-full",children:[(0,t.jsx)(A.Z,{children:r("global:common.my-professions")}),(0,t.jsx)(z.Z,{name:"metiers",items:p,placeholder:r("global:login_signup.signup.step1.form.interested-job-max",{count:10}),max:10,multiple:!0,tagLess:!0,onChange:e=>f(e)}),l.metiers&&l.metiers.length>0&&(0,t.jsx)("div",{className:"mt-1",children:(0,t.jsx)(ey.Z,{name:"metiers",items:p,onChange:e=>f(e)})})]})})}})})}),(0,t.jsx)("div",{className:"text-right p-3 md:p-2",children:(0,t.jsx)(Z.Z,{variant:"action",fullWidth:u,type:"button",onClick:()=>a(h),disabled:m&&0==l.metiers.length,children:"postulationConfirmation"===h?r("global:common.submit-application"):r("global:common.next-step")})})]})},ew=i(25068),ek=e=>{var l;let{setEditMode:i,setProfil:o,xpAddedit:r}=e,c=(0,s.v9)(e=>e.auth.ctoken),d=(0,s.v9)(e=>e.auth.token),{t:m}=(0,k.Z)(),p=(0,n.useCallback)(e=>c?ee.N.getSocietesAC(c,10,e):ee.N.getSocietesAC("",10,e),[c]),u=(0,n.useRef)({label:"nom",value:"id"}),x={id:r?r.id:0,titre:r?r.titre:"",date_debut:r&&r.dateDebut?(0,Y.Z)(r.dateDebut):null,date_fin:r&&r.dateFin?(0,Y.Z)(r.dateFin):null,en_cours:!!r&&(null==r.dateFin||
10==r.dateFin),description:r?r.description:"",id_entreprise:r&&r.societe?r.societe.id:"",nom_entreprise:r?r.societeNom:"",city:r&&r.ville?{address:"",city:r.ville.nom,country:r.pays.nom,dep:r.dpt.nom,formatted_address:r.ville.cp+" "+r.ville.nom+", "+r.pays.nom,lat:r.ville.lat,lng:r.ville.lng,region:r.region.nom,typeOfLocation:"locality",zip:r.ville.cp}:null,contract:r?null!==(l=r.contrat)&&void 0!==l?l:"AUTRE":""},f=x.nom_entreprise?[{label:x.nom_entreprise,value:x.id_entreprise}]:[],h=U.Ry().shape({titre:U.Z_().trim().required(m("global:profile.form.required-job-title")),nom_entreprise:U.Z_().trim().required(m("global:profile.form.required-company")),city:U.Ry().required(m("global:common.form.required-city2")).nullable(),description:U.Z_().trim().min(20,m("global:common.form.min-char",{count:20})),date_debut:U.hT().required(m("global:common.form.required-date")).nullable(),date_fin:U.hT().nullable().when("date_debut",(e,l)=>e?l.min(e):l),contract:U.Z_().trim().required(m("global:profile.form.required-contract"))}),g=(0,n.useCallback)(e=>{d&&F.K.addEditXp(d,e).then(e=>{e.data&&e.data.status&&(o(e.data.data),i(!1))})},[d,o,i]);return(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsx)("div",{className:"flex items-center mt-4 p-3 md:mt-0 md:p-2",children:(0,t.jsx)("div",{className:"text-3xl",children:m("global:profile.professional-career")})}),(0,t.jsx)(T.J9,{initialValues:x,validationSchema:h,onSubmit:e=>{g(e)},children:e=>{let{values:l}=e;return(0,t.jsxs)(T.l0,{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[(0,t.jsx)(q.Z,{className:"flex-1 min-h-0",children:(0,t.jsxs)("div",{className:"px-3 md:px-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(A.Z,{children:m("global:profile.form.job-title")}),(0,t.jsx)(V.Z,{name:"titre"}),(0,t.jsx)(X.Z,{name:"titre"})]}),(0,t.jsxs)("div",{className:"flex -mx-1 mt-2 md:flex-col",children:[(0,t.jsxs)("div",{className:"px-1 w-1/2 md:w-full",children:[(0,t.jsx)(A.Z,{children:m("global:common.company")}),(0,t.jsx)(Q.Z,{name:"id_entreprise",apiCallback:p,apiFormat:u.current,fieldValue:"nom_entreprise",placeholder:"",items:f}),(0,t.jsx)(X.Z,{name:"nom_entreprise"})]}),(0,t.jsxs)("div",{className:"px-1 w-1/2 md:w-full md:mt-2",children:[(0,t.jsx)(A.Z,{children:m("global:profile.form.city")}),(0,t.jsx)(B.Z,{name:"city",placeholder:"",mode:"regions"}),(0,t.jsx)(X.Z,{name:"city"})]})]}),(0,t.jsxs)("div",{className:"flex -mx-1 mt-2 md:flex-col",children:[(0,t.jsxs)("div",{className:"px-1 w-1/2 md:w-full md:mt-2",children:[(0,t.jsx)(A.Z,{children:m("global:offers.contract")}),(0,t.jsx)(z.Z,{placeholder:"".concat(m("global:login_signup.signup.choice-contract-placeholder"),"..."),name:"contract",items:[...(0,a.mN)(m),{label:m("global:constants.activity-types.other"),value:"AUTRE"}]}),(0,t.jsx)(X.Z,{name:"contract"})]}),(0,t.jsxs)("div",{className:"px-1 w-1/4 md:w-full",children:[(0,t.jsx)(A.Z,{children:m("global:common.starting-date")}),(0,t.jsx)(H.Z,{name:"date_debut",portalId:"calendar",showMonthYearPicker:!0,dateFormat:"MM/yyyy"}),(0,t.jsx)(X.Z,{name:"date_debut"})]}),(0,t.jsxs)("div",{className:"px-1 w-1/4 md:w-full md:mt-2",children:[(0,t.jsx)(A.Z,{children:m("global:common.ending-date")}),(0,t.jsx)(H.Z,{name:"date_fin",portalId:"calendar",disabled:l.en_cours,showMonthYearPicker:!0,dateFormat:"MM/yyyy"}),(0,t.jsx)("div",{className:"mt-1",children:(0,t.jsx)($.Z,{label:m("global:common.in-progress"),name:"en_cours"})})]})]}),(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsx)(A.Z,{supplement:(0,t.jsxs)("span",{className:"text-gray60",children:["(",m("global:common.form.min-char",{count:20}),")"]}),children:m("global:profile.form.mission-description")}),(0,t.jsx)(J.Z,{name:"description"}),(0,t.jsx)(X.Z,{name:"description"})]})]})}),(0,t.jsx)("div",{id:"calendar"}),(0,t.jsxs)("div",{className:"p-3 flex justify-end",children:[(0,t.jsx)("div",{className:"mr-1",children:(0,t.jsx)(Z.Z,{variant:"outline",type:"button",onClick:()=>i(!1),children:m("global:common.cancel")})}),(0,t.jsx)("div",{children:(0,t.jsx)(Z.Z,{variant:"action",type:"submit",children:m("global:common.save-changes")}
1)})]})]})}})]})},eC=i(13995),eS=i(26873);let eI=c.ZP.div.withConfig({componentId:"sc-a9e4d0c7-0"})(["& + &{margin-top:30px;}"]);var eP=e=>{let{setProfil:l,profil:i,editMode:o,xpAddedit:r,setEditStep:c,setEdit:d,eventPostulation:m}=e,{t:p}=(0,k.Z)(),u=!!i&&i.xps.length>=1&&i.formations.length>=1&&i.metiers.length>=1&&(i.competences.length>=1||"handicarriere"===a.hf)&&i.langues.length>=1&&i.tauxCompletion>=70,[x,f]=(0,n.useState)(!!o&&o),h=(0,O.useMediaQuery)({maxWidth:1200}),[g,v]=(0,n.useState)(r||null),[b,j]=(0,n.useState)(0),y=(0,s.v9)(e=>e.pageOffre.offrePostulation),N=(0,s.v9)(e=>e.pageOffre.postulationAfterInscription),[C,S,I]=(0,eS.dd)(),P=(0,s.v9)(e=>e.auth.token),E=(0,n.useCallback)(()=>{P&&0!=b&&F.K.removeXp(P,b).then(e=>{e.data&&e.data.status&&l(e.data.data)})},[P,b,l]),_=(0,w.TR)(i,"xps",y,!!m);return((0,n.useEffect)(()=>{null!=o&&f(o)},[o]),x)?(0,t.jsx)(ek,{setEditMode:f,setProfil:l,xpAddedit:g}):(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center mt-4 p-3 md:mt-0 md:p-2",children:[(0,t.jsx)("div",{className:"text-3xl md:hidden",children:p("global:profile.professional-career")}),(0,t.jsx)("div",{className:"ml-auto md:ml-0 md:w-full",children:(0,t.jsx)(Z.Z,{variant:"normal",leftIcon:"plus",onClick:()=>{f(!0),null==d||d(!0),v(null)},fullWidth:h,children:p("global:profile.add-experience-button")})})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(q.Z,{className:"h-full",children:(0,t.jsxs)("div",{className:"px-3 md:px-2",children:[i.xps&&i.xps.map((e,l)=>(0,t.jsxs)(eI,{className:"flex md:flex-col",children:[(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(ew.Z,{xp:e,edit:!0,setEditMode:f,setXpAddedit:v})}),(0,t.jsx)("div",{className:"ml-2 p-05 md:ml-auto",children:(0,t.jsx)(Z.Z,{size:"small",variant:"outline",onClick:()=>{j(e.id),I()},children:p("global:common.delete")})})]},l)),0==i.xps.length&&(0,t.jsx)(R.Z,{sectionName:p("global:common.experiences"),icon:"briefcase",button:(0,t.jsx)(Z.Z,{variant:"action",leftIcon:"plus",onClick:()=>{f(!0),v(null)},type:"button",children:p("global:profile.add-experience-button")})}),N&&1==i.xps.length&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(R.Z,{sectionName:p("global:common.experiences"),icon:"briefcase",customDesc:p("global:profile.add-experience-description"),button:(0,t.jsx)(Z.Z,{variant:"action",leftIcon:"plus",onClick:()=>{f(!0),v(null)},type:"button",children:p("global:profile.add-experience-button")})})})]})})}),(0,t.jsx)("div",{className:"text-right p-3 md:p-2",children:(0,t.jsx)(Z.Z,{variant:"action",fullWidth:h,type:"button",onClick:()=>{null==d||d(!1),c(_)},disabled:!u&&i.xps.length<1||N&&i.xps.length<1,children:"postulationConfirmation"===_?p("global:common.submit-application"):p("global:common.next-step")})}),(0,t.jsx)(eC.Z,{visible:C,onClose:S,onSubmit:E,title:p("global:profile.experience-confirm-modal.title"),description:p("global:profile.experience-confirm-modal.description")})]})},eE=i(89276),e_=i(50647);let eA=c.ZP.div.withConfig({componentId:"sc-132c8598-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;width:100%;min-height:400px;gap:20px;"]),ez=c.ZP.div.withConfig({componentId:"sc-132c8598-1"})(["border:4px solid #f3f3f3;border-top:4px solid #3498db;border-radius:50%;width:50px;height:50px;animation:spin 1s linear infinite;@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"]);var eM=e=>{var l;let{profil:i,setProfil:a,setEditStep:o,onClose:c,eventPostulation:d}=e,{t:m}=(0,k.Z)(),p=(0,s.v9)(e=>e.auth.token),u=(0,s.v9)(e=>e.pageOffre.offrePostulation),x=(0,s.v9)(e=>e.pageOffre.postulationAfterInscription),f=(0,O.useMediaQuery)({maxWidth:1200}),[h,g]=(0,n.useState)(null),v=(0,n.useRef)(i.linkedinImportStatus);(0,n.useEffect)(()=>{let e=!!(u||d||x),l="pending"===v.current,t="pending"!==i.linkedinImportStatus;e&&l&&t&&o((0,w.TR)(i,"linkedin",u,!!d)),v.current=i.linkedinImportStatus},[i.linkedinImportStatus,u,d,x,o]);let b={linkedin_url:null!==(l=i.linkedinUrl)&&void 0!==l?l:""},j=U.Ry().shape({linkedin_url:U.Z_().matches(/^https:\/\/www\.linkedin\.com\/in\/[a-zA-Z0-9-%Ã-ÿ]+\/?$/,m("global:profile.linkedin-url-valid")).required(m("global:profile.linkedin-required"))}),y=async e=>{p&&await F.K.importLinkedin(p,e).then(e=>{e.data&&(e.data.status?(a(e.data.data),g(null),(0,e_.hA)(m("global:profile.linkedin-import-pending"))):g("error"))})},N=null===i.linkedinLastUpdate||i.linkedinLastUpdate<Date.now()/1e3-86400,C="pending"===i.linkedinImportStatus,S="not_found"===i.linkedinImportError||"unrecognized"===i.linkedinImportError?m("global:profile.linkedin-error-not-found"):i.linkedinImportError?m("global:profile.linkedin-error-unavailable"):m("global:profile.linkedin-error"),I=(0,w.TR)(i,"linkedin",u,!!d);return C?(0,t.jsxs)(eA,{children:[(0,t.jsx)(ez,{}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-lg font-bold",children:m("global:profile.linkedin-syncing")}),(0,t.jsx)("div",{className:"text-gray60 mt-2",children:m("global:profile.linkedin-syncing-message")})]})]}):(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsx)("div",{className:"flex items-center mt-4 p-3 md:mt-0 md:p-2",children:(0,t.jsx)("div",{className:"text-3xl md:hidden",children:m("global:profile.linkedin-in-sec")})}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)("div",{className:"px-3 md:px-2",children:(0,t.jsx)(T.J9,{validationSchema:j,initialValues:b,enableReinitialize:!0,onSubmit:y,children:e=>{let{isValid:l,values:n,isSubmitting:s}=e;return(0,t.jsxs)(T.l0,{children:[(0,t.jsx)(A.Z,{children:m("global:profile.linkedin-provide-url")}),(0,t.jsxs)("div",{className:"flex mt-3 md:flex-col",children:[(0,t.jsx)("div",{className:"w-1/2 md:w-full",children:(0,t.jsx)(V.Z,{name:"linkedin_url",placeholder:m("global:profile.linkedin-url")})}),(0,t.jsxs)("div",{className:"w-1/2 md:w-full flex pl-2 md:mt-2",style:{alignItems:"center"},children:[l&&""!==n.linkedin_url&&(0,t.jsx)("a",{href:n.linkedin_url,target:"_blank",className:"mr-2",children:m("global:profile.linkedin-test-link")}),(0,t.jsx)(Z.Z,{variant:"action",type:"submit",disabled:!l||""===n.linkedin_url||s||C||!N,isLoading:s,loadingText:m("global:profile.linkedin-importing")+"...",children:m("global:profile.linkedin-import")})]})]}),(0,t.jsx)(X.Z,{name:"linkedin_url"}
1),!C&&!N&&null===h&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsxs)(eE.b,{type:"warning",children:[(0,t.jsx)(r.G,{icon:["far","warning"]})," ",m("global:profile.linkedin-warning-24h")]})}),"error"===h&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsxs)(eE.b,{type:"error",children:[(0,t.jsx)(r.G,{icon:["far","warning"]})," ",m("global:profile.linkedin-error-unavailable")]})}),"error"===i.linkedinImportStatus&&null===h&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsxs)(eE.b,{type:"error",children:[(0,t.jsx)(r.G,{icon:["far","warning"]})," ",S]})})]})}})})}),(0,t.jsx)("div",{className:"text-right p-3 md:p-2",children:(0,t.jsx)(Z.Z,{variant:"action",fullWidth:f,type:"button",onClick:()=>u?o(I):null==c?void 0:c(),children:u&&!x?m("global:common.next-step"):m("global:common.finish")})})]})},eT=i(5188),eq=i(70497),eR=i(74454);let eO=e=>!!(e&&"object"==typeof e&&"revision"in e&&"originalName"in e&&"status"in e),eD=e=>{if(e.networkError)return"network_error";let l=e.data;return(null==l?void 0:l.status)===!1?l.error||"unknown_error":null},eF=e=>{switch(e){case"invalid_file":return"global:profile.cv-errors.invalid-file";case"file_too_large":return"global:profile.cv-errors.file-too-large";case"corrupt_file":return"global:profile.cv-errors.corrupt-file";case"unreadable_file":return"global:profile.cv-errors.unreadable-file";case"ai_unavailable":return"global:profile.cv-errors.ai-unavailable";case"invalid_ai_output":return"global:profile.cv-errors.invalid-ai-output";case"queue_error":return"global:profile.cv-errors.queue-error";case"storage_error":case"storage_delete_error":return"global:profile.cv-errors.storage-error";case"stale_revision":return"global:profile.cv-errors.stale-revision";case"rate_limited":return"global:profile.cv-errors.rate-limited";case"network_error":return"global:profile.cv-errors.network-error";default:return"global:profile.cv-errors.generic"}};var eG=i(45801),eK=i(82005),eW=i(99102),eL=i(65210),eV=e=>{var l;let{profil:i,setProfil:t}=e,{t:a}=(0,k.Z)(),o=(0,s.v9)(e=>e.auth.token),r=(0,s.I0)(),[c,d]=(0,n.useState)(null),[m,p]=(0,n.useState)(null),[u,x]=(0,n.useState)(!1),f=null!==(l=i.cvDocument)&&void 0!==l?l:null,h=(0,n.useCallback)(e=>{let l={...e,jwtMercure:e.jwtMercure||i.jwtMercure};return t(l),r(eL.u.setProfile(l)),l},[r,i.jwtMercure,t]),g=(0,n.useCallback)(e=>h({...i,cvDocument:e}),[h,i]),v=(0,n.useCallback)(async()=>{var e;if(!o)return null;let l=await F.K.getProfil(o,String(i.id));return(null===(e=l.data)||void 0===e?void 0:e.status)&&l.data.data?h(l.data.data):null},[h,i.id,o]);(0,n.useEffect)(()=>{(null==f?void 0:f.status)&&["ready","done","error","delete_error"].includes(f.status)&&p(null)},[null==f?void 0:f.status]),(0,n.useEffect)(()=>{let e=null==f?void 0:f.status;if(!e||!["pending","applying","deleting"].includes(e)){x(!1);return}let l=!1,i=!1;x(!1);let t=async()=>{i||l||(i=!0,await v(),i=!1)},n=window.setInterval(t,eG.UG),s=window.setTimeout(()=>{l=!0,window.clearInterval(n),x(!0)},12e4);return()=>{l=!0,window.clearInterval(n),window.clearTimeout(s)}},[null==f?void 0:f.requestId,null==f?void 0:f.status,v]);let b=async e=>{if(!o)return!1;p(e),d("upload");let l=await F.K.uploadCv(o,e);d(null);let i=eD(l);if(i)return p(null),(0,e_.Sj)(a(eF(i))),!1;let t=F.K.unwrapCvResponse(l);return eO(t)&&(g(t),(0,e_.hA)("ready"===t.status?a("global:profile.cv-ready"):"done"===t.status?a("global:profile.cv-import-success"):a("global:profile.cv-processing"))),!0},j=async()=>{if(!o)return!1;d("delete");let e=await F.K.deleteCv(o);d(null);let l=eD(e);return l?((0,e_.Sj)(a(eF(l))),await v(),!1):(g(null),(0,e_.BY)(a("global:profile.cv-delete-success")),!0)},y=async()=>{if(!o)return!1;d("retry");let e=await F.K.retryCv(o);d(null);let l=eD(e);if(l)return(0,e_.Sj)(a(eF(l))),!1;let i=F.K.unwrapCvResponse(e);return eO(i)&&(g(i),(0,e_.hA)(a("global:profile.cv-processing"))),!0},N=async()=>{if(o&&f){d("download");try{let e=await F.K.downloadCv(o),l=eD(e);if(l)throw Error(l);let i=F.K.unwrapCvResponse(e);if(!(null==i?void 0:i.url))throw Error("cv_download_failed");let t=window.document.createElement("a");t.href=i.url,t.download=f.originalName.replace(/[^a-zA-Z0-9Ã-ÿ_.() -]/g,"_"),t.rel="noopener",window.document.body.appendChild(t),t.click(),t.remove()}catch(e){(0,e_.Sj)(a(eF("network_error")))}finally{d(null)}}};return{token:o,document:f,action:c,analysisFile:m,pollingTimedOut:u,commitProfile:h,refreshProfile:v,upload:b,deleteDocument:j,retry:y,download:N}};let e$=e=>{var l;let i=e=>({enabled:"present"===e.status,selectedIds:e.items.filter(e=>!0===e.importable).map(e=>e.id)});return{photo:{enabled:!1},summary:{enabled:"present"===e.sections.summary.status&&!!e.sections.summary.value},experiences:{...i(e.sections.experiences),selectedDescriptionIds:e.sections.experiences.items.filter(e=>!0===e.importable&&!0===e.descriptionImportable).map(e=>e.id)},educations:i(e.sections.educations),skills:{enabled:"present"===e.sections.skills.status,selectedIds:Array.from(new Set([...e.sections.skills.items.filter(e=>!0===e.importable).map(e=>e.id),...(null!==(l=e.sections.skills.options)&&void 0!==l?l:[]).filter(e=>!0===e.importable).map(e=>e.id)]))},languages:i(e.sections.languages),volunteerExperiences:i(e.sections.volunteerExperiences),qualities:i(e.sections.qualities),interests:i(e.sections.interests)}};var eJ=e=>
1{let[l,i]=(0,n.useState)(null),t=(0,n.useCallback)(e=>i(e$(e)),[]),s=(0,n.useCallback)(()=>i(null),[]),a=!!l&&(l.summary.enabled&&!(null==e?void 0:e.sections.summary.value)||["experiences","educations","skills","languages","volunteerExperiences","qualities","interests"].some(e=>{var i,t;return l[e].enabled&&(null!==(t=null===(i=l[e].selectedIds)||void 0===i?void 0:i.length)&&void 0!==t?t:0)===0})),o=!!(l&&e&&(e.sections.experiences.items.filter(e=>{var i;return null===(i=l.experiences.selectedIds)||void 0===i?void 0:i.includes(e.id)}).some(e=>""===e.title.trim()||""===e.company.trim()||!e.current&&!!e.startDate&&!!e.endDate&&e.endDate<e.startDate)||e.sections.educations.items.filter(e=>{var i;return null===(i=l.educations.selectedIds)||void 0===i?void 0:i.includes(e.id)}).some(e=>""===e.title.trim()||""===e.institution.trim()||!!e.startDate&&!!e.endDate&&e.endDate<e.startDate)));return{selection:l,initializeSelection:t,clearSelection:s,enablePhoto:()=>i(e=>e?{...e,photo:{enabled:!0}}:e),toggleSection:e=>{i(l=>l?{...l,[e]:{...l[e],enabled:!l[e].enabled}}:l)},toggleItem:(e,l)=>{i(i=>{var t;if(!i)return i;let n=null!==(t=i[e].selectedIds)&&void 0!==t?t:[];return{...i,[e]:{...i[e],selectedIds:n.includes(l)?n.filter(e=>e!==l):[...n,l]}}})},toggleExperienceDescription:e=>{i(l=>{var i;if(!l)return l;let t=null!==(i=l.experiences.selectedDescriptionIds)&&void 0!==i?i:[];return{...l,experiences:{...l.experiences,selectedDescriptionIds:t.includes(e)?t.filter(l=>l!==e):[...t,e]}}})},hasEmptyEnabledSection:a,editedSelectionIsInvalid:o}};let eQ=c.ZP.div.withConfig({componentId:"sc-a09b3cf1-0"})([".text-sm{font-size:14px !important;}"]),eU=c.ZP.div.withConfig({componentId:"sc-a09b3cf1-1"})(["padding:24px;border:2px dashed #cbd5d7;border-radius:6px;background:#f8fafb;text-align:center;"]),eX=c.ZP.div.withConfig({componentId:"sc-a09b3cf1-2"})(["padding:16px;border:1px solid #dce3e5;border-radius:6px;background:#fff;"]),eB=c.ZP.label.withConfig({componentId:"sc-a09b3cf1-3"})(["display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 18px;border-radius:4px;background:",";color:#fff;font-weight:700;cursor:",";opacity:",";"],h.colors.action,e=>{let{$disabled:l}=e;return l?"not-allowed":"pointer"},e=>{let{$disabled:l}=e;return l?.55:1}),eH=c.ZP.section.withConfig({componentId:"sc-a09b3cf1-4"})(["margin-top:16px;border:1px solid #dce3e5;border-radius:6px;overflow:hidden;"]),eY=c.ZP.div.withConfig({componentId:"sc-a09b3cf1-5"})(["display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px 16px;background:#f4f7f7;"]),e0=c.ZP.div.withConfig({componentId:"sc-a09b3cf1-6"})(["display:flex;align-items:flex-start;gap:10px;padding:12px 16px;border-top:1px solid #edf1f2;cursor:",";opacity:",";input{margin-top:4px;}"],e=>{let{$disabled:l}=e;return l?"not-allowed":"pointer"},e=>{let{$disabled:l}=e;return l?.6:1}),e1=c.ZP.label.withConfig({componentId:"sc-a09b3cf1-7"})(["position:relative;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;cursor:pointer;input{position:absolute;width:1px;height:1px;opacity:0;}.switch-track{position:relative;display:inline-block;width:36px;height:20px;flex:0 0 auto;border-radius:10px;background:#aebabc;transition:background 150ms ease;&::after{content:'';position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform 150ms ease;}}input:checked + .switch-track{background:",";}input:checked + .switch-track::after{transform:translateX(16px);}input:focus-visible + .switch-track{outline:2px solid ",";outline-offset:2px;}"],h.colors.action,h.colors.action),e2=c.ZP.span.withConfig({componentId:"sc-a09b3cf1-8"})(["display:inline-block;width:18px;height:18px;margin-right:8px;border:2px solid #d6e1e3;border-top-color:",";border-radius:50%;vertical-align:middle;animation:cv-spin 0.8s linear infinite;@keyframes cv-spin{to{transform:rotate(360deg);}}"],h.colors.action),e3=(e,l)=>e(eF(l)),e9=e=>!!e,e4=(e,l)=>new Intl.NumberFormat(l,{style:"unit",unit:"megabyte",maximumFractionDigits:1}).format(e/1024/1024),e8=(e,l)=>{let i=new Date("number"==typeof e&&e<1e12?1e3*e:e);return Number.isNaN(i.getTime())?"":new Intl.DateTimeFormat(l,{dateStyle:"medium"}).format(i)},e6=e=>{var l;return null!==(l=e.selectable)&&void 0!==l?l:!0===e.importable},e5=(e,l)=>e("present"===l?"global:profile.cv-section-present":"absent"===l?"global:profile.cv-section-absent":"global:profile.cv-section-uncertain"),e7=e=>{let{title:l,status:i,enabled:n,disabled:s=!1,hasExistingContent:a,onToggle:o,children:r}=e,{t:c}=(0,k.Z)();return(0,t.jsxs)(eH,{children:[(0,t.jsxs)(eY,{children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-bold",children:l}),(0,t.jsx)("div",{className:"text-sm text-gray60",children:e5(c,i)})]}),(0,t.jsxs)(e1,{children:[(0,t.jsx)("input",{type:"checkbox",role:"switch",checked:n,disabled:s,"aria-label":l,onChange:o}),(0,t.jsx)("span",{className:"switch-track","aria-hidden":"true"}),c(a?"global:profile.cv-replace-section":"global:common.add")]})]}),r]})};var le=e=>{var l,i,o,c,d,m,p,u,x,f,h,g;let{profil:v,setProfil:b,setEditStep:j,importEnabled:y,onClose:N,eventPostulation:C}=e,{t:S,lang:I}=(0,k.Z)(),P=(0,s.v9)(e=>e.pageOffre.offrePostulation),E=(0,s.v9)(e=>e.pageOffre.postulationAfterInscription),_=(0,O.useMediaQuery)({maxWidth:1200}
1),A=(0,n.useId)(),z=(0,n.useRef)(null),[M,T]=(0,n.useState)(null),[q,R]=(0,n.useState)(null),[D,G]=(0,n.useState)(""),[K,W]=(0,n.useState)([]),[L,V]=(0,n.useState)(!1),[$,J]=(0,n.useState)(!1),[Q,U,X]=(0,eS.dd)(),[B,H,Y]=(0,eS.dd)(),[ee,el,ei]=(0,eS.dd)(),{token:et,document:en,action:es,analysisFile:ea,pollingTimedOut:eo,commitProfile:er,refreshProfile:ec,upload:ed,deleteDocument:em,retry:ep,download:eu}=eV({profil:v,setProfil:b}),{selection:ex,initializeSelection:ef,clearSelection:eh,enablePhoto:eg,toggleSection:ev,toggleItem:eb,toggleExperienceDescription:ej,hasEmptyEnabledSection:ey,editedSelectionIsInvalid:eN}=eJ(q),eZ=$?"confirm":es,ew=(0,a.Qm)(S),ek=(0,a.DJ)(S),eI=(0,a.yw)(S);(0,n.useEffect)(()=>{W([])},[null==en?void 0:en.revision]),(0,n.useEffect)(()=>{let e=null==en?void 0:en.revision;if(!et||!e||!["ready","done"].includes(en.status)){R(null),eh();return}let l=!1;return V(!0),F.K.getCvPreview(et,e).then(e=>{if(l)return;V(!1);let i=eD(e);if(i){"stale_revision"===i?ec():(0,e_.Sj)(e3(S,i));return}let t=F.K.unwrapCvResponse(e);t&&(R(t),ef(t))}),()=>{l=!0}},[eh,null==en?void 0:en.revision,null==en?void 0:en.status,ef,ec,S,et]);let eP=async e=>{R(null),eh(),await ed(e)},eA=async()=>{await em()&&(R(null),eh())},ez=(e,l)=>R(i=>i?(0,eW._$)(i,"experiences",e,e=>{var i,t;let n={...e,...l};return(0,eK.qG)({...n,...Object.prototype.hasOwnProperty.call(l,"description")?{descriptionSelectable:(null===(i=n.description)||void 0===i?void 0:i.trim())!=="",descriptionImportable:(null===(t=n.description)||void 0===t?void 0:t.trim())!==""}:{}})}):i),eM=(e,l)=>R(i=>
1i?(0,eW._$)(i,"educations",e,e=>(0,eK.Yg)({...e,...l})):i),eO=(e,l)=>R(i=>i?(0,eW._$)(i,"languages",e,e=>({...e,level:l})):i),eF=e=>W(l=>l.includes(e)?l.filter(l=>l!==e):[...l,e]),eL=e=>K.includes(e),e$=(0,n.useRef)(null),eH=async()=>{var e,l;if(!et||!q||!ex)return;let i=ex.photo.enabled?null===(e=e$.current)||void 0===e?void 0:e.getPhoto():null;if(ex.photo.enabled&&!i){(0,e_.Sj)(S("global:profile.cv-preview-loading"));return}J(!0);let t=await F.K.confirmCv(et,{revision:q.revision,sections:ex,edits:{...i?{photo:i}:{},summary:null!==(l=q.sections.summary.value)&&void 0!==l?l:"",experiences:Object.fromEntries(q.sections.experiences.items.filter(e=>{var l;return null===(l=ex.experiences.selectedIds)||void 0===l?void 0:l.includes(e.id)}).map(e=>{var l,i,t,n,s;return[e.id,{title:e.title,company:e.company,description:null!==(l=e.description)&&void 0!==l?l:"",startDate:null!==(i=e.startDate)&&void 0!==i?i:null,endDate:null!==(t=e.endDate)&&void 0!==t?t:null,current:null!==(n=e.current)&&void 0!==n&&n,contract:null!==(s=e.contract)&&void 0!==s?s:null}]})),educations:Object.fromEntries(q.sections.educations.items.filter(e=>{var l;return null===(l=ex.educations.selectedIds)||void 0===l?void 0:l.includes(e.id)}).map(e=>{var l,i,t,n;return[e.id,{title:e.title,institution:e.institution,description:null!==(l=e.description)&&void 0!==l?l:"",startDate:null!==(i=e.startDate)&&void 0!==i?i:null,endDate:null!==(t=e.endDate)&&void 0!==t?t:null,degree:null!==(n=e.degree)&&void 0!==n?n:null}]})),languages:Object.fromEntries(q.sections.languages.items.filter(e=>{var l;return null===(l=ex.languages.selectedIds)||void 0===l?void 0:l.includes(e.id)}).map(e=>[e.id,{level:null===e.level||void 0===e.level?null:Number(e.level)}]))}});J(!1);let n=eD(t);if(n){(0,e_.Sj)(e3(S,n)),"stale_revision"===n&&ec();return}let s=F.K.unwrapCvResponse(t);s&&"id"in s?er(s):await ec(),(0,e_.BY)(S("global:profile.cv-import-success"))},eY=e=>null==e?void 0:e.filter(e9).map(e=>(0,t.jsx)(eK.QE,{warning:e},e)),e1=e=>e.length>0?(0,t.jsx)("div",{className:"p-2 border-t border-gray20",children:(0,t.jsx)(eK.rK,{corrections:e})}):null,e5=(e,l)=>{var i;return(null!==(i=null==q?void 0:q.corrections)&&void 0!==i?i:[]).filter(i=>i.section===e&&i.itemIndex===l)},le=(e,l)=>{var i;return(null!==(i=null==q?void 0:q.corrections)&&void 0!==i?i:[]).filter(i=>i.section===e&&(null===i.itemIndex||i.itemIndex>=l))},ll=(0,w.TR)(v,"import",P,!!C),li="upload"===eZ||(null==en?void 0:en.status)==="pending"||(null==en?void 0:en.status)==="applying"||(null==en?void 0:en.status)==="deleting",lt="upload"===eZ||(null==en?void 0:en.status)==="pending";return(0,t.jsxs)(eQ,{className:"h-full flex flex-col",children:[(0,t.jsxs)("div",{className:"flex-1 min-h-0 overflow-auto p-3 md:p-2",children:[(0,t.jsx)("div",{className:"text-3xl md:hidden mb-2",children:S("global:profile.cv-title")}),(0,t.jsx)("p",{className:"leading-normal",children:S("global:profile.cv-description")}),(0,t.jsx)("p",{className:"text-sm text-gray60 mt-1",children:S("global:profile.cv-privacy-notice")}),(0,t.jsx)(eT.Z,{disabled:!!eZ,onSaved:e=>b({...v,...e})}),(0,t.jsx)("input",{ref:z,id:A,type:"file",accept:eG.CS,className:"hidden",disabled:!!eZ||!y,onChange:e=>{var l;let i=null===(l=e.currentTarget.files)||void 0===l?void 0:l[0];if(e.currentTarget.value="",!i)return;let t=(0,eG.vX)(i);if(t){(0,e_.Sj)(e3(S,t));return}en?(T(i),Y()):eP(i)}}),en?(0,t.jsx)(eX,{className:"mt-3",children:(0,t.jsxs)("div",{className:"flex justify-between md:flex-col",children:[(0,t.jsxs)("div",{className:"min-w-0 mr-2",children:[(0,t.jsxs)("div",{className:"font-bold break-words",children:[(0,t.jsx)(r.G,{icon:["far","file-user"],className:"mr-1"}),en.originalName]}),(0,t.jsxs)("div",{className:"text-sm text-gray60 mt-1",children:[e4(en.size,I)," \xb7"," ",e8(en.uploadedAt,I)]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-1 md:mt-2",children:[(0,t.jsx)(Z.Z,{type:"button",variant:"clear",size:"small",disabled:!!eZ,isLoading:"download"===eZ,onClick:eu,children:S("global:profile.cv-download")}),y&&(0,t.jsx)(Z.Z,{type:"button",variant:"clear",size:"small",disabled:!!eZ,onClick:()=>{var e;return null===(e=z.current)||void 0===e?void 0:e.click()},children:S("global:profile.cv-replace")}),(0,t.jsx)(Z.Z,{type:"button",variant:"delete",size:"small",disabled:!!eZ,isLoading:"delete"===eZ,onClick:X,children:S("global:common.delete")})]})]})}):(0,t.jsxs)(eU,{className:"mt-3",children:[(0,t.jsx)(r.G,{icon:["far","file-user"],className:"text-3xl mb-2"}),(0,t.jsx)("div",{className:"font-bold mb-1",children:S("global:profile.cv-upload-title")}),(0,t.jsx)("div",{className:"text-sm text-gray60 mb-2",children:S("global:profile.cv-upload-constraints")}),(0,t.jsxs)(eB,{htmlFor:A,$disabled:!!eZ,children:["upload"===eZ&&(0,t.jsx)(e2,{}),S("global:profile.cv-select-file")]})]}),lt&&(0,t.jsx)(eR.Z,{className:"mt-2",file:ea,filename:null==en?void 0:en.originalName,title:S("global:profile.cv-scan-title"),description:S("global:profile.cv-scan-description"),steps:eG.dL.map(e=>S(e))}),li&&!lt&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsxs)(eE.b,{type:"info",children:[(0,t.jsx)(e2,{}
1)," ",S("global:profile.cv-processing")]})}),eo&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(eE.b,{type:"warning",children:S("global:profile.cv-processing-timeout")})}),(null==en?void 0:en.status)==="error"&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsxs)(eE.b,{type:"error",children:[e3(S,en.errorCode),y&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(Z.Z,{type:"button",variant:"clear",size:"small",isLoading:"retry"===eZ,disabled:!!eZ,onClick:ep,children:S("global:profile.cv-retry")})})]})}),(null==en?void 0:en.status)==="delete_error"&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(eE.b,{type:"error",children:e3(S,en.errorCode||"storage_delete_error")})}),(null==en?void 0:en.status)==="ready"&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(eE.b,{type:"success",children:(0,t.jsx)("div",{children:S("global:profile.cv-ready")})})}),(null==en?void 0:en.status)==="done"&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(eE.b,{type:"success",children:S("global:profile.cv-import-success")})}),L&&(0,t.jsxs)("div",{className:"text-center p-3",children:[(0,t.jsx)(e2,{})," ",S("global:profile.cv-preview-loading")]}),(null==en?void 0:en.status)!=="done"&&q&&ex&&(0,t.jsxs)("div",{className:"mt-3",children:[(0,t.jsx)("h3",{className:"text-xl font-bold",children:S("global:profile.cv-preview-title")}),(0,t.jsx)("p",{className:"text-sm text-gray60 mt-1",children:S("global:profile.cv-preview-description")}),eY(q.warnings),(0,t.jsx)(e7,{title:S("global:profile.profile-picture"),status:null!==(u=null===(l=q.sections.photo)||void 0===l?void 0:l.status)&&void 0!==u?u:"absent",enabled:ex.photo.enabled,disabled:!(null===(i=q.sections.photo)||void 0===i?void 0:i.dataUrl),hasExistingContent:!!v.photo.normal,onToggle:()=>ev("photo"),children:(0,t.jsx)("div",{className:"p-3",children:(0,t.jsx)(eq.Z,{ref:e$,source:null===(o=q.sections.photo)||void 0===o?void 0:o.dataUrl,editedDataUrl:null===(c=q.sections.photo)||void 0===c?void 0:c.editedDataUrl,onSourceChange:(e,l)=>{R(i=>i?{...i,sections:{...i.sections,photo:{status:"present",dataUrl:e,editedDataUrl:l}}}:i),eg()},onSave:e=>{R(l=>(null==l?void 0:l.sections.photo)?{...l,sections:{...l.sections,photo:{...l.sections.photo,editedDataUrl:e}}}:l),eg()}},q.revision)})}),(0,t.jsxs)(e7,{title:S("global:profile.cv-summary"),status:q.sections.summary.status,enabled:ex.summary.enabled,hasExistingContent:!!(null===(d=v.resume)||void 0===d?void 0:d.trim()),onToggle:()=>ev("summary"),children:[(0,t.jsxs)("div",{className:"p-2 leading-normal whitespace-pre-line",children:[y&&(null==en?void 0:en.status)==="ready"&&(0,t.jsx)("div",{className:"text-right mb-2",children:(0,t.jsx)(Z.Z,{type:"button",size:"small",variant:"clear",disabled:!ex.summary.enabled&&!eL("summary"),onClick:()=>eF("summary"),children:eL("summary")?S("global:profile.cv-finish-editing"):S("global:profile.cv-edit")})}),eL("summary")?(0,t.jsx)(eK.c8,{value:null!==(x=q.sections.summary.value)&&void 0!==x?x:"",disabled:!ex.summary.enabled,onChange:e=>R(l=>l?(0,eW.EP)(l,e):l)}):q.sections.summary.value||S("global:profile.cv-no-item-detected"),eY(q.sections.summary.warnings)]}),e1((null!==(f=q.corrections)&&void 0!==f?f:[]).filter(e=>"summary"===e.section))]}),(0,t.jsxs)(e7,{title:S("global:profile.cv-experiences"),status:q.sections.experiences.status,enabled:ex.experiences.enabled,hasExistingContent:v.xps.length>0,onToggle:()=>ev("experiences"),children:[0===q.sections.experiences.items.length&&(0,t.jsx)("div",{className:"p-2 text-gray60",children:S("global:profile.cv-no-item-detected")}),q.sections.experiences.items.map((e,l)=>{var i,s,a,o;let r=!ex.experiences.enabled,c=r||!e6(e),d="experience:".concat(e.id);return(0,t.jsxs)(n.Fragment,{children:[(0,t.jsxs)(e0,{$disabled:r,children:[(0,t.jsx)("input",{type:"checkbox",checked:null===(i=ex.experiences.selectedIds)||void 0===i?void 0:i.includes(e.id),disabled:c,onChange:()=>eb("experiences",e.id)}),(0,t.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("span",{className:"flex items-start gap-2",children:[(0,t.jsx)("span",{className:"flex-1 min-w-0",children:eL(d)?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(eK.nS,{value:e,disabled:r,showDescription:!1,onChange:l=>ez(e.id,l)})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"font-bold",children:e.title}),e.company&&(0,t.jsxs)("span",{children:[" \xb7 ",e.company]}),(0,t.jsxs)("span",{className:"block text-sm text-gray60",children:[(0,eW.XQ)(e.startDate,e.endD
1ate,e.current),e.contract?" \xb7 ".concat(e.contract):"",e.location?" \xb7 ".concat(e.location):""]})]})}),y&&(null==en?void 0:en.status)==="ready"&&(0,t.jsx)(Z.Z,{type:"button",size:"small",variant:"clear",disabled:r,onClick:()=>eF(d),children:eL(d)?S("global:profile.cv-finish-editing"):S("global:profile.cv-edit")})]}),(eL(d)||e.description)&&(0,t.jsxs)("span",{className:"block text-sm mt-2",children:[(0,t.jsxs)("label",{className:"flex items-center gap-2 font-bold",children:[(0,t.jsx)("input",{type:"checkbox",checked:null===(s=ex.experiences.selectedDescriptionIds)||void 0===s?void 0:s.includes(e.id),disabled:c||!(null!==(a=e.descriptionSelectable)&&void 0!==a?a:!0===e.descriptionImportable),onChange:()=>ej(e.id)}),S("global:profile.cv-experience-description")]}),eL(d)?(0,t.jsx)(eK.JT,{value:null!==(o=e.description)&&void 0!==o?o:"",disabled:r,onChange:l=>ez(e.id,{description:l})}):e.description]}),(0,t.jsx)(eK.QE,{warning:e.warning})]})]}),e1(e5("experiences",l))]},e.id)}),e1(le("experiences",q.sections.experiences.items.length)),eY(q.sections.experiences.warnings)]}),(0,t.jsxs)(e7,{title:S("global:profile.cv-educations"),status:q.sections.educations.status,enabled:ex.educations.enabled,hasExistingContent:v.formations.length>0,onToggle:()=>ev("educations"),children:[0===q.sections.educations.items.length&&(0,t.jsx)("div",{className:"p-2 text-gray60",children:S("global:profile.cv-no-item-detected")}),q.sections.educations.items.map((e,l)=>{var i;let s=!ex.educations.enabled,a=s||!e6(e),o="education:".concat(e.id);return(0,t.jsxs)(n.Fragment,{children:[(0,t.jsxs)(e0,{$disabled:s,children:[(0,t.jsx)("input",{type:"checkbox",checked:null===(i=ex.educations.selectedIds)||void 0===i?void 0:i.includes(e.id),disabled:a,onChange:()=>eb("educations",e.id)}),(0,t.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("span",{className:"flex items-start gap-2",children:[(0,t.jsx)("span",{className:"flex-1 min-w-0",children:eL(o)?(0,t.jsx)(eK.oP,{value:e,disabled:s,onChange:l=>eM(e.id,l)}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"font-bold",children:e.title}),e.institution&&(0,t.jsxs)("span",{children:[" \xb7 ",e.institution]}),(0,t.jsxs)("span",{className:"block text-sm text-gray60",children:[(0,eW.XQ)(e.startDate,e.endDate),e.degree?" \xb7 ".concat(e.degree):""]}),e.description&&(0,t.jsx)("span",{className:"block text-sm mt-1",children:e.description})]})}),y&&(null==en?void 0:en.status)==="ready"&&(0,t.jsx)(Z.Z,{type:"button",size:"small",variant:"clear",disabled:s,onClick:()=>eF(o),children:eL(o)?S("global:profile.cv-finish-editing"):S("global:profile.cv-edit")})]}),(0,t.jsx)(eK.QE,{warning:e.warning})]})]}),e1(e5("educations",l))]},e.id)}),e1(le("educations",q.sections.educations.items.length)),eY(q.sections.educations.warnings)]}),(0,t.jsxs)(e7,{title:S("global:profile.cv-skills"),status:q.sections.skills.status,enabled:ex.skills.enabled,hasExistingContent:v.competences.length>0,onToggle:()=>ev("skills"),children:[(null!==(h=null===(m=q.sections.skills.options)||void 0===m?void 0:m.length)&&void 0!==h?h:0)>0&&(0,t.jsxs)("div",{className:"p-2 border-t border-gray20",children:[(0,t.jsx)("label",{className:"block font-bold mb-1",children:S("global:profile.cv-skill-catalog")}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)("select",{className:"flex-1 border border-gray30 rounded p-1",value:D,disabled:!ex.skills.enabled,onChange:e=>G(e.target.value),children:[(0,t.jsx)("option",{value:"",children:S("global:profile.cv-skill-placeholder")}),null===(p=q.sections.skills.options)||void 0===p?void 0:p.filter(e=>{var l;return!(null===(l=ex.skills.selectedIds)||void 0===l?void 0:l.includes(e.id))}).map(e=>(0,t.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,t.jsx)(Z.Z,{type:"button",size:"small",disabled:!ex.skills.enabled||!D,onClick:()=>{D&&(eb("skills",D),G(""))},children:S("global:common.add")})]})]}),(null!==(g=q.sections.skills.options)&&void 0!==g?g:[]).filter(e=>{var l;return null===(l=ex.skills.selectedIds)||void 0===l?void 0:l.includes(e.id)}).map(e=>(0,t.jsxs)(e0,{children:[(0,t.jsx)("input",{type:"checkbox",checked:!0,disabled:!ex.skills.enabled,onChange:()=>eb("skills",e.id)}),(0,t.jsxs)("span",{children:[e.name,e.suggested&&(0,t.jsx)("span",{className:"block text-sm text-gray60",children:S("global:profile.cv-skill-suggested")}),e.reason&&(0,t.jsx)("span",{className:"block text-sm text-gray60",children:e.reason})]})]},"selected-".concat(e.id))),0===q.sections.skills.items.length&&(0,t.jsx)("div",{className:"p-2 text-gray60",children:S("global:profile.cv-no-item-detected")}),q.sections.skills.items.filter(e=>{var l;return!(null===(l=q.sections.skills.options)||void 0===l?void 0:l.some(l=>l.id===e.id))}).map(e=>{var l;let i=!ex.skills.enabled||!e6(e);return(0,t.jsxs)(e0,{$disabled:i,children:[(0,t.jsx)("input",{type:"checkbox",checked:null===(l=ex.skills.selectedIds)||void 0===l?void 0:l.includes(e.id),disabled:i,onChange:()=>eb("skills",e.id)}),(0,t.jsxs)("span",{children:[e.name,(0,t.jsx)(eK.QE,{warning:e.warning})]})]},e.id)}),eY(q.sections.skills.warnings)]}),(0,t.jsxs)(e7,{title:S("global:profile.cv-languages"),status:q.sections.languages.status,enabled:ex.languages.enabled,hasExistingContent:v.langues.length>0,onToggle:()=>ev("languages"),children:[0===q.sections.languages.items.length&&(0,t.jsx)("div",{className:"p-2 text-gray60",children:S("global:profile.cv-no-item-detected")}),q.sections.languages.items.map(e=>{var l,i,n,s;let a=!ex.languages.enabled,o=a||!e6(e),r="language:".concat(e.id);return(0,t.jsxs)(e0,{$disabled:a,children:[(0,t.jsx)("input",{type:"checkbox",checked:null===(l=ex.languages.selectedIds)||void 0===l?void 0:l.includes(e.id),disabled:o,onChange:()=>eb("languages",e.id)}),(0,t.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("span",{className:"flex items-start justify-between gap-2",children:[(0,t.jsx)("span",{className:"font-bold",children:e.name}),y&&(null==en?void 0:en.status)==="ready"&&(0,t.jsx)(Z.Z,{type:"button",size:"small",variant:"clear",disabled:a,onClick:()=>eF(r),children:eL(r)?S("global:profile.cv-finish-editing"):S("global:profile.cv-edit")})]}),eL(r)?(0,t.jsx)(eK.pu,{value:null!==(n=e.level)&&void 0!==n?n:null,disabled:a,onChange:l=>eO(e.id,l)}):(0,t.jsxs)("span",{children:[" \xb7 ",null!==(s=null===(i=ew.find(l=>l.value===String(e.level)))||void 0===i?void 0:i.label)&&void 0!==s?s:S("global:common.undefined")]}),(0,t.jsx)(eK.QE,{warning:e.warning})]})]},e.id)}),eY(q.sections.languages.warnings)]}),(0,t.jsxs)(e7,{title:S("global:profile.cv-volunteer-experiences"),status:q.sections.volunteerExperiences.status,enabled:ex.volunteerExperiences.enabled,hasExistingContent:v.xpsAsso.length>0,onToggle:()=>ev("volunteerExperiences"),children:[0===q.sections.volunteerExperiences.items.length&&(0,t.jsx)("div",{className:"p-2 text-gray60",children:S("global:profile.cv-no-item-detected")}),q.sections.volunteerExperiences.items.map(e=>{var l,i,n;let s=!ex.volunteerExperiences.enabled||!e6(e);return(0,t.jsxs)(e0,{$disabled:s,children:[(0,t.jsx)("input",{type:"checkbox",checked:null===(l=ex.volunteerExperiences.selectedIds)||void 0===l?void 0:l.includes(e.id),disabled:s,onChange:()=>eb("volunteerExperiences",e.id)}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"font-bold",children:e.title}),(0,t.jsxs)("span",{children:[" \xb7 ",e.organization]}),(0,t.jsxs)("span",{className:"block text-sm text-gray60",children:[(0,eW.XQ)(e.startDate,e.endD
1ate),e.type?" \xb7 ".concat(null!==(n=null===(i=ek[e.type])||void 0===i?void 0:i.nom)&&void 0!==n?n:e.type):""]}),e.description&&(0,t.jsx)("span",{className:"block text-sm mt-1",children:e.description})]})]},e.id)})]}),(0,t.jsxs)(e7,{title:S("global:profile.cv-qualities"),status:q.sections.qualities.status,enabled:ex.qualities.enabled,hasExistingContent:v.qualites.length>0,onToggle:()=>ev("qualities"),children:[0===q.sections.qualities.items.length&&(0,t.jsx)("div",{className:"p-2 text-gray60",children:S("global:profile.cv-no-item-detected")}),q.sections.qualities.items.map(e=>{var l;let i=!ex.qualities.enabled||!e6(e);return(0,t.jsxs)(e0,{$disabled:i,children:[(0,t.jsx)("input",{type:"checkbox",checked:null===(l=ex.qualities.selectedIds)||void 0===l?void 0:l.includes(e.id),disabled:i,onChange:()=>eb("qualities",e.id)}),(0,t.jsx)("span",{children:e.name})]},e.id)})]}),(0,t.jsxs)(e7,{title:S("global:profile.cv-interests"),status:q.sections.interests.status,enabled:ex.interests.enabled,hasExistingContent:v.centresInteret.length>0,onToggle:()=>ev("interests"),children:[0===q.sections.interests.items.length&&(0,t.jsx)("div",{className:"p-2 text-gray60",children:S("global:profile.cv-no-item-detected")}),q.sections.interests.items.map(e=>{var l,i,n;let s=!ex.interests.enabled||!e6(e);return(0,t.jsxs)(e0,{$disabled:s,children:[(0,t.jsx)("input",{type:"checkbox",checked:null===(l=ex.interests.selectedIds)||void 0===l?void 0:l.includes(e.id),disabled:s,onChange:()=>eb("interests",e.id)}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"font-bold",children:null!==(n=null===(i=eI[e.type])||void 0===i?void 0:i.nom)&&void 0!==n?n:e.type}),(0,t.jsxs)("span",{children:[" \xb7 ",e.description]})]})]},e.id)})]}),ey&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(eE.b,{type:"warning",children:S("global:profile.cv-empty-section-warning")})}),eN&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(eE.b,{type:"error",children:S("global:profile.cv-edit-validation")})})]})]}),(0,t.jsxs)("div",{className:"flex justify-end gap-2 p-3 md:p-2 border-t",children:[y&&(null==en?void 0:en.status)==="ready"&&q&&ex&&(0,t.jsx)(Z.Z,{type:"button",variant:"action",fullWidth:_,isLoading:"confirm"===eZ,disabled:!!eZ||eN,onClick:()=>{ey?ei():eH()},children:S("global:profile.cv-confirm-import")}),(0,t.jsx)(Z.Z,{variant:"action",fullWidth:_,type:"button",onClick:()=>P?j(ll):null==N?void 0:N(),children:P&&!E?S("global:common.next-step"):S("global:common.finish")})]}),(0,t.jsx)(eC.Z,{visible:Q,onClose:U,onSubmit:eA,title:S("global:profile.cv-delete-title"),description:S("global:profile.cv-delete-description"),confirmText:S("global:common.delete")}),(0,t.jsx)(eC.Z,{visible:B,onClose:()=>{T(null),H()},onSubmit:()=>{M&&eP(M),T(null),H()},title:S("global:profile.cv-replace-title"),description:S("global:profile.cv-replace-description"),confirmText:S("global:profile.cv-replace")}),(0,t.jsx)(eC.Z,{visible:ee,onClose:el,onSubmit:eH,title:S("global:profile.cv-empty-section-title"),description:S("global:profile.cv-empty-section-description"),confirmText:S("global:profile.cv-confirm-import")})]})};let ll=c.ZP.div.withConfig({componentId:"sc-d4043628-0"})(["display:flex;gap:8px;padding:16px 68px 16px 24px;border-bottom:1px solid #e1e7e8;@media (max-width:767px){padding:12px 60px 12px 16px;}"]),li=c.ZP.button.withConfig({componentId:"sc-d4043628-1"})(["flex:1;min-height:46px;padding:10px 16px;border:1px solid ",";border-radius:4px;background:",";color:",";font-weight:700;cursor:pointer;svg{margin-right:8px;}"],e=>{let{$active:l}=e;return l?h.colors.action:"#d5dcde"},e=>{let{$active:l}=e;return l?h.colors.action:"#fff"},e=>{let{$active:l}=e;return l?"#fff":"inherit"});var lt=e=>{let{defaultSource:l="cv",...i}=e,{t:s}=(0,k.Z)(),a=!0===i.profil.cvImportEnabled,o=a||!!i.profil.cvDocument,[c,d]=(0,n.useState)(o?l:"linkedin");return(0,n.useEffect)(()=>{d(o?l:"linkedin")},[o,l]),(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsxs)(ll,{role:"tablist","aria-label":s("global:profile.import-source"),children:[o&&(0,t.jsxs)(li,{type:"button",role:"tab","aria-selected":"cv"===c,$active:"cv"===c,onClick:()=>d("cv"),children:[(0,t.jsx)(r.G,{icon:["far","file-user"]}),s("global:profile.cv-pdf")]}),(0,t.jsxs)(li,{type:"button",role:"tab","aria-selected":"linkedin"===c,$active:"linkedin"===c,onClick:()=>d("linkedin"),children:[(0,t.jsx)(r.G,{icon:["fab","linkedin"]}),s("global:profile.linkedin-source")]})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:"cv"===c?(0,t.jsx)(le,{...i,importEnabled:a}):(0,t.jsx)(eM,{...i})})]})},ln=i(59312),ls=i(27491);let la=c.ZP.div.withConfig({componentId:"sc-7a41f165-0"})(["user-select:none;position:relative;color:#000;height:80px;display:flex;align-items:center;padding:0 10px;font-size:16px;font-weight:bold;background:#f1f4f4;justify-content:center;svg{color:",";font-size:28px;}"],h.colors.secondary),lo=c.ZP.button.withConfig({componentId:"sc-7a41f165-1"})(["position:absolute;
1left:10px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;background:none;border:0 none;outline:0;padding:0;border-radius:4px;&:focus-visible{outline:2px solid ",";}svg{color:#000;font-size:16px;}"],h.colors.secondary);var lr=e=>{let{icon:l,title:i,onBack:n,backLabel:s="Retour"}=e;return(0,t.jsx)(ln.YD,{children:(0,t.jsxs)(la,{children:[(0,t.jsx)(lo,{onClick:n,"aria-label":s,type:"button",children:(0,t.jsx)(r.G,{icon:["far","chevron-left"]})}),(0,t.jsx)(r.G,{icon:l,className:"mr-2"}),i]})})};let lc=c.ZP.div.withConfig({componentId:"sc-76895bee-0"})(["transition:opacity 300ms,transform 300ms;transform:translateX(0);height:100%;&.enter{opacity:0;transform:translateX(30px);}&.enter-active{opacity:1;transform:translateX(0);}&.enter-done{opacity:1;transform:translateX(0);}&.exit{opacity:1;transform:translateX(0);}&.exit-active{opacity:0;display:none;}&.exit-done{opacity:0;display:none;}"]),ld=c.ZP.div.withConfig({componentId:"sc-76895bee-1"})(["border-bottom:2px solid #fff;"]),lm=c.ZP.div.withConfig({componentId:"sc-76895bee-2"})(["padding:12px 60px 0 12px;@media (","){padding:8px 12px 0;}"],h.bp.md);var lp=e=>{var l,i;let{menu:n,edit:s,setEdit:a,profil:c,setProfil:d,setEditStep:m,setMenu:p,xpAddedit:u,xpAssoAddedit:x,formationAddedit:f,hobbyAddedit:h,eventPostulation:g,onClose:v,showFullProfile:b=!0}=e,{t:j}=(0,k.Z)();return(0,t.jsxs)(t.Fragment,{children:["pending"===c.linkedinImportStatus&&(0,t.jsx)(lm,{children:(0,t.jsxs)(eE.b,{type:"info",children:[(0,t.jsx)(r.G,{icon:["far","info-circle"]})," ",j("global:profile.linkedin-import-pending")]})}),!0===c.cvImportEnabled&&["pending","applying","deleting"].includes(null!==(i=null===(l=c.cvDocument)||void 0===l?void 0:l.status)&&void 0!==i?i:"")&&(0,t.jsx)(lm,{children:(0,t.jsxs)(eE.b,{type:"info",children:[(0,t.jsx)(r.G,{icon:["far","info-circle"]})," ",j("global:profile.cv-processing")]})}),(0,t.jsx)(ls.Z,{in:"accueil"===n,timeout:500,unmountOnExit:!0,children:(0,t.jsx)(lc,{children:(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsx)(ln.YD,{children:(0,t.jsx)(ld,{className:"bg-lightgrey",children:(0,t.jsxs)("div",{className:"flex items-center px-3 py-2",children:[(0,t.jsx)("div",{className:"mr-1",children:(0,t.jsx)(o.Z,{name:"".concat(c.prenom," ").concat(c.nom),src:c.photo.normal?c.photo.normal:"",size:"40"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-bold",children:"".concat(c.prenom," ").concat(c.nom)}),(0,t.jsx)("div",{className:"text-sm",children:c.poste})]})]})})}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(I,{profil:c,setEditStep:m,setEdit:a,eventPostulation:g})})]})})}),(0,t.jsx)(ls.Z,{in:"xps"===n,timeout:500,unmountOnExit:!0,children:(0,t.jsx)(lc,{children:(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsx)(lr,{icon:["far","briefcase"],title:j("global:profile.professional-career"),onBack:()=>{!0===s?(a(!1),p("xps")):p("")}}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(eP,{setProfil:d,profil:c,editMode:s,xpAddedit:u,setEditStep:m,setEdit:a,eventPostulation:g})})]})})}),(0,t.jsx)(ls.Z,{in:"formation"===n,timeout:500,unmountOnExit:!0,children:(0,t.jsx)(lc,{children:(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsx)(lr,{icon:["far","graduation-cap"],title:j("global:common.educations"),onBack:()=>{!0===s?(a(!1),p("formation")):p("")}}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(et,{setProfil:d,profil:c,editMode:s,formationAddedit:f,setEditStep:m,setEdit:a,eventPostulation:g})})]})})}),(0,t.jsx)(ls.Z,{in:"metier"===n,timeout:500,unmountOnExit:!0,children:(0,t.jsx)(lc,{children:(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsx)(lr,{icon:["far","file-user"],title:j("global:common.jobs"),onBack:()=>p("")}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(eN.T,{types:["metiers"],children:(0,t.jsx)(eZ,{profil:c,setProfil:d,setEditStep:m,eventPostulation:g})})})]})})}),(0,t.jsx)(ls.Z,{in:"skills"===n||"langs"===n,timeout:500,unmountOnExit:!0,children:(0,t.jsx)(lc,{children:(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsx)(lr,{icon:["far","laptop-code"],title:j("global:profile.skills-and-languages"),onBack:()=>p("")}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(W,{profil:c,setProfil:d,menu:n,setEditStep:m,eventPostulation:g})})]})})}),(b||"perso"===n||"photo"===n||"xps_asso"===n||"qualites"===n||"hobby"===n)&&(0,t.jsx)(ls.Z,{in:"perso"===n||"photo"===n||"xps_asso"===n||"qualites"===n||"hobby"===n,timeout:500,unmountOnExit:!0,children:(0,t.jsx)(lc,{children:(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsx)(lr,{icon:["far","user-tie"],title:j("global:profile.personal-information"),onBack:()=>{!0===s&&"xps_asso"===n?(a(!1),p("xps_asso")):p("")}}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(ej,{profil:c,setProfil:d,menu:n,xpAssoAddedit:x,hobbyAddedit:h,editMode:s,setEditStep:m,onClose:v})})]})})}),(0,t.jsx)(ls.Z,{in:"import"===n||"linkedin"===n,timeout:500,unmountOnExit:!0,children:(0,t.jsx)(lc,{children:(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsx)(lr,{icon:["far","file-user"],title:j("global:profile.import-profile"),onBack:()=>p("")}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(lt,{profil:c,setProfil:d,setEditStep:m,onClose:v,eventPostulation:g,defaultSource:"linkedin"===n?"linkedin":"cv"})})]})})})]})};let lu=c.ZP.div.withConfig({componentId:"sc-ed003d88-0"})(["border-top:2px solid #fff;font-size:1.8rem;"]);var lx=e=>{let{tauxCompletion:l}=e,{t:i}=(0,k.Z)();return(0,t.jsxs)(lu,{className:"mt-auto px-3 pt-1 pb-2",children:[(0,t.jsxs)("div",{className:"flex font-bold",children:[(0,t.jsx)("div",{className:"text-gray60",children:i("global:profile.profile-completion")}),(0,t.jsxs)("div",{className:"ml-auto text-secondary",children:[l,"%"]})]}),(0,t.jsx)("div",{className:"mt-05",children:(0,t.jsx)(_.Z,{value:l,color:h.colors.secondary})})]})};let lf=c.ZP.div.withConfig({componentId:"sc-564bc038-0"})(["border-radius:6px;background:#ffffff;width:1150px;height:725px;position:relative;@media (","){width:1000px;}@media (","){width:100%;height:100vh;}"],h.bp.xl,h.bp.md),lh=c.ZP.button.withConfig({componentId:"sc-564bc038-1"})(["background:inherit;border:0 none;font-size:16px;cursor:pointer;border-radius:36px;padding:0;margin:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center;outline:0;color:",";position:absolute;top:20px;right:20px;z-index:5;&:hover{background:rgba(0,0,0,0.08);}"],h.colors.main),lg=c.ZP.div.withConfig({componentId:"sc-564bc038-2"})(["width:305px;background:#f1f4f4;border-radius:6px 0 0 6px;overflow:hidden;display:flex;flex-direction:column;@media (","){width:280px;}@media (","){display:",";width:100%;}"],h.bp.xl,h.bp.md,e=>e.$visible?"flex":"none"),lv=c.ZP.div.withConfig({componentId:"sc-564bc038-3"})(["@media (","){display:",";}"],h.bp.md,e=>e.$visible?"block":"none");c.ZP.div.withConfig({componentId:"sc-564bc038-4"})(["border-bottom:2px solid #fff;"]);var lb=e=>{let{visible:l,onClose:i,sidebar:n,content:s,menuVisible:a}=e,{t:o}=(0,k.Z)();return(0,t.jsx)(eS.ZP,{visible:l,onClose:i,children:(0,t.jsxs)(lf,{children:[(0,t.jsxs)(lh,{onClick:i,"aria-label":o("global:common.close"),children:[(0,t.jsx)(r.G,{icon:["far","times"]}),(0,t.jsx)("span",{className:"sr-only",children:o("global:common.close")})]}),(0,t.jsxs)("div",{className:"flex h-full",children:[(0,t.jsx)(lg,{$visible:a,children:n}),(0,t.jsx)(lv,{className:"flex-1 min-w-0",$visible:!a,children:s})]})]})})},lj=i(66138),ly=e=>{let{visible:l,onClose:i,initialStep:o,setInitialStep:r,setProfil:c,profil:d,xpAddedit:m,eventPostulation:p,xpAssoAddedit:u,formationAddedit:x,hobbyAddedit:h,showFullProfile:g=!0}=e,{t:v}=(0,k.Z)(),b=(0,s.v9)(e=>e.pageOffre.offrePostulation),j=(0,s.v9)(e=>
1e.pageOffre.postulationAfterInscription),[N,Z]=(0,n.useState)(o||"accueil"),[C,S]=(0,n.useState)(!1);(0,n.useEffect)(()=>{o&&Z(o)},[o]);let I=(0,w.cU)(N),P=j&&!(0,w.Pe)(d),E=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f,{profil:d,offrePostulation:b,eventPostulation:p,postulationAfterInscription:j}),P?(0,t.jsx)(lj.Z,{step:I}):(0,t.jsxs)(y,{selectedKey:N,handleClick:e=>{r(e),Z(e),S(!1)},children:[(0,t.jsx)(y.Menu,{icon:["far","briefcase"],incomplete:0===d.xps.length||null!=b&&d.xps.length<1,children:v("global:profile.professional-career")},"xps"),(0,t.jsx)(y.Menu,{icon:["far","graduation-cap"],incomplete:0===d.formations.length,children:v("global:common.educations")},"formation"),(0,t.jsx)(y.Menu,{icon:["far","file-user"],incomplete:0===d.metiers.length,children:v("global:common.jobs")},"metier"),(0,t.jsx)(y.Menu,{icon:["far","handicarriere"===a.hf?"globe":"laptop-code"],forceActive:"langs"===N,incomplete:"handicarriere"!==a.hf&&0===d.competences.length||0===d.langues.length,children:v("handicarriere"===a.hf?"global:common.languages":"global:profile.skills-and-languages")},"handicarriere"===a.hf?"langs":"skills"),g&&(0,t.jsx)(y.Menu,{icon:["far","user-tie"],incomplete:""===d.resume||!d.photo.normal||0===d.xpsAsso.length||0===d.qualites.length||0===d.centresInteret.length,forceActive:"photo"===N||"xps_asso"===N||"qualites"===N||"hobby"===N,children:v("global:profile.personal-information")},"perso"),(0,t.jsx)(y.Menu,{icon:["far","file-user"],forceActive:"linkedin"===N,children:v("global:profile.import-profile")},"import")]}),(0,t.jsx)(lx,{tauxCompletion:d.tauxCompletion})]}),_=(0,t.jsx)(lp,{menu:N,edit:C,setEdit:S,profil:d,setProfil:c,setEditStep:r,setMenu:Z,xpAddedit:m,xpAssoAddedit:u,formationAddedit:x,hobbyAddedit:h,eventPostulation:p,onClose:i,show
1FullProfile:!!(j||p)});return(0,t.jsx)(lb,{visible:l,onClose:()=>{r(""),null==i||i()},sidebar:E,content:_,menuVisible:""===N})},lN=e=>{let{visible:l,onClose:i,initialStep:s,setInitialStep:o,setProfil:r,profil:c,editMode:d,xpAddedit:m,xpAssoAddedit:p,formationAddedit:u,hobbyAddedit:x}=e,{t:h}=(0,k.Z)(),[g,v]=(0,n.useState)(s||"accueil"),[b,j]=(0,n.useState)(d);(0,n.useEffect)(()=>{s&&v(s)},[s]),(0,n.useEffect)(()=>{j(d)},[d]);let N=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f,{profil:c}),(0,t.jsxs)(y,{selectedKey:g,handleClick:e=>{o(e),v(e),j(!1)},children:[(0,t.jsx)(y.Menu,{icon:["far","briefcase"],incomplete:0===c.xps.length,children:h("global:profile.professional-career")},"xps"),(0,t.jsx)(y.Menu,{icon:["far","graduation-cap"],incomplete:0===c.formations.length,children:h("global:common.educations")},"formation"),(0,t.jsx)(y.Menu,{icon:["far","file-user"],incomplete:0===c.metiers.length,children:h("global:common.jobs")},"metier"),(0,t.jsx)(y.Menu,{icon:["far","handicarriere"===a.hf?"globe":"laptop-code"],forceActive:"langs"===g,incomplete:"handicarriere"!==a.hf&&0===c.competences.length||0===c.langues.length,children:h("handicarriere"===a.hf?"global:common.languages":"global:profile.skills-and-languages")},"handicarriere"===a.hf?"langs":"skills"),(0,t.jsx)(y.Menu,{icon:["far","user-tie"],incomplete:""===c.resume||!c.photo.normal||0===c.xpsAsso.length||0===c.qualites.length||0===c.centresInteret.length,forceActive:"photo"===g||"xps_asso"===g||"qualites"===g||"hobby"===g,children:h("global:profile.personal-information")},"perso"),(0,t.jsx)(y.Menu,{icon:["far","file-user"],forceActive:"linkedin"===g,children:h("global:profile.import-profile")},"import")]}),(0,t.jsx)(lx,{tauxCompletion:c.tauxCompletion})]}),Z=(0,t.jsx)(lp,{menu:g,edit:b,setEdit:j,profil:c,setProfil:r,setEditStep:o,setMenu:v,xpAddedit:m,xpAssoAddedit:p,formationAddedit:u,hobbyAddedit:x,onClose:i,show
1FullProfile:!0});return(0,t.jsx)(lb,{visible:l,onClose:()=>{o(""),null==i||i()},sidebar:N,content:Z,menuVisible:""===g})},lZ=e=>{var l,i;let{visible:n,onClose:a,initialStep:o,setInitialStep:r,setProfil:c,profil:d,editMode:m,xpAddedit:p,xpAssoAddedit:u,formationAddedit:x,hobbyAddedit:f,eventPostulation:h}=e,g=(0,s.v9)(e=>e.pageOffre.offrePostulation),v=(0,s.v9)(e=>e.pageOffre.postulationAfterInscription),b=!!g||!!h||!!v,j=!0===d.cvImportEnabled&&["pending","applying","deleting"].includes(null!==(i=null===(l=d.cvDocument)||void 0===l?void 0:l.status)&&void 0!==i?i:"")?"import":"pending"===d.linkedinImportStatus?"linkedin":o;return b?(0,t.jsx)(ly,{visible:n,onClose:a,initialStep:j,setInitialStep:r,setProfil:c,profil:d,xpAddedit:p,xpAssoAddedit:u,eventPostulation:h,formationAddedit:x,hobbyAddedit:f}):(0,t.jsx)(lN,{visible:n,onClose:a,initialStep:j,setInitialStep:r,setProfil:c,profil:d,editMode:m,xpAddedit:p,xpAssoAddedit:u,formationAddedit:x,hobbyAddedit:f})}},66138:function(e,l,i){i.d(l,{Z:function(){return u}});var t=i(74817);i(71248);var n=i(38746),s=i(3175),a=i(85059),o=i(62117);let r=e=>[{nomStep:e("global:profile.professional-career"),ico:"briefcase",description:e("global:profile.professional-career-desc")},{nomStep:e("global:common.educations"),ico:"graduation-cap",description:e("global:common.educations-desc")},{nomStep:e("global:common.jobs"),ico:"file-user",description:e("global:common.jobs-desc")},{nomStep:e("handicarriere"===o.hf?"global:common.languages":"global:profile.skills-and-languages"),ico:"handicarriere"===o.hf?"globe":"laptop-code",description:e("handicarriere"===o.hf?"global:profile.languages-desc":"global:profile.skills-and-languages-desc")},{nomStep:e("global:profile.personal-information"),ico:"user-tie",description:e("global:profile.personal-information-step-desc")}];var c=i(19249);let d=a.ZP.div.withConfig({componentId:"sc-69a47c5a-0"})(["position:absolute;top:0;left:0;right:0;bottom:0;background:#c3e2e5;"]),m=a.ZP.div.withConfig({componentId:"sc-69a47c5a-1"})(["position:relative;background:#f1f4f4;border-top-left-radius:60px;@media (","){background:#fff;}"],n.bp.md),p=a.ZP.li.withConfig({componentId:"sc-69a47c5a-2"})(["width:30px;height:30px;display:flex;justify-content:center;align-items:center;font-weight:bold;user-select:none;color:",";border-radius:50%;border:",";& + &{margin-left:10px;}"],e=>(e.$active||e.$complete)&&n.colors.secondary||"#919292",e=>e.$active&&"2px solid ".concat(n.colors.secondary));var u=e=>{let{step:l}=e,{t:i}=(0,c.Z)();return(0,t.jsxs)("div",{className:"flex flex-col flex-1 md:flex-none",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(d,{}),(0,t.jsx)(m,{className:"py-4 md:py-2",children:(0,t.jsx)("ul",{className:"flex p-0 m-0 list-none justify-center",children:r(i).map((e,i)=>(0,t.jsx)(p,{$active:l-1==i,$complete:l-1>i,children:l-1>i?(0,t.jsx)(s.G,{icon:["far","check"]}):i+1},i))})})]}),l>0&&(0,t.jsxs)("div",{className:"text-center px-2 md:hidden",children:[(0,t.jsx)("div",{className:"text-secondary mb-1",children:(0,t.jsx)(s.G,{icon:["far",r(i)[l-1].ico],style:{fontSize:"60px"}})}),(0,t.jsx)("div",{className:"text-xl font-bold mb-1",children:r(i)[l-1].nomStep}),(0,t.jsx)("div",{className:"text-gray80 leading-tight",children:r(i)[l-1].description})]})]})}},47842:function(e,l,i){i.d(l,{Pe:function(){return a},TR:function(){return function e(l,i,s){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o="dogfinance"!==t.hf&&"handicarriere"!==t.hf,r=n.indexOf("linkedin"===i?"import":i),c=!!s||a,d="";if((0===l.xps.length||null!=s&&l.xps.length<1)&&r<1?d="xps":0===l.formations.length&&r<2?d="formation":0===l.metiers.length&&r<3?d="metier":o&&0===l.competences.length&&r<4?d="skills":0===l.langues.length&&r<5?d="langs":!c&&""===l.resume&&r<6?d="perso":c||l.photo.normal||!(r<7)?!c&&0===l.xpsAsso.length&&r<8?d="xps_asso":!c&&0===l.qualites.length&&r<9?d="qualites":!c&&0===l.centresInteret.length&&r<10&&(d="hobby"):d="photo",c||""!==d)""===d&&s&&(l.xps.length<1||0===l.formations.length||0===l.metiers.length||o&&0===l.competences.length||0===l.langues.length)?d=e(l,"accueil",s,a):""===d&&s&&(d="postulationConfirmation");
1else{let e=n[r+1];e&&(d=e)}return d}},cU:function(){return s}});var t=i(62117);let n=["accueil","xps","formation","metier","skills","langs","perso","photo","xps_asso","qualites","hobby","import"];function s(e){return"xps"===e?1:"formation"===e?2:"metier"===e?3:"skills"===e||"langs"===e?4:"perso"===e||"photo"===e||"xps_asso"===e||"qualites"===e||"hobby"===e||"linkedin"===e||"import"===e?5:0}function a(e){let l="dogfinance"!==t.hf&&"handicarriere"!==t.hf;return e.xps.length>=1&&e.formations.length>=1&&e.metiers.length>=1&&(!l||e.competences.length>=1)&&e.langues.length>=1}},39673:function(e,l,i){var t=i(74817),n=i(99189),s=i(21814),a=i(62117),o=i(3175),r=i(19249);i(71248);var c=i(85059);let d=c.ZP.div.withConfig({componentId:"sc-f93bd61d-0"})(["& + &{margin-top:20px;}"]),m=c.ZP.div.withConfig({componentId:"sc-f93bd61d-1"})(["width:25px;height:auto;"]);l.Z=e=>{let{centreInteret:{description:l,type:i},edit:c,centreInteret:p,setHobbyAddedit:u,setEditMode:x}=e,{t:f}=(0,r.Z)();return(0,t.jsxs)(d,{children:[(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(m,{className:"mr-2 text-xl",children:(0,t.jsx)(o.G,{icon:["far",(0,a.yw)(f)[i].ico]})}),(0,t.jsx)("div",{className:"text-xl",children:(0,t.jsx)("strong",{children:(0,a.yw)(f)[i].nom})}),c&&(0,t.jsx)("div",{className:"ml-1",children:(0,t.jsx)(n.Z,{leftIcon:"pen",onlyIcon:!0,variant:"clear",type:"button",onClick:()=>{null==x||x(!0),null==u||u(p)}})})]})}),(0,t.jsx)("div",{className:"mt-1",children:(0,t.jsx)(s.Z,{text:l,length:250})})]})}},93742:function(e,l,i){var t=i(74817),n=i(38746),s=i(3175),a=i(44739),o=i.n(a),r=i(28851),c=i(19249);i(71248);var d=i(85059);let m=d.ZP.div.withConfig({componentId:"sc-881666d8-0"})(["border:2px dashed #e3e4e8;border-radius:6px;background:#ffffff;padding:35px;display:flex;align-items:center;@media (","){padding:20px;}"],n.bp.md),p=d.ZP.div.withConfig({componentId:"sc-881666d8-1"})(["font-size:42px;"]);l.Z=e=>{let{sectionName:l,button:i,icon:n,customDesc:a}=e,{t:d}=(0,c.Z)();return(0,t.jsxs)(m,{className:"md:flex-col",children:[n&&(0,t.jsx)(p,{className:"mr-2 text-gray20 md:mr-0",children:(0,t.jsx)(s.G,{icon:["far",n]})}),(0,t.jsxs)("div",{className:"text-gray60 flex-1 mr-2 md:mr-0 md:mb-1",children:[a||(0,t.jsx)(r.Z,{i18nKey:"global:profile.section-complete-your-information",components:{bold:(0,t.jsx)("strong",{})},values:{count:o()(l)==o()(d("global:common.summary"))?1:99,section:o()(l)}})," "]}),(0,t.jsx)("div",{className:"ml-auto md:mx-auto",children:i})]})}},4915:function(e,l,i){var t=i(74817),n=i(99189),s=i(21814),a=i(20150),o=i(3175),r=i(96343),c=i(87979),d=i(46920),m=i(15017),p=i(37518),u=i.n(p);i(71248);var x=i(85059),f=i(19249);let h=x.ZP.div.withConfig({componentId:"sc-2f059d9c-0"})(["display:flex;& + &{margin-top:20px;}"]);l.Z=e=>{let{formation:{titre:l,societe:i,etablissement:p,anneeDebut:x,anneeFin:g,ville:v,pays:b,description:j,dpt:y,diplome:N},edit:Z,setEditMode:w,formation:k,setFormationAddedit:C}=e,{t:S}=(0,f.Z)(),I=(0,t.jsx)(t.Fragment,{});i&&i.logo.normal&&i.logo.normal.length>0&&(I=(0,t.jsx)(a.Z,{name:i.nom||"",size:80,src:i.logo.normal}),I=i.page?(0,t.jsx)("div",{className:"ml-2 md:hidden",children:(0,t.jsx)(u(),{href:i.page.url,as:i.page.urlSexy,children:I})}):(0,t.jsx)("div",{className:"ml-2 md:hidden",children:I}));let P="";return(x||g)&&(0!=x&&x&&(P+=S("global:common.from")+" "+(0,d.default)(1e3*x,"yyyy",{locale:m.Z})),P+=" ",0!=x&&x?P+=S("global:common.to"):P+=S("global:common.until"),P+=" ",0!=g&&g?P+=(0,d.default)(1e3*g,"yyyy",{locale:m.Z}):P+=S("global:common.today"),0!=x&&x&&(P+=" ("+(()=>{let e=(0,r.Z)({start:1e3*x,end:0!=g&&g?1e3*g:Date.now()});return e&&e.years&&e.years>0||e&&e.months&&e.months>0?(0,c.Z)(e,{format:["years","months","weeks"],locale:m.Z}):(0,c.Z)(e,{format:["days"],locale:m.Z})})()+")")),(0,t.jsxs)(h,{children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"text-xl mb-05",children:[(0,t.jsx)("strong",{children:l})," ",S("global:common.to")," ",i&&i.page?(0,t.jsx)(u(),{href:i.page.url,as:i.page.urlSexy,children:(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)("strong",{children:p})]})}):(0,t.jsx)("strong",{children:p})]}),"CERT"==N?(0,t.jsx)("div",{className:"text-gray60 mt-05",children:S("global:profile.completion-date",{date:(0,d.default)(1e3*g,"yyyy",{locale:m.Z})})}):(0,t.jsx)("div",{className:"text-gray60 mt-05",children:P}),(0,t.jsxs)("div",{className:"text-gray60 mt-05",children:[v&&(0,t.jsx)(o.G,{icon:["far","map-marker-alt"],className:"mr-05"}),v?v.nom:""," ",y&&y.code?"("+y.code+")":"",b?", "+b.nom:""]})]}),Z&&(0,t.jsx)("div",{className:"ml-1",children:(0,t.jsx)(n.Z,{leftIcon:"pen",onlyIcon:!0,variant:"clear",onClick:()=>{null==w||w(!0),null==C||C(k)}})})]}),(0,t.jsx)("div",{className:"mt-1 leading-snug",children:j&&(0,t.jsx)(s.Z,{text:j,length:250})})]}),I]})}},54439:function(e,l,i){var t=i(74817),n=i(99189),s=i(21814),a=i(62117),o=i(3175);i(71248);var r=i(85059),c=i(96343),d=i(87979),m=i(46920),p=i(15017),u=i(19249);let x=r.ZP.div.withConfig({componentId:"sc-d01ecd63-0"})(["display:flex;& + &{margin-top:20px;}"]),f=r.ZP.div.withConfig({componentId:"sc-d01ecd63-1"})(["width:25px;height:auto;"]);l.Z=e=>{var l;let{xpAsso:{asso:i,titre:r,description:h,type:g,anneeDebut:v,anneeFin:b,ville:j,pays:y,dpt:N},edit:Z,xpAsso:w,setXpAddedit:k,setEditMode:C}=e,{t:S}=(0,u.Z)(),I=g?(0,a.DJ)(S)[g]:void 0;return(0,t.jsxs)(x,{children:[(0,t.jsx)(f,{className:"mr-2 text-xl",children:(0,t.jsx)(o.G,{icon:["far",null!==(l=null==I?void 0:I.ico)&&void 0!==l?l:"hands-heart"]})}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"text-xl mb-05",children:[(0,t.jsx)("strong",{children:r}
1)," ",S("global:common.to")," ",(0,t.jsx)("strong",{children:i})]}),(0,t.jsxs)("div",{className:"text-gray60 mt-05",children:[0!=v&&v?"".concat(S("global:common.from")," ").concat((0,m.default)(1e3*v,"MMMM yyyy",{locale:p.Z})):""," ",S(0!=v&&v?"global:common.to":"global:common.until")," ",0!=b&&b?(0,m.default)(1e3*b,"MMMM yyyy",{locale:p.Z}):S("global:common.today")," ",0!=v&&v&&"("+(()=>{let e=(0,c.Z)({start:1e3*v,end:0!=b&&b?1e3*b:Date.now()});return e&&e.years&&e.years>0||e&&e.months&&e.months>0?(0,d.Z)(e,{format:["years","months","weeks"],locale:p.Z}):(0,d.Z)(e,{format:["days"],locale:p.Z})})()+")"]}),(0,t.jsxs)("div",{className:"text-gray60 mt-05",children:[j&&(0,t.jsx)(o.G,{icon:["far","map-marker-alt"],className:"mr-05"}),j?j.nom:""," ",N&&N.code?"("+N.code+")":"",y?", "+y.nom:""]})]}),Z&&(0,t.jsx)("div",{className:"ml-1",children:(0,t.jsx)(n.Z,{leftIcon:"pen",onlyIcon:!0,variant:"clear",onClick:()=>{null==C||C(!0),null==k||k(w)}})})]}),(0,t.jsx)("div",{className:"mt-1 leading-snug",children:(0,t.jsx)(s.Z,{text:h,length:250})})]})]})}},25068:function(e,l,i){var t=i(74817),n=i(20150),s=i(99189),a=i(21814),o=i(3175),r=i(37518),c=i.n(r),d=i(96343),m=i(87979),p=i(46920),u=i(15017);i(71248);var x=i(85059),f=i(19249),h=i(83292),g=i.n(h);let v=x.ZP.div.withConfig({componentId:"sc-f57d3c33-0"})(["display:flex;& + &{margin-top:20px;}"]);l.Z=e=>{let{xp:{titre:l,societe:i,ville:r,pays:x,description:h,dateDebut:b,dateFin:j,societeNom:y,dpt:N,contrat:Z},edit:w,setEditMode:k,xp:C,setXpAddedit:S}=e,{t:I}=(0,f.Z)(),P=(0,t.jsx)(t.Fragment,{});return i&&i.logo.normal&&i.logo.normal.length>0&&(P=(0,t.jsx)(n.Z,{name:y,size:80,src:i.logo.normal}),P=i.page?(0,t.jsx)("div",{className:"ml-2 md:hidden",children:(0,t.jsx)(c(),{href:i.page.url,as:i.page.urlSexy,children:P})}):(0,t.jsx)("div",{className:"ml-2 md:hidden",children:P})),(0,t.jsxs)(v,{children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"text-xl mb-05",children:[(0,t.jsx)("strong",{children:l})," ",I("global:common.at")," ",i&&i.page?(0,t.jsx)(c(),{href:i.page.url,as:i.page.urlSexy,children:(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)("strong",{children:y})]})}):(0,t.jsx)("strong",{children:y})]}),(0,t.jsxs)("div",{className:"text-gray60 mt-05",children:[null!==Z&&g()(I("global:constants.contract.".concat(Z)))+" - ",0!=b&&b?"".concat(I("global:common.from")," ").concat((0,p.default)(1e3*b,"MMMM yyyy",{locale:u.Z})):""," ",I(0!=b&&b?"global:common.to":"global:common.until")," ",0!=j&&j?(0,p.default)(1e3*j,"MMMM yyyy",{locale:u.Z}):I("global:common.today")," ",0!=b&&b&&"("+(()=>{let e=(0,d.Z)({start:1e3*b,end:0!=j&&j?1e3*j:Date.now()});return e&&e.years&&e.years>0||e&&e.months&&e.months>0?(0,m.Z)(e,{format:["years","months","weeks"],locale:u.Z}):(0,m.Z)(e,{format:["days"],locale:u.Z})})()+")"]}),(0,t.jsxs)("div",{className:"text-gray60 mt-05",children:[r&&(0,t.jsx)(o.G,{icon:["far","map-marker-alt"],className:"mr-05"}),r?r.nom:""," ",N&&N.code?"("+N.code+")":"",x?", "+x.nom:""]})]}),w&&(0,t.jsx)("div",{className:"ml-1",children:(0,t.jsx)(s.Z,{leftIcon:"pen",onlyIcon:!0,variant:"clear",onClick:()=>{null==k||k(!0),null==S||S(C)}})})]}),(0,t.jsx)("div",{className:"mt-1 leading-snug",children:(0,t.jsx)(a.Z,{text:h,length:250})})]}),P]})}}}]);
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.