PageSourceSearch

https://recrutement.eauduponant.fr/build/page-offer-350ef60117d538c7278c.chunk.js

js eauduponant.fr collected 2026-09-26 03:01:40 UTC 50,870 bytes, 349 lines download raw bytes

1"use strict";(globalThis.webpackChunkcareer_site_ui=globalThis.webpackChunkcareer_site_ui||[]).push([[2355],{22724(e,t,r){r.d(t,{Z:()=>s});var n=r(2345),i=r(86858),o=r(31085);const a=["children","bgColorName","hasHover"],l=n.Ay.div`
2  display: flex;
3  flex-direction: column;
4  height: 100%;
5  background-color: ${e=>{let t=e.theme,r=e.bgColorName;return(0,i.x6)(t.palette,r,i.qf)}};
6  padding: 1.5rem;
7  border-radius: 8px;
8  transition: ${e=>`${e.theme.transitions.duration.standard}ms ease`};
9
10  ${e=>e.hasHover&&"\n    &:hover {\n        filter: brightness(0.93)\n        };\n    }\n  "}
11`,s=(0,n.Ay)(e=>{let t=e.children,r=e.bgColorName,n=void 0===r?i.QZ:r,s=e.hasHover,c=void 0!==s&&s,d=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,a);return(0,o.jsx)(l,{bgColorName:n,hasHover:c,...d,children:t})})``},92981(e,t,r){r.d(t,{m:()=>n});const n=r(2345).Ay.div`
12  --container-breakpoint: ${e=>{let t=e.theme;return`${e.large?t.breakpoints.values.largeDesktop:t.breakpoints.values.desktop}px`}};
13  --container-horizontal-padding: 24px;
14
15  width: 100%;
16  margin: 0 auto;
17  display: block;
18  padding: 0 var(--container-horizontal-padding);
19  max-width: calc(
20    var(--container-breakpoint) + calc(var(--container-horizontal-padding) * 2)
21  );
22
23  ${e=>e.theme.breakpoints.down("laptop")} {
24    --container-breakpoint: ${e=>e.theme.breakpoints.values.desktop}px;
25    --container-horizontal-padding: 16px;
26  }
27
28  ${e=>e.full?"max-width: none":""};
29`},65550(e,t,r){r.d(t,{x:()=>c});var n=r(97434),i=r(2345),o=r(37639),a=r(18845),l=r(31085);const s=(0,i.Ay)(o.E)`
30  width: 200px;
31  height: 24px;
32  background-color: lightgrey;
33`,c=e=>{let t=e.count,r=e.isFetching;const i=(0,n.Bd)().t;return r?(0,l.jsx)(s,{}):(0,l.jsx)(a.o,{autoContrast:!0,children:i("career_website_landing.search_section.title.top_line",{count:t??0})})}},89151(e,t,r){r.d(t,{M:()=>p});var n=r(4414),i=r(14041),o=r(11446),a=r(53018),l=r(30940),s=r(84645),c=r(17068),d=r(31085);const u=()=>{(0,s.bU)().catch(()=>{})},p=e=>{let t=e.offer,r=e.children,s=e.dataTestId,p=e.className,f=e.onClick;if((e=>{const t=(0,i.useContext)(a.Qj).config,r=(t?(0,l._Z)(t,e):{workflow:o.ApplicationWorkflowType.DETAILS_REDIRECTION}).workflow;return{isExternalRedirection:r!==o.ApplicationWorkflowType.DETAILS_REDIRECTION&&r!==o.ApplicationWorkflowType.IN_APP,workflow:r}})(t.partner).isExternalRedirection){const e=(e=>{try{const t=new URL(e);return new Set(["https:","http:"]).has(t.protocol)?t.toString():null}catch{return null}})(t.link);return e?(0,d.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",onClick:f,"data-testid":s,className:p,children:r}):null}return(0,d.jsx)(n.L,{to:(0,c.X2)(window.location.href,t.id),sanitizedLink:(0,c.ZR)(window.location.href,t.id),onClick:f,onMouseEnter:u,onFocus:u,"data-testid":s,className:p,children:r})}},29681(e,t,r){r.d(t,{l:()=>q});var n=r(97134),i=r(42853),o=r(14041),a=r(97434),l=r(2345),s=r(17019),c=r(83256),d=r(11446),u=r(5403),p=r(10110),f=r(18845),m=r(31023),h=r(72666),y=r(86858),g=r(21293),x=r(53658),b=r(92981),_=r(15801),v=r(89151),j=r(31802),A=r(92457),w=r(79250),O=r(59974),S=r(71440),I=r(22724),k=r(35095),P=r(59474),T=r(66121),C=r(71204),E=r(37150),L=r(31085);const $=(0,l.Ay)(S.X)`
34  margin-bottom: 8px;
35  object-fit: contain;
36`,R=(0,l.Ay)(f.o)`
37  margin-bottom: 1rem;
38
39  a {
40    color: inherit;
41  }
42`,N=l.Ay.div`
43  display: flex;
44  flex-direction: column;
45  gap: 8px;
46  margin-top: auto;
47`,F=(0,l.Ay)(I.Z)`
48  border: ${e=>{let t=e.$withBorder,r=e.theme;return t?`1px solid ${r.palette.grey[200]}`:"none"}};
49`,U=e=>{let t=e.offer,r=e.index,n=e.slug,i=e.dataTestId,o=e.withBorder,a=void 0!==o&&o;const l=(0,j.j)(),s=(0,A.m)(),c=(0,w.P)(t),u=(0,L.jsxs)(F,{"data-testid":i,hasHover:!0,$withBorder:a,children:[s&&c&&(0,L.jsx)($,{src:c,alt:"logo"}),(0,L.jsx)(R,{"data-testid":`${i}-title`,component:"h3",autoContrast:!0,variant:"md-bold",children:t.title}),(0,L.jsxs)(N,{children:[(0,L.jsx)(k.B,{contractTypes:t.contract_type}),t.contract_duration&&(0,L.jsx)(P.e,{contractDuration:t.contract_duration}),(0,L.jsx)(T.V,{offer:t,showDistance:!1}),t.salary&&(0,L.jsx)(C.k,{salary:t.salary}),(t.experience_min||t.experience_max)&&(0,L.jsx)(E.u,{experienceMin:t.experience_min,experienceMa
49x:t.experience_max})]})]});return(0,L.jsx)(v.M,{offer:t,onClick:()=>{l((0,_.Iy)(_.M$.SEE_JOB_OFFER_DETAILS_PAGE,t.id,(0,O.BN)(n))),(0,g.oU)(d.PianoAnalytics.EventType.PRODUCT_CLICK,{product_data:[(0,g.h6)(t,r+1)]})},dataTestId:i,children:u})};var D=r(65550),B=r(16924),M=r(17681);const z=["dataTestId","slug","largeButtonLink","bgColorName","title","jobOffers","jobOffersCount","isFetching","withBorder","isFullWidth"],J=(0,l.Ay)(b.m)`
50  ${e=>e.theme.breakpoints.down("laptop")} {
51    padding-right: 0;
52  }
53
54  ${e=>e.$isFullWidth&&"max-width: none;"}
55`,G=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e?.map(e=>e.id)},W=(0,l.Ay)(p.I)`
56  .swiper {
57    padding: 4px;
58  }
59
60  .swiper-button-prev,
61  .swiper-button-next {
62    border: 1px solid #f5f5f5;
63  }
64
65  .swiper-button-prev {
66    transform: translate(-50%, 0);
67  }
68
69  .swiper-button-next {
70    transform: translate(50%, 0);
71  }
72
73  ${e=>e.theme.breakpoints.down("laptop")} {
74    .swiper-button-prev,
75    .swiper-button-next {
76      display: none;
77    }
78  }
79`,Y=(0,l.Ay)(c.RC)`
80  .swiper-slide {
81    height: auto;
82  }
83
84  ${e=>e.theme.breakpoints.down("laptop")} {
85    .swiper-slide {
86      max-width: 70%;
87    }
88
89    .swiper-slide:last-child {
90      padding-right: 16px;
91    }
92  }
93`,H=l.Ay.div`
94  text-align: center;
95  margin: 2.25rem 0 0 0;
96`,X=l.Ay.div`
97  display: grid;
98  grid-template-columns: repeat(4, minmax(0, 1fr));
99  gap: 16px;
100`,q=(0,o.memo)(function(e){let t=e.dataTestId,r=e.slug,p=e.largeButtonLink,b=e.bgColorName,_=void 0===b?y.ll:b,v=e.title,j=e.jobOffers,A=e.jobOffersCount,w=e.isFetching,O=e.withBorder,S=void 0!==O&&O,I=e.isFullWidth,k=void 0!==I&&I,P=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,z);const T=(0,a.Bd)().t,C=(0,l.DP)().breakpoints,E=(0,m.G)(),$=E.maxItems,R=E.showStandardDesktopGrid,N=(0,o.useRef)(void 0);return(0,o.useEffect)(()=>{j.length&&!(0,i.A)(G(N.current),G(j))&&((0,g.oU)(d.PianoAnalytics.EventType.PRODUCT_DISPLAY,{product_data:j.map((e,t)=>(0,g.h6)(e,t+1))}),N.current=j)},[j]),(0,L.jsx)(B.w,{bgColorName:_,...P,children:(0,L.jsxs)(J,{$isFullWidth:k,children:[0!==A&&(0,L.jsxs)(n.A,{gap:4,children:[(0,L.jsxs)(n.A,{alignItems:"center",children:[(0,L.jsx)(f.o,{autoContrast:!0,component:"h2",sx:{textAlign:"center",typography:{mobile:"xl-bold",laptop:"2xl-bold"}},children:v}),(0,L.jsx)(D.x,{count:A,isFetching:w})]}),w?(0,L.jsx)(x.q,{}):R?(0,L.jsx)(X,{"data-testid":t?`${t}-standard-desktop-grid`:void 0,children:j.slice(0,$).map((e,n)=>(0,L.jsx)(U,{offer:e,index:n,slug:r,dataTestId:t,withBorder:S},e.id))}):(0,L.jsxs)(W,{children:[(0,L.jsx)(Y,{onUpdate:e=>{e.navigation.destroy(),e.navigation.init(),e.navigation.update()},slidesPerView:"auto",spaceBetween:16,breakpoints:{[C.values.laptop]:{slidesPerView:$/2},[C.values.desktop]:{slidesPerView:$}},navigation:{prevEl:`#${r}-prev`,nextEl:`#${r}-next`},keyboard:!0,modules:[s.Vx,s.s3],children:j&&j.map((e,n)=>(0,L.jsx)(c.qr,{children:(0,L.jsx)(U,{offer:e,index:n,slug:r,dataTestId:t,withBorder:S})},e.id))}),(0,L.jsx)("div",{id:`${r}-prev`,className:"swiper-button-prev"}),(0,L.jsx)("div",{id:`${r}-next`,className:"swiper-button-next"})]})]}),(0,L.jsx)(H,{children:p?(0,L.jsx)(u.$,{to:h.J.SEARCH,children:T("career_website_landing.last_job_offers_section.see_all_2022")}):(0,L.jsx)(M.g,{to:h.J.SEARCH,icon:void 0,external:!1,hoverColor:void 0,children:T("career_website_landing.last_job_offers_section.see_all_2022")})})]})})})},4414(e,t,r){r.d(t,{L:()=>a});var n=r(59376),i=r(31085);const o=["sanitizedLink"],a=e=>{let t=e.sanitizedLink,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,o);const a=(0,n.Gy)(r.to);return(0,i.jsx)(n.N_,{...r,to:t,onClick:e=>{r.onClick?.(e),a(e)}})}},53658(e,t,r){r.d(t,{P:()=>d,q:()=>u}),r(14041);var n=r(2345),i=r(35057),o=r(37639),a=r(92981),l=r(31085);const s=["skeletonCount"],c=(0,n.Ay)(a.m)`
101  display: flex;
102  overflow: hidden;
103  padding: 0;
104`,d=(0,n.Ay)(o.E)`
105  // Make sure the skeleton's height is around the same as the job offer item.
106  height: 174px;
107  width: 244px;
108  margin-right: 16px;
109  flex-shrink: 0;
110`,u=e=>{let t=e.skeletonCount,r=void 0===t?4:t,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,s);return(0,l.jsx)(c,{...n,children:(0,i.A)(r).map(e=>(0,l.jsx)(d,{},e))})}},16924(e,t,r){r.d(t,{w:()=>s}),r(14041);var n=r(2345),i=r(86858),o=r(31085);const a=["children","bgColorName"],l=n.Ay.section`
111  display: block;
112  padding: 0 0 64px 0;
113  width: 100%;
114
115  ${e=>{let t=e.theme,r=e.$bgColorName;return`\n    background-color: ${(0,i.h1)(r)?r:(0,i.x6)(t.palette,r,"light")};\n  `}}
116`,s=e=>{let t=e.children,r=e.bgColorName,n=void 0===r?i.QZ:r,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,a);return(0,o.jsx)(l,{"data-print-hidden":!0,$bgColorName:n,...s,children:t})}},71440(e,t,r){r.d(t,{X:()=>a}),r(14041);var n=r(2345),i=r(31085);const o=n.Ay.div`
117  background-color: white;
118  border-radius: 5px;
119  flex: 0 0 100px;
120  width: 100px;
121  height: 60px;
122  display: flex;
123  align-items: center;
124  justify-content: center;
125  border: 1px solid ${e=>e.theme.palette.grey[200]};
126  padding: 4px;
127
128  &.without-margin {
129    padding: 0;
130    height: initial;
131    overflow: hidden;
132  }
133
134  img {
135    max-height: 100%;
136    max-width: 100%;
137  }
138`,a=e=>{let t=e.alt,r=e.className,n=e.src;return(0,i.jsx)(o,{className:r,children:(0,i.jsx)("img",{alt:t,src:n,loading:"lazy"})})}},24808(e,t,r){r.d(t,{i:()=>w}),r(14041);var n=r(62004),i=r(2345),o=r(31802),a=r(39382),l=r(53018),s=r(47304),c=r(78253),d=r(49669),u=r(39562),p=r(74814),f=r(144);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const h=(e,t)=>{const r=t.minimumLatitude,n=t.maximumLatitude,i=t.minimumLongitude,o=t.maximumLongitude,a=(0,f.r)(e);if(!a?.coordinates)return!1;const l=(d=a.coordinates.split(","),u=2,function(e){if(Array.isArray(e))return e}(d)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}
138finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(d,u)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}(d,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=l[0],c=l[1];var d,u;return s>=r&&s<=n&&c>=i&&c<=o},y=e=>h(e,{minimumLatitude:42.32,maximumLatitude:51.09,minimumLongitude:-5.14,maximumLongitude:8.24}),g=e=>h(e,{minimumLatitude:41.32,maximumLatitude:43.02,minimumLongitude:8.53,maximumLongitude:9.56});var x=r(28938),b=r(18091),_=r(17068);const v=(e,t,r)=>{const n=new URL("/v2/og-image","https://api.magnet.work"),i=[{name:"editor_id",value:e.editorId}];if(t){const n=s.Ay.language,o=(0,d.wq)(t.company_logo_url,e),a=n in e?e[n]?.offer_details?.coverImg?.src:void 0,l=j(t.company_cover?.src.src??a?.src??null),c=(0,f.r)(t),m=j(o.url),h=c?.coordinates?(e=>{const t=e.split(",");return`${t[1]},${t[0]}`})(c?.coordinates):null,_=(0,b.h)(t.salary)?(0,b._)(t.salary,n):null,v=(0,x.zl)(t.remote_work_type,e)?(0,x.Uk)(t.remote_work_type,n):null,A=r?.getContrastText(e.colors.primaryColor);i.push({name:"company_name",value:(0,u.x)(t,e)},...m?[{name:"company_logo_url",value:m}]:[],{name:"logo_type",value:o.type},...l?[{name:"background_image_url",value:l}]:[],{name:"editor_id",value:e.editorId},{name:"job_offer_title",value:t.title},...h?[{name:"coordinates",value:h}]:[],..._?[{name:"salary",value:_}]:[],...c?[{name:"city",value:(0,f.S)(c)}]:[],...v?[{name:"remote_work_type",value:v}]:[],{name:"contract_type",value:t.contract_type&&(0,p.JW)(t.contract_type)},{name:"tags_color_hexa",value:e.colors.primaryColor},...A?[{name:"tags_text_color_hexa",value:A}]:[],{name:"is_job_offer_in_metropolitan_france_without_corsica",value:y(t)},{name:"is_job_offer_in_corsica",value:g(t)})}return(0,_.r2)(n,i)},j=e=>{if(!e)return null;try{const t=new URL(e);if(c.FileServerHelper.isUrlFromAzureFileServer(t.href,"prod"))return e}catch{return`${window.location.origin}${e}`}};var A=r(31085);const w=e=>{let t=e.isDetailsPage,r=void 0!==t&&t;const s=(0,l._r)().config,c=(0,o.G)(a.rX),d=(0,i.DP)().palette;return s.features?.enable_meta_og_image?(0,A.jsxs)(n.mg,{children:[(0,A.jsx)("meta",{property:"og:image",content:r?v(s,c,d):v(s)}),(0,A.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,A.jsx)("meta",{property:"og:image:height",content:"630"})]}):null}},10110(e,t,r){r.d(t,{I:()=>n});const n=r(2345).Ay.div`
139  --swiper-navigation-color: #ffffff;
140  --swiper-navigation-size: 1rem;
141
142  position: relative;
143
144  .swiper-button-disabled {
145    display: none;
146  }
147
148  .swiper-button-prev,
149  .swiper-button-next {
150    background-color: black;
151    height: 32px;
152    width: 32px;
153    padding: 8px;
154    border-radius: 50%;
155    margin-top: 0;
156  }
157
158  .swiper-button-prev {
159    left: 0;
160    transform: translate(-50%, -50%);
161  }
162
163  .swiper-button-next {
164    right: 0;
165    transform: translate(50%, -50%);
166  }
167`},92457(e,t,r){r.d(t,{m:()=>o});var n=r(14041),i=r(71413);const o=()=>{const e=(0,i.E)();return(0,n.useMemo)(()=>e.length>0,[e])}},79250(e,t,r){r.d(t,{P:()=>o});var n=r(76599),i=r(53018);const o=e=>{const t=(0,i._r)().config,r=(0,n.m)(e);return r?.logoUrl||e.company_logo_url||t.company_dark_logo}},31023(e,t,r){r.d(t,{G:()=>o});var n=r(14540),i=r(94544);const o=()=>{const e=(0,n.d)().isAboveBreakpoint,t=(0,i.Cc)();return{maxItems:t?8:4,showStandardDesktopGrid:t&&e("desktop")}}},5082(e,t,r){r.r(t),r.d(t,{JobOfferDetailsPage:()=>cr});var n=r(14041),i=r(46702),o=r(53611),a=r(62004),l=r(2345),s=r(11446),c=r(31637),d=r(83511),u=r(15801),p=r(92981),f=r(21279),m=r(56985),h=r(71908),y=r(97434),g=r(84778),x=r(37639),b=r(71413),_=r(90842),v=r(949),j=r(76599),A=r(65718);const w=e=>{const t="string"==typeof e?{src:e}:e;return t?.src?t:void 0};var O=r(14540),S=r(47939),I=r(31085);const k=(0,l.Ay)(x.E)`
168  height: 100%;
169  width: 100%;
170  max-width: 1440px;
171  border-radius: 24px;
172`,P=l.Ay.img`
173  object-fit: cover;
174  aspect-ratio: 48 / 25; // Matches detailsCover mobile size requested in BO (768×400)
175  border-radius: 24px;
176  object-position: ${e=>e.$bgPosition||"center"};
177  width: 100%;
178
179  ${e=>e.theme.breakpoints.up("desktop")} {
180    max-width: 1440px;
181    aspect-ratio: 144/55; // Matches detailsCover desktop size requested in BO (1440×550)
182    max-height: calc(100vh - 154px); // 154px is the height of the header
183    min-height: 400px;
184  }
185`,T=(0,l.Ay)(e=>{const t=(0,b.E)(),r=(()=>{const e=(0,A.L)(),t=(0,_.dX)(),r=!!(0,j.m)(t),n=e?.offer_details?.coverImg,i=r?t.company_cover:void 0,o=w(i?.src),a=w(i?.srcMobile),l=w(n?.src),s=w(n?.srcMobile),c={src:v.l.JOB_OFFER_COVER};return{src:o??l??c,srcMobile:a??o??s??l??c}})(),n=(e=>{const t=(0,O.d)().isAboveBreakpoint;if(e)return t("desktop")?e.src:e.srcMobile||e.src})(r),i=(0,_.dX)().description_permalink,a=(0,(0,O.d)().isBelowBreakpoint)("tablet");
185return i||(0,o.A)(t)?(0,I.jsx)(P,{"data-testid":"cvc-details-cover-image",src:n?.src,alt:n?.altText??"","aria-hidden":"true",$bgPosition:(0,S.c)(r,a),...e}):(0,I.jsx)(k,{...e})})``,C=l.Ay.div`
186  position: relative;
187  display: flex;
188  flex-direction: column;
189  justify-content: start;
190  align-items: center;
191  gap: 32px;
192  margin: 0;
193
194  ${e=>e.theme.breakpoints.up("desktop")} {
195    margin: 0 32px 64px 32px;
196  }
197`,E=(0,l.Ay)(g.o)`
198  position: absolute;
199  z-index: 2;
200  top: 32px;
201  left: 32px;
202
203  ${e=>e.theme.breakpoints.up("laptop")} {
204    top: 64px;
205    left: 64px;
206  }
207`,L=()=>{const e=(0,y.Bd)().t;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(E,{"data-testid":"cvc-back-button","aria-label":e("common.back")}),(0,I.jsx)(C,{"data-testid":"cvc-cover-wrapper",children:(0,I.jsx)(T,{})})]})};var $=r(99160),R=r(56214),N=r(5403),F=r(31802),U=r(6027);const D=(0,l.Ay)(N.$)`
208  position: fixed;
209  left: 50%;
210  bottom: 32px;
211  z-index: 2;
212  transform: translate(-50%, 0);
213  max-width: 300px;
214  display: flex;
215  box-shadow: ${e=>e.theme.shadows[2]};
216
217  ${e=>e.theme.breakpoints.down("laptop")} {
218    left: auto;
219    right: 24px;
220    bottom: 12px;
221    transform: none;
222    padding: 16px;
223    border-radius: 50%;
224  }
225`,B=l.Ay.span`
226  display: block;
227  text-align: left;
228  border-left: 1px solid;
229  margin-left: 8px;
230  padding-left: 8px;
231
232  ${e=>e.theme.breakpoints.down("laptop")} {
233    display: none;
234  }
235`,M=e=>{let t=e.scrollTo;const r=(0,y.Bd)().t,n=(0,F.G)(U.vD),i=n?r("job_details_page.apply_with_profile_2022",{firstname:n}):r("job_details_page.apply_2022");return(0,I.jsxs)(D,{"data-print-hidden":!0,onClick:t,"data-testid":"cvc-apply-btn",size:"large",children:[(0,I.jsx)(R.h,{View:$.n,size:48,withContrast:!0}),(0,I.jsx)(B,{children:i})]})};var z=r(76678),J=r(1939),G=r(18845),W=r(53173);function Y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return H(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?H(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}let X=function(e){return e.UPLOAD_BUTTON="UPLOAD_BUTTON",e.APPLICATION_WITHOUT_ANALYSIS_FORM="APPLICATION_WITHOUT_ANALYSIS_FORM",e.APPLICATION_SUCCESS="APPLICATION_SUCCESS",e.APPLICATION_FAILED="APPLICATION_FAILED",e}({});const q=(0,n.createContext)(null),V=e=>{let t=e.children,r=e.initialSection,i=e.formSection;const o=Y((0,n.useState)(r),2),a=o[0],l=o[1],s=Y((0,n.useState)(null),2),c=s[0],d=s[1],u=Y((0,n.useState)(null),2),p=u[0],f=u[1],m=(0,n.useMemo)(()=>({resume:c,setResume:d}),[c]),h=(0,n.useMemo)(()=>({currentSection:a,setCurrentSection:l}),[a]),y=(0,n.useMemo)(()=>({error:p,setError:f}),[p]);return(0,I.jsx)(q.Provider,{value:{...h,...m,...y,formSection:i},children:t})},Z=()=>{const e=(0,n.useContext)(q);if(!e)throw new Error("useApplication must be used within a ApplicationContextProvider");return e};var Q=r(22466),K=r(21550),ee=r(15002),te=r(17609);function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ne=r(80824),ie=r(36146),oe=r(19996),ae=r(13674),le=r(97519),se=r(7944),ce=r(54116),de=r(64523);const ue=["isPending","disabled"],pe=l.Ay.div`
236  margin: 16px auto;
237`,fe=e=>{let t=e.isPending,r=e.disabled,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,ue);const i=(0,y.Bd)().t,o=t||r;return(0,I.jsx)(I.Fragment,{children:t?(0,I.jsx)(pe,{children:(0,I.jsx)(de.A,{severity:"info",children:(0,I.jsx)(G.o,{children:i("application.application_is_sending")})})}):(0,I.jsx)(N.$,{type:"submit",disabled:o,"data-testid":"cvc-application-form-submit-button",...n,children:i("application.submit")})})};var me=r(83435);const he=e=>(0,I.jsx)(oe.Ay,{item:!0,mobile:12,laptop:6,sx:e=>({[e.breakpoints.up("laptop")]:{"&:last-child:nth-child(odd)":{flexBasis:"100%",maxWidth:"100%"}}}),children:(0,I.jsx)(ne.xI,{control:e.control,name:e.name,render:t=>{let r=t.field,n=t.fieldState.error;return(0,I.jsx)(me.A,{label:`${e.label}${e.required?"*":""}`,fullWidth:!0,error:!!n,helperText:n?.message,inputProps:{"data-testid":`input-${e.name}`},...r})}})});var ye=r(74432);const ge=e=>{let t=e.onSubmit,r=e.isPending,n=e.fields,i=e.privacyPolicyText;const o=(0,ne.xW)(),a=Z().resume,l=(0,se.X)().showSpontaneousTargetError;let s;return i&&(s=le.A.sanitize(i,{USE_PROFILES:{html:!0}})),(0,I.jsxs)("form",{onSubmit:e=>{l(),o.handleSubmit(t)(e)},"data-testid":"cvc-application-form",children:[(0,I.jsx)(ye.s,{}),(0,I.jsx)(oe.Ay,{container:!0,spacing:2,children:n.map(e=>(0,I.jsx)(he,{control:o.control,type:e.type,label:e.placeholder,name:e.api_name,required:e.is_required},e.id))}),a?.filename&&(0,I.jsx)(ce.c,{filename:a.filename}),s&&(0,I.jsx)(ae.A,{"data-testid":"cvc-privacy-policy-text",component:"p",variant:"xs",dangerouslySetInnerHTML:{__html:s},color:"text.secondary",mt:1}),(0,I.jsx)(fe,{isPending:r,fullWidth:!0,sx:{mt:2}})]})};var xe=r(53018);const be=()=>{const e=(0,xe._r)().config,t=(0,_.dX)().partner;return t&&t in e.application_workflow_per_partner?t:"_default_"};var _e=r(92508),ve=r(71758),je=r(70327),Ae=r(80441),we=r(4126),Oe=r(59376);function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Ie=()=>{const e=Z(),t=e.resume,r=e.setCurrentSection,n=e.setError,i=(0,_.dX)(),o=(()=>{const e=(t=(0,Oe.ok)(),r=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}
237finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Se(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Se(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];var t,r;return e.get("idOrigine")||e.get("idOrigin")||"cvc_website"})(),a=be(),l=(0,ve.n)({mutationFn:async e=>{if(!t)throw new Error("Missing resume hash for application submission");return await(0,je.P)({method:"POST",endpoint:"/v2/application-without-account",body:JSON.stringify({...e,resume_id:t.hash,partner:a,offer_reference:i.reference,offer_url:new URL(document.location.pathname,document.location.origin).toString(),offer_title:i.title,origin:o,holeest_click_id:sessionStorage.getItem(we.yQ)})})},onSuccess:()=>{r(X.APPLICATION_SUCCESS)},onError:(e,t)=>{const i=e instanceof Ae.j&&null!=e.errorCode?String(e.errorCode):void 0;n({retry:()=>l.mutate(t),errorCode:i}
237),r(X.APPLICATION_FAILED)}});return l},ke=()=>{const e=(0,y.Bd)().t,t=(0,se.X)(),r=t.isSpontaneousApplication,n=t.spontaneousTarget,i=t.isSpontaneousTargetMissing,o=(0,_e.T)(!0),a=(e=>{const t=(0,xe._r)().config,r=be();return[...(t.application_workflow_per_partner[r]?.ats_required_fields||[]).map(e=>({...e,is_required:!0,value:null})),...e??[]]})([{id:"ENTITY",type:"url",placeholder:e("application_without_resume.linkedin_placeholder"),api_name:"linkedin",value:null}]),l=Ie(),s=l.mutate,c=l.isPending,d=(e=>{const t={};return e.forEach(e=>{const r=e.api_name,n=e.value;t[r]=n??""}),t})(a),u=((e,t)=>{const r={},n=t("application.required_field");return e.forEach(e=>{const i=e.api_name,o=e.type,a=e.options,l=e.is_required?1:0;switch(o){case"text":case"textarea":r[i]=te.Yj().trim().min(l,n);break;case"email":r[i]=te.Yj().trim().min(l,n).email(t("application.invalid_email"));break;case"url":r[i]=te.Yj().trim().min(l,n).refine(e=>""===e||te.Yj().url().safeParse(e).success,t("application.invalid_url"));break;case"phone":r[i]=te.Yj().trim().min(l,n).regex(/^(?:(?:0|\+33\s?)[1-9](?:[ .-]?\d{2}){4}|(?:\+?[1-9]\d{1,14}))$/,t("application.invalid_phone"));break;case"select":if(a&&a.length>0){const e=a.map(e=>e.value);r[i]=te.Yj().min(l,n).refine(t=>e.includes(t))}else r[i]=te.Yj().min(l,n);break;case"number":r[i]=te.Yj().trim().min(l,n).refine(e=>""===e||!isNaN(Number(e)));break;default:r[i]=te.Yj().min(l,n)}}),te.Ik(r).transform(e=>Object.fromEntries(Object.entries(e).filter(e=>{let t=(r=e,n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(r,n)||function(e,t){if(e){if("string"==typeof e)return re(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?re(e,t):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];var r,n;return"string"!=typeof t||""!==t})))})(a,e),p=(0,ne.mN)({defaultValues:d,resolver:(0,ie.u)(u)});return(0,I.jsx)(ne.Op,{...p,children:(0,I.jsx)(ge,{onSubmit:e=>{i||s({phone_number:e.phone,...e,...r?{recipient:n}:{}})},fields:a,isPending:c,privacyPolicyText:e("application_without_resume.personal_data_text",{privacy_policy_url:o})})})};var Pe=r(97134),Te=r(28171),Ce=r(99015),Ee=r(72666),Le=r(17681);const $e=()=>{const e=(0,y.Bd)().t,t=(0,_.dX)().title;return(0,I.jsxs)(Pe.A,{gap:1,justifyContent:"center",alignItems:"center",bgcolor:"success.50",borderRadius:2,p:3,"data-testid":"cvc-application-success-content",children:[(0,I.jsx)(Te.I,{size:24,fill:Ce.wV[700]}),(0,I.jsx)(G.o,{variant:"md-long",color:"success.700",children:e("application.application_be_sent")}),(0,I.jsx)(G.o,{pb:2,component:"span",color:"success.700",children:(0,I.jsx)(y.x6,{i18nKey:"application.application_succeeded_with_title",values:{jobOfferTitle:t}})}),(0,I.jsx)(Le.g,{to:Ee.J.SEARCH,"data-testid":"application-success-back-to-job-offers-link","aria-label":e("application.back_to_job_offers"),children:e("application.back_to_job_offers")})]})};var Re=r(62840),Ne=r(17826);const Fe=()=>{const e=(0,y.Bd)().t,t=(()=>{const e=Z(),t=e.setResume,r=e.formSection,n=e.setCurrentSection,i=e.setError,o=(0,ve.n)({mutationFn:async e=>await(0,je.P)({method:"POST",endpoint:"/v2/resumes",body:JSON.stringify({file:await Re.y.getBase64FromFile(e),filename:e.name})}),onSuccess:(e,i)=>{t({filename:i.name,hash:e.hash}),n(r)},onError:(e,t)=>{i({retry:()=>o.mutate(t)}),n(X.APPLICATION_FAILED)}});return o})(),r=t.mutate,i=t.isPending,o=(0,n.useRef)(null);return(0,I.jsxs)(Ne.A,{children:[(0,I.jsx)("input",{ref:o,type:"file",hidden:!0,"data-testid":"cvc-resume-upload-input",onChange:e=>{const t=e.target.files?.[0];t&&r(t),e.target.value=""}}),(0,I.jsx)(N.$,{type:"button",icon:$.n,iconPosition:"left","data-testid":"btn-upload-resume",loading:i,onClick:()=>o.current?.click(),children:e("upload_zone.mobile_upload_2022")})]})};var Ue=r(26498),De=r(47566),Be=r(99904);function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const ze=()=>
237{const e=(0,y.Bd)().t,t=(0,_.dX)().link,r=Z().error,i=(l=(0,n.useState)(!1),s=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(l,s)||function(e,t){if(e){if("string"==typeof e)return Me(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Me(e,t):void 0}}(l,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],a=i[1];var l,s;return(0,n.useEffect)(()=>{a(!1)},[r]),(0,I.jsxs)(Q.A,{gap:1,"data-testid":"application-error-container",justifyContent:"center",alignItems:"center",bgcolor:"error.50",borderRadius:2,p:3,children:[(0,I.jsx)(Ue.c,{size:24,fill:Ce.$D[500]}),(0,I.jsx)(G.o,{variant:"md-long",color:"error.700",children:e("application.application_failed")}),(0,I.jsxs)(G.o,{component:"span",textAlign:"center",pb:2,color:"error.700",children:[e(`error_code.${r?.errorCode??"undefined_error"}`),(0,I.jsx)("br",{}),(0,I.jsx)("strong",{children:e("application.retry_with_direct_access")})]}),(0,I.jsxs)(Q.A,{direction:"row",alignItems:"center",gap:12,children:[(0,I.jsx)(Le.g,{to:t,external:!0,"data-testid":"application-error-redirect-link","aria-label":e("application.redirect_button"),children:e("application.redirect_button")}),o?(0,I.jsx)(De.A,{size:14,color:"inherit","data-testid":"application-error-retrying-spinner","aria-label":e("application.retry")}):(0,I.jsx)(Be.g,{onClick:()=>{r?.retry&&!o&&(a(!0),r.retry())},"data-testid":"application-error-retry-button","aria-label":e("application.retry"),children:e("application.retry")})]})]})},Je=()=>{switch(Z().currentSection){case X.UPLOAD_BUTTON:return(0,I.jsx)(Fe,{});case X.APPLICATION_WITHOUT_ANALYSIS_FORM:return(0,I.jsx)(ke,{});case X.APPLICATION_SUCCESS:return(0,I.jsx)($e,{});case X.APPLICATION_FAILED:return(0,I.jsx)(ze,{});default:return null}},Ge=(0,n.forwardRef)(function(e,t){let r=e.title;const i=(0,y.Bd)().t,o=Z().currentSection,a=(0,n.useMemo)(()=>{switch(o){case X.UPLOAD_BUTTON:return i("job_details_page.one-click-application-subtitle");case X.APPLICATION_WITHOUT_ANALYSIS_FORM:return i("application.check_fields_information_application");default:return null}},[o,i]),l=(0,n.useMemo)(()=>o===X.UPLOAD_BUTTON,[o]);return(0,I.jsxs)(Q.A,{direction:"row",bgcolor:"white",borderRadius:2,my:5,p:6,gap:6,ref:t,children:[l&&(0,I.jsx)(ee.w,{above:"laptop",children:(0,I.jsx)(K.F,{width:"150px"})}),(0,I.jsxs)(Q.A,{flex:1,children:[(0,I.jsxs)(Q.A,{pb:4,children:[(0,I.jsx)(G.o,{pb:1,component:"h2",variant:"2xl-bold",children:r}),a&&(0,I.jsx)(G.o,{component:"h3",variant:"md",children:a})]}),(0,I.jsx)(Je,{})]})]})}),We=(0,n.forwardRef)(function(e,t){const r=(0,y.Bd)().t;return(0,I.jsx)(V,{initialSection:X.UPLOAD_BUTTON,formSection:X.APPLICATION_WITHOUT_ANALYSIS_FORM,children:(0,I.jsx)(Ge,{title:r("job_details_page.one-click-application"),ref:t})})});var Ye=r(18116),He=r(65119),Xe=r(39382),qe=r(71899),Ve=r(76316),Ze=r(34766),Qe=r(21293),Ke=r(98934),et=r(38544),tt=r(52208),rt=r(41581),nt=r(86858);const it=l.Ay.div`
238  display: flex;
239`,ot=l.Ay.div`
240  position: relative;
241  display: block;
242  padding: 16px 24px;
243  border-radius: 6px;
244  border: 1px solid
245    ${e=>{let t=e.theme;return(0,nt.x6)(t.palette,nt.Fl,nt.Xs)}};
246  background-color: #fff;
247  transition: ${e=>`${e.theme.transitions.duration.standard}ms ease`};
248
249  &:hover,
250  &:focus {
251    transform: scale(1.05);
252  }
253
254  input {
255    cursor: pointer;
256    position: absolute;
257    left: 0;
258    top: 0;
259    display: block;
260    width: 100%;
261    height: 100%;
262    opacity: 0;
263  }
264`,at=l.Ay.div`
265  display: flex;
266  align-items: center;
267  gap: 8px;
268  fill: ${e=>e.theme.palette.primary.main};
269`,lt=e=>{let t=e.setDisplayForm;const r=(0,y.Bd)().t,n=(0,et.wA)();return(0,I.jsx)(it,{children:(0,I.jsxs)(ot,{children:[(0,I.jsxs)(at,{children:[(0,I.jsx)(R.h,{size:24,View:tt.m}),(0,I.jsx)(G.o,{color:"primary",variant:"md-bold",children:r("job_details_page.application_without_resume_cta")})]}),(0,I.jsx)("input",{"data-testid":"cvc-apply-without-resume",onClick:()=>{t(!0),n((0,rt.z)(!0))}})]})})};function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const ct=l.Ay.form`
270  position: relative;
271  margin: 32px auto;
272`,dt=l.Ay.div`
273  margin: 16px auto;
274`,ut=(0,l.Ay)(me.A)`
275  margin-top: 16px;
276  font-size: 1rem;
277`,pt=(0,l.Ay)(G.o)`
278  color: #7d8397;
279  margin: 32px 0;
280
281  a {
282    text-decoration: underline !important;
283    color: ${Ce.c3[600]};
284  }
285`,ft=e=>{let t=e.linkedinField,r=e.formFields,i=e.inputChange,a=e.inputFocus,l=e.formSubmit,c=e.isLoadingPdfBuilder,d=e.isSe
285nding;const u=(0,y.Bd)().t,p=(0,_e.T)(!0),f=(b=(0,n.useState)(!1),_=2,function(e){if(Array.isArray(e))return e}(b)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(b,_)||function(e,t){if(e){if("string"==typeof e)return st(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?st(e,t):void 0}}(b,_)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=f[0],h=f[1],g=(0,F.G)(Xe.rX),x=(0,n.useRef)(null);var b,_;(0,n.useEffect)(()=>{m&&(0,Qe.oU)(s.PianoAnalytics.EventType.PRODUCT_ADD_TO_CART,{product_data:[(0,Qe.h6)(g)],method:"without_cv"})},[m]);const v={__html:le.A.sanitize(u("application_without_resume.personal_data_text",{privacy_policy_url:p}),{USE_PROFILES:{html:!0}})};return m?(0,I.jsx)(Ze.A,{in:!0,children:(0,I.jsxs)(ct,{onSubmit:l,"data-testid":"cvc-application-form",ref:e=>{x.current=e},children:[(0,I.jsx)(ye.s,{}),!(0,o.A)(r)&&(0,I.jsx)(oe.Ay,{container:!0,spacing:2,children:Object.values(r).map((e,t)=>(0,I.jsx)(Ke.x,{field:e,inputChange:i,inputFocus:a,isRequired:"is_required"in e?e.is_required:void 0},t))}),(0,I.jsx)(ut,{label:t?.linkedin.placeholder,name:t?.linkedin.api_name,error:!!t?.linkedin.error,helperText:t?.linkedin.error,defaultValue:t?.linkedin.value,variant:"outlined",fullWidth:!0,onChange:i,onFocus:a}),(0,I.jsx)(pt,{dangerouslySetInnerHTML:v,variant:"xs"}),d?(0,I.jsx)(dt,{children:(0,I.jsx)(de.A,{severity:"info",children:(0,I.jsx)(G.o,{children:u("application.application_is_sending")})})}):(0,I.jsx)(N.$,{type:"submit",fullWidth:!0,disabled:d,loading:c,"data-testid":"cvc-application-form-submit-button",children:u(c?"application.pdf_being_generated":"application.submit")})]})}):(0,I.jsx)(lt,{setDisplayForm:h})},mt="APPLICATION_WITHOUT_RESUME_FAILED",ht="APPLICATION_WITHOUT_RESUME_FORM",yt="APPLICATION_WITHOUT_RESUME_SUCCEEDED",gt=()=>{const e=(0,F.G)(U.JT),t=(0,F.G)(U.EC),r=(0,F.G)(He.dA),i=(0,F.G)(Xe.rX);switch((0,n.useMemo)(()=>r?r.success?yt:!1===r.success?mt:ht:ht,[e,t,r,i])){case yt:return(0,I.jsx)(Ve.I,{});case mt:return(0,I.jsx)(qe.W,{});default:return(0,I.jsx)(Ye.CV,{view:ft})}};var xt=r(94544),bt=r(8883),_t=r(30940);const vt=l.Ay.div`
286  display: flex;
287  margin: 32px;
288  flex-wrap: wrap;
289  gap: 24px;
290
291  ${e=>e.theme.breakpoints.up("desktop")} {
292    margin: 32px auto;
293  }
294`,jt=(0,l.Ay)(J.E)`
295  display: flex;
296  flex: 1;
297  padding: 24px;
298  gap: 48px;
299
300  border-radius: 8px;
301  box-shadow: none;
302  border: 1px solid ${e=>e.theme.palette.divider};
303
304  ${e=>e.theme.breakpoints.up("desktop")} {
305    padding: 48px;
306  }
307`,At=l.Ay.div`
308  flex: 3;
309  height: fit-content;
310
311  svg {
312    fill: ${e=>{let t=e.theme;return(0,nt.x6)(t.palette,"secondary","light")}};
313  }
314`,wt=l.Ay.div`
315  flex: 10;
316`,Ot=(0,l.Ay)(G.o)`
317  margin-top: 8px;
318  margin-bottom: 32px;
319`,St=l.Ay.div`
320  display: flex;
321  gap: 32px;
322  flex-wrap: wrap;
323`,It=(0,n.memo)(e=>{let t=e.applicationBoxRef;const r=(0,y.Bd)().t,n=(0,xe._r)().config,i=(0,xt.Cc)(),o=(0,F.G)(e=>e.profile.isFetching),a=(0,F.G)(e=>e.profile.id),l=(0,F.G)(e=>e.profile.isFileUploaded),s=(0,_.dX)(),c=(0,_t._Z)(n,s.partner),d=(0,F.G)(e=>e.isApplicationWithoutResumeSelected),u=!!(0,F.G)(He.Ht)?.errorCode,p=(0,F.G)(e=>e.applications[e.currentJobOffer?.id??""]),f=p?.success,m=!(o||a||d||u||f);return i?(0,I.jsx)(We,{ref:t}):(0,I.jsx)(vt,{children:(0,I.jsxs)(jt,{"data-print-hidden":!0,"data-testid":"application-with-resume-content","aria-label":"application details",ref:t,children:[(0,I.jsx)(ee.w,{above:"laptop",children:m&&(0,I.jsx)(At,{children:(0,I.jsx)(K.F,{height:"auto",width:"auto"})})}),(0,I.jsxs)(wt,{children:[(0,I.jsx)(G.o,{autoContrast:!0,component:"h2",variant:"2xl-bold",children:r("job_details_page.one-click-application")}),m&&(0,I.jsx)(Ot,{autoContrast:!0,children:r("job_details_page.one-click-application-subtitle")}),(0,I.jsxs)(St,{children:[!d&&(0,I.jsx)(W.v,{}),bt.I.shouldDisplayApplicationWithoutResume(n,c,l,a)&&(0,I.jsx)(gt,{})]})]})]})})});It.displayName="DetailsPageApplications";var kt=r(29681);const Pt=l.Ay.section`
324  background-color: ${e=>e.theme.palette.common.white};
325`,Tt=(0,l.Ay)(kt.l)`
326  max-width: 1440px;
327  padding: 64px 16px;
328  margin: auto;
329
330  @media (min-width: 1440px) {
331    border-radius: 8px;
332  }
333`,Ct=e=>{let t=e.relatedJobOffers,r=e.isFetching,n=e.relatedJobOffersCount;const i=(0,l.DP)(),o=(0,y.Bd)().t;return(0,I.jsx)(Pt,{children:(0,I.jsx)(Tt,{forwardedAs:"div",dataTestId:"cvc-related-job-offers-card",slug:"swiper-related-offers",largeButtonLink:!0,bgColorName:i.palette.background.paper,jobOffers:t,title:o("related_job_offers.title_2022"),jobOffersCount:n,isFetching:r,withBorder:!0,isFullWidth:!0})})};var Et=r(83878),Lt=r(21666),$t=r(73250),Rt=r(43347),Nt=r(10760),Ft=r(81868),Ut=r(144),Dt=r(39562);function Bt(e){const t=function(e,t){const r=e.title,n=e.publication_date,i=e.salary,o=e.description_permalink,a=e.reference,l=e.company_description,s=n?new Date(n):new Date,c=(0,Ut.r)(e),d=((e,t)=>
333(e=>e.sameAs?{sameAs:e.sameAs,logo:e.company_dark_logo,name:e.company_name}:null)(t)||{name:(0,Dt.x)(e,t)})(e,t),u=(e=>{if("string"==typeof e&&(e=[e]),0===e.length||""===e[0])return null;const t=e.map(e=>["CDI","VIE","Franchise","Associé"].includes(e)?"FULL_TIME":["CDD","Alternance"].includes(e)?"PART_TIME":["Stage"].includes(e)?"INTERN":["Indépendant"].includes(e)?"CONTRACTOR":["Intérim","Saisonnier","Intermittent"].includes(e)?"TEMPORARY":"OTHER"),r=Array.from(new Set(t));return 1===r.length?r[0]:r})(e.contract_type);return{"@context":"https://schema.org/","@type":"JobPosting",title:r,description:o,identifier:{"@type":"PropertyValue",name:d.name,value:a},datePosted:s.toISOString(),...u?{employmentType:u}:{},hiringOrganization:{"@type":"Organization",name:d.name,...l?{description:l}:{},...d.logo?{logo:d.logo}:{},...d.sameAs?{sameAs:d.sameAs}:{}},jobLocation:{"@type":"Place",address:{"@type":"PostalAddress",addressLocality:c?.city_label||c?.department_label,addressRegion:c?.large_region_label||c?.region_label,...c?.postal_code?{postalCode:c.postal_code}:{},...c?.country?{addressCountry:c.country}:{}}},...i?{baseSalary:{"@type":"MonetaryAmount",currency:"EUR",value:{"@type":"QuantitativeValue",value:i,unitText:"YEAR"}}}:{}}}(e.jobOffer,(0,xe._r)().config);return(0,I.jsx)(a.mg,{children:(0,I.jsx)("script",{type:"application/ld+json",children:(r=t,JSON.stringify(r).replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026"))})});var r}var Mt=r(24808),zt=r(45939),Jt=r(17068);const Gt=()=>{const e=(0,_.dX)(),t=(0,zt.g)(e),r=(e=>{let t=e.titleOffer,r=e.companyName,n=e.locality,i=e.contractType;const o=(0,y.Bd)().t,a=(0,xe._r)().config,l=a.company_name,s=a.features.override_entity_name_with_company_name,c=[l,t,r,i,n],d=[l,r&&o("seo_markup.job_offer_details.companyName",{companyName:r}),t&&o("seo_markup.job_offer_details.title_offer",{titleOffer:t}),i&&o("seo_markup.job_offer_details.contract_type",{contractType:i}),n&&o("seo_markup.job_offer_details.locality",{locality:n})];return(s||r===l)&&(c.splice(2,1),d.splice(1,1)),{metaTitle:(0,Ft.A)(c).join(" - "),metaDescription:(0,Ft.A)(d).join(" ")}})({titleOffer:e.title,companyName:e.company,locality:t,contractType:e.contract_type.join()}),n=r.metaTitle,i=r.metaDescription,o=(0,Jt.y5)(window.location.href),l=(0,xe._r)().config;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(a.mg,{children:[(0,I.jsx)("title",{children:n}),(0,I.jsx)("meta",{name:"description",content:i}),(0,I.jsx)("link",{rel:"canonical",href:o}),(0,I.jsx)("meta",{property:"og:title",content:n}),(0,I.jsx)("meta",{property:"og:description",content:i}),(0,I.jsx)("meta",{property:"og:url",content:o}),l.company_url&&(0,I.jsx)("meta",{name:"publisher",content:l.company_url})]}),(0,I.jsx)(Mt.i,{isDetailsPage:!0}),(0,I.jsx)(Bt,{jobOffer:e})]})};function Wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Yt=(0,Et.Mz)(e=>e.jobOffers,(e,t)=>t,(e,t)=>{const r=t?e[t]:void 0;return{...r??{},contract_type:r?.contract_type??[],company_description:r&&(r.company_description_formatted||r.company_description),id:t??null,localities:r?.localities??[{city_label:"",department_label:"",region_label:"",large_region_label:""}],skills:r?.skills??[],redirectUrl:r?.redirectUrl}}),Ht=e=>{let t=e.view;const r=(0,F.j)(),i=(0,Oe.zy)(),o=(0,Oe.g)().id,a=(0,F.G)(U.JT),l=(p=(0,n.useState)(!1),f=2,function(e){if(Array.isArray(e))return e}(p)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(p,f)||function(e,t){if(e){if("string"==typeof e)return Wt(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wt(e,t):void 0}}
333(p,f)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=l[0],c=l[1],d=(0,F.G)(e=>Yt(e,e.currentJobOffer.id||o));var p,f;return(0,n.useEffect)(()=>{r((0,u.Wf)(u.M$.DISPLAYED_JOB_OFFER_DETAILS_PAGES,{job_id:d.id}))},[r,d.id]),(0,n.useEffect)(()=>{a&&Nt.A.setResumeId(a)},[a]),(0,n.useEffect)(()=>{const e=a||Nt.A.getResumeId();r((0,Rt.UG)(i)),r((0,$t.Y)(e))},[]),(0,n.useEffect)(()=>{if(d.redirectUrl&&window.location.href!==d.redirectUrl)return sessionStorage.setItem("hasBeenRedirectedFromJobOffer","true"),void(window.location.href=d.redirectUrl);o&&r((0,Rt.vD)(o,()=>{c(!0)})),r((0,Rt.HH)())},[r,o,d.redirectUrl]),s?(0,I.jsx)(Lt.M,{code:"410"}):(0,I.jsxs)(_.Rh,{jobOffer:d,children:[d.title&&(0,I.jsx)(Gt,{}),(0,I.jsx)(t,{})]})},Xt=(0,Et.Mz)(e=>e.relatedJobOffers,e=>e);var qt=r(59552);const Vt=(0,Et.Mz)(Xe.mO,Xt,qt.Y,(e,t,r)=>({isFetching:t.isFetching||r.isFetching,relatedJobOffers:Object.values(e).filter(e=>t.list.includes(e.id)),total:t.total})),Zt=e=>{let t=e.view;const r=(0,F.G)(Vt),n=r.isFetching,i=r.relatedJobOffers,o=r.total;return(0,I.jsx)(t,{relatedJobOffers:i,isFetching:n,relatedJobOffersCount:o??0})};var Qt=r(39067),Kt=r.n(Qt);function er(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const tr=e=>{let t=e.view,r=e.anchorRef,i=void 0===r?{}:r;const o=(0,et.wA)(),a=(0,et.d4)(e=>e.jobOffers[e.currentJobOffer.id]),l=(d=(0,n.useState)(!0),p=2,function(e){if(Array.isArray(e))return e}(d)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(d,p)||function(e,t){if(e){if("string"==typeof e)return er(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?er(e,t):void 0}}(d,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=l[0],c=l[1];var d,p;return(0,n.useEffect)(()=>{const e=()=>{const e=i.current;if(e){const t=e.getBoundingClientRect().y;window.innerHeight>t?c(!1):c(!0)}};return window.addEventListener("scroll",e),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[i]),s?(0,I.jsx)(t,{scrollTo:()=>{const e=i.current;e&&e.scrollIntoView({block:"center",behavior:"smooth"}),o((0,u.NX)(u.M$.JOB_APPLY_BTN_CLICK,a.id)),o((0,u.NX)(u.M$.JOB_APPLY_BTN_CLICK_SCROLL,a.id))},anchorRef:i}):null};tr.propTypes={view:Kt().func.isRequired,anchorRef:Kt().shape({current:Kt().instanceOf(Element)})};
333var rr=r(95436),nr=r(79250);function ir(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const or=l.Ay.main`
334  ${e=>e.theme.breakpoints.up("desktop")} {
335    margin-top: var(--app-wrapper-margin-top-desktop);
336  }
337`,ar=l.Ay.div`
338  background-color: ${e=>e.theme.palette.secondary.light};
339  padding: 16px 0;
340  margin-bottom: 32px;
341  display: flex;
342  justify-content: center;
343`,lr=(0,l.Ay)(p.m)`
344  padding: 0;
345
346  ${e=>e.theme.breakpoints.up("desktop")} {
347    padding: 0 32px;
348  }
349`,sr=()=>{const e=(0,_.dX)(),t=(0,xe._r)().config,r=(0,rr.Jr)().display_entity_logo_on_job_offer_details,l=(0,rr.MA)(),p=(0,rr.C)(),y=(0,F.G)(He.dA),g=(0,F.G)(He.du),x=(0,n.useRef)(null),b=(0,nr.P)(e),v=(0,_t._Z)(t,e.partner),j=v.ats&&"in-app"===v.workflow,A=(0,F.j)(),w=(k=(0,n.useState)(!1),P=2,function(e){if(Array.isArray(e))return e}(k)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(k,P)||function(e,t){if(e){if("string"==typeof e)return ir(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ir(e,t):void 0}}(k,P)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),O=w[0],S=w[1];var k,P;return(0,n.useEffect)(()=>{"true"===sessionStorage.getItem("hasBeenRedirectedFromJobOffer")&&(S(!0),sessionStorage.removeItem("hasBeenRedirectedFromJobOffer"))},[]),(0,n.useEffect)(()=>{const r=new URLSearchParams(window.location.search).get("resume_id_to_reapply");let n=0;const i=setInterval(()=>n+=1,1e3);return(0,Qe.oU)(s.PianoAnalytics.EventType.PAGE_DISPLAY,{page_category:s.PianoAnalytics.FrontOffice.PageCategory.DETAIL,page_subject:s.PianoAnalytics.FrontOffice.PageSubject.OFFER,page_type:s.PianoAnalytics.FrontOffice.PageType.DO_EMPLOI,page_hostname:window.location.hostname,site_name:t.company_name}),r&&(Nt.A.removeApplicationLinkedToResumeId(r,e.id),(0,Jt.yE)((0,Jt.y5)(window.location.href)),A((0,u.Wf)(u.M$.REAPPLY_JOB_OFFER,{job_id:e.id}))),()=>{A((0,d.Tu)()),A((0,d.yo)()),A((0,rt.z)(!1)),A((0,c.xD)(!1)),clearInterval(i),(0,Qe.oU)(s.PianoAnalytics.EventType.PRODUCT_PAGE_DISPLAY,{product_data:[],offer_timer:n})}},[A,e.id]),(0,n.useEffect)(()=>{e.reference&&(0,Qe.oU)(s.PianoAnalytics.EventType.PRODUCT_PAGE_DISPLAY,{product_data:[(0,Qe.h6)(e)]})}
349,[e.reference]),(0,I.jsxs)(i.A,{bgcolor:"pageBackground.offerDetails",children:[O&&(0,I.jsxs)(a.mg,{children:[(0,I.jsx)("meta",{name:"prerender-status-code",content:"301"}),(0,I.jsx)("meta",{name:"prerender-header",content:`Location: ${window.location.href}`})]}),p&&(0,I.jsx)(m.Y9,{transparent:!0,position:"relative",darkLogo:!0,smallLogo:!0,logoSrc:r?b:void 0,logoAlt:r?e.company:void 0}),(0,I.jsxs)(or,{children:[(0,I.jsx)(L,{}),(0,o.A)(y)&&j&&!g&&(0,I.jsx)(tr,{view:M,anchorRef:x}),(0,I.jsx)(lr,{children:(0,I.jsx)(z.q,{isRedirection:!j})}),(0,I.jsx)(ar,{children:(0,I.jsx)(lr,{children:j&&(0,I.jsx)(It,{applicationBoxRef:x})})}),t.features?.related_job_offers_enabled&&(0,I.jsx)(Zt,{view:Ct}),(0,I.jsx)(f.z,{})]}),l&&(0,I.jsx)(h.w,{})]})},cr=()=>(0,I.jsx)(Ht,{view:sr})}}]);

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.