PageSourceSearch

https://www.ovelia.fr/_next/static/chunks/pages/contact-851a047ae23be21a.js

js ovelia.fr collected 2026-10-04 05:43:07 UTC 29,361 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="158a07b5-4934-49e6-92e8-9b277884e225",e._sentryDebugIdIdentifier="sentry-dbid-158a07b5-4934-49e6-92e8-9b277884e225")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1364],{1630:e=>{e.exports={help:"HelpBoxInteractive_help__kw4MN",interactive:"HelpBoxInteractive_interactive__mkQ2u",titleLine:"HelpBoxInteractive_titleLine__vYsso",content:"HelpBoxInteractive_content__IMNhV",title:"HelpBoxInteractive_title__zqtLz",text:"HelpBoxInteractive_text__LTVgB",picto:"HelpBoxInteractive_picto__TfLgM",pictoActive:"HelpBoxInteractive_pictoActive__q0TKF",children:"HelpBoxInteractive_children__J_dgq",subtitle:"HelpBoxInteractive_subtitle__clVyj"}},3100:e=>{e.exports={dark:"InputWrapper_dark__TqnJH",light:"InputWrapper_light__AN9cH",white:"InputWrapper_white__pgoGB",neutral:"InputWrapper_neutral__NrJ_j",input:"InputWrapper_input__gQLPq",disabled:"InputWrapper_disabled__GZL9l",with_error:"InputWrapper_with_error__FrTCC",field_top:"InputWrapper_field_top__DQ7xm",black:"InputWrapper_black__qkGuL",no_label:"InputWrapper_no_label__YuTS_",label_wrapper:"InputWrapper_label_wrapper__x6DVT",label:"InputWrapper_label__YLe4Y",required:"InputWrapper_required__2iAkA"}},4940:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return n(45092)}])},11468:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var l=n(6029),a=n(56121),r=n.n(a),o=n(8588),i=n.n(o),s=n(93681),c=n.n(s);function d(e){let{title:t,content:n,children:a,imgSrc:r}=e;return(0,l.jsxs)("div",{className:c().layout,children:[(0,l.jsxs)("div",{className:c().container,children:[(0,l.jsx)("h1",{className:c().title,children:t}),n?(0,l.jsx)("p",{className:c().content,children:n}):null,a]}),(0,l.jsx)("div",{className:c().sideImage,children:(0,l.jsx)(i(),{priority:!0,className:c().image,src:r,fill:!0,alt:"contact picture",sizes:"(max-width: 1024px) 100vw, 50vw"})})]})}d.propTypes={title:r().string,content:r().string,children:r().node,imgSrc:r().string},d.defaultProps={title:"",content:"",children:null,imgSrc:""};let u=d},12061:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var l=n(55729),a=n(81278),r=n(35490),o=n(95816),i=n.n(o),s=n(74438);let c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pathname:n,locale:o}=(0,a.useRouter)(),c="https://www.ovelia.fr",d=(0,l.useMemo)(()=>{let l=(0,r.fileUrlToUrl)({pathname:n},o,{throwOnError:!1}),a="".concat(t[o]?"/".concat(e?"".concat(e,"/"):"").concat(t[o]):"");return"".concat(c).concat(l||a)},[t]),u=e=>{let l=e===s.Xn?"/".concat(s.Xn):"/".concat(e),a=(0,r.fileUrlToUrl)({pathname:n},e,{throwOnError:!1}),o="".concat(t[e]?"".concat(l,"/").concat(t[e]):"");return a||o},p=(0,l.useMemo)(()=>[s.UV,s.RH].reduce((e,n)=>{let l=u(n);if(!i()(t)&&!l)return e;if(o===n){let t=u(s.Xn);return e.concat({href:"".concat(c).concat(t),hrefLang:"x-default"})}return e.concat({href:"".concat(c).concat(l),hrefLang:n})},[]),[d,o]);return{canonicalUrl:d,alternateLinks:p}}},15824:e=>{e.exports={dark:"Checkbox_dark__oAU9t",light:"Checkbox_light__dkjVY",neutral:"Checkbox_neutral__5jpoo",yellow:"Checkbox_yellow___2_Nq",wrapper:"Checkbox_wrapper__Peih1",checkbox:"Checkbox_checkbox___za15",disabled:"Checkbox_disabled__OlN8k",bounce:"Checkbox_bounce__uQafA",label:"Checkbox_label__bHLN6",error:"Checkbox_error__e0iu4"}},19799:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var l=n(6029),a=n(56121),r=n.n(a),o=n(37709),i=n(31596),s=n.n(i);function c(e){let{id:t,name:n,checked:a,onChange:r,className:i,theme:c}=e,d="".concat(t,"-label");return(0,l.jsxs)("label",{id:d,htmlFor:t,className:(0,o.cn)([s().toggle,s()[c],i]),children:[(0,l.jsx)("input",{id:t,name:n,type:"checkbox",onChange:r,checked:a,className:s()["toggle-input"],"aria-labelledby":d}),(0,l.jsx)("span",{className:s()["toggle-slider"]})]})}c.propTypes={id:r().string.isRequired,name:r().string.isRequired,onChange:r().func.isRequired,checked:r().bool,className:r().string,theme:r().oneOf(["light","dark","neutral","yellow",""])},c.defaultProps={checked:!1,className:"",theme:"light"};let d=c},27844:e=>{e.exports={dark:"TextField_dark___JO5y",light:"TextField_light__eB_ej",white:"TextField_white__UjGr6",neutral:"TextField_neutral__A2y7o",input:"TextField_input__7Dfq_",black:"TextField_black__NC98u"}},29275:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var l=n(6029),a=n(56121),r=n.n(a),o=n(82203),i=n.n(o),s=n(37709),c=n(35528),d=n.n(c);function u(e){let{items:t,className:n,theme:a,noPadding:r}=e;return(0,l.jsx)("section",{className:(0,s.cn)([d().section,d()[a],r&&d().noPadding,n]),children:(0,l.jsx)("ol",{className:(0,s.cn)([d().list]),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",children:t.map((e,n)=>(0,l.jsxs)("li",{itemProp:"itemListElement",itemScope:!0,itemType:"http://schema.org/ListItem",className:d().item,children:[n===t.length-1?(0,l.jsx)("span",{itemProp:"name",children:e.name}):(0,l.jsx)(i(),{className:d().link,itemProp:"item",href:e.item,children:(0,l.jsx)("span",{itemProp:"name",children:e.name})}),(0,l.jsx)("meta",{itemProp:"position",content:e.position})]},e.name))})})}
1u.propTypes={items:r().arrayOf(r().shape({name:r().string.isRequired,position:r().number.isRequired,item:r().string})),theme:r().oneOf(["transparent","light"]),className:r().string,noPadding:r().bool},u.defaultProps={items:[],theme:"light",className:null,noPadding:!1};let p=u},31596:e=>{e.exports={dark:"ToggleInput_dark__Ul1TR",light:"ToggleInput_light__yNyjG",neutral:"ToggleInput_neutral__eizXi",yellow:"ToggleInput_yellow___HTbX",toggle:"ToggleInput_toggle__f4KTZ","toggle-input":"ToggleInput_toggle-input__nARxE","toggle-slider":"ToggleInput_toggle-slider___npVj"}},33203:e=>{e.exports={link:"ConsentFields_link__UlSJp",linkText:"ConsentFields_linkText__zwWZo",fieldGroup:"ConsentFields_fieldGroup__8cJcm",toggleGroup:"ConsentFields_toggleGroup__MwZ2u",description:"ConsentFields_description__eKqmo",optinNewsSection:"ConsentFields_optinNewsSection__nIAQF",contactCheckboxGroup:"ConsentFields_contactCheckboxGroup__3fQp4",toggle:"ConsentFields_toggle__UCUEt",toggleCenter:"ConsentFields_toggleCenter__AlEkU",toggleText:"ConsentFields_toggleText__YwUto",checkboxGroup:"ConsentFields_checkboxGroup__QYX0p"}},33599:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var l=n(6029),a=n(55729),r=n(56121),o=n.n(r),i=n(37709),s=n(46531),c=n(27844),d=n.n(c);let u=(0,a.forwardRef)((e,t)=>{let{name:n,label:a,maxWidth:r,error:o,type:c,multiline:u,rows:p,className:m,inputClassName:h,placeholder:_,required:x,onBlur:g,onBlurDelay:f,disabled:b,color:v,...N}=e;return(0,l.jsx)(s.A,{label:a,className:(0,i.cn)([m]),inputClassName:h,required:x,maxWidth:r,error:o,disabled:b,color:v,children:(0,l.jsx)(u?"textarea":"input",{...N,type:c,id:n,name:n,rows:u?p:void 0,ref:t,placeholder:_||a,className:(0,i.cn)([d().input,d()[v]]),onBlur:e=>{f?setTimeout(()=>{g(e)},f):g(e)},disabled:b,color:v})})});u.displayName="TextField",u.propTypes={name:o().string.isRequired,error:o().string,onBlur:o().func,onBlurDelay:o().number,multiline:o().bool,maxWidth:o().number,label:o().string,type:o().string,rows:o().number,className:o().string,inputClassName:o().string,placeholder:o().string,required:o().bool,disabled:o().bool,color:o().oneOf(["black","white","dark","light",""])},u.defaultProps={error:"",onBlur:()=>{},onBlurDelay:null,multiline:!1,maxWidth:null,label:"",type:"text",rows:4,className:null,inputClassName:null,placeholder:"",required:!1,disabled:!1,color:"white"};let p=u},35528:e=>{e.exports={transparent:"BreadCrumb_transparent__oBPAQ",light:"BreadCrumb_light__EZhl6",neutral:"BreadCrumb_neutral__LPxiW",section:"BreadCrumb_section__REUFy",list:"BreadCrumb_list__lGJ1Y",item:"BreadCrumb_item__EI0s3",link:"BreadCrumb_link__DaZzt",noPadding:"BreadCrumb_noPadding__PsMtW"}},35836:e=>{e.exports={help:"HelpBox_help__Q_WAw",content:"HelpBox_content__QSe1r",title:"HelpBox_title__F3LOB",text:"HelpBox_text__x2C2G",responsive:"HelpBox_responsive__l_n0p"}},45092:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>el,default:()=>ea});var l=n(6029),a=n(81278),r=n(56121),o=n.n(r),i=n(14187),s=n(1909),c=n(92887),d=n(44981),u=n(82203),p=n.n(u),m=n(55729),h=n(95669),_=n.n(h),x=n(97455),g=n(12061),f=n(67521),b=n(69254),v=n(81392),N=n(11468),C=n(42357),j=n(37709),w=n(35836),y=n.n(w);function T(e){let{title:t,text:n,responsive:a,children:r}=e;return(0,l.jsxs)("div",{className:(0,j.cn)([y().help,a&&y().responsive]),children:[(0,l.jsxs)("div",{className:y().content,children:[(0,l.jsx)("h3",{className:y().title,children:t}),(0,l.jsx)("p",{className:y().text,children:n})]}),r]})}
1T.propTypes={title:o().string,text:o().string,responsive:o().bool,children:o().node},T.defaultProps={title:"",text:"",responsive:!1,children:null};var I=n(8461),k=n(4897),P=n(39211),E=n(1630),A=n.n(E),q=n(89495);function R(e){let{title:t,children:n,isExpandedByDefault:a,subTitleComponent:r}=e,{isMobile:o}=(0,q.A)(),[i,s]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{s(a)},[a]),(0,l.jsxs)("div",{className:(0,j.cn)([A().help]),children:[(0,l.jsxs)("button",{type:"button",className:A().interactive,onClick:()=>s(!i),children:[(0,l.jsxs)("div",{className:A().titleLine,children:[(0,l.jsx)("div",{className:A().content,children:(0,l.jsx)("h3",{className:A().title,children:t})}),(0,l.jsx)(P.e,{icon:"chevronDown",className:(0,j.cn)([A().picto,i&&A().pictoActive])})]}),r?(0,l.jsx)("div",{className:A().subtitle,children:r}):null]}),(0,l.jsx)(I.N,{initial:!1,children:i?(0,l.jsx)(k.P.div,{className:A().children,initial:{opacity:0,height:0,transform:o?"translateX(16px)":"translateY(30px)"},animate:{opacity:1,height:"auto",transform:o?"translateX(0)":"translateY(0)"},exit:{opacity:0,height:0,transform:o?"translateX(16px)":"translateY(20px)"},transition:{duration:.3},children:n(i)}):null})]})}R.propTypes={title:o().string,children:o().func,isExpandedByDefault:o().bool,subTitleComponent:o().node},R.defaultProps={title:"",children:()=>{},isExpandedByDefault:!1,subTitleComponent:null};var S=n(29275),B=n(71024),F=n.n(B),L=n(95292),O=n.n(L),H=n(29733),G=n(33203),U=n.n(G),D=n(19799),W=n(47051);function Y(e){var t,n,a,r,o,i;let{mode:c}=e,{t:d}=(0,H.Bd)(),{register:u,errors:p,setValue:h,watch:_}=(0,s.xW)(),[x,g]=(0,m.useState)(!1),[f,b]=(0,m.useState)(!1),[v,N]=(0,m.useState)(!0),C=_("optinNewsEmail"),j=_("optinNewsSms"),w=e=>{g(e),h("optinNewsEmail",e),h("optinNewsSms",e)};return(0,m.useEffect)(()=>{!x||C||j||w(!1),!x&&(C||j)&&g(!0)},[w,x,C,j]),(0,l.jsxs)("div",{className:U().fieldGroup,children:[(0,l.jsxs)("div",{className:U().fieldGroup,children:[(0,l.jsxs)("p",{className:U().description,children:[d("contact.form.optinContactDescription"),(0,l.jsxs)("button",{type:"button",className:U().link,onClick:()=>N(!v),children:[(0,l.jsx)("span",{className:U().linkText,children:d("contact.form.optinContactParam")}),(0,l.jsx)(P.e,{className:U().arrow,icon:v?"chevronUp":"chevronDown"})]})]}),(0,l.jsx)(k.P.div,{initial:"initial",animate:"open",exit:"collapsed",variants:{initial:{height:0,overflow:"hidden"},collapsed:{height:0,transition:{duration:.3},overflow:"hidden"},open:v?{height:"auto",transition:{duration:.3}}:{height:0,transition:{duration:.3}}},children:(0,l.jsx)(k.P.div,{className:U().contactCheckboxGroup,initial:"initial",animate:"open",exit:"collapsed",variants:{initial:{opacity:0}
1,collapsed:{opacity:0,transition:{duration:.05}},open:v?{opacity:1,transition:{duration:.3,delay:.2}}:{opacity:0,transition:{duration:.05}}},children:(0,l.jsx)(W.A,{id:"outputContactPaper-".concat(c),error:(null==p||null==(t=p.outputContactPaper)?void 0:t.message)&&d(null==p||null==(n=p.outputContactPaper)?void 0:n.message),label:d("contact.form.outputContactPaper"),theme:"yellow",...u("outputContactPaper")})})})]}),(0,l.jsxs)("div",{className:U().optinNewsSection,children:[(0,l.jsxs)("span",{className:U().toggle,children:[(0,l.jsx)(D.A,{id:"optinNews-".concat(c),name:"optinNews",onChange:e=>w(e.target.checked),checked:x,theme:"yellow"}),(0,l.jsxs)("span",{className:U().toggleText,children:[d("contact.form.optinNews"),(0,l.jsxs)("button",{type:"button",className:U().link,onClick:()=>b(!f),children:[(0,l.jsx)("span",{className:U().linkText,children:d("contact.form.optinNewsParams")}),(0,l.jsx)(P.e,{className:U().arrow,icon:f?"chevronUp":"chevronDown"})]})]})]}),(0,l.jsx)(k.P.div,{initial:"initial",animate:"open",exit:"collapsed",variants:{initial:{height:0,overflow:"hidden"},collapsed:{height:0,transition:{duration:.3},overflow:"hidden"},open:f?{height:"auto",transition:{duration:.3}}:{height:0,transition:{duration:.3}}},children:(0,l.jsxs)(k.P.div,{className:U().checkboxGroup,initial:"initial",animate:"open",exit:"collapsed",variants:{initial:{opacity:0}
1,collapsed:{opacity:0,transition:{duration:.05}},open:f?{opacity:1,transition:{duration:.3,delay:.2}}:{opacity:0,transition:{duration:.05}}},children:[(0,l.jsx)(W.A,{id:"optinNewsEmail-".concat(c),error:(null==p||null==(a=p.optinNewsEmail)?void 0:a.message)&&d(null==p||null==(r=p.optinNewsEmail)?void 0:r.message),label:d("contact.form.optinNewsEmail"),theme:"yellow",...u("optinNewsEmail")}),(0,l.jsx)(W.A,{id:"optinNewsSms-".concat(c),error:(null==p||null==(o=p.optinNewsSms)?void 0:o.message)&&d(null==p||null==(i=p.optinNewsSms)?void 0:i.message),label:d("contact.form.optinNewsSms"),theme:"yellow",...u("optinNewsSms")})]})})]})]})}Y.propTypes={mode:o().string.isRequired};var M=n(33599);let X=function(e){let{data:t}=(0,f.W4)(),{data:n}=(0,f.vh)(),{data:l}=(0,f.Js)(),{data:a}=(0,f.TY)(),{data:r}=(0,f.Ns)();return{optionsHelpTypes:t,optionsResidences:n,optionsRequestorTypes:l,optionsDepartments:a,optionsRegions:r,buildResidencesOptions:e=>(null==e?void 0:e.length)?e.map(e=>({value:e.crmId,label:e.name})).sort((e,t)=>e.label.localeCompare(t.label)):[],buildHelpTypesOptions:t=>(null==t?void 0:t.length)?t.map(t=>{var n;return{value:t.code,label:null==(n=t.labels)?void 0:n[e]}}):[],buildRequestorTypesOptions:t=>(null==t?void 0:t.length)?t.map(t=>{var n;return{value:t.code,label:null==(n=t.labels)?void 0:n[e]}}):[],buildDepartmentsOptions:t=>(null==t?void 0:t.length)?t.map(t=>{var n;return{value:t.code,label:null==(n=t.labels)?void 0:n[e]}}):[],buildRegionsOptions:t=>(null==t?void 0:t.length)?t.map(t=>{var n;return{value:t.code,label:null==(n=t.labels)?void 0:n[e]}}):[],findValue:(e,t)=>e?e.find(e=>e.value===t.value):null}};var V=n(74438);let z=F()(()=>Promise.all([n.e(6715),n.e(7350)]).then(n.bind(n,38991)),{loadableGenerated:{webpack:()=>[38991]},ssr:!1}),Q=F()(()=>Promise.all([n.e(8700),n.e(8988),n.e(6715),n.e(5022)]).then(n.bind(n,79735)),{loadableGenerated:{webpack:()=>[79735]},ssr:!1});function J(e){var t,n,r,o,c,d,u,p;let{children:m}=e,{locale:h}=(0,a.useRouter)(),{t:_}=(0,i.Bd)(),{control:x,register:g,formState:{errors:f},watch:b,setValue:v}=(0,s.xW)(),N=b(["residenceCrmId","howCanHelpTypeCode"]),C=b("contactMode"),{optionsResidences:j,optionsHelpTypes:w,optionsDepartments:y,optionsRegions:T,optionsRequestorTypes:I,buildResidencesOptions:k,buildHelpTypesOptions:P,buildDepartmentsOptions:E,buildRegionsOptions:A,buildRequestorTypesOptions:q,findValue:R}=X(h);return(0,l.jsxs)("div",{className:O().container,children:[(0,l.jsx)("p",{className:O().text,children:_("contact.form.emailMode.text")}),(0,l.jsxs)("div",{className:O().form,children:[(0,l.jsxs)("div",{className:O().fieldGroup,children:[(0,l.jsx)(M.A,{label:_("contact.form.firstName"),error:(null==f||null==(t=f.firstName)?void 0:t.message)&&_(null==f||null==(n=f.firstName)?void 0:n.message),...g("firstName")}),(0,l.jsx)(M.A,{label:_("contact.form.lastName"),error:(null==f||null==(r=f.lastName)?void 0:r.message)&&_(null==f||null==(o=f.lastName)?void 0:o.message),...g("lastName")})]}),(0,l.jsxs)("div",{className:O().fieldGroup,children:[(0,l.jsx)("div",{className:O().field,children:(0,l.jsx)(s.xI,{control:x,name:"phone",render:e=>{var t;let{field:n}=e;return(0,l.jsx)(Q,{label:_("contact.form.phone.label"),placeholder:_("contact.form.phone.placeholder"),error:(null==f?void 0:f.phone)?_(null==f||null==(t=f.phone)?void 0:t.message):null,hideCountryCode:!0,...n})}})}),(0,l.jsx)(M.A,{type:"email",error:(null==f||null==(c=f.email)?void 0:c.message)&&_(null==f||null==(d=f.email)?void 0:d.message),label:_("contact.form.email"),...g("email")})]}),(0,l.jsx)("div",{className:O().fieldGroup,children:(0,l.jsx)(s.xI,{control:x,name:"residenceCrmId",render:e=>{let{field:t}=e,n=k(j),a=R(n,t);return(0,l.jsx)(z,{id:t.name,label:"".concat(_("contact.form.".concat(t.name))," (").concat(_("contact.form.optional"),")"),placeholder:"".concat(_("contact.form.".concat(t.name))),options:n,...t,onChange:e=>{"0011t00000PjqYRAAZ"===e.value&&(v("departmentCode",""),v("regionCode","")),t.onChange(e.value)},value:a,isSearchable:!1})}})}),(null==N?void 0:N[0])==="0011t00000PjqYRAAZ"?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:O().fieldGroup,children:(0,l.jsx)(s.xI,{control:x,name:"regionCode",render:e=>{var t,n;let{field:a}=e,r=A(T),o=R(r,a);return(0,l.jsx)(z,{id:a.name,label:"".concat(_("contact.form.".concat(a.name))," *"),placeholder:"".concat(_("contact.form.".concat(a.name))),options:r,...a,onChange:e=>a.onChange(e.value),value:o,error:(null==f||null==(t=f.regionCode)?void 0:t.message)&&_(null==f||null==(n=f.regi
1onCode)?void 0:n.message),isSearchable:!1})}})}),(0,l.jsx)("div",{className:O().fieldGroup,children:(0,l.jsx)(s.xI,{control:x,name:"departmentCode",render:e=>{var t,n;let{field:a}=e,r=E(y),o=R(r,a);return(0,l.jsx)(z,{id:a.name,label:"".concat(_("contact.form.".concat(a.name))," *"),placeholder:"".concat(_("contact.form.".concat(a.name))),options:r,...a,onChange:e=>a.onChange(e.value),value:o,error:(null==f||null==(t=f.departmentCode)?void 0:t.message)&&_(null==f||null==(n=f.departmentCode)?void 0:n.message),isSearchable:!1})}})})]}):null,(0,l.jsx)("div",{className:O().fieldGroup,children:(0,l.jsx)(s.xI,{control:x,name:"howCanHelpTypeCode",render:e=>{let{field:t}=e,n=P(w),a=R(n,t);return(0,l.jsx)(z,{id:t.name,label:"".concat(_("contact.form.".concat(t.name))," (").concat(_("contact.form.optional"),")"),placeholder:"".concat(_("contact.form.".concat(t.name))),options:n,...t,onChange:e=>{var n;n=e.value,V.Yg.includes(n)&&v("requestorTypeCode",""),t.onChange(e.value)},value:a,isSearchable:!1})}})}),V.Yg.includes(null==N?void 0:N[1])?(0,l.jsx)("div",{className:O().fieldGroup,children:(0,l.jsx)(s.xI,{control:x,name:"requestorTypeCode",render:e=>{let{field:t}=e,n=q(I),a=R(n,t);return(0,l.jsx)(z,{id:t.name,label:"".concat(_("contact.form.".concat(t.name))," (").concat(_("contact.form.optional"),")"),placeholder:"".concat(_("contact.form.".concat(t.name))),options:n,...t,onChange:e=>t.onChange(e.value),value:a,isSearchable:!1})}})}):null,(0,l.jsx)("div",{className:O().fieldGroup,children:(0,l.jsx)(M.A,{multiline:!0,rows:5,label:"".concat(_("contact.form.comment")),error:(null==f||null==(u=f.comment)?void 0:u.message)&&_(null==f||null==(p=f.comment)?void 0:p.message),placeholder:"".concat(_("contact.form.commentPlaceholder")),...g("comment")})}),(0,l.jsx)("div",{className:O().consentFields,children:(0,l.jsx)(Y,{mode:C})}),m]})]})}J.propTypes={children:o().node},J.defaultProps={children:null};var Z=n(21941),K=n(50017),$=n(48861);let ee=Z.Ik().shape({firstName:Z.Yj().required("contact.form.error.required"),lastName:Z.Yj().required("contact.form.error.required"),phone:Z.Yj().required("common.formErrors.required").test("phone","common.formErrors.phone",e=>(0,K.A)({phoneNumber:e,required:!0})),email:Z.Yj().email("contact.form.error.email").test("correctMail","contact.form.error.email",e=>null==e||""===e||(0,$.x)(e)).required("contact.form.error.required"),residenceCrmId:Z.Yj(),howCanHelpTypeCode:Z.Yj(),requestorTypeCode:Z.Yj(),comment:Z.Yj().required("contact.form.error.required"),departmentCode:Z.Yj().when("residenceCrmId",{is:e=>"0011t00000PjqYRAAZ"===e,then:()=>Z.Yj().required("contact.form.error.required"),otherwise:()=>Z.Yj()}),regionCode:Z.Yj().when("residenceCrmId",{is:e=>"0011t00000PjqYRAAZ"===e,then:()=>Z.Yj().required("contact.form.error.required"),otherwise:()=>Z.Yj()}),optinNewsEmail:Z.zM(),optinNewsSms:Z.zM(),outputContactPaper:Z.zM(),outputContactPhone:Z.zM()}),et={ORGANISERVISITE:"contact.title.visit",RECEVOIRBROCHURE:"contact.title.brochure",PHONE:"contact.title.callback",DEFAULT:"contact.title.default"};function en(e){var t,n;let{header:r,footer:o}=e,{locale:u,push:h}=(0,a.useRouter)(),{t:j}=(0,i.Bd)(),{canonicalUrl:w}=(0,g.A)(),{residence:y,help:I,number:k}=(()=>{{let{hash:e}=window.location;return e.replace("#","").split("&").reduce((e,t)=>{let[n,l]=t.split("=");return{...e,[n]:l}},{})}})(),{data:P}=(0,f.vh)(),[E,A]=(0,m.useState)(V.NA[u]),[q,B]=(0,m.useState)(et.DEFAULT),[F,L]=(0,m.useState)(""),O=[{name:j("breadcrumb.home"),position:1,item:"/"},{name:(0,x.aV)(V.RF),position:2,item:null}],H=(0,s.mN)({values:{contactMode:"email",firstName:"",lastName:"",phone:null,email:"",residenceCrmId:F,departmentCode:"",regionCode:"",howCanHelpTypeCode:"",requestorTypeCode:"",comment:"",optinNewsEmail:!1,optinNewsSms:!1,outputContactPaper:!1,outputContactPhone:!1},mode:"onChange",resolver:(0,d.t)(ee)}),{handleSubmit:G,reset:U}=H,{mutate:D,isLoading:W}=(0,c.n)({mutationFn:f.rx,mutationKey:"sendContact",onSuccess:()=>{U(),h("/contact/mail")}});(0,m.useEffect)(()=>{k&&A(null==k?void 0:k.replace(/(.{2})/g,"$1 ").trim()),I&&(B(et[I.toUpperCase()]||et.DEFAULT),H.setValue("howCanHelpTypeCode",I))},[]),(0,m.useEffect)(()=>
1{if(!y||!(null==P?void 0:P.length))return;let e=P.find(e=>String(e.homingId)===String(y)||String(e.crmId)===String(y));(null==e?void 0:e.crmId)&&(L(e.crmId),H.setValue("residenceCrmId",e.crmId))},[!0,y,P,H]);let Y=e=>{D({...e})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(_(),{children:[(0,l.jsx)("title",{children:j("contact.metaTitle")}),(0,l.jsx)("meta",{name:"description",content:j("contact.metaDescription")}),(0,l.jsx)("link",{rel:"canonical",href:w})]}),(0,l.jsx)(v.A,{header:null==r||null==(t=r[0])?void 0:t.data,footer:null==o||null==(n=o[0])?void 0:n.data,children:(0,l.jsx)(b.A,{children:(0,l.jsxs)(N.A,{title:j(q),imgSrc:"/images/samples/contact.webp",children:[(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(R,{title:j("contact.form.emailMode.title"),isExpandedByDefault:!0,children:()=>(0,l.jsx)("form",{onSubmit:G(Y),children:(0,l.jsx)(s.Op,{...H,children:(0,l.jsx)(J,{children:(0,l.jsx)(C.A,{icon:"send",iconPosition:"right",disabled:W,isLoading:W,isSubmit:!0,children:j("contact.form.submit")})})})})}),(0,l.jsx)(T,{title:j("contact.phoneLabel"),text:"".concat(E," - ").concat(j("contact.phoneText"))}),(0,l.jsx)(R,{title:j("contact.helpTitleFaq"),subTitleComponent:j("contact.helpSubtitleFaq"),children:()=>(0,l.jsx)("div",{className:"padding-left-40 padding-left-16-tablet padding-right-40 padding-right-16-tablet padding-bottom-16-tablet padding-bottom-40 padding-top-16-tablet flex-row flex-end w-100",children:(0,l.jsx)(p(),{href:V.kx[u],target:"_blank",className:"linkButton",children:j("contact.helpTextFaq")})})})]}),(0,l.jsx)("p",{className:"p2-desktop-default p2-mobile-default",children:(0,l.jsx)(i.x6,{i18nKey:"contact.dataCollected",components:[(0,l.jsx)(p(),{href:V.nd.collect[u],target:"_blank",className:"p2-desktop-bold p2-mobile-bold",children:"collect"},"cgu")]})}),(0,l.jsx)(S.A,{items:O,theme:"transparent",noPadding:!0})]})})})]})}en.propTypes={header:o().arrayOf(o().shape({data:o().shape({})})).isRequired,footer:o().arrayOf(o().shape({data:o().shape({})})).isRequired};var el=!0;let ea=en},46531:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var l=n(6029),a=n(56121),r=n.n(a),o=n(14187),i=n(37709),s=n(89495),c=n(3100),d=n.n(c);function u(e){let{label:t,className:n,inputClassName:a,maxWidth:r,required:c,error:u,children:p,disabled:m,color:h}=e,{t:_}=(0,o.Bd)(),{isMobile:x}=(0,s.A)();return(0,l.jsxs)("div",{className:(0,i.cn)(["padding-top-8",n||"",d()[h]]),style:x?{}:{maxWidth:r},children:[(0,l.jsxs)("div",{className:(0,i.cn)([d().input,u?d().with_error:"",a||"",m?d().disabled:""]),children:[p,t?(0,l.jsx)("div",{className:d().field_top,children:(0,l.jsxs)("span",{className:(0,i.cn)([d().label_wrapper,"d-flex a-center"]),children:[(0,l.jsx)("span",{className:d().label,children:t}),c?(0,l.jsx)("span",{className:d().required,children:"*"}):null]})}):(0,l.jsx)("div",{className:d().no_label})]}),u?(0,l.jsx)("p",{className:"p2-desktop-default font-color-red margin-top-8 p2-mobile-default",children:_(u)}):null]})}u.propTypes={label:r().string,className:r().string,inputClassName:r().string,maxWidth:r().number,required:r().bool,error:r().string,children:r().node.isRequired,disabled:r().bool,color:r().oneOf(["black","white","dark","light",""])},u.defaultProps={label:null,className:null,inputClassName:null,maxWidth:null,required:!1,error:null,disabled:!1,color:"white"};let p=u},47051:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var l=n(6029),a=n(55729),r=n(56121),o=n.n(r),i=n(37709),s=n(15824),c=n.n(s);let d=(0,a.forwardRef)((e,t)=>{let{className:n,label:a,onChange:r,error:o,disabled:s,theme:d,...u}=e;return(0,l.jsxs)("label",{htmlFor:u.id,className:(0,i.cn)([c().wrapper,"d-flex",c()[d],n||""]),children:[(0,l.jsxs)("span",{className:(0,i.cn)([c().checkbox,s?c().disabled:""]),children:[(0,l.jsx)("input",{ref:t,type:"checkbox",onChange:r,disabled:s,...u}),(0,l.jsx)("svg",{viewBox:"0 0 21 21",children:(0,l.jsx)("polyline",{points:"5 10.75 8.5 14.25 16 6"})}),a?(0,l.jsx)("span",{className:(0,i.cn)([c().label,"p2-desktop-default margin-left-16 p1-mobile-default"]),children:a}):null]}),o?(0,l.jsx)("span",{className:c().error,children:o}):null]})});d.propTypes={id:o().string.isRequired,className:o().string,label:o().oneOfType([o().string,o().shape({})]),onChange:o().func.isRequired,error:o().string,disabled:o().bool,theme:o().oneOf(["light","dark","neutral","yellow",""])},d.defaultProps={className:"",label:null,error:null,disabled:!1,theme:"light"};let u=d},48861:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});let l=e=>{let t=new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);try{return t.test(e)}catch(e){return!1}}},50017:(e,t,n)=>{"use strict";n.d(t,{A:()=>
1o});var l=n(38822),a=n.n(l),r=n(64758);let o=e=>{let{phoneNumber:t,required:n=!1}=e;if(""===t&&!n)return!0;if(!a()(t)&&""!==t){var l;return null==(l=(0,r.lq)(t,{regionCode:"FR"}))?void 0:l.valid}return!1}},67521:(e,t,n)=>{"use strict";n.d(t,{rx:()=>r,TY:()=>c,ey:()=>u,W4:()=>o,Ns:()=>s,Js:()=>d,vh:()=>i});var l=n(3215);let a=n(32109).A.create({baseURL:"https://api.ovelia.fr",headers:{Accept:"application/json"},timeout:3e4}),r=async e=>{let t="".concat(Date.now().toString(36)).concat(Math.random().toString(36).substring(2,10));try{let n=await a.post("contact-form/contactUs",{...e,outputContactPhone:!1,formId:t});return[200,201].includes(n.status)&&window.dataLayer&&window.dataLayer.push({event:"generate_lead",form_hidden_id:t}),null==n?void 0:n.data}catch(e){throw console.error("Erreur lors de l'envoi du formulaire de contact:",e),e}},o=e=>(0,l.I)(["howCanHelpTypes"],()=>a.get("contact-form/howCanHelpTypes").then(e=>{var t;return null==e||null==(t=e.data)?void 0:t.howCanHelpTypes}),{...e}),i=e=>(0,l.I)(["residences"],()=>a.get("contact-form/residences").then(e=>{var t;return null==e||null==(t=e.data)?void 0:t.residences}),{...e}),s=e=>(0,l.I)(["regions"],()=>a.get("contact-form/regions").then(e=>{var t;return null==e||null==(t=e.data)?void 0:t.regions}),{...e}),c=e=>(0,l.I)(["departments"],()=>a.get("contact-form/departments").then(e=>{var t;return null==e||null==(t=e.data)?void 0:t.departments}),{...e}),d=e=>(0,l.I)(["requestorTypes"],()=>a.get("contact-form/requestorTypes").then(e=>{var t;return null==e||null==(t=e.data)?void 0:t.requestorTypes}),{...e}),u=(e,t)=>(0,l.I)(["residenceReputation"],()=>a.get("contact-form/residence-reputation/".concat(e)).then(e=>{var t;return null==e||null==(t=e.data)?void 0:t.residenceReputation}),{...t})},69254:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var l=n(6029),a=n(55729),r=n(56121);function o(e){let{children:t}=e;return(0,a.useEffect)(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]),(0,l.jsx)("div",{children:t})}o.propTypes={children:n.n(r)().node.isRequired};let i=o},93681:e=>{e.exports={layout:"ContactLayout_layout__ljwSU",container:"ContactLayout_container__qfUue",title:"ContactLayout_title__gou_c",content:"ContactLayout_content__VhQl0",sideImage:"ContactLayout_sideImage__mnfYx",image:"ContactLayout_image__ucthf"}},95292:e=>{e.exports={container:"ContactForm_container__fPyOd",title:"ContactForm_title__oepbw",form:"ContactForm_form__PiwG_",fieldGroup:"ContactForm_fieldGroup__8fWAP",flex40:"ContactForm_flex40__pR2oi",field:"ContactForm_field__pR1k6",consentFields:"ContactForm_consentFields__JrA8U",link:"ContactForm_link__GX0LF"}},97455:(e,t,n)=>{"use strict";n.d(t,{Oq:()=>s,PW:()=>o,aV:()=>i});var l=n(34589),a=n.n(l),r=n(74438);function o(e,t){if(!e)return"";let n=e.replace("slug:",""),l=new RegExp("(".concat(r.WW.join("|"),")")),a=n.match(l),o=a?a[1]:"";return n.replace("".concat(t?"".concat(t,"-"):""),"").replace(new RegExp("^".concat(o,"-")),"")}let i=e=>a()(e),s=(e,t)=>{if(t){let n=o(t,e);return"/".concat(r.Nh[e],"/").concat(n)}return"/".concat(r.Nh[e])}}},e=>{e.O(0,[7947,3270,3944,3215,4589,4897,4327,4981,6670,761,636,6593,8792],()=>e(e.s=4940)),_N_E=e.O()}]);

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.