1!function(){try{var 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]="9c2e0fd6-618c-4dde-b457-990ddec52f64",e._sentryDebugIdIdentifier="sentry-dbid-9c2e0fd6-618c-4dde-b457-990ddec52f64")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7526],{515:(e,l,t)=>{"use strict";t.d(l,{A:()=>n});let n=e=>{let l=Math.floor(Math.log2(e)/10);return"".concat((e/1024**l).toFixed(2)," ").concat(["B","KB","MB","GB"][l])}},3100:e=>{e.exports={dark:"InputWrapper_dark__TqnJH",light:"InputWrapper_light__AN9cH",white:"InputWrapper_white__pgoGB",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"}},7379:(e,l,t)=>{"use strict";t.d(l,{A:()=>c});var n=t(6029),a=t(55729),i=t(56121),r=t.n(i),o=t(37709),s=t(89495),d=t(32448),u=t.n(d);let p=(0,a.forwardRef)((e,l)=>{let{name:t,options:a,display:i,value:r,onChange:d,disabled:p,theme:c}=e,{isMobile:m}=(0,s.A)();return(null==a?void 0:a.length)?(0,n.jsx)("fieldset",{className:(0,o.cn)([u().group,"d-flex",u()[c],m?u().column:u()[i]]),children:a.map(e=>{let{value:a,label:i}=e;return(0,n.jsxs)("label",{htmlFor:"".concat(t,"_").concat(a),className:(0,o.cn)([u().option,"d-flex a-center",p?u().disabled:""]),children:[(0,n.jsx)("input",{ref:l,type:"radio",id:"".concat(t,"_").concat(a),name:"".concat(t,"_").concat(a),className:u().input,checked:r===a,onChange:e=>d(e.target.value),value:a,disabled:p}),(0,n.jsx)("span",{className:u().radio_check}),(0,n.jsx)("span",{className:"p1-desktop-default p1-mobile-default",children:i})]},"".concat(t,"_").concat(a))})}):null});p.propTypes={name:r().string.isRequired,options:r().arrayOf(r().shape({value:r().string,label:r().string})),value:r().string,onChange:r().func,display:r().oneOf(["column","row"]),disabled:r().bool,theme:r().oneOf(["light","dark","neutral",""])},p.defaultProps={options:[],value:null,onChange:()=>{},display:"column",disabled:!1,theme:"light"};let c=p},19691:(e,l,t)=>{"use strict";t.d(l,{A:()=>u});var n=t(6029),a=t(56121),i=t.n(a),r=t(37709),o=t(40576),s=t.n(o);function d(e){let{title:l,text:t,arrow:a,color:i,size:o,maxWidth:d}=e;return t?(0,n.jsxs)("div",{className:(0,r.cn)([s().bubble,a?"".concat(s().arrow," ").concat(s()[a]):"",s()[i],o?s()[o]:""]),style:d?{maxWidth:d}:{},children:[l?(0,n.jsx)("p",{className:"p2-desktop-bold p2-mobile-bold",children:l}):null,(0,n.jsx)("div",{className:(0,r.cn)([s().text,"p2-desktop-default p2-mobile-default"]),dangerouslySetInnerHTML:{__html:t}})]}):null}d.propTypes={title:i().string,text:i().node.isRequired,arrow:i().oneOf(["top-left","top-right","bottom-left","bottom-right","top-left-side","bottom-left-side"]),color:i().oneOf(["warning","error"]),size:i().oneOf(["small"]),maxWidth:i().number},d.defaultProps={title:null,arrow:null,color:"warning",size:null,maxWidth:null};let u=d},20496:e=>{e.exports={wrapper:"InputDocument_wrapper__si6bV",input_wrapper:"InputDocument_input_wrapper__1Km6h",input:"InputDocument_input__gAtss",disabled:"InputDocument_disabled__B7utb",input_placeholder:"InputDocument_input_placeholder__tmK1x",upload:"InputDocument_upload__6bGh_",draging:"InputDocument_draging__M7Alp",upload_icon:"InputDocument_upload_icon__Hhvhp",file:"InputDocument_file__pSBvq",file_name:"InputDocument_file_name__svXKI"}},27844:e=>{e.exports={dark:"TextField_dark___JO5y",light:"TextField_light__eB_ej",white:"TextField_white__UjGr6",input:"TextField_input__7Dfq_",black:"TextField_black__NC98u"}},32448:e=>{e.exports={dark:"RadioInput_dark__dANgC",light:"RadioInput_light__w_inW",group:"RadioInput_group__xt4Qh",column:"RadioInput_column__s6KZZ",row:"RadioInput_row__HUF1J",option:"RadioInput_option__Topex",disabled:"RadioInput_disabled__CpESP",input:"RadioInput_input__kKn3g",radio_check:"RadioInput_radio_check__RcEMl"}},33599:(e,l,t)=>{"use strict";t.d(l,{A:()=>c});var n=t(6029),a=t(55729),i=t(56121),r=t.n(i),o=t(37709),s=t(46531),d=t(27844),u=t.n(d);let p=(0,a.forwardRef)((e,l)=>{let{name:t,label:a,maxWidth:i,error:r,type:d,multiline:p,rows:c,className:m,inputClassName:_,placeholder:b,required:g,onBlur:h,onBlurDelay:A,disabled:f,color:T,...N}=e;return(0,n.jsx)(s.A,{label:a,className:(0,o.cn)([m]),inputClassName:_,required:g,maxWidth:i,error:r,disabled:f,color:T,children:(0,n.jsx)(p?"textarea":"input",{...N,type:d,id:t,name:t,rows:p?c:void 0,ref:l,placeholder:b||a,className:(0,o.cn)([u(
1).input,u()[T]]),onBlur:e=>{A?setTimeout(()=>{h(e)},A):h(e)},disabled:f,color:T})})});p.displayName="TextField",p.propTypes={name:r().string.isRequired,error:r().string,onBlur:r().func,onBlurDelay:r().number,multiline:r().bool,maxWidth:r().number,label:r().string,type:r().string,rows:r().number,className:r().string,inputClassName:r().string,placeholder:r().string,required:r().bool,disabled:r().bool,color:r().oneOf(["black","white","dark","light",""])},p.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 c=p},40576:e=>{e.exports={bubble:"BubbleMessage_bubble__LoomD",text:"BubbleMessage_text__IgDBg",warning:"BubbleMessage_warning__KklE8",error:"BubbleMessage_error__uagiU",arrow:"BubbleMessage_arrow__eAbpj","top-left":"BubbleMessage_top-left__xXU_r","top-right":"BubbleMessage_top-right__1wJos","bottom-left":"BubbleMessage_bottom-left__oShV9","bottom-right":"BubbleMessage_bottom-right__p6LY_","bottom-left-side":"BubbleMessage_bottom-left-side__o6YZZ","top-left-side":"BubbleMessage_top-left-side__bIsr6",small:"BubbleMessage_small__mEIBv"}},46531:(e,l,t)=>{"use strict";t.d(l,{A:()=>c});var n=t(6029),a=t(56121),i=t.n(a),r=t(14187),o=t(37709),s=t(89495),d=t(3100),u=t.n(d);function p(e){let{label:l,className:t,inputClassName:a,maxWidth:i,required:d,error:p,children:c,disabled:m,color:_}=e,{t:b}=(0,r.Bd)(),{isMobile:g}=(0,s.A)();return(0,n.jsxs)("div",{className:(0,o.cn)(["padding-top-8",t||"",u()[_]]),style:g?{}:{maxWidth:i},children:[(0,n.jsxs)("div",{className:(0,o.cn)([u().input,p?u().with_error:"",a||"",m?u().disabled:""]),children:[c,l?(0,n.jsx)("div",{className:u().field_top,children:(0,n.jsxs)("span",{className:(0,o.cn)([u().label_wrapper,"d-flex a-center"]),children:[(0,n.jsx)("span",{className:u().label,children:l}),d?(0,n.jsx)("span",{className:u().required,children:"*"}):null]})}):(0,n.jsx)("div",{className:u().no_label})]}),p?(0,n.jsx)("p",{className:"p2-desktop-default font-color-red margin-top-8 p2-mobile-default",children:b(p)}):null]})}p.propTypes={label:i().string,className:i().string,inputClassName:i().string,maxWidth:i().number,required:i().bool,error:i().string,children:i().node.isRequired,disabled:i().bool,color:i().oneOf(["black","white","dark","light",""])},p.defaultProps={label:null,className:null,inputClassName:null,maxWidth:null,required:!1,error:null,disabled:!1,color:"white"};let c=p},59509:(e,l,t)=>{"use strict";t.d(l,{A:()=>n});let n=[{value:"woman",label:"booking.selectors.genders.woman"},{value:"man",label:"booking.selectors.genders.man"}]},65793:(e,l,t)=>{"use strict";t.d(l,{A:()=>b});var n=t(55729),a=t(12364),i=t.n(a),r=t(95816),o=t.n(r),s=t(83817),d=t.n(s),u=t(76694),p=t.n(u),c=t(16943),m=t.n(c),_=t(67234);let b=e=>{let{values:l,formKey:t,defaultValues:a,setFormValue:r}=e,{bookingForm:s,setFormData:u}=(0,_.A)();(0,n.useEffect)(()=>{o()(s)||s[t]||u({[t]:{...a,initialized:!0}}),(null==s?void 0:s[t])&&Object.entries(s[t]).forEach(e=>{let[l,t]=e;r(l,t)})},[s]);let c=()=>{var e;if((null==s||null==(e=s[t])?void 0:e.initialized)&&!o()(s[t])&&!o()(l)){let e=m()(p()(s[t],"initialized"),e=>void 0!==e),n=m()(p()(l,"initialized"),e=>void 0!==e);o()(e)||o()(n)||d()(e,n)||u({[t]:{...l,initialized:!0}})}};return(0,n.useEffect)(()=>{let e=i()(c,400);return e(),()=>{e.cancel()}},[l]),{formValues:l}}},67303:(e,l,t)=>{"use strict";t.d(l,{A:()=>g});var n=t(55729),a=t(21985),i=t.n(a),r=t(74513),o=t.n(r),s=t(92887),d=t(14187),u=t(60073);let p={postDocument:async e=>{var l,t;let{fileName:n,data:a}=e,i=await u.A.post("/booking-tunnel/document",{fileName:n,data:a});return(null==i||null==(l=i.data)?void 0:l.documentId)?{fileName:n,documentId:null==i||null==(t=i.data)?void 0:t.documentId}:null}};var c=t(515);let m=e=>(null==e?void 0:e.path)||(null==e?void 0:e.name);var _=t(74438);let b=e=>{let[l,t]=e.split("."),n=o()(i()(l));return"".concat(n,".").concat(t)},g=()=>{let{t:e}=(0,d.Bd)(),[l,t]=(0,n.useState)(null),{mutateAsync:a,isLoading:i}=(0,s.n)({mutationFn:p.postDocument,mutationKey:["postDocument"],onError:(l,n
1)=>{(null==n?void 0:n.code)&&t({[n.code]:e("booking.tenant.form.documents.error")})}}),r=async e=>new Promise((l,t)=>{let n=new FileReader;n.onload=n=>{var a;let i=null==n||null==(a=n.target)?void 0:a.result;i?l({file:m(e),data:i.split(",")[1]}):t()},n.onerror=e=>{t(e)},n.readAsDataURL(e)});return{uploadError:l,isPostDocumentLoading:i,handleDocumentUpload:async l=>{let{files:n,updateFieldValue:i,code:o}=l;t(null);let s=null==n?void 0:n.map(e=>e instanceof File?{path:b(m(e)),size:e.size,documentTypeCode:o}:e);i(s||[]);let d=null==n?void 0:n.filter(e=>e instanceof File),u=null==d?void 0:d.filter(e=>e.size>_.zh);if(null==u?void 0:u.length){t({[o]:e("booking.inputDocument.tooLarge",{maxSize:(0,c.A)(_.zh)})}),i((null==s?void 0:s.filter(e=>!u.some(l=>b(m(l))===e.path)))||[]);return}if(null==d?void 0:d.length){let e=await Promise.all(d.map(e=>r(e))),l=d.map(l=>{var t;return a({code:o,fileName:b(m(l)),data:null==e||null==(t=e.find(e=>e.file===m(l)))?void 0:t.data})});try{let e=await Promise.all(l);(null==e?void 0:e.length)&&(null==s?void 0:s.length)&&i(s.map(l=>{let t=e.find(e=>e.fileName===l.path);return t?{...l,documentId:t.documentId}:l}))}catch(l){let e=null==d?void 0:d.map(e=>b(m(e)));i(s.filter(l=>!e.some(e=>e===l.path)))}}}}}},83187:(e,l,t)=>{"use strict";t.d(l,{A:()=>T});var n=t(6029),a=t(55729),i=t(56121),r=t.n(i),o=t(99505),s=t(14187),d=t(50998),u=t.n(d),p=t(37709),c=t(515),m=t(74438),_=t(89495),b=t(39211),g=t(19691),h=t(20496),A=t.n(h);let f=(0,a.forwardRef)((e,l)=>{let{label:t,description:i,addLabel:r,value:d,onChange:h,onBlur:f,error:T,maxNumOfElements:N,disabled:x,required:I,isLoading:v,showAalreadySentMessage:R}=e,{t:E}=(0,s.Bd)(),{isMobile:w}=(0,_.A)(),[j,k]=(0,a.useState)(null),O=(0,a.useMemo)(()=>(0,c.A)(m.zh),[]),y=(0,a.useCallback)((e,l)=>{if(x||v)return;if((null==l?void 0:l.length)&&l.some(e=>e.errors.some(e=>"file-too-large"===e.code))&&k(E("booking.inputDocument.tooLarge",{maxSize:O})),!(null==e?void 0:e.length)){(null==l?void 0:l.length)&&f();return}k(null);let t=[...d||[],...e.filter(e=>!d.some(l=>l.path===e.path))];N&&(null==t?void 0:t.length)&&t.splice(0,t.length-N),h(t),f()},[d,N,x,v,h,f,E,O]),{getRootProps:C,getInputProps:L,isDragActive:B}=(0,o.VB)({onDrop:y,maxSize:m.zh,accept:{"image/jpeg":[".jpg",".jpeg"],"image/png":[".png"],"application/pdf":[".pdf"]},onFileDialogCancel:f}),D=(0,a.useMemo)(()=>(null==d?void 0:d.length)&&d.length>=N,[d,N]);return(0,n.jsxs)("div",{className:(0,p.cn)([A().wrapper,"d-flex a-stretch"]),children:[(0,n.jsxs)("div",{className:A().input_wrapper,children:[(0,n.jsxs)("div",{...C(),className:(0,p.cn)([A().input,B?A().draging:"",x||v||D?A().disabled:""]),children:[(0,n.jsx)("input",{ref:l,...L(),disabled:x||v||D}),(0,n.jsxs)("div",{className:(0,p.cn)([A().input_placeholder,w?"d-flex a-center":""]),children:[(0,n.jsx)(b.e,{icon:"uploadFile",className:(0,p.cn)(["font-color-green",w?"":"margin-bottom-8"]),width:w?28:32,height:w?28:32,style:{minWidth:w?28:32}}),(0,n.jsx)("p",{className:(0,p.cn)(["p2-desktop-bold font-color-green p2-mobile-bold",w?"margin-left-16":"margin-bottom-4"]),children:r||E("booking.inputDocument.label")}),w?null:(0,n.jsx)("p",{className:"p3-desktop-default",children:E("booking.inputDocument.subtitle")})]}),(0,n.jsx)("div",{className:(0,p.cn)([A().upload,"d-flex center"]),children:(0,n.jsx)("div",{className:(0,p.cn)([A().upload_icon,"d-flex center"]),children:(0,n.jsx)(b.e,{icon:"arrowDown",className:"font-color-green"})})})]}),j?(0,n.jsx)("div",{className:"margin-top-16 margin-bottom-16",children:(0,n.jsx)(g.A,{text:j,color:"error",size:"small"})}):null,T?(0,n.jsx)("div",{className:"margin-top-16 margin-bottom-16",children:(0,n.jsx)(g.A,{text:T,color:"error",size:"small"})}):null,D?(0,n.jsx)("div",{className:"margin-top-16 margin-bottom-16",children:(0,n.jsx)(g.A,{text:E("booking.inputDocument.maxReached"),size:"small"})}):null,R?(0,n.jsx)("div",{className:"margin-top-16 margin-bottom-16",children:(0,n.jsx)(g.A,{text:E("booking.inputDocument.alreadySent"),size:"small"})}):null,(null==d?void 0:d.length)?[...d].reverse().map((e,l)=>(0,n.jsx)("div",{className:"d-flex w-100 margin-top-8",children:(0,n.jsxs)("div",{className:(0,p.cn)([A().file,x||v?A().disabled:"","d-flex a-center w-100"]),children:[(0,n.jsx)(b.e,{icon:"file",width:w?28:32,height:w?28:32,style:{minWidth:w?28:32},className:"margin-right-12"}),(0,n.jsx)("p",{className:(0,p.cn)([A().file_name,"p2-desktop-bold font-color-green margin-right-8"]),children:u()(e.path,{length:100})}),e.size?(0,n.jsx)("p",{className:"p2-desktop-default font-color-grey margin-right-24 text-nowrap p2-mobile-default margin-right-16-mobile",children:(0,c.A)(e.size)}):null,(0,n.jsx)("button",{type:"button",className:"d-flex center font-color-green curs
1or-pointer margin-left-auto",onClick:()=>{h(d.filter(l=>l.path!==e.path)),f()},children:!v||(null==e?void 0:e.documentId)?(0,n.jsx)(b.e,{icon:"cross"}):(0,n.jsx)(b.e,{icon:"loader",width:20,height:20})})]})},l)):null]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"p1-desktop-bold font-color-green p1-mobile-bold",children:I?"".concat(t,"\xa0*"):t}),i?(0,n.jsx)("p",{className:"p2-desktop-default margin-top-8 p2-mobile-default",children:i}):null]})]})});f.displayName="InputDocument",f.propTypes={label:r().string.isRequired,description:r().string,addLabel:r().string,value:r().arrayOf(r().shape({path:r().string,size:r().number})),onChange:r().func,onBlur:r().func,error:r().string,maxNumOfElements:r().number,disabled:r().bool,required:r().bool,isLoading:r().bool,showAalreadySentMessage:r().bool},f.defaultProps={description:null,addLabel:null,value:[],onChange:()=>{},onBlur:()=>{},error:null,maxNumOfElements:null,disabled:!1,required:!1,isLoading:!1,showAalreadySentMessage:!1};let T=f},87014:(e,l,t)=>{"use strict";t.d(l,{A:()=>n});let n={LOCATAIRECNI:"LOCATAIRECNI",LOCATAIRECARTEETUDIANTE:"LOCATAIRECARTEETUDIANTE",LOCATAIRECONTRATTRAVAIL:"LOCATAIRECONTRATTRAVAIL",LOCATAIREVISA:"LOCATAIREVISA",GARANTCNI:"GARANTCNI",GARANTAVISIMPOT:"GARANTAVISIMPOT",GARANTATTESTATIONEMPLOYEUR:"GARANTATTESTATIONEMPLOYEUR",GARANTBULLETINSALAIRE:"GARANTBULLETINSALAIRE",GARANTBILANCOMPTABLE:"GARANTBILANCOMPTABLE",GARANTATTESTATIONRETRAITE:"GARANTATTESTATIONRETRAITE",GARANTPROPRIETAIRETAXEFONCIERE:"GARANTPROPRIETAIRETAXEFONCIERE",GARANTLOCATAIRELOYER:"GARANTLOCATAIRELOYER",GARANTVISALEATTESTATION:"GARANTVISALEATTESTATION",GARANTORGANISMEATTESTATION:"GARANTORGANISMEATTESTATION"}}}]);
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.