PageSourceSearch

https://plusfraichemaville.fr/_next/static/chunks/app/layout-e1e4875a5e0284ae.js

js plusfraichemaville.fr collected 2026-10-04 00:07:26 UTC 31,855 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e88131d9-e8e8-4006-ad90-f3184e8af35c",e._sentryDebugIdIdentifier="sentry-dbid-e88131d9-e8e8-4006-ad90-f3184e8af35c")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{7695:(e,t,n)=>{"use strict";n.d(t,{n:()=>o,s:()=>s});var r=n(95155),i=n(91570);let o=(0,n(76540).m)({id:"unauthenticated-save-modal",isOpenedByDefault:!1}),s=()=>(0,r.jsxs)(o.Component,{title:"",className:"custom-modal",children:[(0,r.jsx)("h1",{className:"fr-h4",children:"Connexion \xe0 l'espace projet"}),(0,r.jsx)(i.default,{message:"save"})]})},9913:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,75433,23)),Promise.resolve().then(n.bind(n,54459)),Promise.resolve().then(n.bind(n,8479)),Promise.resolve().then(n.bind(n,69174)),Promise.resolve().then(n.t.bind(n,52619,23)),Promise.resolve().then(n.t.bind(n,81356,23)),Promise.resolve().then(n.bind(n,77303)),Promise.resolve().then(n.t.bind(n,13673,23)),Promise.resolve().then(n.bind(n,13094)),Promise.resolve().then(n.bind(n,17501)),Promise.resolve().then(n.bind(n,30579)),Promise.resolve().then(n.bind(n,87844)),Promise.resolve().then(n.bind(n,78530)),Promise.resolve().then(n.bind(n,23998)),Promise.resolve().then(n.bind(n,60612))},13094:(e,t,n)=>{"use strict";n.d(t,{AuthButtons:()=>f});var r=n(95155),i=n(59880),o=n(2821),s=n(20063),a=n(73242);let c=()=>{let e=(0,s.usePathname)().startsWith(i.$Y.CONNEXION),t=(0,s.usePathname)().startsWith(i.$Y.ESPACE_PROJET);return(0,r.jsx)(a.A,{href:i.$Y.ESPACE_PROJET,className:(0,o.A)("fr-btn fr-btn--tertiary ri-list-view fr-btn--icon-left relative z-10 rounded-3xl",(e||t)&&"!bg-dsfr-background-action-low-blue-france"),children:"Mes projets"})};var l=n(15239),u=n(12115),d=n(67183);let E=()=>{let[e,t]=(0,u.useState)(!1),n=()=>{t(!1)},s=[{label:"Mon profil",url:i.$Y.MON_PROFIL},{label:"Se d\xe9connecter",url:i.$Y.DECONNEXION,className:"text-dsfr-text-label-blue-france font-bold"}];return(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(d.A,{onClick:()=>t(!e),iconId:"ri-arrow-down-s-fill",iconPosition:"right",priority:"tertiary no outline",children:(0,r.jsx)(l.default,{src:"/images/auth/user.svg",width:28,height:28,alt:"Mon compte"})}),e&&(0,r.jsxs)("div",{className:(0,o.A)("absolute right-0 top-[130%] w-[9.5rem] bg-white p-3 text-right shadow-pfmv-card-shadow"),children:[(0,r.jsx)("ul",{className:"relative z-10 flex flex-col gap-3",children:s.map((e,t)=>(0,r.jsx)("li",{className:"text-sm ".concat(e.className),children:(0,r.jsx)(a.A,{onClick:n,href:e.url,children:e.label})},t))}),(0,r.jsx)("div",{onClick:n,className:"fixed left-0 top-0 z-0 h-screen w-screen"})]})]})};var _=n(36489),p=n(16241);let f=()=>{let{status:e}=(0,_.useSession)(),t=(0,s.usePathname)().startsWith(i.$Y.RECHERCHE_GLOBALE(""));return(0,r.jsxs)("div",{className:"hidden items-center gap-4 lg:flex",children:[(0,r.jsx)(a.A,{href:i.$Y.RECHERCHE_GLOBALE(),className:(0,o.A)("fr-btn fr-btn--tertiary fr-icon-search-line fr-btn--icon-left relative z-10 rounded-3xl",t&&"!bg-dsfr-background-action-low-blue-france"),children:"Rechercher"}),(0,r.jsxs)(p.be,{children:[(0,r.jsxs)(p.di,{condition:"authenticated"===e,children:[(0,r.jsx)(c,{})," ",(0,r.jsx)(E,{})]}),(0,r.jsx)(p.di,{condition:"loading"===e,children:(0,r.jsx)("div",{className:"h-10 w-40 animate-pulse rounded-3xl bg-dsfr-background-alt-grey"})}),(0,r.jsx)(p.yB,{children:(0,r.jsx)(d.A,{onClick:()=>(0,_.signIn)("agentconnect",{callbackUrl:(0,i.bO)(i.$Y.ESPACE_PROJET)}),priority:"tertiary no outline",iconId:"fr-icon-user-line",iconPosition:"left",className:"rounded-3xl",children:"Se connecter"})})]})]})}},13673:()=>{},16241:(e,t,n)=>{"use strict";n.d(t,{be:()=>i,di:()=>o,yB:()=>s});var r=n(12115);let i=e=>{var t;let{children:n}=e,i=null,a=null;return r.Children.forEach(n,e=>{if((0,r.isValidElement)(e))if(i||e.type!==o)a||e.type!==s||(a=e);else{let{condition:t}=e.props;t&&(i=e)}}),null!=(t=null!=i?i:a)?t:null},o=e=>{let{children:t}=e;return t},s=e=>{let{children:t}=e;return t}},17501:(e,t,n)=>{"use strict";n.d(t,{ConsentBannerAndConsentManagement:()=>r,S:()=>i});let{ConsentBannerAndConsentManagement:r,useConsent:i}=(0,n(75937).y)({finalityDescription:{matomo:{title:"Matomo",description:"Nous utilisons de
1s cookies pour mesurer l’audience de notre site et am\xe9liorer son contenu."},posthog:{title:"PostHog",description:"Nous utilisons des cookies pour un meilleur affichage de nos sondages."}},personalDataPolicyLinkProps:{href:"/politique-de-confidentialite#cookies"}})},20040:(e,t,n)=>{"use strict";n.d(t,{gH:()=>d,Ut:()=>E});var r=n(95155),i=n(12115),o=n(75731),s=n(90490);let a=(e,t,n)=>({projets:e.projets.map(r=>r.id===e.currentProjetId?{...r,projetAides:t?[...r.projetAides.filter(e=>e.aide.id!==t.aide.id),t]:r.projetAides.filter(e=>e.aide.aideTerritoireId!==n)}:r)}),c={projets:[],pendingProjets:[],currentProjetId:null,userProjets:[]},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return(0,s.y)()((t,n)=>({...e,setProjets:e=>t(()=>({projets:e})),setUserProjets:e=>t(()=>({userProjets:e})),setPendingProjets:e=>t(()=>({pendingProjets:e})),setCurrentProjetId:e=>t(()=>({currentProjetId:e})),getCurrentProjet:()=>{let{projets:e,currentProjetId:t}=n();return e.find(e=>e.id===t)},getProjetById:e=>n().projets.find(t=>t.id===e),addOrUpdateProjet:e=>t(t=>({projets:[...t.projets.filter(t=>t.id!==e.id),e]})),addOrUpdatePendingProjet:e=>t(t=>({pendingProjets:[...t.pendingProjets.filter(t=>t.id!==e.id),e]})),deleteProjet:async e=>{t(t=>({projets:t.projets.filter(t=>t.id!==e)}))},deletePendingProjet:async e=>{t(t=>({pendingProjets:t.pendingProjets.filter(t=>t.id!==e)}))},addAideInProjet:e=>{t(t=>a(t,e,null))},deleteAideInProjet:e=>{t(t=>a(t,null,e))},updateUserProjetInProjet:e=>{t(t=>({projets:t.projets.map(t=>t.id===e.projet_id?{...t,users:t.users.map(t=>t.id===e.id?e:t)}:t)}))}}))},u=(0,i.createContext)(null),d=e=>{let{children:t}=e,n=(0,i.useRef)(l({...c}));return(0,r.jsx)(u.Provider,{value:n.current,children:t})},E=e=>{let t=(0,i.useContext)(u);if(!t)throw Error("useProjetsStore must be use within projetsStoreProvider");return(0,o.Pj)(t,e)}},23998:(e,t,n)=>{"use strict";n.d(t,{ProjetStoreClient:()=>s});var r=n(95155),i=n(20040),o=n(12115);let s=e=>
1{let{projets:t,pendingProjets:n,userProjets:s}=e,a=(0,i.Ut)(e=>e.setProjets),c=(0,i.Ut)(e=>e.setPendingProjets),l=(0,i.Ut)(e=>e.setUserProjets);return(0,o.useLayoutEffect)(()=>{a(t)},[t,a]),(0,o.useLayoutEffect)(()=>{l(s)},[s,l]),(0,o.useLayoutEffect)(()=>{c(n)},[n,c]),(0,r.jsx)(r.Fragment,{})}},29455:(e,t,n)=>{"use strict";n.d(t,{J4:()=>s,mo:()=>i,rY:()=>o});var r=n(82478);let i={code:"",label:"Les plus fra\xeeches",sortFn:(e,t)=>(e.baisse_temperature||0)<(t.baisse_temperature||0)?1:-1},o=[i,{code:"rapide",label:"Les plus rapides",sortFn:(e,t)=>((e.delai_travaux_maximum||0)-(e.delai_travaux_minimum||0))/2>((t.delai_travaux_maximum||0)-(t.delai_travaux_minimum||0))/2?1:-1},{code:"abordable",label:"Les plus abordables",sortFn:(e,t)=>{let n=!e.cout_maximum&&!e.cout_minimum,i=!t.cout_maximum&&!t.cout_minimum;return n&&!i?-1:!n&&i?1:e.cout_unite===r.K.code&&t.cout_unite!==r.K.code?1:t.cout_unite===r.K.code&&e.cout_unite!==r.K.code?-1:(e.cout_maximum||0)-(e.cout_minimum||0)<(t.cout_maximum||0)-(t.cout_minimum||0)?-1:1}}],s=e=>o.find(t=>t.code===e)||i},30579:(e,t,n)=>{"use strict";n.d(t,{default:()=>b});var r=n(95155),i=n(12115),o=n(36489),s=n(20040),a=n(85461),c=n(20063),l=n(82170),u=n(17501);function d(){let e=(0,c.usePathname)(),t=(0,c.useSearchParams)(),{finalityConsent:n}=(0,u.S)(),s=null==n?void 0:n.matomo,{status:a}=(0,o.useSession)();return(0,i.useEffect)(()=>{s?(console.debug("Activation des cookies Matomo."),(0,l.$k)()):(console.debug("D\xe9sactivation des cookies Matomo."),(0,l.VR)())},[s]),(0,i.useEffect)(()=>{if("loading"===a)return;let n="".concat(e).concat(Array.from(t.keys()).length?"?"+t:"");(0,l.oe)(n,"authenticated"===a)},[e,t,a]),(0,r.jsx)(r.Fragment,{})}var E=n(62649),_=n(89084),p=n(73242);function f(e){return(0,r.jsx)(_.G,{defaultColorScheme:"light",Link:p.A,...e})}var S=n(7695),I=n(30926);let P=(0,I.createServerReference)("7f951b89f511fc29fa888891e3f2a7dbac8f24e0fc",I.callServer,void 0,I.findSourceMapURL,"updateUserBrowsingDateAction");var h=n(99979);let C=(0,I.createServerReference)("7f5bad1225de60417c2c506ff5efa82f477bcfadcc",I.callServer,void 0,I.findSourceMapURL,"updateUserProjetLastViewedAction"),m=()=>{let e=(0,c.usePathname)(),t=(0,o.useSession)().status,{setUserInfos:n,userInfos:r}=(0,a.kH)(e=>e),{addOrUpdateProjet:l,getCurrentProjet:u,currentProjetId:d}=(0,s.Ut)(e=>e),E=u();return(0,i.useEffect)(()=>{if(!r)return;let e=async()=>{let e=await P(r.id);"success"===e.type&&e.updatedUser&&n(e.updatedUser)},t=async()=>{if(!E)return null;let e=await C(r.id,E.id);"success"===e.type&&e.projet&&l(e.projet)};(!r.last_browsing_date||(0,h.O9)(r.last_browsing_date)>=1)&&e();let i=null==E?void 0:E.users.find(e=>e.user_id===r.id);i&&(!i.last_viewed_at||(0,h.O9)(i.last_viewed_at)>=4)&&t()},[e,t,d]),null};var g=n(26614),T=n(26302);function R(e){let{children:t}=e,{finalityConsent:n}=(0,u.S)();return(0,i.useEffect)(()=>{g.Ay.init("phc_tqU3Q9PCwhzKHqSsC24coHQEREFNVq97sMZW2oPTLPTk",{api_host:"https://eu.i.posthog.com",ui_host:"https://eu.posthog.com",persistence:(null==n?void 0:n.posthog)||(null==n?void 0:n.isFull
1Consent)?"localStorage+cookie":"memory",capture_pageview:!1,capture_pageleave:!0});let e=e=>{var t;let n=null==(t=e.detail)?void 0:t.surveyId;n&&sessionStorage.setItem("survey_answered_".concat(n),"true")};return window.addEventListener("ph-survey-completed",e),()=>{window.removeEventListener("ph-survey-completed",e)}},[]),(0,r.jsx)(T.so,{client:g.Ay,children:t})}function A(){let e=(0,c.usePathname)(),t=(0,c.useSearchParams)(),n=(0,T.sf)(),{finalityConsent:r}=(0,u.S)(),o=null==r?void 0:r.posthog;return(0,i.useEffect)(()=>{o?(console.debug("Activation des cookies PostHog."),n.set_config({persistence:"localStorage+cookie",disable_persistence:!1,disable_cookie:!1})):(console.debug("D\xe9sactivation des cookies PostHog."),n.set_config({persistence:"memory"}))},[o]),(0,i.useEffect)(()=>{if(e&&n){let r=window.origin+e,i=t.toString();i&&(r+="?".concat(i)),n.capture("$pageview",{$current_url:r})}},[e,t,n]),null}function N(){return(0,r.jsx)(A,{})}var O=n(37063);function v(){var e,t,n,r;let o=(0,T.sf)(),c=(0,a.kH)(e=>e.userInfos),l=(0,s.Ut)(e=>e.userProjets),u=null==(t=(0,O.Zd)(l))||null==(e=t.created_at)?void 0:e.toISOString(),d=null==(r=(0,O.Ab)(l))||null==(n=r.created_at)?void 0:n.toISOString(),E=null==c?void 0:c.created_at.toISOString();return(0,i.useEffect)(()=>{c&&E&&o.identify(c.id,{date_inscription_utilisateur:E})},[E]),(0,i.useEffect)(()=>{c&&u&&o.identify(c.id,{date_creation_premier_projet:u})},[u]),(0,i.useEffect)(()=>{c&&d&&o.identify(c.id,{date_rattachement_premier_projet:d})},[d]),(0,i.useEffect)(()=>{c&&o.identify(c.id,{nb_projet_total:l.length})},[l]),null}function j(){return(0,r.jsx)(v,{})}function b(e){let{children:t,lang:n}=e;return(0,r.jsx)(R,{children:(0,r.jsx)(o.SessionProvider,{children:(0,r.jsx)(a.yD,{children:(0,r.jsx)(s.gH,{children:(0,r.jsxs)(E.M2,{children:[(0,r.jsxs)(i.Suspense,{children:[(0,r.jsx)(d,{}),(0,r.jsx)(m,{}),(0,r.jsx)(N,{}),(0,r.jsx)(j,{})]}),(0,r.jsx)(f,{lang:n,children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_.$,{}),t,(0,r.jsx)(S.s,{})]})})]})})})})})}},37063:(e,t,n)=>{"use strict";n.d(t,{Ab:()=>u,Cm:()=>s,Ff:()=>c,Zd:()=>l,ij:()=>a});var r=n(99224),i=n(61927),o=n.n(i);let s=e=>e.reduce((e,t)=>{let n=t.invitation_status;return e[n]||(e[n]=[]),e[n].push(t),e},{}),a=(e,t)=>!!e&&e.filter(e=>e.role===r.RoleProjet.ADMIN&&e.user_id!==t&&e.invitation_status===r.InvitationStatus.ACCEPTED).length>0,c=(e,t)=>{var n;return null==e||null==(n=e.find(e=>e.user_id===t))?void 0:n.role},l=e=>o()(null==e?void 0:e.filter(e=>e.role===r.RoleProjet.ADMIN),"created_at")[0],u=e=>o()(null==e?void 0:e.filter(e=>e.role!==r.RoleProjet.ADMIN&&e.invitation_status===r.InvitationStatus.ACCEPTED),"created_at")[0]},59880:(e,t,n)=>{"use strict";n.d(t,{$Y:()=>i,B4:()=>a,F8:()=>E,M2:()=>o,Ns:()=>I,W_:()=>u,bO:()=>s,dz:()=>S,gN:()=>d,go:()=>f,i0:()=>p,l2:()=>l,mG:()=>c,ok:()=>r,sn:()=>_});let r="typeSolutionFilter",i={STATISTIQUES:"/stats",BUDGET:"/budget",ACCESSIBILITE:"/accessibilite",MENTIONS_LEGALES:"/mentions-legales",POLITIQUE_CONFIDENTIALITE:"/politique-de-confidentialite",PLAN_DU_SITE:"/plan-du-site",FICHES_SOLUTIONS:"/fiche-solution",FICHE_SOLUTION:e=>"/fiche-solution/".concat(e),MES_FICHES_SOLUTIONS:"/mon-projet/favoris",RETOURS_EXPERIENCE_PROJET:"/retour-experience/projet",RETOUR_EXPERIENCE_DIAGNOSTIC:e=>"/retour-experience/diagnostic/".concat(e),RETOURS_EXPERIENCE_DIAGNOSTIC:"/retour-experience/diagnostic",SURCHAUFFE_URBAINE_INTRODUCTION:"/surchauffe-urbaine",SURCHAUFFE_URBAINE_COMPRENDRE:"/surchauffe-urbaine/notions-cles",SURCHAUFFE_URBAINE_TIMING:"/surchauffe-urbaine/quand-faire-un-diagnostic",SURCHAUFFE_URBAINE_TERRITOIRE:"/surchauffe-urbaine/territoire",SURCHAUFFE_URBAINE_TERRITOIRE_AVEC_CODE:e=>"/surchauffe-urbaine/territoire?codeInsee=".concat(e),SURCHAUFFE_URBAINE_FICHE_DIAGNOSTIC:e=>"/surchauffe-urbaine/fiche-diagnostic/".concat(e),SURCHAUFFE_URBAINE_RISQUES_SANTE:"/surchauffe-urbaine/comprendre-les-risques-sur-la-sante",SURCHAUFFE_URBAINE_REPONDRE_URGENCE:"/surchauffe-urbaine/repondre-urgence-et-rafraichir-durablement",RETOUR_EXPERIENCE_PROJET:e=>"".concat(i.RETOURS_EXPERIENCE_PROJET,"/").concat(e),CONTACT:"/contact",NEWSLETTER:"/newsletter",WEBINAIRES:"/webinaires",CONNEXION:"/connexion",DECONNEXION:"/logout",ESPACE_PROJET:"/espace-projet",MON_PROFIL:"/info-perso",PREFERENCES_COMMUNICATION:"/info-perso#communication",MON_STATUT:"/statut-perso",CREATE_PROJET:"/espace-projet/creation-projet",CREATE_PROJET_WITH_PARAMS:(e,t,n)=>"/espace-projet/creation-projet?action=".concat(e,"&actionParam=").concat(t,"&callbackUrl=").concat(n),ESPACE_PROJET_CREATION_ESTIMATION_SUFFIX:"/estimation/creation",RECHERCHE_GLOBALE:e=>"/recherche".concat(e?"?q=".concat(e):""),ESPACE_PROJET_FICHES_SOLUTION_LISTE_ALL:"/fiche-solution/liste",ESPACE_PROJET_ANNUAIRE_MAP_CONTACT:"/annuaire",ESPACE_PROJET_ANNUAIRE:e=>"/espace-projet/".concat(e,"/annuaire"),ESPACE_PROJET_ANNUAIRE_MAP:"/annuaire#annuaire-map",ESPACE_PROJET_REX_DIAGNOSTIC:e=>"/diagnostic/prestation/retour-experience/".concat(e),ESPACE_PROJET_FINANCEMENT_LISTE_ESTIMATION:"/financement",ESPACE_PROJET_TABLEAU_DE_BORD:"/tableau-de-bord",TABLEAU_DE_BORD:e=>"/espace-projet/".concat(e,"/tableau-de-bord"),ESPACE_PROJET_STATUT_PROJET:e=>"/espace-projet/".concat(e,"/statut-projet"),ESPACE_PROJET_BESOIN_AIDE:e=>"/espace-projet/".concat(e,"/besoin-aide"),ESPACE_PROJET_UTILISATEURS_PROJET:e=>"/espace-projet/".concat(e,"/utilisateurs-projet"),ESPACE_PROJET_SYNTHESE:e=>"/espace-projet/".concat(e,"/projet-synthese"),ESPACE_PROJET_WITH_CURRENT_TAB:e=>"/espace-projet?tab=".concat(e),ESPACE_PROJET_FICHES_SOLUTIONS:e=>"/espace-projet/".concat(e,"/fiche-solution"),ESPACE_PROJET_FICHES_SOLUTIONS_LISTE:e=>"/espace-projet/".concat(e,"/fiche-solution/liste"),ESPACE_PROJET_FICHES_SOLUTIONS_LISTE_SUFFIX:"/fiche-solution/liste",ESPACE_PROJET_FICHES_SOLUTIONS_LISTE_ARBRE:e=>"/espace-projet/".concat(e,"/fiche-solution/liste/arbre"),ESPACE_PROJET_FICHES_SOLUTIONS_LISTE_ARBRE_SUFFIX:"/fiche-solution/liste/arbre",ESPACE_PROJET_FICHES_SOLUTIONS_LISTE_TOUTES_SOLUTIONS:e=>"/espace-projet/".concat(e,"/fiche-solution/liste/toutes-solutions"),ESPACE_PROJET_FICHES_SOLUTIONS_LISTE_TOUTES_SOLUTIONS_SUFFIX:"/fiche-solution/liste/toutes-solutions",ESPACE_PROJET_FICHES_SOLUTIONS_RECOMMANDATIONS:e=>"/espace-projet/".concat(e,"/fiche-solution/recommandations"),ESPACE_PROJET_DIAGNOSTIC_CHOIX_PARCOURS:e=>"/espace-projet/".concat(e,"/diagnostic/choix-parcours"),ESPACE_PROJET_DIAGNOSTIC_CHOIX_PARCOURS_SUFFIX:"/diagnostic/choix-parcours",ESPACE_PROJET_DIAGNOSTIC_INDICATEURS_SUFFIX:"/diagnostic/indicateurs-environnementaux/presentation",ESPACE_PROJET_DIAGNOSTIC_PRESTATION_SUFFIX:"/diagnostic/prestation/liste",ESPACE_PROJET_DIAGNOSTIC_INDICATEURS_PRESENTATION:e=>"/espace-projet/".concat(e,"/diagnostic/indicateurs-environnementaux/presentation"),ESPACE_PROJET_DIAGNOSTIC_INDICATEURS_QUESTIONS:e=>"/espace-projet/".concat(e,"/diagnostic/indicateurs-environnementaux/questions"),ESPACE_PROJET_DIAGNOSTIC_INDICATEURS_RESULTATS:e=>"/espace-projet/".concat(e,"/diagnostic/indicateurs-environnementaux/resultats"),ESPACE_PROJET_DIAGNOSTIC_PRESTATION_LISTE:e=>"/espace-projet/".concat(e,"/diagnostic/prestation/liste"),ESPACE_PROJET_DIAGNOSTIC_MES_PRESTATIONS:e=>"/espace-projet/".concat(e,"/diagnostic/prestation/selection"),ESPACE_PROJET_FINANCEMENT:e=>"/espace-projet/".concat(e,"/financement"),ESPACE_PROJET_FINANCEMENT_SELECTIONNER_AIDES_SUFFIX:"/financement/selectionner-aides",ESPACE_PROJET_FINANCEMENT_SELECTIONNER_AIDES:e=>"/espace-projet/".concat(e,"/financement/selectionner-aides"),ESPACE_PROJET_CREATION_ESTIMATION:e=>"/espace-projet/".concat(e,"/estimation/creation"),ESPACE_PROJET_LISTE_ESTIMATION:(e,t)=>"/espace-projet/".concat(e,"/estimation/liste").concat(t&&"?open=".concat(t)||""),ESPACE_PROJET_ESTIMATION_AJOUTER_SOLUTIONS:(e,t)=>"/espace-projet/".concat(e,"/estimation/").concat(t,"/ajouter-solutions"),ESPACE_PROJET_FICHES_SOLUTIONS_REX:(e,t)=>"/espace-projet/".concat(e,"/projet/").concat(t),ESPACE_PROJET_FICHES_SOLUTIONS_LISTE_FICHE_SOLUTION:(e,t)=>"/espace-projet/".concat(e,"/fiche-solution/").concat(t),ESPACE_PROJET_FICHE_DIAGNOSTIC:(e,t)=>"/espace-projet/".concat(e,"/diagnostic/prestation/fiche-diagnostic/").concat(t),ESPACE_PROJET_INFO_PROJET:e=>"/espace-projet/".concat(e,"/info-projet"),ESPACE_PROJET_FICHES_SOLUTIONS_LISTE_TYPE_FILTER:(e,t)=>"/espace-projet/".concat(e,"/fiche-solution/liste?").concat(r,"=").concat(t),ESPACE_PROJET_RETOURS_EXPERIENCE_PROJET:e=>"/espace-projet/".concat(e,"/projet")},o=(e,t)=>"".concat(i.ESPACE_PROJET,"/").concat(t).concat(e),s=e=>"".concat("https://plusfraichemaville.fr").concat(e),a=e=>"/api/get-aides-territoires-aide-by-aide-id?aideId=".concat(e),c=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i="/api/search-aides-for-projet?projetId=".concat(e).concat(n?"&userId=".concat(n):"","&updateUnselectedFs=").concat(r);
1return void 0!==t?"".concat(i,"&ficheSolutionIds=").concat(JSON.stringify(t)):i},l=e=>"/api/get-available-projets-for-user?userId=".concat(e),u=e=>"/api/get-public-projet-by-id?projetId=".concat(e),d=e=>"/api/get-rex-with-contacts-by-id?rexId=".concat(e),E=e=>"/api/get-rex-by-slug?rexSlug=".concat(e),_=e=>"/api/search-climadiag-public-info?search=".concat(e),p=e=>"/api/fuzzy-search?q=".concat(e),f=e=>"/api/get-fiches-diagnostic?ficheDiagnosticIds=".concat(JSON.stringify(e)),S="/api/get-aide-decision-first-step",I=e=>"/api/get-aide-decision-step?slug=".concat(e)},60612:(e,t,n)=>{"use strict";n.d(t,{UserStoreClient:()=>a});var r=n(95155),i=n(12115),o=n(85461),s=n(20040);let a=e=>{let{user:t}=e,n=(0,o.kH)(e=>e.setUserInfos),a=(0,o.kH)(e=>e.navigationPreferences),c=(0,o.kH)(e=>e.reInitNavigationPreferences),l=(0,o.kH)(e=>e.setNavigationPreferencesProjetId),u=(0,s.Ut)(e=>e.currentProjetId);return(0,i.useLayoutEffect)(()=>{n(t)},[t,n]),(0,i.useEffect)(()=>{u&&a.projetId!==u&&(c(),l(u))},[u]),(0,r.jsx)(r.Fragment,{})}},62649:(e,t,n)=>{"use strict";n.d(t,{M2:()=>u,Kr:()=>d});var r=n(95155),i=n(12115),o=n(75731),s=n(90490);let a={currentEstimation:null,currentDetailedAide:null,currentUserModification:null,currentDeleteOrQuitModal:null,collectiviteIdToListAvailableProjets:null,showInfoViewerMode:!1,showAvailableProjetForUser:!1,currentAnnuaireRexProjet:null,currentFicheDiagnostic:null},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return(0,s.y)()(t=>({...e,setCurrentEstimation:e=>t(()=>({currentEstimation:e})),setCurrentDetailedAide:e=>t(()=>({currentDetailedAide:e})),setCurrentUserModification:e=>t(()=>({currentUserModification:e})),setCurrentDeleteOrQuitModal:e=>t(()=>({currentDeleteOrQuitModal:e})),setCollectiviteIdToListAvailableProjets:e=>t(()=>({collectiviteIdToListAvailableProjets:e})),setShowInfoViewerMode:e=>t(()=>({showInfoViewerMode:e})),setShowAvailableProjetForUser:e=>t(()=>({showAvailableProjetForUser:e})),setAnnuaireRexProjetSlug:e=>t(()=>({currentAnnuaireRexProjet:e})),setCurrentFicheDiagnostic:e=>t(()=>({currentFicheDiagnostic:e}))}))},l=(0,i.createContext)(null),u=e=>{let{children:t}=e,n=(0,i.useRef)(c({...a}));return(0,r.jsx)(l.Provider,{value:n.current,children:t})},d=e=>{let t=(0,i.useContext)(l);if(!t)throw Error("useModalStore must be use within modalStoreProvider");return(0,o.Pj)(t,e)}},73242:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(95155),i=n(52619),o=n.n(i);function s(e){let{prefetch:t,...n}=e;return(0,r.jsx)(o(),{...n,prefetch:!1})}},78530:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(95155),i=n(68321);function o(){return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i.default,{id:"matomo",children:'\n          var _paq = window._paq = window._paq || [];\n          /* tracker methods like "setCustomDimension" should be called before "trackPageView" */\n          _paq.push([\'enableLinkTracking\']);\n          _paq.push([\'requireCookieConsent\']);\n          (function() {\n            var u="'.concat("https://stats.beta.gouv.fr/","\";\n            _paq.push(['setTrackerUrl', u+'matomo.php']);\n            _paq.push(['setSiteId', ").concat("81","]);\n            var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];\n            g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);\n          })();\n        ")})})})}},82170:(e,t,n)=>{"use strict";n.d(t,{$k:()=>s,VR:()=>a,sx:()=>i,oe:()=>o});let r=e=>{let t=e.split("/espace-projet/")[1];if(!t)return e;let n=t.split("/")[0],r=isNaN(+n)?e:e.replace(n,"[projetId]"),i=r.split("/")[5];return isNaN(+i)?r:r.replace(i,"[financementId]")},i=e=>{var t,n,r;if(!(null==(t=window)?void 0:t._paq))return void console.debug("trackEvent => ",e);null==(r=window)||null==(n=r._paq)||n.push(["trackEvent",e.category,e.action,e.name])},o=(e,t)=>{var n,i,o,s,a,c,l;if(!(null==(n=window)?void 0:n._paq))return void console.debug("trackPageView => ",r(e));void 0!==t&&(null==(l=window)||null==(c=l._paq)||c.push(["setCustomDimension",Number("1"),t?"connect\xe9":"non connect\xe9"])),null==(o=window)||null==(i=o._paq)||i.push(["setCustomUrl",r(e)]),null==(a=window)||null==(s=a._paq)||s.push(["trackPageView"])},s=()=>{var e,t,n,r,i,o;null==(t=window)||null==(e=t._paq)||e.push(["rememberCookieConsentGiven"]),null==(r=window)||null==(n=r._paq)||n.push(["setCookieConsentGiven"]),null==(o=window)||null==(i=o._paq)||i.push(["HeatmapSessionRecording::enable"])},a=()=>{var e,t,n,r;null==(t=window)||null==(e=t._paq)||e.push(["forgetCookieConsentGiven"]),null==(r=window)||null==(n=r._paq)||n.push(["HeatmapSessionRecording::disable"])}},82478:(e,t,n)=>{"use strict";n.d(t,{K:()=>c,G:()=>u});var r=function(e){return e.MetreCarre="metreCarre",e.Lineaire="lineaire",e.MetreCube="metreCube",e.Unite="unite",e.MegaWattHeure="megaWattHeure",e.KiloWatt="kiloWatt",e}({});let i={code:r.Lineaire,unitLabel:"m\xe8tre lin\xe9aire",unitLabelPlural
1:"m\xe8tres lin\xe9aires",estimationLabel:"Nombre de m\xe8tre lin\xe9aire"},o={code:r.MetreCarre,unitLabel:"m\xb2",unitLabelPlural:"m\xb2",estimationLabel:"Nombre de m\xb2"},s={code:r.MetreCube,unitLabel:"m\xb3",unitLabelPlural:"m\xb3",estimationLabel:"Nombre de m\xb3"},a={code:r.Unite,unitLabel:"unit\xe9",unitLabelPlural:"unit\xe9s",estimationLabel:"Nombre d'unit\xe9"},c={code:r.MegaWattHeure,unitLabel:"MWh",unitLabelPlural:"MWh",estimationLabel:"Nombre de MWh"},l=[i,o,s,a,c,{code:r.KiloWatt,unitLabel:"kW",unitLabelPlural:"kW",estimationLabel:"Nombre de kW"}],u=e=>l.find(t=>t.code===e)||o},85461:(e,t,n)=>{"use strict";n.d(t,{yD:()=>E,kH:()=>_});var r=n(95155),i=n(12115),o=n(75731),s=n(90490),a=n(89325),c=n(29455);let l={userInfos:void 0,navigationPreferences:{choixSolutionSelectedTabId:a.T.ARBRE,choixSolutionAideDecisionTri:c.mo.code}},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;return(0,s.y)()(t=>({...e,userInfos:void 0,setUserInfos:e=>t(()=>({userInfos:e})),setChoixSolutionSelectedTabId:e=>t(t=>({...t,navigationPreferences:{...t.navigationPreferences,choixSolutionSelectedTabId:e}})),setChoixSolutionAideDecisionCurrentStep:e=>t(t=>({...t,navigationPreferences:{...t.navigationPreferences,choixSolutionAideDecisionCurrentStep:e}})),setChoixSolutionAideDecisionTri:e=>t(t=>({...t,navigationPreferences:{...t.navigationPreferences,choixSolutionAideDecisionTri:e}})),reInitNavigationPreferences:()=>t(()=>({navigationPreferences:l.navigationPreferences})),setNavigationPreferencesProjetId:e=>t(t=>({...t,navigationPreferences:{...t.navigationPreferences,projetId:e}}))}))},d=(0,i.createContext)(null),E=e=>{let{children:t}=e,n=(0,i.useRef)(u({...l}));return(0,r.jsx)(d.Provider,{value:n.current,children:t})},_=e=>{let t=(0,i.useContext)(d);if(!t)throw Error("useUserStore must be use within userStoreProvider");return(0,o.Pj)(t,e)}},87844:(e,t,n)=>{"use strict";n.d(t,{default:()=>E});var r=n(95155),i=n(19675),o=n(20063),s=n(59880),a=n(36489),c=n(20040),l=n(2821),u=n(15239);let d=e=>{let{imageUrl:t,title:n,className:i}=e;return(0,r.jsxs)("div",{className:(0,l.A)(i,"pointer-events-none max-w-[21rem] rounded-xl bg-white","outline outline-1 outline-offset-0 outline-dsfr-border-default-grey hover:outline-dsfr-text-label-blue-france"),children:[(0,r.jsx)(u.default,{width:400,height:500,alt:"",src:t}),(0,r.jsx)("div",{className:"mb-6 mt-4 px-4 text-lg font-bold",children:n})]})};function E(){let e=(0,o.usePathname)(),{status:t}=(0,a.useSession)(),n=(0,c.Ut)(e=>e.setCurrentProjetId),l=()=>n(null);return(0,r.jsx)(i.Cd,{id:"header-navigation",items:[{isActive:e===s.$Y.SURCHAUFFE_URBAINE_INTRODUCTION||e===s.$Y.SURCHAUFFE_URBAINE_COMPRENDRE||e===s.$Y.SURCHAUFFE_URBAINE_TERRITOIRE||e===s.$Y.SURCHAUFFE_URBAINE_RISQUES_SANTE||e===s.$Y.SURCHAUFFE_URBAINE_REPONDRE_URGENCE,text:"Comprendre",megaMenu:{categories:[{categoryMainText:"Comprendre la surchauffe urbaine",links:[{linkProps:{href:s.$Y.SURCHAUFFE_URBAINE_INTRODUCTION,target:"_self",onClick:l,prefetch:!1},text:"La ville dans une France \xe0 +4\xb0C"},{linkProps:{href:s.$Y.SURCHAUFFE_URBAINE_COMPRENDRE,target:"_self",onClick:l,prefetch:!1},text:"Comprendre les notions cl\xe9s"},{linkProps:{href:s.$Y.SURCHAUFFE_URBAINE_TERRITOIRE,target:"_self",onClick:l,prefetch:!1},text:"Conna\xeetre la sensibilit\xe9 actuelle et future de ma ville \xe0 la surchauffe urbaine"}]},{categoryMainText:"Comprendre comment rafra\xeechir la ville",links:[{linkProps:{href:s.$Y.SURCHAUFFE_URBAINE_RISQUES_SANTE,target:"_self",onClick:l,prefetch:!1},text:"Surchauffe urbaine : quels risques pour la sant\xe9 ?"},{linkProps:{href:s.$Y.SURCHAUFFE_URBAINE_REPONDRE_URGENCE,target:"_self",onClick:l,prefetch:!1},text:"Vague de chaleur : r\xe9pondre \xe0 l'urgence, rafra\xeechir durablement son territoire"}]}]}},{isActive:(null==e?void 0:e.startsWith(s.$Y.FICHES_SOLUTIONS))||(null==e?void 0:e.startsWith(s.$Y.SURCHAUFFE_URBAINE_TIMING)),text:"Passer \xe0 l'action",className:"menuCategoryShadowNone",megaMenu:{categories:[{categoryMainLink:{text:(0,r.jsx)(d,{imageUrl:"/images/navigation/faire-diagnostic.webp",title:"Faire un diagnostic de la surchauffe urbaine"}),linkProps:{href:s.$Y.SURCHAUFFE_URBAINE_TIMING,target:"_self",onClick:l,prefetch:!1}},links:[]},{categoryMainLink:{text:(0,r.jsx)(d,{imageUrl:"/images/navigation/trouver-solution.webp",title:"Trouver une solution adapt\xe9e \xe0 votre espace \xe0 rafra\xeechir"}),linkProps:{href:s.$Y.FICHES_SOLUTIONS,target:"_self",onClick:l,prefetch:!1}},links:[]},{categoryMainLink:{text:(0,r.jsx)(d,{imageUrl:"/images/navigation/creer-projet.webp",title:"Cr\xe9er un projet de rafra\xeechissement de A \xe0 Z"}),linkProps:{href:s.$Y.ESPACE_PROJET,target:"_self",onClick:l,prefetch:!1}},links:[]}]}},{isActive:(null==e?void 0:e.startsWith(s.$Y.RETOURS_EXPERIENCE_DIAGNOSTIC))||(null==e?void 0:e.startsWith(s.$Y.RETOURS_EXPERIENCE_PROJET)),text:"S'inspirer",className:"menuCategoryShadowNone",megaMenu:{categories:[{categoryMainLink:{text:(0,r.jsx)(d,{imageUrl:"/images/navigation/rex-diagnostic.webp",title:"S'inspirer des diagnostics r\xe9alis\xe9s par les collectivit\xe9s"}),linkProps:{href:s.$Y.RETOURS_EXPERIENCE_DIAGNOSTIC,target:"_self",onClick:l,prefetch:!1}},links:[]},{categoryMainLink:{text:(0,r.jsx)(d,{imageUrl:"/images/navigation/rex-projet.webp",title:"S'inspirer des projets r\xe9alis\xe9s par les collectivit\xe9s"}),linkProps:{href:s.$Y.RETOURS_EXPERIENCE_PROJET,target:"_self",onClick:l,prefetch:!1}},links:[]}]}},{linkProps:{href:s.$Y.WEBINAIRES,target:"_self",onClick:l,prefetch:!1},text:"Webinaires",isActive:null==e?void 0:e.startsWith(s.$Y.WEBINAIRES)},{linkProps:{href:s.$Y.CONTACT,target:"_self",onClick:l,prefetch:!1},text:"Nous contacter",isActive:null==e?void 0:e.startsWith(s.$Y.CONTACT)},{linkProps:{href:s.$Y.RECHERCHE_GLOBALE(),target:"_self",onClick:l,prefetch:!1},text:"Rechercher",isActive:null==e?void 0:e.startsWith(s.$Y.RECHERCHE_GLOBALE()),className:"lg:hidden"},{menuLinks:"authenticated"===t?[{linkProps:{href:s.$Y.ESPACE_PROJET,prefetch:!1},text:"Acc\xe9der \xe0 mes projets"},{linkProps:{href:s.$Y.MON_PROFIL,prefetch:!1},text:"Mon profil"},{linkProps:{href:s.$Y.DECONNEXION,prefetch:!1},text:"Se d\xe9connecter"}]:[{linkProps:{href:s.$Y.CONNEXION,prefetch:!1},text:"Se connecter"}],text:"Mes projets",className:"lg:hidden"}]})}},89325:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});let r={ARBRE:"arbreDecision",TOUTES_SOLUTIONS:"toutesSolutions"}},91570:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(95155),i=n(36489),o=n(59880),s=n(2821),a=n(25084);let c={connect:"Vous \xeates agent ou \xe9lu(e) d’une collectivit\xe9 ? Connectez-vous, cr\xe9ez votre projet et acc\xe9dez \xe0 de nombreuses recommandations !",save:"Vous \xeates agent ou \xe9lu(e) d’une collectivit\xe9 ? Connectez-vous pour sauvegarder vos solutions et acc\xe9der \xe0 de nombreuses recommandations."};function l(e){let{callbackUrl:t="https://plusfraichemaville.fr"+o.$Y.ESPACE_PROJET,message:n,
1className:l}=e;return(0,r.jsxs)("div",{className:(0,s.A)("max-w-xl rounded-2xl bg-dsfr-background-alt-grey px-12 py-9",l),children:[(0,r.jsx)("h2",{className:"mb-8 text-xl font-bold text-dsfr-text-title-grey",children:c[n]}),(0,r.jsx)("p",{children:"L'espace projet est aussi disponible pour les professionnels qui travaillent avec les collectivit\xe9s."}),(0,r.jsx)("p",{children:"Pour vous connecter avec ProConnect, il vous suffit de renseigner votre adresse professionnelle."}),(0,r.jsx)(a.Ay,{onClick:()=>(0,i.signIn)("agentconnect",{callbackUrl:t})})]})}},99979:(e,t,n)=>{"use strict";n.d(t,{$p:()=>E,I0:()=>o,J7:()=>a,O9:()=>d,PG:()=>c,cw:()=>s,cx:()=>i,e9:()=>u});let r=new Date(3024,0,0,1);function i(e){return"".concat(o(e)," \xe0 ").concat(l(e.getHours()),":").concat(l(e.getMinutes()))}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fr";return null==e?null:"iso"===t?"".concat(e.getFullYear(),"-").concat(l(e.getMonth()+1),"-").concat(l(e.getDate())):"".concat(l(e.getDate()),"/").concat(l(e.getMonth()+1),"/").concat(e.getFullYear())}function s(e){return e?e.toLocaleString("fr",{month:"long",day:"numeric",weekday:"long",year:"numeric"}):null}function a(e){return e.toString().substring(0,5)}let c=e=>0>=(e||0)?"Aujourd'hui":1===e?"Hier":"Il y a ".concat(e," jours"),l=e=>("0"+e).slice(-2),u=e=>e?Math.ceil((e.getTime()-new Date().getTime())/864e5):null,d=e=>Math.floor((new Date().getTime()-e.getTime())/36e5),E=(e,t)=>new Date(e||r)<new Date(t||r)?-1:0}},e=>{e.O(0,[6800,2978,5859,8229,1356,8398,7332,6489,5172,3967,9224,9793,8441,5857,7358],()=>e(e.s=9913)),_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.