PageSourceSearch

https://hife-coliving.fr/_next/static/chunks/5426.97451124a736516e.js

js hife-coliving.fr collected 2026-10-07 19:30:09 UTC 10,263 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5426],{7414:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(5311),c=n(132),r=n(6174);function s(){return(0,a.jsx)("svg",{width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7072 1.70706L4.00008 9.41417L0.292969 5.70706L1.70718 4.29285L4.00008 6.58574L10.293 0.292847L11.7072 1.70706Z",fill:"currentColor"})})}var o=n(9175),i=n.n(o);function l(e){let{children:t,id:n,name:o,onChange:l,className:u,...d}=e,[_,m]=(0,c.useState)(!1);return(0,a.jsxs)("div",{className:"checkbox ".concat(i().checkbox," ").concat(u),children:[(0,a.jsx)("input",{type:"checkbox",id:n,name:o,checked:_,onChange:t=>{m(t.currentTarget.checked),e.onChange&&e.onChange(o,t.currentTarget.checked)},...d}),(0,a.jsx)("span",{children:(0,a.jsx)(s,{})}),"string"==typeof t?(0,a.jsx)("label",{htmlFor:n,dangerouslySetInnerHTML:{__html:(0,r.Z)(t)}}):(0,a.jsx)("label",{htmlFor:n,children:t})]})}},2726:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(5311),c=n(132),r=n(6357),s=n.n(r),o=n(7271);function i(e){let{name:t,label:n,onChange:r,type:i,placeholder:l,errorMessage:u,defaultValue:d,..._}=e,[m,g]=(0,c.useState)(d||""),[p,h]=(0,c.useState)(l),[f,v]=(0,c.useState)(!1),x=(0,c.useRef)(null);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:s().input,children:[(0,a.jsx)("input",{ref:x,type:i||"text",name:t,onFocus:()=>{v(!0),h("")},onBlur:()=>{""===m&&(v(!1),h(l))},onChange:n=>{g(n.target.value),e.onChange&&e.onChange(t,n.target.value)},value:m,placeholder:p,className:" ".concat(u?"!border-red-500":""),..._}),(0,a.jsx)("label",{className:"".concat(m||f&&!p||!f&&p?s().floating:""),onClick:()=>{x.current&&x.current.focus()},children:n}),u&&(0,a.jsx)(o.Z,{as:"bodyH2",className:"text-red-500 mt-5 mb-3 mt-[-17px] !text-justify",children:u})]})})}},8629:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(5311),c=n(132),r=n(59),s=n.n(r);function o(e){let{options:t,label:n,defaultValue:r="",defaultOptionPlaceholder:o,hideLabel:i=!1,onChange:l,name:u,loading:d,..._}=e,[m,g]=(0,c.useState)(r||"");return(0,a.jsxs)("div",{className:"".concat(s().select," ").concat(d?s().selectLoading:""),children:[(0,a.jsxs)("select",{value:m,onChange:t=>{g(t.currentTarget.value),e.onChange&&e.onChange(u,t.currentTarget.value)},name:u,..._,children:[!r&&(0,a.jsx)("option",{selected:!0,disabled:!0,value:"",children:o}),t.map((e,t)=>(0,a.jsx)("option",{value:e.value,selected:!!(r&&r===e.value),children:e.label},"o-".concat(t)))]}),!i&&(0,a.jsx)("label",{children:n}),d&&(0,a.jsx)("div",{className:"".concat(s().selectLoader," loader")})]})}},8249:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(5311),c=n(132),r=n(3094),s=n.n(r);function o(e){let{name:t,label:n,onChange:r,placeholder:o,defaultValue:i,largeMobile:l,...u}=e,[d,_]=(0,c.useState)(i||""),[m,g]=(0,c.useState)(o),[p,h]=(0,c.useState)(!1),f=(0,c.useRef)(null),v=(0,c.useRef)(null);return(0,a.jsxs)("div",{className:"".concat(s().textarea).concat(l?" ".concat(s().largeMobile):""),children:[(0,a.jsx)("textarea",{ref:f,name:t,onFocus:()=>{h(!0),g("")},onBlur:()=>{""===d&&(h(!1),g(o))},onInput:n=>{let a=n.target.value;_(a),v.current.innerHTML=a.replace(/\n/gm,"<br />"),e.onChange&&e.onChange(t,a)},value:d,placeholder:m,...u}),(0,a.jsx)("div",{ref:v,className:"textarea-div"}),(0,a.jsx)("label",{className:"".concat(d||p&&!m||!p&&m?s().floating:""),onClick:()=>{f.current&&f.current.focus()},children:n})]})}},8223:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var a=n(5311),c=n(132),r=n(5724),s=n(6174),o=n(7271),i=n(572),l=n.n(i),u=n(5762);function d(){let[e,t]=(0,c.useState)(!1),{t:n}=(0,r.Z)("common"),{locale:i}=(0,u.useRouter)();return(0,a.jsxs)("div",{className:"".concat(l().legalText," mt-4 text-left text-grey max-w-2xl mx-auto"),children:[(0,a.jsxs)(o.Z,{tag:"p",as:"bodyH3",children:[(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,s.Z)(n("newsletter legal"))}})," ",(0,a.jsx)("button",{tabIndex:1,onClick:n=>{n.preventDefault(),t(!e)},"aria-label":"Display legals text",className:"underline hover:no-underline",children:n("newsletter legal link")})]}),e&&(0,a.jsxs)(o.Z,{tag:"p",as:"bodyH3",className:"mt-4",children:[(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,s.Z)(n("newsletter legal more"))}})," ",(0,a.jsx)("a",{href:"".concat("en"==i?"/en":"","/cms/politique-de-protection-des-donnees/"),target:"_blank",className:"underline hover:no-underline text-vert-fonce hover:text-vert-fonce",dangerouslySetInnerHTML:{__html:(0,s.Z)(n("newsletter legal more link"))}}),(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,s.Z)(n("newsletter legal more end"))}})]})]})}},2758:function(e,t,n){"use strict";var a=n(5129);let{publicRuntimeConfig:c}=n.n(a)()();t.Z={async getSalesforces(){try{let e="table";"uat"==c.envName?e="tableUAT":"dev"==c.envName&&(e="table");let t=await fetch("".concat(c.cloudFunctionUrl,"/").concat(e),{method:"GET",headers:{"Content-Type":"application/json"}});if(t.ok)return await t.json();return}catch(e){}},async createLead(e,t){var n,a,r,s,o;let{acceptUTMTerm:i,saveUTM:l}=t,u={RecordTypeId:c.salesforceRecordType,OrigineduFormulaire__c:e.formOrigin,FirstName:e.firstName,LastName:e.lastName,Email:e.email,MobilePhone:e.phone,NatureduDemandeur__c:e.natureDemandeur,TypedeDemande__c:e.typeDemande,Status:"Nouvel entrant",Langue_de_preference_pour_les_changes__c:e.language,Description:e.msg,LeadSource:e.leadSource||"Web",OptInNewsletter__c:e.optinNewsletter||!1,OptInRGPD__c:e.optinRGPD,OptInCommercials__c:e.optinCommercials||!1,GACLIENTID__c:e.gclientId,GCLID__c:e.gclid,GATRACKID__c:e.gtrackingId,GAUSERID__c:e.guserId,FilialeCode__c:(null===(n=e.residence)||void 0===n?void 0:n.filialeCode)||"C-001",GuestId__c:e.guserId||""};e.company&&(u=Object.assign({},u,{Company:e.company})),e.job&&(u=Object.assign({},u,{Poste__c:e.job})),e.serviceToContact&&(u=Object.assign({},u,{ServiceaContacter__c:e.serviceToContact})),e.typeDemandeAutre&&(u=Object.assign({},u,{TypedeDemandesiAutre__c:e.typeDemandeAutre})),(null===(a=e.residence)||void 0===a?void 0:a.id)&&(u=Object.assign({},u,{ResidenceRelated__r:{AD_ResidenceId__c:null===(s=e.residence)||void 0===s?void 0:s.id}})),(null===(r=e.residence)||void 0===r?void 0:r.name)&&(u=Object.assign({},u,{Residence__c:null===(o=e.residence)||void 0===o?void 0:o.name})),e.optinRGPD&&(u=Object.assign({},u,{DateOptInRGPD__c:e.dateNow})),e.optinNewsletter&&(u=Object.assign({},u,{DateOptinNewsletter__c:e.dateNow})),e.optinCommercials&&(u=Object.assign({},u,{DateOptInCommercials__c:e.dateNow}));let d=sessionStorage.getItem("utm_params")||"",_=d?JSON.parse(d):{},m=_.utm_source||"",g=_.utm_medium||"",p=_.utm_campaign||"",h=_.utm_term||"",f=_.utm_content||"";i&&l&&(u=Object.assign({},u,{...m&&{utm_source__c:m},...g&&{utm_medium__c:g},...p&&{utm_campaign__c:p},...h&&{utm_term__c:h},...f&&{utm_content__c:f},utm_optin__c:!0,utm_optin_date__c:e.dateNow}));let v="leadHife";"uat"==c.envName?v="leadHifeUAT":"dev"==c.envName&&(v="leadHife");let x=await fetch("".concat(c.cloudFunctionUrl,"/").concat(v),{method:"post",body:JSON.stringify(u),headers:{"Content-Type":"application/json"}});return l&&(m||g||p||h||f)&&await this.registerUTM({utm_source__c:m,utm_medium__c:g,utm_campaign__c:p,utm_term__c:h,utm_content__c:f}),x},async registerUTM(e){let t="addUTM";return"uat"==c.envName?t="addUTM":"dev"==c.envName&&(t="addUTM"),fetch("".concat(c.cloudFunctionUrl,"/").concat(t),{method:"POST",body:JSON.stringify(e)})},updateLead(e,t){let n={id:t,Salutation:e.civility,FirstName:e.firstName,LastName:e.lastName,Email:e.email,MobilePhone:e.phone,Street:e.address,PostalCode:e.postcode,City:e.city,Country:e.country,Date_de_naissance__c:e.birth_date,ResidenceRelated__r:{AD_ResidenceId__c:e.residence},Categorie__c:e.category,Autre__c:e.school_other,Nationalite__c:e.nationality,Date_d_entree_souhaitee__c:e.startDate,Duree_souhaitee_mois__c:e.duration,Comment_nous_avez_vous_connu__c:e.source,Description:e.msg,Initiateur__c:e.is,Langue_de_preference_pour_les_changes__c:e.language,Lieu_de_naissance__c:e.birthplace,GCLID__c:e.gclid,Status:e.statut},a="leadHife";return"uat"==c.envName?a="leadHifeUAT":"dev"==c.envName&&(a="leadHife"),fetch("".concat(c.cloudFunctionUrl,"/").concat(a),{method:"put",body:JSON.stringify(n)})},postNewsletter(e){let t="newsleter";return"uat"==c.envName?t="newsleterUAT":"dev"==c.envName&&(t="newsleter"),fetch("".concat(c.cloudFunctionUrl,"/").concat(t),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,code_filiale:"C-001"})})},async getMewsPricing(e){let{mewsPropertyID:t,serviceId:n}=e;try{let e=new Date,a=e.toISOString().split("T")[0]+"T00:00:00.00Z",r=new Date(e);r.setMonth(r.getMonth()+1),r.setDate(r.getDate()-1);let s=r.toISOString().split("T")[0]+"T23:59:00.00Z",o=await fetch("".concat(c.mewsBaseUrl,"api/distributor/v1/services/getPricing"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({Client:c.mewsClient,StartUtc:a,EndUtc:s,EnterpriseId:t,LanguageCodes:["en-US","fr-FR"],ServiceId:n,CurrencyCode:"EUR"})});return await o.json()}catch(e){}}}},6174:function(e,t,n){"use strict";function a(e){if(!e)return e;var t=e.replace(/(Hife)(\s)/gim,(e,t,n)=>t===t.toUpperCase()?'HI<em style="margin-right:4px">F</em>E'.concat(n):'Hi<em style="margin-right:2px">f</em>e'.concat(n));return(t=(t=t.replace(/(\s)(Hife)/gim,(e,t,n)=>n===n.toUpperCase()?"".concat(t,'HI<em style="margin-right:4px">F</em>E'):"".concat(t,'Hi<em style="margin-right:2px">f</em>e'))).replace(/\/accueil\//gim,"/")).replace(/\/home\//gim,"/")}n.d(t,{Z:function(){return a}})},9175:function(e){e.exports={checkbox:"checkbox_checkbox__O5go5"}},6357:function(e){e.exports={input:"input_input__yTyhZ",floating:"input_floating__RDt90"}},59:function(e){e.exports={select:"select_select__YS3dn",selectLoading:"select_selectLoading__I2hS9",selectLoader:"select_selectLoader__2GtWD"}},3094:function(e){e.exports={textarea:"textarea_textarea__2rthP",floating:"textarea_floating__O6bv_",largeMobile:"textarea_largeMobile__sh2TF"}},572:function(e){e.exports={legalText:"modalLegalText_legalText__wtFU_"}}}]);

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.