PageSourceSearch

https://existants.fr/observatoire-static/_next/static/chunks/985-e92fcdffb11641f0.js

js existants.fr collected 2026-09-24 12:35:07 UTC 10,008 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]="5d25f386-c34d-40fc-8ba6-33361101077c",e._sentryDebugIdIdentifier="sentry-dbid-5d25f386-c34d-40fc-8ba6-33361101077c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[985],{7323:(e,t,r)=>{r.d(t,{KD:()=>p,Kv:()=>o.Kv,SA:()=>c,Yh:()=>n,_W:()=>l,fk:()=>h,nF:()=>d,qv:()=>m,sm:()=>f});var o=r(94518);let n=o.Kv.map(e=>({value:e,frenchLabel:o._o[e],tileTokens:[o.J3[e],...o.dm[e]]})),a={before:{frenchLabel:"Avant l'op\xe9ration",tileSide:"avant"},created:{frenchLabel:"Cr\xe9ation",tileSide:"apres"},from_transformation:{frenchLabel:"Issue de transformation",tileSide:"apres"},demolished:{frenchLabel:"D\xe9molition",tileSide:"avant"},transformed:{frenchLabel:"Transformation",tileSide:"avant"}},l=o.A.map(e=>({value:e,frenchLabel:a[e].frenchLabel,tileSide:a[e].tileSide})),i=new Map(n.map(e=>[e.value,e])),s=new Map(n.flatMap(e=>e.tileTokens.map(t=>[t,e]))),u=new Map(l.map(e=>[e.value,e]));function c(e){return"string"==typeof e&&i.has(e)}function d(e){return"string"==typeof e&&u.has(e)}function p(e){var t,r;return null!=(r=null==(t=i.get(e))?void 0:t.frenchLabel)?r:e}function f(e){var t,r;return null!=(r=null==(t=i.get(e))?void 0:t.tileTokens)?r:[]}function h(e){var t,r,o,n;return null!=(n=null!=(o=null==(t=s.get(e))?void 0:t.frenchLabel)?o:null==(r=i.get(e))?void 0:r.frenchLabel)?n:e}function m(e){var t,r;return null!=(r=null==(t=u.get(e))?void 0:t.tileSide)?r:"avant"}},9143:(e,t,r)=>{r.d(t,{y:()=>a});var o=r(49077),n=r(69251);function a(e){let{open:t,onOpenChange:r,onConfirm:a,pending:l}=e;return(0,o.jsx)(n.lG,{open:t,onOpenChange:r,children:(0,o.jsxs)(n.Cf,{className:"sm:max-w-[440px] border-[5px] border-black bg-[var(--main-background-color)] p-0 rounded-none shadow-[12px_12px_0_0_#000]",showCloseButton:!1,children:[(0,o.jsxs)(n.c7,{className:"border-b-[3px] border-black bg-[var(--main-red-color)] px-6 py-5 text-left",children:[(0,o.jsx)(n.L3,{className:"text-2xl font-black uppercase tracking-tight text-black",children:"Supprimer le projet"}),(0,o.jsx)(n.rr,{className:"text-sm font-medium text-black",children:"Cette action est d\xe9finitive. Le projet sera retir\xe9 de votre carte."})]}),(0,o.jsxs)("div",{className:"flex flex-col gap-3 px-6 py-5 sm:flex-row",children:[(0,o.jsx)("button",{type:"button",onClick:a,disabled:l,className:"flex-1 border-[3px] border-black bg-black px-4 py-3 text-center text-sm font-bold uppercase tracking-wider text-[var(--main-background-color)] transition-colors hover:bg-[var(--main-red-color)] hover:text-black disabled:cursor-not-allowed disabled:opacity-50",children:l?"Suppression...":"Supprimer"}),(0,o.jsx)("button",{type:"button",onClick:()=>r(!1),disabled:l,className:"flex-1 border-[3px] border-black bg-[var(--main-background-color)] px-4 py-3 text-center text-sm font-bold uppercase tracking-wider text-black transition-colors hover:bg-[var(--main-blue-color)] disabled:cursor-not-allowed disabled:opacity-50",children:"Annuler"})]})]})})}},29870:(e,t,r)=>{r.d(t,{v:()=>n});var o=r(94518);function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.Vi.sliderSlots,t=new Date;return t.setDate(1),t.setMonth(t.getMonth()-o.Vi.publicationLagMonths),Array.from({length:e},(r,o)=>{let n=new Date(t.getFullYear(),t.getMonth()-(e-1-o),1),a=n.getFullYear(),l=String(n.getMonth()+1).padStart(2,"0");return"".concat(a,"-").concat(l)})}},39128:(e,t,r)=>{r.d(t,{Fl:()=>a,Gf:()=>n,QR:()=>i,YH:()=>l,in:()=>s});let o="id, lng, lat, operation_kind, adresse, dep_code, moa_publique, date_reelle_autorisation, date_reelle_doc, bati_date_constru, superficie_terrain, surf_tot_avant, surf_tot_demolie, surf_tot_transformee, surf_tot_creee, prog_avant_ope, prog_apres_ope, description, created_at, updated_at";async function n(e){let{data:t,error:r}=await e.from("user_map_projects").select(o).order("created_at",{ascending:!1});if(r)throw Error("Unable to load user map projects: ".concat(r.message));return null!=t?t:[]}async function a(e,t){let{data:r,error:n}=await e.from("user_map_projects").select(o).eq("id",t).maybeSingle();if(n)throw Error("Unable to load user map project: ".concat(n.message));return null!=r?r:null}async function l(e,t){let{data:r,error:n}=await e.from("user_map_projects").insert(t).select(o).single();if(n)throw Error("Unable to create user map project: ".concat(n.message));return r}async function i(e,t,r){let{data:n,error:a}=await e.from("user_map_projects").update(r).eq("id",t).select(o).single();if(a)throw Error("Unable to update user map project: ".concat(a.message));return n}async function s(e,t){let{error:r}=await e.from("user_map_projects").delete().eq("id",t);if(r)throw Error("Unable to delete user map project: ".concat(r.message))}},76314:(e,t,r)=>{r.d(t,{EH:()=>c,HX:()=>m,Qg:()=>u,V5:()=>y,pT:()=>h});var o=r(94518),n=r(29870),a=r(7323);let l="observatoireProjectFilters",i="savedFilters",s={showReemploi:!0,showDechets:!0,reemploiLots:[],reemploiActivities:[],reemploiMaterialsQuery:"",dechetCentreTypes:[],dechetWasteDangerous:[],dechetWasteNonDangerous:[],dechetWasteInert:[],dechetRecyclingOnly:!1};function u(e){var t,r;let o=(0,n.v)(),a=null!=(t=o[e.timeFilterValue[0]-1])?t:o[0],l=null!=(r=o[e.timeFilterValue[1]-1])?r:o[o.length-1];return{version:2,showConstructions:e.showConstructions,showDeconstructions:e.showDeconstructions,showTransformations:e.showTransformations,publicFilterValue:e.publicFilterValue,privateFilterValue:e.privateFilterValue,selectedDepartments:e.selectedDepartments,timeFilterValue:e.timeFilterValue,activityDateStartMonth:a,activityDateEndMonth:l,surfConstrFilterValue:e.surfConstrFilterValue,surfDeconstrFilterValue:e.surfDeconstrFilterValue,surfTransfoFilterValue:e.surfTransfoFilterValue,dateConstruFilterValue:e.dateConstruFilterValue,programs:e.programs,operationTypes:e.operationTypes}}function c(e){var t,r,i,s,u,c,d,p,f,h;let m=null==e?void 0:e[l];return m&&"object"==typeof m&&"boolean"==typeof m.showConstructions&&"boolean"==typeof m.showDeconstructions&&"boolean"==typeof m.showTransformations&&"boolean"==typeof m.publicFilterValue&&"boolean"==typeof m.privateFilterValue&&Array.isArray(m.selectedDepartments)&&Array.isArray(m.timeFilterValue)&&Array.isArray(m.surfConstrFilterValue)&&Array.isArray(m.surfDeconstrFilterValue)&&Array.isArray(m.surfTransfoFilterValue)&&Array.isArray(m.dateConstruFilterValue)?{version:Number(null!=(t=m.version)?t:2),showConstructions:m.showConstructions,showDeconstructions:m.showDeconstructions,showTransformations:m.showTransformations,publicFilterValue:m.publicFilterValue,privateFilterValue:m.privateFilterValue,selectedDepartments:m.selectedDepartments.filter(e=>"string"==typeof e),timeFilterValue:[Number(null!=(r=m.timeFilterValue[0])?r:1),Number(null!=(i=m.timeFilterValue[1])?i:o.Vi.sliderSlots)],activityDateStartMonth:"string"==typeof m.activityDateStartMonth?m.activityDateStartMonth:(0,n.v)()[0],activityDateEndMonth:"string"==typeof m.activityDateEndMonth?m.activityDateEndMonth:(0,n.v)()[o.Vi.sliderSlots-1],surfConstrFilterValue:[Number(null!=(s=m.surfConstrFilterValue[0])?s:0)],surfDeconstrFilterValue:[Number(null!=(u=m.surfDeconstrFilterValue[0])?u:0)],surfTransfoFilterValue:[Number(null!=(c=m.surfTransfoFilterValue[0])?c:0)],dateConstruFilterValue:[Number(null!=(d=m.dateConstruFilterValue[0])?d:1600),Number(null!=(p=m.dateConstruFilterValue[1])?p:new Date().getFullYear())],programs:Array.isArray(f=m.programs)?f.f
1ilter(a.SA):[],operationTypes:Array.isArray(h=m.operationTypes)?h.filter(a.nF):[]}:null}function d(e){if(!e||"object"!=typeof e)return{...s};let t=e=>Array.isArray(e)?e.filter(e=>"string"==typeof e):[];return{showReemploi:"boolean"!=typeof e.showReemploi||e.showReemploi,showDechets:"boolean"!=typeof e.showDechets||e.showDechets,reemploiLots:t(e.reemploiLots),reemploiActivities:t(e.reemploiActivities),reemploiMaterialsQuery:"string"==typeof e.reemploiMaterialsQuery?e.reemploiMaterialsQuery:"",dechetCentreTypes:t(e.dechetCentreTypes),dechetWasteDangerous:t(e.dechetWasteDangerous),dechetWasteNonDangerous:t(e.dechetWasteNonDangerous),dechetWasteInert:t(e.dechetWasteInert),dechetRecyclingOnly:"boolean"==typeof e.dechetRecyclingOnly&&e.dechetRecyclingOnly}}function p(e){if(!e||"object"!=typeof e||"string"!=typeof e.id||"string"!=typeof e.name)return null;let t=c({[l]:e.project});if(!t)return null;let r=new Date().toISOString();return{id:e.id,name:e.name,mode:"filieres"===e.mode?"filieres":f(e),notifyMonthlyProjects:"boolean"==typeof e.notifyMonthlyProjects?e.notifyMonthlyProjects:"chantiers"===f(e),createdAt:"string"==typeof e.createdAt?e.createdAt:r,updatedAt:"string"==typeof e.updatedAt?e.updatedAt:r,project:t,filiere:d(e.filiere)}}function f(e){let t=d(e.filiere);return t.reemploiLots.length>0||t.reemploiActivities.length>0||t.reemploiMaterialsQuery.trim().length>0||t.dechetCentreTypes.length>0||t.dechetWasteDangerous.length>0||t.dechetWasteNonDangerous.length>0||t.dechetWasteInert.length>0||t.dechetRecyclingOnly||!t.showReemploi||!t.showDechets?"filieres":"chantiers"}function h(e){let t=null==e?void 0:e[i];return Array.isArray(t)?t.map(p).filter(e=>null!==e):[]}function m(e,t){return{...null!=e?e:{},[i]:t}}function y(e,t){let r=new Date().toISOString();return{id:"undefined"!=typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():"sf_".concat(Date.now(),"_").concat(Math.random().toString(36).slice(2,10)),name:e,mode:t,notifyMonthlyProjects:"chantiers"===t,createdAt:r,updatedAt:r,project:u({showConstructions:!0,showDeconstructions:!0,showTransformations:!0,publicFilterValue:!1,privateFilterValue:!1,selectedDepartments:[],timeFilterValue:[1,o.Vi.sliderSlots],surfConstrFilterValue:[0],surfDeconstrFilterValue:[0],surfTransfoFilterValue:[0],dateConstruFilterValue:[1600,new Date().getFullYear()],programs:[],operationTypes:[]}),filiere:{...s}}}}}]);

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.