1import{j as n,L as K,D as Y,H as Pt,O as Br,S as zr,t as Ji,r as o,u as ln,c as Yn,h as Xn,a as ie,g as it,d as Kt,i as rt,e as Ln,b as kt,p as Qn,k as cn,q as Bt,f as Yi,R as Fr,s as $r,l as Hr,m as Vr,n as Wr,o as Gr}from"./dom.enum-Bu0IKWXg.js";import{T as Xi,l as zt,g as Ft,a as qr,P as Zr}from"./api-DjCTmjeE.js";import{G as ce,B as Pe,d as je,a as Ce,b as v,s as Kr,u as _n,r as ot,I as pn,H as $t,c as Ht,S as Vt,C as vt}from"./ExpandMore-DqTgwImI.js";import{H as Jt}from"./HomeCarousel-DYuDKPJO.js";import{S as Jr,a as Yr,b as Xr,c as Qr,d as eo,e as to,f as no,g as so,h as io,i as ro,j as oo}from"./tom-DxDauTs1.js";import{p as Et,m as In,b as Dn,F as nt,t as mn,c as xs,S as bs,d as ao,u as $n,a as Hn,s as lo}from"./contact.api-KOAsp_wB.js";import{u as es,d as Qi,a as ys,b as co,c as uo,e as po,S as er,f as tr,g as nr}from"./Add-BaCVGggS.js";import{d as mo}from"./Search-CatvDYj2.js";import{T as I}from"./Typography-BsiXpJ4T.js";import{F as Ls,I as js,S as Vn,T as Cs}from"./TextField-BMNTJ4Q_.js";import{M as Tt}from"./MenuItem-gzZOAgMt.js";import{v as ho,n as go,r as fo,b as vo}from"./transformation-B9PPx27X.js";import{E as R,T as xo,a as bo,b as we,e as hn,c as st,C as yo,d as sr}from"./LocationOnOutlined-C9xrP-dN.js";import{u as Wn}from"./useMediaQuery-257pqAJD.js";import{A as Ms}from"./Alert-DZAQwNC3.js";import{C as Ss}from"./CircularProgress-BbRXS8jE.js";import{d as Lo}from"./FavoriteBorder-Cm5Fa61J.js";import{A as Ye}from"./AdComponent-3V8CTczy.js";import{Y as jo}from"./YoutubeVideoIframe-D0Gre9Ef.js";import{S as Co,a as ws}from"./web-htCfsWFk.js";import{P as Mo}from"./Pagination-Bqg8a581.js";import"./ArrowCircleRightRounded-BRTVJ577.js";import"./ArrowCircleLeft-B69RAIFM.js";import"./debounce-MqndRklr.js";import"./Modal-Btu4-bHb.js";var So={exports:{}};/*! 2 * JavaScript Cookie v2.2.1 3 * https://github.com/js-cookie/js-cookie 4 * 5 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack 6 * Released under the MIT license 7 */(function(t,e){(function(s){var i;if(t.exports=s(),i=!0,!i){var r=window.Cookies,a=window.Cookies=s();a.noConflict=function(){return window.Cookies=r,a}}})(function(){function s(){for(var a=0,c={};a<arguments.length;a++){var d=arguments[a];for(var u in d)c[u]=d[u]}return c}function i(a){return a.replace(/(%[0-9A-Z]{2}
7)+/g,decodeURIComponent)}function r(a){function c(){}function d(g,l,m){if(!(typeof document>"u")){m=s({path:"/"},c.defaults,m),typeof m.expires=="number"&&(m.expires=new Date(new Date*1+m.expires*864e5)),m.expires=m.expires?m.expires.toUTCString():"";try{var f=JSON.stringify(l);/^[\{\[]/.test(f)&&(l=f)}catch{}l=a.write?a.write(l,g):encodeURIComponent(String(l)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),g=encodeURIComponent(String(g)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var x="";for(var h in m)m[h]&&(x+="; "+h,m[h]!==!0&&(x+="="+m[h].split(";")[0]));return document.cookie=g+"="+l+x}}function u(g,l){if(!(typeof document>"u")){for(var m={},f=document.cookie?document.cookie.split("; "):[],x=0;x<f.length;x++){var h=f[x].split("="),L=h.slice(1).join("=");!l&&L.charAt(0)==='"'&&(L=L.slice(1,-1));try{var b=i(h[0]);if(L=(a.read||a)(L,b)||i(L),l)try{L=JSON.parse(L)}catch{}if(m[b]=L,g===b)break}catch{}}return g?m[g]:m}}return c.set=d,c.get=function(g){return u(g,!1)},c.getJSON=function(g){return u(g,!0)},c.remove=function(g,l){d(g,"",s(l,{expires:-1}))},c.defaults={},c.withConverter=r,c}return r(function(){})})})(So);var Gn;(function(t){t.STRICT="strict",t.LAX="lax",t.NONE="none"})(Gn||(Gn={}));Gn.LAX;function wo(){return n.jsxs("footer",{className:"footer",children:[!1,!1,n.jsx("nav",{children:n.jsxs("div",{className:"footer-grid",children:[n.jsxs("div",{className:"footer-col footer-col-brand",children:[n.jsxs(K,{to:"/",className:"footer-link logo",children:["dom",n.jsx("br",{}),"immo"]}),n.jsx("p",{className:"footer-slogan",children:"N°1 de l'immobilier dans les DOM, domimmo fait partie du réseau keldom."}),n.jsxs("div",{className:"footer-rs",children:[n.jsx(K,{to:"https://www.instagram.com/domimmo_keldom/",target:"_blank",className:"footer-rs-link",children:n.jsx("img",{src:"/assets/images/footer/instagram.png",alt:"domimmo-instagram"})}),n.jsx(K,{to:"https://www.facebook.com/domimmo",target:"_blank",className:"footer-rs-link",children:n.jsx("img",{src:"/assets/images/footer/facebook.png",alt:"domimmo-facebook"})}),n.jsx(K,{to:"https://www.linkedin.com/showcase/domimmo/",target:"_blank",className:"footer-rs-link",children:n.jsx("img",{src:"/assets/images/footer/linkedin.png",alt:"domimmo-linkedin"})})]})]}),n.jsxs("div",{className:"footer-col footer-col-navigation",children:[n.jsx("p",{className:"footer-section-label",children:"Navigation"}),n.jsx(K,{to:"https://www.keldom.com/domimmo/pro/job/post/",className:"footer-link basic",children:"Publier une annonce"}),n.jsx(K,{to:"https://www.keldom.com/login/",className:"footer-link basic",children:"Mon compte"}),n.jsx(K,{to:"/favoris",className:"footer-link basic",children:"Mes favoris"})]}),n.jsxs("div",{className:"footer-col footer-col-categories",children:[n.jsx("p",{className:"footer-section-label",children:"Catégories"}),n.jsx(K,{to:"/immobilier?id_di_ad_cat=1",className:"footer-link basic",children:"Vente"}),n.jsx(K,{to:"/immobilier?id_di_ad_cat=6",className:"footer-link basic",children:"Location"}),n.jsx(K,{to:"/immobilier?id_di_ad_cat=2",className:"footer-link basic",children:"Neufs"}),n.jsx(K,{to:"/immobilier?id_di_ad_type=1",className:"footer-link basic",children:"Appartements"}),n.jsx(K,{to:"/immobilier?id_di_ad_type=2",className:"footer-link basic",children:"Maisons"})]}),n.jsxs("div",{className:"footer-col footer-col-regions",children:[n.jsx("p",{className:"footer-section-label",children:"Territoires"}),n.jsx(K,{to:`/immobilier?id_com_pays=${Y.guyane}`,className:"footer-link basic",children:"Guyane"}),n.jsx(K,{to:`/immobilier?id_com_pays=${Y.martinique}`,className:"footer-link basic",children:"Martinique"}),n.jsx(K,{to:`/immobilier?id_com_pays=${Y.guadeloupe}`,className:"footer-link basic",children:"Guadeloupe"}),n.jsx(K,{to:`/immobilier?id_com_pays=${Y.reunion}`,className:"footer-link basic",children:"La Réunion"}),n.jsx(K,{to:`/immobilier?id_com_pays=${Y.mayotte}`,className:"footer-link basic",children:"Mayotte"}),n.jsx(K,{to:`/immobilier?id_com_pays=${Y["saint-martin"]}`,className:"footer-link basic",children:"Saint Martin"}),n.jsx(K,{to:`/immobilier?id_com_pays=${Y["saint-barth"]}`,className:"footer-link basic",children:"Saint Barthélémy"})]}),n.jsxs("div",{className:"footer-col footer-col-about",children:[n.jsx("p",{className:"footer-section-label",children:"à propos"}),n.jsx(K,{to:"https://www.keldom.com/about/",className:"footer-link basic",children:"à propos"}),n.jsx(K,{to:"https://www.keldom.com/contact/",className:"footer-link basic",children:"Contact & Aide"}),n.jsx(K,{to:"/cgu",className:"footer-link basic",children:"CGU"}),n.jsx(K,{to:"https://www.keldom.com/privacy/",className:"footer-link basic",children:"Confidentialité"})]})]})})]})}
7const Eo={gtmId:"GTM-PX58KX34"};Xi.initialize(Eo);function Oo(){return n.jsxs(n.Fragment,{children:[n.jsx(Pt,{children:n.jsx("meta",{property:"og:site_name",content:"domimmo.com"})}),n.jsx(Br,{}),n.jsx(wo,{}),n.jsx(zr,{})]})}var Oe=(t=>(t.vente="vente",t.location="location",t.neuf="neuf",t))(Oe||{}),ts=(t=>(t.vente="Vente",t.location="Location",t.neuf="Neuf",t))(ts||{});function ko(t){return n.jsxs(ce,{item:!0,container:!0,className:"header-filters-container",alignItems:"center",justifyContent:"center",children:[n.jsxs(Pe,{onClick:()=>t.triggerDisplayMenu(),variant:"text",className:`button-open-filters ${t.hasSelectedRegions?"selected":""}`,color:"secondary",children:[n.jsx(I,{variant:"caption",className:`${t.hasSelectedRegions?"selected-part":""}`,children:"Région"}),n.jsx(I,{variant:"caption",className:"btn-separator",children:" "}),n.jsx(I,{variant:"caption",className:`${t.hasSelectedCategory?"selected-part":""}`,children:"Catégorie"}),n.jsx(I,{variant:"caption",className:"btn-separator",children:" "}),n.jsx(I,{variant:"caption",className:`${t.hasSelectedType?"selected-part":""}`,children:"Type de bien"}),n.jsx(I,{variant:"caption",className:"btn-separator",children:" "}),n.jsx(I,{variant:"caption",className:`${t.hasSelectedOther?"selected-part":""}`,children:"Autres filtres"}),n.jsx(mo,{className:"search-button",sx:{fontSize:"15px"}})]}),n.jsx(Pe,{className:`button-open-filters mobile ${t.hasSelectedRegions||t.hasSelectedType||t.hasSelectedOther?"selected":""}`,onClick:()=>t.triggerDisplayMenu(),variant:"text",color:"secondary",endIcon:t.displayMenu?n.jsx(je,{}):n.jsx(Ce,{}),children:"Recherche"})]})}function Es(t){const{label:e,range:s,data:i,id:r,handleChangeMin:a,handleChangeMax:c}=t,d=`${e} min`,u=`${e} max`,g=parseInt(s.min),l=parseInt(s.max);return n.jsxs(v,{children:[n.jsxs(Ls,{variant:"standard",sx:{m:1,minWidth:120},children:[n.jsx(js,{id:r+"-label-min",children:d}),n.jsxs(Vn,{labelId:r+"-label-min",id:r+"-min",value:s.min,onChange:m=>a(m.target.value),label:d,children:[n.jsx(Tt,{value:"",children:n.jsx("em",{children:d})}),i.filter(m=>isNaN(l)?!0:parseInt(m)<=l).map((m,f)=>n.jsx(Tt,{value:m,children:m},f))]})]}),n.jsxs(Ls,{variant:"standard",sx:{m:1,minWidth:120},children:[n.jsx(js,{id:r+"-label-max",children:u}),n.jsxs(Vn,{labelId:r+"-label-min",id:r+"-max",value:s.max,onChange:m=>c(m.target.value),label:u,children:[n.jsx(Tt,{value:void 0,children:n.jsx("em",{children:u})}),i.filter(m=>isNaN(g)?!0:parseInt(m)>=g).map((m,f)=>n.jsx(Tt,{value:m,children:m},f))]})]})]})}const Yt={[Y.martinique]:[{code:1,label:"Basse Pointe"},{code:2,label:"Bellefontaine"},{code:3,label:"Case Pilote"},{code:4,label:"Ducos"},{code:5,label:"Fonds Saint Denis"},{code:6,label:"Fort de France"},{code:7,label:"Grand Rivière"},{code:8,label:"Gros Morne"},{code:9,label:"La Trinité"},{code:10,label:"L'Ajoupa Bouillon"},{code:11,label:"Le Carbet"},{code:12,label:"Le Diamant"},{code:13,label:"Le François"},{code:14,label:"Le Lamentin"},{code:15,label:"Le Lorrain"},{code:16,label:"Le Marigot"},{code:17,label:"Le Marin"},{code:18,label:"Le Morne Rouge"},{code:19,label:"Le Morne Vert"},{code:20,label:"Le Prêcheur"},{code:21,label:"Le Robert"},{code:22,label:"Le Vauclin"},{code:23,label:"Les Anses d'Arlet"},{code:24,label:"Les Trois Ilets"},{code:25,label:"Macouba"},{code:26,label:"Rivière Pilote"},{code:27,label:"Rivière Salée"},{code:28,label:"Saint Esprit"},{code:29,label:"Saint Joseph"},{code:30,label:"Saint Pierre"},{code:31,label:"Sainte Anne"},{code:32,label:"Sainte Luce"},{code:33,label:"Sainte Marie"},{code:34,label:"Schoelcher"}],[Y.guadeloupe]:[{code:35,label:"Anse Bertrand"},{code:36,label:"Baie Mahault"},{code:37,label:"Baillif"},{code:39,label:"Basse Terre"},{code:40,label:"Bouillante"},{code:41,label:"Capesterre Belle Eau"},{code:42,label:"Capesterre de Marie Galante"},{code:43,label:"Deshaies"},{code:44,label:"Gourbeyre"},{code:45,label:"Goyave"},{code:46,label:"Grand Bourg"},{code:47,label:"La Désirade"},{code:48,label:"Lamentin"},{code:49,label:"Le Gosier"},{code:50,label:"Le Moule"},{code:51,label:"Les Abymes"},{code:53,label:"Morne a l'Eau"},{code:54,label:"Petit Bourg"},{code:55,label:"Petit Canal"},{code:57,label:"Pointe-à -Pitre"},{code:58,label:"Pointe Noire"},{code:59,label:"Port Louis"},{code:61,label:"Saint Claude"},{code:62,label:"Saint François"},{code:63,label:"Saint Louis"},{code:65,label:"Sainte Anne"},{code:67,label:"Sainte Rose"},{code:68,label:"Terre de Bas"},{code:69,label:"Terre de Haut"},{code:70,label:"Trois Rivières"},{code:71,label:"Vieux Fort"},{code:72,label:"Vieux Habitants"}],[Y.guyane]:[{code:74,label:"Cayenne"},{code:75,label:"Montsinery"},{code:76,label:"Remire Montjoly"},{code:77,label:"Kourou"},{code:78,label:"Roura"},{code:79,label:"Saint Elie"},{code:80,label:"Saint Georges"},{code:81,label:"Saul"},{code:82,label:"Sinnamary"},{code:83,label:"Grand Santi"},{code:84,label:"Apatou"},{code:85,label:"Javouhey"},{code:86,label:"Saint Laurent"},{code:87,label:"Camopi"},{code:88,label:"Iracoubo"},{code:89,label:"Matoury"},{code:90,label:"Cacao"},{code:91,label:"Kaw"},{code:92,label:"Macouria Tonate"},{code:93,label:"Mana"},{code:94,label:"Maripasoula"},{code:95,label:"Ouanary"},{code:96,label:"Regina"}],[Y.reunion]:[{code:97,label:"Les Avirons"},{code:98,label:"Bras-Panon"},{code:99,label:"Cilaos"},{code:100,label:"L'Entre-Deux"},{code:101,label:"L'Etang-Salé"},{code:102,label:"Petite Ile"},{code:103,label:"Plaine des Palmistes"},{code:104,label:"Le Port"},{code:105,label:"La Possession"},{code:106,label:"Saint-André"},{code:107,label:"Saint-Benoît"},{code:108,label:"Saint-Denis"},{code:109,label:"Sainte-Marie"},{code:110,label:"Sainte-Rose"},{code:111,label:"Sainte-Suzanne"},{code:112,label:"Saint-Joseph"},{code:113,label:"Saint-Leu"},{code:114,label:"Saint-Louis"},{code:115,label:"Saint-Paul"},{code:116,label:"Saint-Philippe"},{code:117,label:"Saint-Pierre"},{code:118,label:"Salazie"},{code:119,label:"Le Tampon"},{code:120,label:"Trois-Bassins"},{code:121,label:"Saint-Gilles"},{code:122,label:"Sainte-Clotilde"},{code:123,label:"Ravine des Cabris"}],[Y.mayotte]:[{code:124,label:"Acoua"},{code:125,label:"Bandraboua"},{code:126,label:"Bandrélé"},{code:128,label:"Bouéni"},{code:129,label:"Chiconi"},{code:130,label:"Chirongui"},{code:131,label:"Dembéni"},{code:132,label:"Dzaoudzi"},{code:133,label:"Kani-Kéli"},{code:134,label:"Koungou"},{code:135,label:"M'tsangamouj"},{code:136,label:"Mamoudzou"},{code:137,label:"Mtsamboro"},{code:138,label:"Ouangani"},{code:139,label:"Pamandzi"},{code:140,label:"Sada"},{code:141,label:"Tsingoni"}
7],[Y["saint-martin"]]:[{code:64,label:"Saint Martin"}],[Y["saint-barth"]]:[{code:60,label:"Saint Barthelemy"}]},Po=async t=>{const e=new URL(`${Ft()}/domimmo/offers/count`),s=zt.omit(t,["id_com_pays","promoted","page","limit"]);t.id_com_pays&&t.id_com_pays.length>0&&(s.id_com_pays=t.id_com_pays.join(",")),t.promoted&&(s.promoted="true"),e.search=new URLSearchParams(s).toString();const i=await fetch(e);if(i.status>=400)throw new Error("Can not get offers");return(await i.json()).count||0},Rt=zt.memoize(Po,t=>JSON.stringify(t)),_o=async t=>{const e=new URL(`${Ft()}/domimmo/offers`),s=zt.omit(t,["id_com_pays","promoted","page","limit"]);t.id_com_pays&&t.id_com_pays.length>0&&(s.id_com_pays=t.id_com_pays.join(",")),t.promoted&&(s.promoted="true"),t.page&&(s.page=t.page.toString()),t.limit&&(s.limit=t.limit.toString()),e.search=new URLSearchParams(s).toString();const i=await fetch(e);if(i.status>=400)throw new Error("Can not get offers");return await i.json()},Xe=zt.memoize(_o,t=>JSON.stringify(t)),No=async(t,e)=>{const s=new FormData;s.append("email",t),e.id_com_pays&&e.id_com_pays.length>0&&s.append("id_com_pays",e.id_com_pays.join(",")),s.append("energie",e.type||""),s.append("id_di_ad_cat",e.id_di_ad_cat||""),s.append("motscles",e.motscles||"");const i={method:"POST",body:s,redirect:"follow"},r=new URL(`${Ft()}/domimmo/immo-search-alert`);return(await(await fetch(r,i)).json()).error},Io=async t=>{const e=new URL(`${Ft().replace("/api","")}/json/vu/${t}`);try{const s=await fetch(e);s.status!==200&&console.log("vu error",s.status,e)}catch(s){console.error("vu error",e,s)}};var qn=(t=>(t.prix="Prix",t.surface_habitable="Surface hab.",t))(qn||{});const Dt={prix:["400","500","600","700","800","900","1000","1200","1400","1600","1800","2000","2500","3000","3500","4000","4500","5000","10000","15000","20000","40000","60000","80000","100000","200000","300000","400000","500000","600000","700000","800000","900000","1000000"],surface_habitable:["10","20","30","40","50","60","70","80","90","100","120","140","160","180","200","250","300","350","400","450","500"]};var $e=(t=>(t.IMMO_PRO="immopro",t.PHOTO="photo",t.PISCINE="piscine",t.JARDIN="jardin",t.MEUBLE="meuble",t))($e||{});const Rn=[{code:"immopro",label:"Immobilier d'entreprise"},{code:"meuble",label:"Meublé"},{code:"jardin",label:"Jardin"},{code:"piscine",label:"Piscine"},{code:"photo",label:"Avec photo"}],De={selectedRegions:{type:"array",queryParam:"id_com_pays",elementType:Y},selectedCategories:{type:"array",queryParam:"id_di_ad_cat",elementType:Number},selectedCities:{type:"array",queryParam:"id_com_ville",elementType:Number},selectedTypes:{type:"array",queryParam:"id_di_ad_type",elementType:Number},nbPieces:{type:"array",queryParam:"nb_pieces",elementType:String},nbChambres:{type:"array",queryParam:"id_di_ad_nb_chambres",elementType:String},selectedSearch:{type:"string",queryParam:"motscles"},prixMin:{type:"int",queryParam:"prix_mini"},prixMax:{type:"int",queryParam:"prix_maxi"},surfaceHabitableMin:{type:"int",queryParam:"surface_mini"},surfaceHabitableMax:{type:"int",queryParam:"surface_maxi"},selectedOtherCriterias:{type:"criteria",queryParam:"other_criterias"}};var se=(t=>(t.home="/",t.typeHome="/:type",t.search="/immobilier",t.regionListing="/:region",t.regionListingPage="/:region/page/:page",t.regionTypeListing="/:region/:type",t.regionTypeListingPage="/:region/:type/page/:page",t.regionTypeRefinementListing="/:region/:type/:refinement",t.regionTypeRefinementListingPage="/:region/:type/:refinement/page/:page",t.regionTypeRefinement2Listing="/:region/:type/:refinement/:refinement2",t.regionTypeRefinement2ListingPage="/:region/:type/:refinement/:refinement2/page/:page",t.offer="/:region/immobilier/:id",t.company="/:region/agence-immobiliere/:id",t.favorites="/favoris",t.cgu="/cgu",t))(se||{});const Do=[{code:R.APPARTEMENT,slug:"appartement"},{code:R.MAISON,slug:"maison"},{code:R.TERRAIN,slug:"terrain"},{code:R.LOCAL_COMMERCIAL,slug:"local-commercial"},{code:R.BUREAUX,slug:"bureaux"},{code:R.FONDS_COMMERCE,slug:"fonds-de-commerce"},{code:R.IMMEUBLE,slug:"immeuble"},{code:R.DEPOT,slug:"depot"},{code:R.PARKING,slug:"parking"},{code:R.DIVERS,slug:"divers"},{code:R.BUNGALOW,slug:"bungalow"},{code:R.CHAMBRE_HOTES,slug:"chambre-hotes"}
7,{code:R.GITE_RURAL,slug:"gite-rural"}],Ro=t=>{var e;return(e=Do.find(s=>s.slug===t))==null?void 0:e.code},To=t=>{if(!t)return{};if(/^\d/.test(t)){const s=parseInt(t,10);return Number.isNaN(s)?{}:{cityId:s}}const e=Ro(t);return e!==void 0?{estateType:e}:{}},ir=(...t)=>{const e={};for(const s of t){const{cityId:i,estateType:r}=To(s);i!==void 0&&(e.cityId=i),r!==void 0&&(e.estateType=r)}return e},Ao=Kr(xo)(({theme:t})=>({borderRadius:"20px !important",padding:"8px 16px",margin:"0 1px",border:"1px solid",borderColor:t.palette.divider,color:t.palette.text.primary,"&.Mui-selected":{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText}}));function Os({values:t,selectedValues:e,handleChange:s,small:i}){return n.jsx(bo,{value:e,onChange:(r,a)=>s(a),sx:{".MuiToggleButtonGroup-middleButton, .MuiToggleButtonGroup-lastButton":{marginLeft:"8px !important",borderLeft:"1px solid",borderColor:Ji.palette.divider}},children:t.map(r=>n.jsx(Ao,{value:r,sx:i?{padding:"3px 8px !important",fontSize:"12px",minWidth:"auto",lineHeight:"1.4"}:void 0,children:r},r))})}const Tn=Et(new URLSearchParams,De),Xt="domimmo_saved_searches",rn=o.forwardRef((t,e)=>{const s=_n(),i=Wn(s.breakpoints.down("sm")),r=t.sidebarMode||i,a=ln(),[c]=Yn(),d=Xn(),u=()=>{const p=new URLSearchParams,S=d.region,_=d.type;S&&Object.values(ie).includes(S)&&p.set("id_com_pays",Y[S]),_&&Object.values(Oe).includes(_)&&p.set("id_di_ad_cat",we[_.toUpperCase()].toString());const{cityId:V,estateType:ge}=ir(d.refinement,d.refinement2);return V&&p.set("id_com_ville",V.toString()),ge&&p.set("id_di_ad_type",ge.toString()),p},g=()=>{const p=u();return c.forEach((S,_)=>p.set(_,S)),p},[l,m]=o.useState(()=>{const p=Et(g(),De);if(JSON.stringify(p)===JSON.stringify(Tn)&&!t.sidebarMode){const _=sessionStorage.getItem("domimmo-filters");if(_)return Et(new URLSearchParams(_),De)}return p}),[f,x]=o.useState(!1),[h,L]=o.useState(!1),[b,D]=o.useState(0),[P,U]=o.useState(!1),[E,y]=o.useState(t.defaultType),[M,O]=o.useState(!0),[N,j]=o.useState(!r),[B,F]=o.useState(!r),[H,T]=o.useState(!1),[z,$]=o.useState(""),[A,te]=o.useState(!1),[J,Q]=o.use
7State(!1),[X,ae]=o.useState(!1),[le,W]=o.useState(!1),[re,k]=o.useState(()=>{try{return JSON.parse(localStorage.getItem(Xt)??"null")??[]}catch{return[]}}),[pe,fe]=o.useState(!0),[Z,ve]=o.useState(null),[G,ee]=o.useState({}),[Le,Ne]=o.useState({});o.useEffect(()=>{if(!Z)return;const p=Z;k(S=>{const _=S.map(V=>V.id===p?{...V,state:l}:V);return localStorage.setItem(Xt,JSON.stringify(_)),_})},[l]),o.useEffect(()=>{const p=re.filter(S=>S.count===null);p.length!==0&&p.forEach(async S=>{try{const _=In(S.state,De),V=await Rt(_);k(ge=>{const Se=ge.map(Fe=>Fe.id===S.id?{...Fe,count:V}:Fe);return localStorage.setItem(Xt,JSON.stringify(Se)),Se})}catch{}})},[]),o.useEffect(()=>{y(t.defaultType)},[t.defaultType]),o.useEffect(()=>{const p=Et(g(),De);if(JSON.stringify(p)===JSON.stringify(Tn)&&!t.sidebarMode){const _=sessionStorage.getItem("domimmo-filters");if(_){m(Et(new URLSearchParams(_),De));return}}m(p)},[c,d.region,d.type,d.refinement,d.refinement2]);const He=!!(l.prixMin||l.prixMax||l.surfaceHabitableMin||l.surfaceHabitableMax),[me,Be]=o.useState(""),[Ie,at]=o.useState(""),[be,Ve]=o.useState(!1),[We,lt]=o.useState(!1),{width:Qe,height:yt}=es(),ct=o.useRef(null),Lt={[ie.guadeloupe]:n.jsx(ro,{}),[ie.guyane]:n.jsx(io,{}),[ie.martinique]:n.jsx(so,{}),[ie.mayotte]:n.jsx(no,{}),[ie.nouvelleCaledonie]:n.jsx(to,{}),[ie.polynesie]:n.jsx(eo,{}),[ie.reunion]:n.jsx(Qr,{}),[ie.saintBarth]:n.jsx(Xr,{}),[ie.saintMartin]:n.jsx(Yr,{}),[ie.tom]:n.jsx(Jr,{})},Te=()=>{if(f){if(i&&!t.sidebarMode){const p=document.body.style.top;document.body.style.overflow="",document.body.style.position="",document.body.style.width="",document.body.style.top="",p&&window.scrollTo(0,parseInt(p)*-1)}x(!1),document.body.classList.remove("filters-open")}else i&&!t.sidebarMode&&(document.body.style.top=`-${window.scrollY}px`,document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%"),x(!0),document.body.classList.add("filters-open")};o.useImperativeHandle(e,()=>({triggerMenu(){Te()}})),o.useEffect(()=>{if(t.sidebarMode)return;(async()=>{if(!i&&JSON.stringify(Tn)===JSON.stringify(l)){U(!1);return}L(!0);const S=In(l,De),_=await Rt(S);D(_),L(!1),U(!0)})()},[l]),o.useEffect(()=>{if(!t.sidebarMode)return;const p=Dn(l,De),S=Dn(Et(g(),De),De);if(p.toString()===S.toString())return;const _=setTimeout(()=>{a({pathname:it(se.search),search:`?${p.toString()}`},{replace:!0,preventScrollReset:!0})},300);return()=>clearTimeout(_)},[l]),o.useEffect(()=>{if(t.sidebarMode)return;function p(S){const _=S.target,V=S.target.parentNode,ge=!!_.closest(".MuiPopover-root");t.refMenu.current&&!t.refMenu.current.contains(_)&&!ge&&!_.closest(".mobile-filter-backdrop")&&!_.closest(".filter-fab")&&!(typeof _.className=="string"&&_.className.includes("MuiInputBase-inputSizeSmall")||typeof _.className=="string"&&_.className.includes("bouton-mobile-alerte")||typeof _.className=="string"&&_.className.includes("button-open-filters")||typeof(V==null?void 0:V.className)=="string"&&(V!=null&&V.className.includes("bouton-mobile-alerte"))||typeof V.className=="string"&&V.className.includes("voir-plus-dom")||typeof V.className=="string"&&V.className.includes("button-open-filters")||typeof V.parentNode.className=="string"&&V.parentNode.className.includes("button-open-filters"))&&setTimeout(()=>{const Se=document.body.style.top;Se&&(document.body.style.overflow="",document.body.style.position="",document.body.style.width="",document.body.style.top="",window.scrollTo(0,parseInt(Se)*-1)),x(!1),document.body.classList.remove("filters-open"),Ve(!1)},100)}return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[t.refMenu,t.sidebarMode]),o.useEffect(()=>{},[t.defaultType,d,c]),o.useEffect(()=>{const p=Object.values(ie).filter(S=>![ie.nouvelleCaledonie,ie.polynesie].includes(S));Promise.all(p.map(async S=>{const _=Y[S],V=await Rt({id_com_pays:[_]});return[_,V]})).then(S=>ee(Object.fromEntries(S)))},[]),o.useEffect(()=>{const p=l.selectedRegions.flatMap(_=>Yt[_]??[]);if(p.length===0){Ne({});return}const S={};l.selectedCategories.length>0&&(S.id_di_ad_cat=l.selectedCategories.join(",")),l.selectedTypes.length>0&&(S.id_di_ad_type=l.selectedTypes.join(",")),Promise.all(p.map(async _=>{const V=await Rt({id_com_ville:_.code.toString(),...S});return[_.code,V]})).then(_=>Ne(Object.fromEntries(_)))},[l.selectedRegions,l.selectedCategories,l.selectedTypes]),o.useEffect(()=>{const p=ct.current;
7if(!p||!f)return;let S=0;const _=ge=>{S=ge.touches[0].clientY},V=ge=>{const Se=p.scrollTop,Fe=p.scrollHeight,Zt=p.clientHeight,vs=S-ge.touches[0].clientY,Ar=Se===0&&vs<0,Ur=Se+Zt>=Fe&&vs>0;(Ar||Ur)&&ge.preventDefault()};return p.addEventListener("touchstart",_,{passive:!0}),p.addEventListener("touchmove",V,{passive:!1}),()=>{p.removeEventListener("touchstart",_),p.removeEventListener("touchmove",V)}},[f]),o.useEffect(()=>()=>{const p=document.body.style.top;p&&(document.body.style.overflow="",document.body.style.position="",document.body.style.width="",document.body.style.top="",window.scrollTo(0,parseInt(p)*-1)),document.body.classList.remove("filters-open")},[]);const jt=async p=>{if(p.stopPropagation(),!be){Ve(!0);return}if(!Ie||!ho(Ie)){Be("Veuillez saisir une adresse email valide"),setTimeout(()=>Be(""),3e3);return}if(E||l.selectedRegions.length===0||l.selectedCategories.length===0){Be("Veuillez sélectionner au moins un type, une catégorie et une région pour créer une alerte"),setTimeout(()=>Be(""),3e3);return}try{if(await No(Ie,{id_com_pays:l.selectedRegions,type:E,id_di_ad_cat:l.selectedCategories.join(","),motscles:l.selectedSearch}))throw new Error("Une erreur est survenue");Ve(!1),at(""),lt(!0),setTimeout(()=>lt(!1),3e3)}catch{Be("Une erreur est survenue. Veuillez vérifier votre saisie et réessayer."),setTimeout(()=>Be(""),3e3)}},Ge=p=>{m(S=>{const _=S.selectedRegions.includes(p)?S.selectedRegions.filter(ge=>ge!==p):[...S.selectedRegions,p],V=S.selectedCities.filter(ge=>_.some(Se=>{var Fe;return(Fe=Yt[Se])==null?void 0:Fe.some(Zt=>Zt.code===ge)}));return{...S,selectedRegions:_,selectedCities:V}})},Ct=p=>{m(S=>{const _=S.selectedRegions.includes(p)?[]:[p],V=S.selectedCities.filter(ge=>_.some(Se=>{var Fe;return(Fe=Yt[Se])==null?void 0:Fe.some(Zt=>Zt.code===ge)}));return{...S,selectedRegions:_,selectedCities:V}})},qe=p=>{if(r){const S=l.selectedRegions.includes(p);Ct(p),T(!1),S||(O(!1),j(!0))}else Ge(p)},dt=p=>mn(m,"selectedCategories",p),ze=p=>{if(r){const S=l.selectedCategories.includes(p);dt(p),S||F(!0)}else dt(p)},ut=p=>mn(m,"selectedTypes",p),w=p=>{if(r){const S=l.selectedTypes.includes(p);ut(p),S||T(!0)}else ut(p)},q=p=>mn(m,"selectedCities",p),xe=p=>mn(m,"selectedOtherCriterias",p),Me=(p,S)=>xs(m,"prixMin","prixMax",p,S),ke=(p,S)=>xs(m,"surfaceHabitableMin","surfaceHabitableMax",p,S),Ze=p=>m(S=>({...S,selectedSearch:p})),et=()=>{ve(null),sessionStorage.removeItem("domimmo-filters"),m(Et(new URLSearchParams,De)),r&&(O(!0),j(!1),F(!1),T(!1))},pt=p=>{localStorage.setItem(Xt,JSON.stringify(p)),k(p)},mt=async()=>{const p=Date.now().toString();pt([{id:p,state:l,count:null,savedAt:new Date().toISOString()},...re]),ve(p),O(!1),j(!1),F(!1),T(!1),te(!1),Q(!1),W(!1),ae(!1);try{const S=In(l,De),_=await Rt(S);k(V=>{const ge=V.map(Se=>Se.id===p?{...Se,count:_}:Se);return localStorage.setItem(Xt,JSON.stringify(ge)),ge})}catch{}},_t=p=>{i?et():p===Z&&ve(null),pt(re.filter(S=>S.id!==p))},ht=p=>{ve(p.id),m(p.state),O(!1),j(!1),F(!1),T(!1),te(!1),Q(!1),W(!1),ae(!1)},Nt=()=>{ve(null),et()},tt=()=>{const p=Dn(l,De);sessionStorage.setItem("domimmo-filters",p.toString());const S=it(se.search);document.body.style.overflow="",document.body.style.position="",document.body.style.width="",document.body.style.top="",x(!1),document.body.classList.remove("filters-open"),Ve(!1),at(""),a({pathname:S,search:`?${p.toString()}`})},Ae=[{code:we.VENTE,label:"Acheter"},{code:we.LOCATION,label:"Louer"},{code:we.CONSTRUCTION,label:"Construire"},{code:we.NEUF,label:"Neuf"}],It=zt.orderBy(l.selectedRegions.flatMap(p=>Yt[p]),"label","asc"),Mt=p=>{if(!p.length)return"ð";const S=st.find(V=>p.includes(V.code));if(!S)return"ð";const _=S.label.toLowerCase();return _.includes("maison")||_.includes("villa")?"ð¡":_.includes("appart")?"ð¢":_.includes("terrain")?"ð¿":_.includes("local")||_.includes("commercial")?"ðª":_.includes("immeuble")?"ð":"ð"},ne=p=>{const S=[];if(p.selectedTypes.length&&S.push(p.selectedTypes.map(_=>{var V;return((V=st.find(ge=>ge.code===_))==null?void 0:V.label)??""}).filter(Boolean).join(" / ")),p.selectedCities.length){const V=p.selectedRegions.flatMap(ge=>Yt[ge]??[]).find(ge=>ge.code===p.selectedCities[0]);V&&S.push(V.label)}else if(p.selectedRegions.length){const _=Object.keys(Y).find(V=>Y[V]===p.selectedRegions[0]);_&&S.push(Kt[_])}return S.join(" · ")||"Ma recherche"},Tr=p=>{const S=[];if(p.selectedRegions.length&&S.push(p.selectedRegions.map(_=>{const V=Object.keys(Y).find(ge=>Y[ge]===_);return V?Kt[V]:""}
7).filter(Boolean).join(", ")),p.selectedCategories.length){const _=Ae.find(V=>V.code===p.selectedCategories[0])||hn.find(V=>V.code===p.selectedCategories[0]);_&&S.push(_.label)}return p.prixMax&&S.push("< "+Number(p.prixMax).toLocaleString("fr")+" â¬"),S.join(" · ")},Nn=re.some(p=>JSON.stringify(p.state)===JSON.stringify(l)),fs=l.selectedRegions.length+l.selectedCategories.length+l.selectedTypes.length+l.selectedCities.length+(l.prixMin>0||l.prixMax>0?1:0)+(l.surfaceHabitableMin>0||l.surfaceHabitableMax>0?1:0)+l.nbPieces.length+l.selectedOtherCriterias.length+(l.selectedSearch?1:0);return n.jsxs(n.Fragment,{children:[n.jsxs(ce,{container:!0,className:"header-filters-wrapper",alignItems:"center",justifyContent:"center",children:[!t.hideFiltersButtons&&!t.sidebarMode&&n.jsx(ko,{triggerDisplayMenu:()=>Te(),displayMenu:f,hasSelectedRegions:l.selectedRegions.length>0,hasSelectedType:E!==void 0,hasSelectedOther:He,hasSelectedCategory:l.selectedCategories.length>0}),n.jsxs(v,{ref:t.refMenu,className:`search-content-filters ${t.sidebarMode?"sidebar-mode shown":f?"shown":"hidden"} ${!t.sidebarMode&&f&&(yt<720||Qe<s.breakpoints.values.md)?"height-100":""} ${i&&!t.sidebarMode?"mobile-filter-mode":""} ${Z?"in-favorite-mode":""}`,children:[r&&n.jsxs(n.Fragment,{children:[r&&re.length>0&&n.jsxs(n.Fragment,{children:[n.jsxs(v,{className:"favorites-block",children:[n.jsxs(v,{className:"sidebar-section-label",onClick:()=>fe(!pe),children:[n.jsxs(v,{sx:{display:"flex",alignItems:"center",gap:"7px"},children:[n.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"#2EC4A0",strokeWidth:"2.5",children:n.jsx("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})}),n.jsx(v,{component:"span",className:"fav-label",children:"Mes recherches favorites"})]}),n.jsx(v,{sx:{display:"flex",alignItems:"center"},children:pe?n.jsx(je,{fontSize:"small",sx:{color:"#2EC4A0"}}):n.jsx(Ce,{fontSize:"small",sx:{color:"#2EC4A0"}})})]}),pe&&n.jsx(v,{className:"saved-section",children:re.map(p=>{const S=Mt(p.state.selectedTypes),_=ne(p.state),V=Tr(p.state);return n.jsxs(v,{className:`saved-pill${p.id===Z?" active":""}`,onClick:()=>ht(p),children:[n.jsxs(v,{className:"saved-pill-left",children:[n.jsx(v,{component:"span",className:"saved-pill-emoji",children:S}),n.jsxs(v,{sx:{minWidth:0},children:[n.jsx(v,{className:"saved-pill-name",children:_}),V&&n.jsx(v,{className:"saved-pill-meta",children:V})]})]}),n.jsxs(v,{className:"saved-pill-right",children:[p.count!=null&&n.jsx(v,{component:"span",className:"saved-pill-count",children:p.count.toLocaleString("fr-FR")}),n.jsx(v,{component:"span",className:"saved-pill-del",onClick:ge=>{ge.stopPropagation(),_t(p.id)},children:"Ã"})]})]},p.id)})})]}),n.jsx(v,{className:"favorites-sep"})]}),n.jsxs(v,{className:"sheet-header",sx:{padding:"16px 20px",borderBottom:"1px solid #d8dde2",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n.jsx(v,{sx:{fontWeight:600,fontSize:"13px",color:"#1a2028",textTransform:"uppercase",letterSpacing:"0.06em"},children:"Ma recherche"}),n.jsx(v,{onClick:et,sx:{cursor:"pointer",fontSize:"11px",color:"#2EC4A0","&:hover":{textDecoration:"underline"}},children:"Réinitialiser"})]}),n.jsxs(v,{className:"sheet-scroll",ref:ct,children:[n.jsxs(v,{className:"sidebar-filter-group",children:[n.jsxs(v,{className:"sidebar-section-label",onClick:()=>O(!M),children:[n.jsx(v,{component:"span",children:"Territoire"}),M?n.jsx(je,{fontSize:"small"}):n.jsx(Ce,{fontSize:"small"})]}),!M&&l.selectedRegions.length>0&&n.jsx(v,{sx:{display:"flex",flexDirection:"column",gap:"4px",mt:"6px"},children:l.selectedRegions.map(p=>{const S=Object.keys(Y).find(V=>Y[V]===p),_=Kt[S];return n.jsxs(v,{sx:{cursor:"pointer",padding:"3px 8px",borderRadius:"4px",fontSize:"14px",fontWeight:500,color:"#1a9b7e",backgroundColor:"#e8faf6",lineHeight:"22px",display:"flex",justifyContent:"space-between",alignItems:"center","&:hover":{backgroundColor:"#d4f4ec"}},onClick:V=>{V.stopPropagation(),qe(p)},children:[n.jsx(v,{component:"span",children:_}),n.jsx(v,{component:"span",sx:{fontSize:"12px",ml:"6px",opacity:.7},children:"Ã"})]},p)})}),M&&n.jsx(nt,{titre:"",data:Object.values(ie).filter(p=>![ie.nouvelleCaledonie,ie.polynesie].includes(p)).map(p=>({code:Y[p],label:Kt[p]})),selectedData:l.selectedRegions,updateData:p=>qe(p),noViewMore:!0,highlightMode:!0,counts:G})]}),n.jsxs(v,{className:"sidebar-filter-group",children:[n.jsxs(v,{className:"sidebar-section-label",onClick:()=>j(!N),children:[n.jsx(v,{component:"span",children:"Transaction"}),N?n.jsx(je,{fontSize:"small"}):n.jsx(Ce,{fontSize:"small"})]}),!N&&l.selectedCategories.length>0&&n.jsx(v,{sx:{display:"flex",flexDirection:"column",gap:"4px",mt:"6px"},children:l.selectedCategories.map(p=>{const S=Ae.find(_=>_.code===p)||hn.find(_=>_.code===p);return S?n.jsxs(v,{sx:{cursor:"pointer",padding:"3px 8px",borderRadius:"4px",fontSize:"14px",fontWeight:500,color:"#1a9b7e",backgroundColor:"#e8faf6",lineHeight:"22px",display:"flex",justifyContent:"space-between",alignItems:"center","&:hover":{backgroundColor:"#d4f4ec"}},onClick:_=>{_.stopPropagation(),ze(p)},children:[n.jsx(v,{component:"span",children:S.label}),n.jsx(v,{component:"span",sx:{fontSize:"12px",ml:"6px",opacity:.7},children:"Ã"})]},p):null})}),N&&n.jsx(nt,{titre:"",data:Ae,selectedData:l.selectedCategories,updateData:p=>ze(+p),noViewMore:!0,buttonMode:!0})]}),n.jsxs(v,{className:"sidebar-filter-group",children:[n.jsxs(v,{className:"sidebar-section-label",onClick:()=>F(!B),children:[n.jsx(v,{component:"span",children:"Type de bien"}),B?n.jsx(je,{fontSize:"small"}):n.jsx(Ce,{fontSize:"small"})]}),!B&&l.selectedTypes.length>0&&n.jsx(v,{sx:{display:"flex",flexDirection:"column",gap:"4px",mt:"6px"},children:l.selectedTypes.map(p=>{const S=st.find(_=>_.code===p);return S?n.jsxs(v,{sx:{cursor:"pointer",padding:"3px 8px",borderRadius:"4px",fontSize:"14px",fontWeight:500,color:"#1a9b7e",backgroundColor:"#e8faf6",lineHeight:"22px",display:"flex",justifyContent:"space-between",alignItems:"center","&:hover":{backgroundColor:"#d4f4ec"}},onClick:_=>{_.stopPropagation(),w(p)},children:[n.jsx(v,{component:"span",children:S.label}),n.jsx(v,{component:"span",sx:{fontSize:"12px",ml:"6px",opacity:.7},children:"Ã"})]},p):null})}),B&&n.jsx(nt,{titre:"",data:st,selectedData:l.selectedTypes,updateData:p=>w(+p),noViewMore:!0,highlightMode:!0,listStyle:{maxHeight:"144px"}})]}),l.selectedRegions.length>0&&n.jsxs(v,{className:"sidebar-filter-group",children:[n.jsxs(v,{className:"sidebar-section-label",onClick:()=>{H||$(""),T(!H)},children:[n.jsx(v,{component:"span",children:"Ville"}),n.jsxs(v,{sx:{display:"flex",alignItems:"center",gap:"6px"},children:[H&&n.jsx(Cs,{size:"small",placeholder:"Filtrerâ¦",value:z,onChange:p=>$(p.target.value),onClick:p=>p.stopPropagation(),autoComplete:"off",sx:{width:"150px","& .MuiOutlinedInput-root":{fontSize:"11px",height:"26px",borderRadius:"20px","& fieldset":{borderColor:"#d8dde2"},"&:hover fieldset":{borderColor:"#2EC4A0"},"&.Mui-focused fieldset":{borderColor:"#2EC4A0"}},"& .MuiOutlinedInput-input":{padding:"3px 10px"}}}),H?n.jsx(je,{fontSize:"small"}):n.jsx(Ce,{fontSize:"small"})]})]}),!H&&l.selectedCities.length>0&&n.jsx(v,{sx:{display:"flex",flexDirection:"column",gap:"4px",mt:"6px"},children:l.selectedCities.map(p=>{const S=It.find(_=>_.code===p);return S?n.jsxs(v,{onClick:()=>q(S.code),sx:{cursor:"pointer",padding:"3px 8px",borderRadius:"4px",fontSize:"14px",fontWeight:500,color:"#1a9b7e",backgroundColor:"#e8faf6",lineHeight:"22px",display:"flex",justifyContent:"space-between",alignItems:"center","&:hover":{backgroundColor:"#d4f4ec"}},children:[n.jsx(v,{component:"span",children:S.label}),n.jsx(v,{component:"span",sx:{fontSize:"12px",ml:"6px",opacity:.7},children:"Ã"})]},p):null})}),H&&n.jsx(nt,{titre:"",data:z.trim()?It.filter(p=>p.label.toLowerCase().includes(z.toLowerCase())):It,selectedData:l.selectedCities,updateData:p=>q(+p),noViewMore:!0,highlightMode:!0,counts:Le})]}),n.jsxs(v,{className:"sidebar-filter-group",children:[n.jsxs(v,{className:"sidebar-section-label",onClick:()=>te(!A),children:[n.jsx(v,{component:"span",children:"Budget / Surface"}),A?n.jsx(je,{fontSize:"small"}):n.jsx(Ce,{fontSize:"small"})]}),!A&&He&&n.jsxs(v,{sx:{display:"flex",flexWrap:"wrap",gap:"4px",mt:"6px"},children:[l.prixMin>0&&n.jsxs(v,{sx:{cursor:"pointer",padding:"3px 8px",borderRadius:"4px",fontSize:"14px",fontWeight:500,color:"#1a9b7e",backgroundColor:"#e8faf6",lineHeight:"22px",display:"flex",alignItems:"center",gap:"6px","&:hover":{backgroundColor:"#d4f4ec"}},onClick:p=>{p.stopPropagation(),m(S=>({...S,prixMin:0}))}
7,children:["⥠",l.prixMin.toLocaleString("fr-FR")," â¬",n.jsx(v,{component:"span",sx:{opacity:.7},children:"Ã"})]}),l.prixMax>0&&n.jsxs(v,{sx:{cursor:"pointer",padding:"3px 8px",borderRadius:"4px",fontSize:"14px",fontWeight:500,color:"#1a9b7e",backgroundColor:"#e8faf6",lineHeight:"22px",display:"flex",alignItems:"center",gap:"6px","&:hover":{backgroundColor:"#d4f4ec"}},onClick:p=>{p.stopPropagation(),m(S=>({...S,prixMax:0}))},children:["⤠",l.prixMax.toLocaleString("fr-FR")," â¬",n.jsx(v,{component:"span",sx:{opacity:.7},children:"Ã"})]}),l.surfaceHabitableMin>0&&n.jsxs(v,{sx:{cursor:"pointer",padding:"3px 8px",borderRadius:"4px",fontSize:"14px",fontWeight:500,color:"#1a9b7e",backgroundColor:"#e8faf6",lineHeight:"22px",display:"flex",alignItems:"center",gap:"6px","&:hover":{backgroundColor:"#d4f4ec"}},onClick:p=>{p.stopPropagation(),m(S=>({...S,surfaceHabitableMin:0}))},children:["⥠",l.surfaceHabitableMin," m²",n.jsx(v,{component:"span",sx:{opacity:.7},children:"Ã"})]}),l.surfaceHabitableMax>0&&n.jsxs(v,{sx:{cursor:"pointer",padding:"3px 8px",borderRadius:"4px",fontSize:"14px",fontWeight:500,color:"#1a9b7e",backgroundColor:"#e8faf6",lineHeight:"22px",display:"flex",alignItems:"center",gap:"6px","&:hover":{backgroundColor:"#d4f4ec"}},onClick:p=>{p.stopPropagation(),m(S=>({...S,surfaceHabitableMax:0}))},children:["⤠",l.surfaceHabitableMax," m²",n.jsx(v,{component:"span",sx:{opacity:.7},children:"Ã"})]})]}),A&&n.jsx(v,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"6px",mt:"8px"},children:[{label:"Prix min",unit:"â¬",value:l.prixMin>0?l.prixMin.toString():"",data:Dt.prix.filter(p=>!l.prixMax||parseInt(p,10)<=l.prixMax),onChange:p=>p===""?m(S=>({...S,prixMin:""})):Me(parseInt(p,10),l.prixMax)},{label:"Prix max",unit:"â¬",value:l.prixMax>0?l.prixMax.toString():"",data:Dt.prix.filter(p=>!l.prixMin||parseInt(p,10)>=l.prixMin),onChange:p=>p===""?m(S=>({...S,prixMax:""})):Me(l.prixMin,parseInt(p,10))},{label:"Surface min",unit:"m²",value:l.surfaceHabitableMin>0?l.surfaceHabitableMin.toString():"",data:Dt.surface_habitable.filter(p=>!l.surfaceHabitableMax||parseInt(p,10)<=l.surfaceHabitableMax),onChange:p=>p===""?m(S=>({...S,surfaceHabitableMin:""})):ke(parseInt(p,10),l.surfaceHabitableMax)},{label:"Surface max",unit:"m²",value:l.surfaceHabitableMax>0?l.surfaceHabitableMax.toString():"",data:Dt.surface_habitable.filter(p=>!l.surfaceHabitableMin||parseInt(p,10)>=l.surfaceHabitableMin),onChange:p=>p===""?m(S=>({...S,surfaceHabitableMax:""})):ke(l.surfaceHabitableMin,parseInt(p,10))}].map(p=>n.jsxs(Vn,{size:"small",displayEmpty:!0,value:p.value,onChange:S=>p.onChange(S.target.value),sx:{fontSize:"11px","& .MuiOutlinedInput-notchedOutline":{borderColor:"#d8dde2",borderWidth:"1.5px",borderRadius:"6px"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#2EC4A0"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#2EC4A0"},"& .MuiSelect-select":{padding:"6px 8px",fontSize:"11px",color:p.value?"#1a2028":"#6b7480"}},children:[n.jsx(Tt,{value:"",sx:{fontSize:"11px",color:"#6b7480"},children:p.label}),p.data.map(S=>n.jsxs(Tt,{value:S,sx:{fontSize:"12px"},children:[parseInt(S,10).toLocaleString("fr-FR")," ",p.unit]},S))]},p.label))})]}),n.jsxs(v,{className:"sidebar-filter-group",children:[n.jsxs(v,{className:"sidebar-section-label",onClick:()=>Q(!J),children:[n.jsx(v,{component:"span",children:"Nombre de pièces"}),J?n.jsx(je,{fontSize:"small"}):n.jsx(Ce,{fontSize:"small"})]}),!J&&l.nbPieces.length>0&&n.jsx(v,{sx:{display:"flex",flexWrap:"wrap",gap:"4px",mt:"6px"},children:l.nbPieces.map(p=>n.jsxs(v,{sx:{cursor:"pointer",padding:"3px 8px",borderRadius:"4px",fontSize:"14px",fontWeight:500,color:"#1a9b7e",backgroundColor:"#e8faf6",lineHeight:"22px",display:"flex",alignItems:"center",gap:"6px","&:hover":{backgroundColor:"#d4f4ec"}},onClick:S=>{S.stopPropagation(),m(_=>({..._,nbPieces:_.nbPieces.filter(V=>V!==p)}))},children:[p," pièce",p!=="1"?"s":"",n.jsx(v,{component:"span",sx:{opacity:.7},children:"Ã"})]},p))}),J&&n.jsx(v,{sx:{mt:"8px"},children:n.jsx(Os,{selectedValues:l.nbPieces,handleChange:p=>m({...l,nbPieces:p}),values:["1","2","3","4","5+"],small:!0})})]}),n.jsxs(v,{className:"sidebar-filter-group",children:[n.jsxs(v,{className:"sidebar-section-label",onClick:()=>W(!le),children:[n.jsx(v,{component:"span",children:"Mot clé"}),le?n.jsx(je,{fontSize:"small"}):n.jsx(Ce,{fontSize:"small"})]}),!le&&l.selectedSearch&&n.jsx(v,{sx:{display:"flex",flexWrap:"wrap",gap:"4px",mt:"6px"},children:n.jsxs(v,{sx:{cursor:"pointer",padding:"3px 8px",borderRadius:"4px",fontSize:"14px",fontWeight:500,color:"#1a9b7e",backgroundColor:"#e8faf6",lineHeight:"22px",display:"flex",alignItems:"center",gap:"6px","&:hover":{backgroundColor:"#d4f4ec"}},onClick:p=>{p.stopPropagation(),Ze("")},children:[l.selectedSearch,n.jsx(v,{component:"span",sx:{opacity:.7},children:"Ã"})]})}),le&&n.jsx(bs,{border:!1,hideTitle:!0,selectedSearch:l.selectedSearch,updateSearch:p=>Ze(p)})]}),n.jsxs(v,{className:"sidebar-filter-group",children:[n.jsxs(v,{className:"sidebar-section-label",onClick:()=>ae(!X),children:[n.jsx(v,{component:"span",children:"Autres critères"}),X?n.jsx(je,{fontSize:"small"}):n.jsx(Ce,{fontSize:"small"})]}),!X&&l.selectedOtherCriterias.length>0&&n.jsx(v,{sx:{display:"flex",flexWrap:"wrap",gap:"4px",mt:"6px"},children:l.selectedOtherCriterias.map(p=>{const S=Rn.find(_=>_.code===p);return S?n.jsxs(v,{sx:{cursor:"pointer",padding:"3px 8px",borderRadius:"4px",fontSize:"14px",fontWeight:500,color:"#1a9b7e",backgroundColor:"#e8faf6",lineHeight:"22px",display:"flex",alignItems:"center",gap:"6px","&:hover":{backgroundColor:"#d4f4ec"}},onClick:_=>{_.stopPropagation(),xe(p)},children:[S.label,n.jsx(v,{component:"span",sx:{opacity:.7},children:"Ã"})]},p):null})}),X&&n.jsx(nt,{titre:"",data:Rn,selectedData:l.selectedOtherCriterias,updateData:p=>xe(p),noViewMore:!0,highlightMode:!0})]}),r&&n.jsx(v,{className:"save-search-wrapper",children:n.jsxs(v,{component:"button",className:`btn-save-search${Z?" exit":Nn?" already":""}`,onClick:Z?Nt:Nn?void 0:mt,children:[n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,width:13,height:13,children:Z?n.jsx("path",{d:"M18 6L6 18M6 6l12 12",strokeLinecap:"round"}):n.jsx("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})}),n.jsx(v,{component:"span",children:Z?"Sortir de cette recherche":Nn?"â Déjà sauvegardée":"Sauvegarder cette recherche"})]})})]})," "]}),!i&&!t.sidebarMode&&n.jsxs(v,{className:"map-dom",children:[n.jsx(v,{className:"titre-filtre",children:"Région"}),n.jsx(v,{className:"liste",children:Object.values(ie).filter(p=>![ie.nouvelleCaledonie,ie.polynesie].includes(p)).map(p=>n.jsxs(v,{className:`dom ${l.selectedRegions.includes(Y[p])?"selected":""}`,onClick:()=>Ge(Y[p]),children:[Lt[p],n.jsx(v,{className:"titre",children:Kt[p]}),G[Y[p]]!==void 0&&n.jsx(v,{component:"span",sx:l.selectedRegions.includes(Y[p])?{fontSize:"11px",color:"#1a9b7e",background:"#c0ede3",padding:"2px 7px",borderRadius:"10px",display:"block",textAlign:"center",mt:"2px"}:{fontSize:"11px",color:"#6b7480",background:"#f2f4f3",padding:"2px 7px",borderRadius:"10px",display:"block",textAlign:"center",mt:"2px"}
7,children:G[Y[p]].toLocaleString("fr-FR")})]},"map-dom-"+p))})]}),!t.sidebarMode&&!i&&n.jsxs(v,{className:"autres-filtres",children:[n.jsxs(v,{className:"col-filtre",children:[!N&&n.jsxs(v,{sx:{color:"#6b7480",display:"flex",alignItems:"center",cursor:"pointer",justifyContent:"space-between",padding:"8px 0",fontSize:"11px",fontWeight:700,letterSpacing:"0.8px",textTransform:"uppercase"},onClick:()=>j(!0),children:[n.jsxs(v,{children:["Transaction -"," ",n.jsx(v,{component:"span",sx:{color:"#2EC4A0",textTransform:"none",fontSize:"12px"},children:l.selectedCategories.map(p=>{var S;return(S=hn.find(_=>_.code===p))==null?void 0:S.label}).join(", ")})]}),n.jsx(Ce,{fontSize:"small"})]}),N&&n.jsxs(n.Fragment,{children:[t.sidebarMode&&n.jsxs(v,{sx:{color:"#6b7480",display:"flex",alignItems:"center",cursor:"pointer",justifyContent:"space-between",padding:"8px 0",fontSize:"11px",fontWeight:700,letterSpacing:"0.8px",textTransform:"uppercase"},onClick:()=>j(!1),children:[n.jsx(v,{children:"Transaction"}),n.jsx(je,{fontSize:"small"})]}),n.jsx(nt,{titre:t.sidebarMode?"":"Catégorie",data:hn,selectedData:l.selectedCategories,updateData:p=>ze(+p),className:"border-bottom",noViewMore:t.sidebarMode,buttonMode:t.sidebarMode,highlightMode:!t.sidebarMode})]}),t.sidebarMode&&n.jsx(v,{sx:{height:"1px",background:"#e4e8eb",mb:"8px"}}),!B&&n.jsxs(v,{sx:{color:"#6b7480",display:"flex",alignItems:"center",cursor:"pointer",justifyContent:"space-between",padding:"8px 0",fontSize:"11px",fontWeight:700,letterSpacing:"0.8px",textTransform:"uppercase"},onClick:()=>F(!0),children:[n.jsxs(v,{children:["Type de bien -"," ",n.jsx(v,{component:"span",sx:{color:"#2EC4A0",textTransform:"none",fontSize:"12px"},children:l.selectedTypes.map(p=>{var S;return(S=st.find(_=>_.code===p))==null?void 0:S.label}).join(", ")})]}),n.jsx(Ce,{fontSize:"small"})]}),B&&n.jsxs(n.Fragment,{children:[t.sidebarMode&&n.jsxs(v,{sx:{color:"#6b7480",display:"flex",alignItems:"center",cursor:"pointer",justifyContent:"space-between",padding:"8px 0",fontSize:"11px",fontWeight:700,letterSpacing:"0.8px",textTransform:"uppercase"},onClick:()=>F(!1),children:[n.jsx(v,{children:"Type de bien"}),n.jsx(je,{fontSize:"small"})]}),n.jsx(nt,{titre:t.sidebarMode?"":"Type de bien",data:st,viewMoreLimit:t.
7sidebarMode?void 0:6,selectedData:l.selectedTypes,updateData:p=>w(+p),noViewMore:t.sidebarMode,highlightMode:!t.sidebarMode,checkboxColor:t.sidebarMode?"#2EC4A0":void 0})]})]}),n.jsx(v,{className:"separator",children:" "}),n.jsxs(v,{className:"col-filtre",children:[l.selectedRegions.length>0&&n.jsxs(n.Fragment,{children:[t.sidebarMode&&n.jsx(v,{sx:{height:"1px",background:"#e4e8eb",mb:"8px"}}),t.sidebarMode&&!H&&n.jsxs(v,{sx:{color:"#6b7480",display:"flex",alignItems:"center",cursor:"pointer",justifyContent:"space-between",padding:"8px 0",fontSize:"11px",fontWeight:700,letterSpacing:"0.8px",textTransform:"uppercase"},onClick:()=>T(!0),children:[n.jsx(v,{children:"Ville"}),n.jsx(Ce,{fontSize:"small"})]}),(!t.sidebarMode||H)&&n.jsxs(n.Fragment,{children:[t.sidebarMode&&n.jsxs(v,{sx:{color:"#6b7480",display:"flex",alignItems:"center",cursor:"pointer",justifyContent:"space-between",padding:"8px 0",fontSize:"11px",fontWeight:700,letterSpacing:"0.8px",textTransform:"uppercase"},onClick:()=>T(!1),children:[n.jsx(v,{children:"Ville"}),n.jsx(je,{fontSize:"small"})]}),n.jsx(nt,{titre:t.sidebarMode?"":"Commune",data:It,selectedData:l.selectedCities,updateData:p=>q(+p),noViewMore:t.sidebarMode,highlightMode:!0,counts:Le})]})]}),t.sidebarMode&&n.jsx(v,{sx:{height:"1px",background:"#e4e8eb",mb:"8px"}}),t.sidebarMode&&!A&&n.jsxs(v,{sx:{color:"#6b7480",display:"flex",alignItems:"center",cursor:"pointer",justifyContent:"space-between",padding:"8px 0",fontSize:"11px",fontWeight:700,letterSpacing:"0.8px",textTransform:"uppercase"},onClick:()=>te(!0),children:[n.jsx(v,{children:"Budget / Surface"}),n.jsx(Ce,{fontSize:"small"})]}),(!t.sidebarMode||A)&&n.jsxs(n.Fragment,{children:[t.sidebarMode&&n.jsxs(v,{sx:{color:"#6b7480",display:"flex",alignItems:"center",cursor:"pointer",justifyContent:"space-between",padding:"8px 0",fontSize:"11px",fontWeight:700,letterSpacing:"0.8px",textTransform:"uppercase"},onClick:()=>te(!1),children:[n.jsx(v,{children:"Budget / Surface"}),n.jsx(je,{fontSize:"small"})]}),!t.sidebarMode&&n.jsx(v,{className:"titre-filtre",children:"Prix - Surface"}),n.jsxs(v,{className:"liste-ranges",children:[n.jsx(Es,{label:qn.prix,range:{min:l.prixMin.toString(),max:l.prixMax.toString()},handleChangeMax:p=>Me(l.prixMin,parseInt(p)),handleChangeMin:p=>Me(parseInt(p),l.prixMax),data:Dt.prix,id:"prix-range"}),n.jsx(Es,{label:qn.surface_habitable,range:{min:l.surfaceHabitableMin.toString(),max:l.surfaceHabitableMax.toString()},handleChangeMax:p=>ke(l.surfaceHabitableMin,parseInt(p)),handleChangeMin:p=>ke(parseInt(p),l.surfaceHabitableMax),data:Dt.surface_habitable,id:"surface-range"})]})]}),t.sidebarMode&&n.jsx(v,{sx:{height:"1px",background:"#e4e8eb",mb:"8px"}}),t.sidebarMode&&!J&&n.jsxs(v,{sx:{color:"#6b7480",display:"flex",alignItems:"center",cursor:"pointer",justifyContent:"space-between",padding:"8px 0",fontSize:"11px",fontWeight:700,letterSpacing:"0.8px",textTransform:"uppercase"},onClick:()=>Q(!0),children:[n.jsx(v,{children:"Nombre de pièces"}),n.jsx(Ce,{fontSize:"small"})]}),(!t.sidebarMode||J)&&n.jsxs(n.Fragment,{children:[t.sidebarMode&&n.jsxs(v,{sx:{color:"#6b7480",display:"flex",alignItems:"center",cursor:"pointer",justifyContent:"space-between",padding:"8px 0",fontSize:"11px",fontWeight:700,letterSpacing:"0.8px",textTransform:"uppercase"},onClick:()=>Q(!1),children:[n.jsx(v,{children:"Nombre de pièces"}),n.jsx(je,{fontSize:"small"})]}),!t.sidebarMode&&n.jsx(v,{className:"titre-filtre",children:"Nombre de pièces"}),n.jsx(v,{className:"liste-ranges",children:n.jsx(Os,{selectedValues:l.nbPieces,handleChange:p=>m({...l,nbPieces:p}),values:["1","2","3","4","5+"]})})]}),!1,t.sidebarMode&&n.jsx(v,{sx:{height:"1px",background:"#e4e8eb",mb:"8px"}}),t.sidebarMode&&!le&&n.jsxs(v,{sx:{color:"#6b7480",display:"flex",alignItems:"center",cursor:"pointer",justifyContent:"space-between",padding:"8px 0",fontSize:"11px",fontWeight:700,letterSpacing:"0.8px",textTransform:"uppercase"},onClick:()=>W(!0),children:[n.jsx(v,{children:"Mot clé"}),n.jsx(Ce,{fontSize:"small"})]}),(!t.sidebarMode||le)&&n.jsxs(n.Fragment,{children:[t.sidebarMode&&n.jsxs(v,{sx:{color:"#6b7480",display:"flex",alignItems:"center",cursor:"pointer",justifyContent:"space-between",padding:"8px 0",fontSize:"11px",fontWeight:700,letterSpacing:"0.8px",textTransform:"uppercase"},onClick:()=>W(!1),children:[n.jsx(v,{children:"Mot clé"}),n.jsx(je,{fontSize:"small"})]}),n.jsx(bs,{border:!t.sidebarMode,selectedSearch:l.selectedSearch,updateSearch:p=>Ze(p)})]})]}),n.jsx(v,{className:"separator",children:" "}),n.jsxs(v,{className:"col-filtre",children:[t.sidebarMode&&n.jsx(v,{sx:{height:"1px",background:"#e4e8eb",mb:"8px"}}),t.sidebarMode&&!X&&n.jsxs(v,{sx:{color:"#6b7480",display:"flex",alignItems:"center",cursor:"pointer",justifyContent:"space-between",padding:"8px 0",fontSize:"11px",fontWeight:700,letterSpacing:"0.8px",textTransform:"uppercase"},onClick:()=>ae(!0),children:[n.jsx(v,{children:"Autres critères"}),n.jsx(Ce,{fontSize:"small"})]}),(!t.sidebarMode||X)&&n.jsxs(n.Fragment,{children:[t.sidebarMode&&n.jsxs(v,{sx:{color:"#6b7480",display:"flex",alignItems:"center",cursor:"pointer",justifyContent:"space-between",padding:"8px 0",fontSize:"11px",fontWeight:700,letterSpacing:"0.8px",textTransform:"uppercase"},onClick:()=>ae(!1),children:[n.jsx(v,{children:"Autres critères"}),n.jsx(je,{fontSize:"small"})]}),n.jsx(nt,{titre:t.sidebarMode?"":"Autres critères",data:Rn,selectedData:l.selectedOtherCriterias,updateData:p=>xe(p),className:l.selectedRegions.length>
70?"border-bottom":"",noViewMore:t.sidebarMode,highlightMode:!0})]})]})]}),!t.sidebarMode&&n.jsxs(v,{className:"boutons-container",children:[n.jsxs(v,{className:"boutons",children:[!t.sidebarMode&&n.jsx(Pe,{variant:"contained",color:"primary",className:"chercher",onClick:()=>tt(),children:"Rechercher"}),be&&n.jsx(Cs,{value:Ie,onChange:p=>at(p.target.value),id:"alertEmail",type:"email",margin:"normal",InputLabelProps:{shrink:!0},size:"small",InputProps:{sx:{borderRadius:20}},name:"alertEmail",autoComplete:"alertEmail",placeholder:"Votre email",sx:{margin:0}}),n.jsx(Pe,{variant:"text",color:"primary",className:"alerte",startIcon:n.jsx(oo,{}),onClick:p=>jt(p),children:"Créer une alerte"}),me&&!We&&n.jsx(Ms,{className:"alert-message",severity:"error",icon:!1,children:me}),We&&n.jsx(Ms,{className:"alert-message",severity:"success",icon:!1,children:"Alerte créée avec succès"})]}),h&&n.jsx(v,{className:"nombre",children:n.jsx(Ss,{color:"primary",size:"20px",className:"loading"})}),!h&&P&&n.jsxs(v,{className:"nombre",children:[b>0&&`${b} offre(s) trouvée(s)`,b===0&&"Aucune offre trouvée"]})]})]})]}),!t.sidebarMode&&!t.hideMobileFab&&n.jsxs(n.Fragment,{children:[i&&f&&n.jsx(v,{className:"mobile-filter-backdrop",onClick:()=>Te()}),f&&n.jsx(v,{className:"boutons-mobile",children:n.jsxs(Pe,{variant:"contained",color:"primary",className:"chercher",onClick:()=>tt(),children:[n.jsx(v,{component:"span",sx:{fontWeight:700,mr:1},children:"Voir les résultats"}),h&&n.jsx(Ss,{size:"14px",sx:{ml:1,color:"#fff"}}),!h&&P&&n.jsx(v,{component:"span",sx:{fontWeight:400},children:` - ${b.toLocaleString("fr-FR")} annonce${b>1?"s":""}`})]})}),n.jsxs(v,{className:`filter-fab${f?" active":""}`,onClick:()=>Te(),children:[n.jsx(ao,{}),"Filtres",fs>0&&n.jsx(v,{className:"filter-fab-badge",children:fs})]})]})]})}),Uo={appartement:{label:"Appartement",svg:`<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.2"> 8 <rect x="2" y="3" width="20" height="18" rx="1"/> 9 <path d="M2 9h20"/><path d="M9 21V9"/> 10 <path d="M5 6h.01M5 12h.01M5 16h.01M12 12h.01M12 16h.01M17 12h.01M17 16h.01"/> 11 </svg>`},maison:{label:"Maison / Villa",svg:`<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.2"> 12 <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/> 13 <polyline points="9,22 9,12 15,12 15,22"/> 14 </svg>`},terrain:{label:"Terrain",svg:`<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.2"> 15 <path d="M2 20h20"/> 16 <path d="M4 20V10l4-4 4 3 4-6 4 5v12"/> 17 <path d="M8 20v-6h3v6"/> 18 </svg>`},local:{label:"Local commercial",svg:`<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.2"> 19 <path d="M2 7l1-4h18l1 4"/><path d="M2 7v13h20V7"/> 20 <path d="M2 7h20"/><path d="M12 7v13"/> 21 <path d="M5 11h3v4H5z"/><path d="M16 11h3v4h-3z"/> 22 </svg>`},immeuble:{label:"Immeuble",svg:`<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.2"> 23 <rect x="4" y="2" width="16" height="20" rx="1"/> 24 <path d="M4 10h16"/><path d="M4 16h16"/><path d="M9 2v20"/> 25 <path d="M6 6h.01M6 13h.01M6 19h.01M12 6h.01M12 13h.01M12 19h.01M17 6h.01M17 13h.01M17 19h.01"/> 26 </svg>`},default:{label:"",svg:`<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.2"> 27 <rect x="3" y="3" width="18" height="18" rx="2"/> 28 <path d="M3 9h18"/><path d="M9 21V9"/> 29 </svg>`}};function Bo(t){switch(t){case R.APPARTEMENT:return"appartement";case R.MAISON:case R.BUNGALOW:case R.CHAMBRE_HOTES:case R.GITE_RURAL:return"maison";case R.TERRAIN:return"terrain";case R.LOCAL_COMMERCIAL:case R.BUREAUX:case R.FONDS_COMMERCE:case R.DEPOT:case R.PARKING:return"local";case R.IMMEUBLE:return"immeuble";default:return"default"}}const rr=({estateType:t})=>{const e=Bo(t),{label:s,svg:i}=Uo[e];return n.jsxs("div",{className:`listing-placeholder listing-placeholder--${e}`,children:[n.jsx("div",{className:"ph-icon",dangerouslySetInnerHTML:{__html:i}}),s&&n.jsx("div",{className:"ph-label",children:s})]})};var ns={},zo=rt;Object.defineProperty(ns,"__esModule",{value:!0});var or=ns.default=void 0,Fo=zo(ot()),$o=n;or=ns.default=(0,Fo.default)((0,$o.jsx)("path",{d:"m12 5.69 5 4.5V18h-2v-6H9v6H7v-7.81zM12 3 2 12h3v8h6v-6h2v6h6v-8h3z"}),"HomeOutlined");var ss={},Ho=rt;Object.defineProperty(ss,"__esModule",{value:!0});
29var ar=ss.default=void 0,Vo=Ho(ot()),Wo=n;ar=ss.default=(0,Vo.default)((0,Wo.jsx)("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2m2 10H3v4c0 1.1.9 2 2 2h4v-2H5zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2"}),"CropFree");const Go=[{code:1,label:"Exclusivité"},{code:2,label:"Nouveau"},{code:3,label:"Coup de coeur"},{code:4,label:"Urgent"}],qo={[R.APPARTEMENT]:"Appartement",[R.MAISON]:"Maison",[R.TERRAIN]:"Terrain",[R.LOCAL_COMMERCIAL]:"Local commercial",[R.BUREAUX]:"Bureaux",[R.FONDS_COMMERCE]:"Fonds de commerce",[R.IMMEUBLE]:"Immeuble",[R.DEPOT]:"Dépôt",[R.PARKING]:"Parking",[R.DIVERS]:"Bien immobilier",[R.BUNGALOW]:"Bungalow",[R.CHAMBRE_HOTES]:"Chambre d'hôtes",[R.GITE_RURAL]:"Gîte rural"},Zo={[R.APPARTEMENT]:{plural:"appartements",elision:!0,feminine:!1},[R.MAISON]:{plural:"maisons",elision:!1,feminine:!0},[R.TERRAIN]:{plural:"terrains",elision:!1,feminine:!1},[R.LOCAL_COMMERCIAL]:{plural:"locaux commerciaux",elision:!1,feminine:!1},[R.BUREAUX]:{plural:"bureaux",elision:!1,feminine:!1},[R.FONDS_COMMERCE]:{plural:"fonds de commerce",elision:!1,feminine:!1},[R.IMMEUBLE]:{plural:"immeubles",elision:!0,feminine:!1},[R.DEPOT]:{plural:"dépôts",elision:!1,feminine:!1},[R.PARKING]:{plural:"parkings",elision:!1,feminine:!1},[R.DIVERS]:{plural:"biens immobiliers",elision:!1,feminine:!1},[R.BUNGALOW]:{plural:"bungalows",elision:!1,feminine:!1},[R.CHAMBRE_HOTES]:{plural:"chambres d'hôtes",elision:!1,feminine:!0},[R.GITE_RURAL]:{plural:"gîtes ruraux",elision:!1,feminine:!1}},Ko={[Oe.vente]:"à vendre",[Oe.location]:"à louer",[Oe.neuf]:"neuf"},lr=(t,e,s)=>{const i=t?Ln[t]:void 0,r=s?qo[Number(s)]:void 0,a=e?Ko[e]:void 0;let c;return r&&a&&i?c=`${r} ${a} ${i}`:r&&i?c=`${r} ${i}`:a&&i?c=`Annonces immobilières ${a} ${i}`:i?c=`Annonces immobilières ${i}`:c="Annonces immobilières Outre-mer",`${c} | Domimmo`},cr=(t,e,s)=>{const i=t?Ln[t]:void 0,r=s?Number(s):void 0,a=r!==void 0?Zo[r]:void 0,c=i||"en Outre-mer";if(e===Oe.vente&&a)return`${a.plural.charAt(0).toUpperCase()+a.plural.slice(1)} à vendre ${c} : annonces vérifiées, photos, prix. Trouvez votre bien avec Domimmo !`;if(e===Oe.location&&a)return`Locations ${a.elision?"d'":"de "}${a.plural} ${c} : annonces à jour, photos et loyers. Réservez une visite avec Domimmo !`;if(e===Oe.neuf&&a){const d=a.plural.charAt(0).toUpperCase()+a.plural.slice(1),u=a.feminine?"neuves":"neufs";return`${d} ${u} ${c} : programmes, prix promoteurs, plans. Trouvez votre bien neuf avec Domimmo !`}return e===Oe.neuf?`Programmes neufs ${c} : appartements et maisons neuves, prix promoteurs. Investissez avec Domimmo !`:e===Oe.vente?`Vente immobilière ${c} : annonces vérifiées, photos, prix. Trouvez votre bien avec Domimmo !`:e===Oe.location?`Locations immobilières ${c} : annonces à jour, photos et loyers. Réservez une visite avec Domimmo !`:i?`Annonces immobilières ${c} : vente, location, neuf. Trouvez votre bien avec Domimmo !`:"Annonces immobilières en Outre-mer : vente, location, neuf. Trouvez votre bien avec Domimmo !"},dr=t=>{if(t.surface_habitable&&t.surface_habitable>0&&t.id_di_ad_cat===we.VENTE)return Math.round(t.price/t.surface_habitable)},Jo=t=>{var i;const e=[];e.push({icon:n.jsx(sr,{}),label:`${Qn[t.location]}${t.city?`, ${t.city}`:""}`}),e.push({icon:n.jsx(or,{}),label:(i=st.find(r=>r.code===t.id_di_ad_type))==null?void 0:i.label});const s=[];return t.id_di_ad_type===R.TERRAIN?t.surface_terrain&&t.surface_terrain>0&&s.push(`${new Intl.NumberFormat("fr-FR").format(t.surface_terrain)} m2`):(t.pieces&&t.pieces>0&&s.push(`${t.pieces} pièces`),t.chambres&&t.chambres>0&&s.push(`${t.chambres} chambres`),t.surface_habitable&&t.surface_habitable>0&&s.push(`${t.surface_habitable} m2`)),s.length>0&&e.push({icon:n.jsx(ar,{}),label:s.join(" ⢠")}),e},Qt=t=>{var c;const{offer:e}=t,s=Array.isArray(e.photos)&&e.photos.some(d=>d&&!d.endsWith("/")),i=(e.imageSrc||"").replace("/logo/mini/","/logo/"),r=Jo(e),a=dr(e);return n.jsx(K,{className:`immo-card ${t.isMain?"is-main":""}`,to:it(se.offer,{id:e.id,region:kt[e.location]}),style:{marginBottom:"20px",textDecoration:"none",color:"inherit",marginRight:"10px"},children:n.jsx(v,{children:n.jsxs(ce,{container:!0,alignItems:"stretch",justifyContent:"flex-start",flexDirection:{xs:"column",md:"row"},height:{xs:"100%",md:"auto"},children:[n.jsxs(v,{className:"immo-image-container",children:[e.marker&&!t.isMain&&n.jsx(v,{className:"immo-marker",children:(c=Go.find(d=>d.code===e.marker))==null?void 0:c.label}),n.jsx(ce,{item:!0,className:"immo-image",children:s?n.jsx("img",{onError:d=>d.currentTarget.src="/domimmoassets/images/nophoto.png",src:i,alt:e.imageAlt}):n.jsx(rr,{estateType:e.id_di_ad_type})})]}),n.jsxs(ce,{item:!0,className:"immo-contenu",flexGrow:1,children:[n.jsxs(v,{sx:{display:"flex",alignItems:"center",gap:"8px"},children:[n.jsx(I,{className:"price",children:new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:0,maximumFractionDigits:0}).format(e.price)}),a&&n.jsxs(I,{className:"price-sqm",children:[new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:0,maximumFractionDigits:0}).format(a),"/m²"]}),n.jsxs(v,{className:"favorite",children:[e.companyLogoSrc&&n.jsx("img",{className:"company-logo",src:e.companyLogoSrc,alt:e.company||""}),t.updateFavorite!==void 0&&n.jsx(n.Fragment,{children:t.isFavori?n.jsx(Qi,{htmlColor:"#ff0000",onClick:d=>{d.stopPropagation(),t.updateFavorite!==void 0&&t.updateFavorite()}}):n.jsx(Lo,{onClick:d=>{d.stopPropagation(),t.updateFavorite!==void 0&&t.updateFavorite()}
29,htmlColor:t.isMain?"#ffffff":"#0f1a35"})})]})]}),n.jsx(I,{variant:"h3",children:n.jsx(v,{style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},children:e.title})}),n.jsx(v,{className:"immo-details",children:r&&r.length>0&&n.jsx(v,{className:"immo-chips-container",children:n.jsx(v,{className:"immo-chips",children:r.map((d,u)=>n.jsx(yo,{size:"small",label:d.label,icon:d.icon},u))})})})]})]})})})},dn=t=>{const e=Wt();return e.find(s=>s.id===t.id)?e:(localStorage.setItem("favorites-immos",JSON.stringify([...e,t])),[...e,t])},un=t=>{const e=Wt();return localStorage.setItem("favorites-immos",JSON.stringify(e==null?void 0:e.filter(s=>s.id!==t.id))),e==null?void 0:e.filter(s=>s.id!==t.id)},Wt=()=>{const t=localStorage.getItem("favorites-immos");return t?JSON.parse(t):[]},_e=(t,e)=>!!t.find(s=>s.id===e);function Gt(){const{width:t}=es(),e=_n(),[s,i]=o.useState(!1),r=o.useRef(null);return o.useEffect(()=>{function a(c){r.current&&!r.current.contains(c.target)&&i(!1)}return document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}},[r]),n.jsxs(ce,{className:"header-right-container",children:[t>=e.breakpoints.values.sm&&n.jsx(Pe,{component:K,to:"https://www.keldom.com/login/",variant:"text",startIcon:n.jsx(ys,{}),className:"mon-compte",children:t>=e.breakpoints.values.md&&n.jsx(I,{children:"Mon compte"})}),t>=e.breakpoints.values.md&&n.jsx(Pe,{component:K,to:"https://www.keldom.com/domimmo/par/an/post/",variant:"contained",className:"publier-annonce",startIcon:n.jsx(co,{}),children:"Publier une annonce"}),n.jsx(pn,{color:"secondary",onClick:()=>{s||i(!0)},children:n.jsx(uo,{fontSize:"large"})}),n.jsx(v,{ref:r,className:`menu-action ${s?"shown":"hidden"}`,children:n.jsxs(v,{className:"wrapper",children:[n.jsx(v,{className:"fermer",children:n.jsx(Pe,{variant:"text",onClick:()=>i(!1),children:n.jsx(po,{})})}),n.jsx(v,{className:"boutons",children:n.jsx(Pe,{component:K,to:"https://www.keldom.com/login/",variant:"text",className:"mon-compte",startIcon:n.jsx(ys,{}),onClick:()=>i(!1),children:"Mon compte"})}),n.jsx(v,{className:"a-propos",children:n.jsx(v,{className:"titre-wrapper",children:n.jsx(v,{className:"titre",children:n.jsx(Pe,{onClick:()=>i(!1),className:"titre",to:"https://www.keldom.com/about/",component:K,variant:"text",children:"A propos"})})})}),n.jsxs(v,{className:"contact-boutons",children:[n.jsx(Pe,{component:K,to:"/favoris",variant:"text",className:"favoris",startIcon:n.jsx(n.Fragment,{children:n.jsx(Qi,{})}),children:"Mes favoris"}),n.jsxs(v,{className:"rs",children:[n.jsx(pn,{component:K,to:"https://www.facebook.com/domimmo",target:"_blank",color:"secondary",children:n.jsx(er,{})}),n.jsx(pn,{component:K,to:"https://www.linkedin.com/showcase/domimmo/",target:"_blank",color:"secondary",children:n.jsx(tr,{})}),n.jsx(pn,{component:K,to:"https://www.instagram.com/domimmo_keldom/",target:"_blank",color:"secondary",children:n.jsx(nr,{})})]})]})]})})]})}function gn(t,e){const s=["vente","location","neuf"].find(i=>e==null?void 0:e.includes(`/${i}`));return s?se.regionTypeListing.replace(":region",t).replace(":type",s):se.regionListing.replace(":region",t)}function Yo(t){const{type:e}=Xn(),[s,i]=o.useState(e);o.useEffect(()=>{i(e)},[e]);const r=cn(),[a,c]=o.useState([]),d=h=>{const L=_e(a,h.id)?un(h):dn(h);c(L)},u=o.useRef(null),g=o.useRef(null),l=_n(),m=Wn(l.breakpoints.up("md")),f=Wn(l.breakpoints.down("md"));let x=1;return o.useEffect(()=>(document.body.classList.add("body-beige","footer-orange"),(async()=>{try{c(Wt())}catch(h){console.error("ERROR get data ",h)}})(),()=>{document.body.classList.remove("body-beige","footer-orange")}),[s]),n.jsxs(n.Fragment,{children:[n.jsxs(Pt,{children:[n.jsx("title",{children:lr()}),n.jsx("meta",{name:"description",content:cr()})]}),n.jsx($t,{HeaderLinksLeft:n.jsx(Ht,{site:Vt.DOMIMMO}),CenterActions:n.jsx(rn,{ref:g,refMenu:u,defaultType:s}),HeaderRightActions:n.jsx(Gt,{})}),n.jsxs("main",{children:[n.jsx(v,{className:"home-header-immo",children:n.jsx(vt,{maxWidth:!1,className:"logo-container",children:n.jsxs(ce,{container:!0,flexDirection:"column",justifyContent:{xs:"center",md:"flex-start"},alignItems:{xs:"center",md:"flex-start"},children:[n.jsxs(ce,{container:!0,item:!0,direction:"row",className:"dom-immo-links",alignItems:{xs:"center",md:"flex-start"},justifyContent:{xs:"center",md:"flex-start"},gap:"16px",children:[n.jsx(ce,{item:!0,xs:12,children:n.jsxs(I,{variant:"h2",children:["dom",n.jsx("br",{}),"immo"]})}),Object.values(Oe).map((h,L)=>n.jsx(Pe,{component:K,to:h===s?it(se.home):it(se.typeHome,{type:h}),variant:"contained",color:"primary",sx:s===h?{backgroundColor:b=>b.palette.primary.dark,"&:hover":{backgroundColor:b=>b.palette.primary.main}}:void 0,children:ts[h]}
29,L))]}),n.jsx(ce,{item:!0,container:!0,justifyContent:"center",alignItems:{xs:"center"},children:n.jsx(ce,{item:!0,flex:1,container:!0,flexDirection:"column",justifyContent:"center",alignItems:{xs:"center",md:"flex-start"},children:n.jsx(v,{className:"slogan",children:n.jsxs("span",{className:"gros",children:["L'immobilier",n.jsx("br",{}),"dans les DOM"]})})})})]})})}),n.jsx("section",{children:n.jsx(Jt,{isMain:!0,withRightBlock:!1,title:"Les annonces immobilières à la Une",cards:[...r.main.map((h,L)=>n.jsx(Qt,{offer:h,isMain:!0,isFavori:_e(a,h.id),updateFavorite:()=>d(h)},"main-offer-"+L))]})}),n.jsxs("section",{children:[n.jsx(Jt,{isMain:!1,withRightBlock:!1,title:"L' immobilier en Guadeloupe",buttonLink:gn(ie.guadeloupe,location.pathname),buttonTitle:"Toute la Guadeloupe",bannerAds:m&&n.jsx(Ye,{id:`domimmo-banner-${x++}`,width:"728px",height:"90px",className:`domimmo-banner domimmo-banner-${Y.guadeloupe}`}),cards:r.guadeloupe.map((h,L)=>n.jsx(Qt,{offer:h,isFavori:_e(a,h.id),updateFavorite:()=>d(h)},"main-offer-"+L))}),f&&n.jsx(Ye,{id:`domimmo-mpu-${x++}`,targetsMobile:!0,className:`domimmo-mpu domimmo-mpu-${Y.guadeloupe}`})]}),n.jsx(v,{className:"fond-defaut",children:n.jsxs("section",{children:[n.jsx(Jt,{isMain:!1,withRightBlock:!1,title:"L' immobilier en Martinique",buttonLink:gn(ie.martinique,location.pathname),buttonTitle:"Toute la Martinique",bannerAds:m&&n.jsx(Ye,{id:`domimmo-banner-${x++}`,width:"728px",height:"90px",className:`domimmo-banner domimmo-banner-${Y.martinique}`}),cards:r.martinique.map((h,L)=>n.jsx(Qt,{offer:h,isFavori:_e(a,h.id),updateFavorite:()=>d(h)},"main-offer-"+L))}),f&&n.jsx(Ye,{id:`domimmo-mpu-${x++}`,targetsMobile:!0,className:`domimmo-mpu domimmo-mpu-${Y.martinique}`})]})}),n.jsxs("section",{children:[n.jsx(Jt,{isMain:!1,withRightBlock:!1,title:"L' immobilier en Guyane",buttonLink:gn(ie.guyane,location.pathname),buttonTitle:"Toute la Guyane",bannerAds:m&&n.jsx(Ye,{id:`domimmo-banner-${x++}`,width:"728px",height:"90px",className:`domimmo-banner domimmo-banner-${Y.guyane}`}),cards:r.guyane.map((h,L)=>n.jsx(Qt,{offer:h,isFavori:_e(a,h.id),updateFavorite:()=>d(h)},"main-offer-"+L))}),f&&n.jsx(Ye,{id:`domimmo-mpu-${x++}`,targetsMobile:!0,className:`domimmo-mpu domimmo-mpu-${Y.guyane}`})]}),n.jsx(v,{className:"fond-defaut",children:n.jsxs("section",{children:[n.jsx(Jt,{isMain:!1,withRightBlock:!1,title:"L' immobilier à la Réunion",buttonLink:gn(ie.reunion,location.pathname),buttonTitle:"Toute la Réunion",bannerAds:m&&n.jsx(Ye,{id:`domimmo-banner-${x++}`,width:"728px",height:"90px",className:`domimmo-banner domimmo-banner-${Y.reunion}`}),cards:r.reunion.map((h,L)=>n.jsx(Qt,{offer:h,isFavori:_e(a,h.id),updateFavorite:()=>d(h)},"main-offer-"+L))}),f&&n.jsx(Ye,{id:`domimmo-mpu-${x++}`,targetsMobile:!0,className:`domimmo-mpu domimmo-mpu-${Y.reunion}`})]})}),n.jsxs(vt,{maxWidth:!1,children:[n.jsx(I,{my:4,variant:"h2",className:"home-carousel-title",children:"L'immobilier dans le reste des DOM"}),n.jsx("nav",{children:n.jsxs(ce,{container:!0,alignItems:"center",justifyContent:"space-evenly",spacing:1,children:[n.jsx(ce,{item:!0,xs:6,md:3,children:n.jsx(v,{className:"home-autres-dom",children:n.jsxs(K,{to:`/${ie.mayotte}${s?"/"+s:""}`,children:[n.jsx("span",{className:"image-dom",children:n.jsx("img",{src:"/domimmoassets/images/mayotte.png",alt:"dom-immo Mayotte"})}),n.jsx(I,{variant:"h3",children:"Mayotte"})]})})}),n.jsx(ce,{item:!0,xs:6,md:3,children:n.jsx(v,{className:"home-autres-dom",children:n.jsxs(K,{to:`/${ie.saintMartin}${s?"/"+s:""}`,children:[n.jsx("span",{className:"image-dom",children:n.jsx("img",{src:"/domimmoassets/images/saint-martin.png",alt:"dom-immo Saint Martin"})}),n.jsx(I,{variant:"h3",children:"Saint Martin"})]})})}),n.jsx(ce,{item:!0,xs:6,md:3,children:n.jsx(v,{className:"home-autres-dom",children:n.jsxs(K,{to:`/${ie.saintBarth}${s?"/"+s:""}`,children:[n.jsx("span",{className:"image-dom",children:n.jsx("img",{src:"/domimmoassets/images/saint-barth.png",alt:"dom-immo Saint Barthélémy"})}),n.jsx(I,{variant:"h3",children:"Saint Barthélémy"})]})})})]})})]}),n.jsx(vt,{maxWidth:!1,className:"trouver-bien",children:n.jsx("section",{className:"infos-supplementaires-pro",children:n.jsx(vt,{disableGutters:!0,maxWidth:"xl",children:n.jsxs(ce,{container:!0,margin:0,spacing:0,maxWidth:"xl",flexDirection:{xs:"column-reverse",md:"row"},justifyContent:{xs:"center",md:"space-between"},alignItems:"center",children:[n.jsxs(ce,{item:!0,flex:1,container:!0,justifyContent:"flex-start",alignItems:"center",children:[n.jsx(ce,{item:!0,children:n.jsxs(I,{variant:"h2",className:"supp-title",children:["Trouver un bien",n.jsx("span",{className:"supp-subtitle",children:"devient simple sur domimmo"})]})}),n.jsxs(ce,{item:!0,children:[n.jsx(I,{className:"supp-contenu",children:"Trouvez facilement le logement qui vous correspond."}),n.jsx(I,{className:"supp-contenu",children:"Découvrez chaque jour de nouvelles annonces adaptées à vos besoins."}),n.jsx(I,{className:"supp-contenu",children:"domimmo vous accompagne à chaque étape de votre recherche immobilière."})]}),n.jsx(ce,{item:!0,container:!0,className:"boutons-gen",alignItems:"center",justifyContent:"space-evenly",children:n.jsx(Pe,{variant:"contained",component:K,color:"primary",to:"/",children:"Lancer une recherche"})})]}),n.jsx(ce,{item:!0,children:n.jsx("img",{className:"supp-image-generique",src:"/domimmoassets/images/trouver-bien.png",alt:"dom-immo trouver un bien"})})]})})})}),n.jsx(vt,{maxWidth:!1,className:"vendre-bien",children:n.jsx("section",{className:"infos-supplementaires-pro bis ",children:n.jsx(vt,{disableGutters:!0,maxWidth:"xl",children:n.jsxs(ce,{container:!0,margin:0,mt:8,maxWidth:"xl",flexDirection:{xs:"column",md:"row"},spacing:0,justifyContent:{xs:"center",md:"space-between"},alignItems:"center",className:"",children:[n.jsx(ce,{item:!0,flex:1,children:n.jsx("img",{className:"supp-image-gauche",src:"/domimmoassets/images/vendre-bien.png",alt:"dom-immo vendre un bien"})}),n.jsxs(ce,{item:!0,flex:1,container:!0,justifyContent:"flex-start",alignItems:"center",children:[n.jsx(ce,{item:!0,children:n.jsxs(I,{variant:"h2",className:"supp-title droite",children:["Vendre un bien",n.jsx("span",{className:"supp-subtitle ",children:"grâce à la visibilité domimmo"})]})}),n.jsxs(ce,{item:!0,children:[n.jsx(I,{className:"supp-contenu droite",children:"Mettez votre bien en avant auprès dâun large public."}),n.jsx(I,{className:"supp-contenu droite",children:"Publiez votre annonce simplement et en toute confiance."}),n.jsx(I,{className:"supp-contenu droite",children:"Profitez de la notoriété de domimmo pour vendre plus rapidement."})]}),n.jsx(ce,{item:!0,container:!0,className:"boutons-gen",alignItems:"center",justifyContent:"space-evenly",children:n.jsx(Pe,{variant:"contained",component:K,color:"primary",to:"https://www.keldom.com/domimmo/par/an/post/",children:"Publier une annonce"})})]})]})})})})]})]})}const ur=async t=>{const e=new URL(`${Ft()}/domimmo/companies`),s=zt.omit(t,["company_id","id_com_pays","page","limit"]);t.id_com_pays&&t.id_com_pays.length>0&&(s.id_com_pays=t.id_com_pays.join(",")),t.company_id&&(s.id=t.company_id),t.page&&(s.page=t.page.toString()),t.limit&&(s.limit=t.limit.toString()),e.search=new URLSearchParams(s).toString();const i=await fetch(e);if(i.status>=400)throw new Error("Can not get immo companies");return await i.json()},Xo=async t=>{const e=t.id,s={error:!0,currentCompany:void 0,companyOffers:[]};if(!e)return s;try{const i=(await ur({company_id:e}))[0];i&&(s.currentCompany=i,s.companyOffers=await Xe({company_id:i.id,limit:1e3,page:1})),s.error=!1}catch(i){console.error("Error while getting details of offer",i)}return s},Qo=async t=>{const e=new URL(`${Ft().replace("/api","")}/json/vu/entreprise/${t}`);try{const s=await fetch(e);s.status!==200&&console.log("vu error",s.status,e)}catch(s){console.error("vu error",e,s)}},ea=async t=>{const e={main:[],[ie.guadeloupe]:[],[ie.guyane]:[],[ie.martinique]:[],[ie.reunion]:[]};return e.main=await Xe({promoted:!0,limit:40,page:1,...t}),e[ie.guadeloupe]=await Xe({id_com_pays:[Y[ie.guadeloupe]],limit:20,page:1,...t}),e[ie.guyane]=await Xe({id_com_pays:[Y[ie.guyane]],limit:20,page:1,...t}),e[ie.martinique]=await Xe({id_com_pays:[Y[ie.martinique]],limit:20,page:1,...t}),e[ie.reunion]=await Xe({id_com_pays:[Y[ie.reunion]],limit:20,page:1,...t}),e},ta=async t=>{const e={error:!0,currentOffer:void 0,currentCompany:void 0,companyOffers:[]};
29try{if(e.currentOffer=(await Xe({id:t.id}))[0],!e.currentOffer)return e;if(e.currentOffer&&e.currentOffer.companyId){const s=await ur({company_id:e.currentOffer.companyId});s.length>0&&(e.currentCompany=s[0],e.companyOffers=(await Xe({company_id:s[0].id,limit:1e3})).filter(i=>i.id!==e.currentOffer.id))}}catch(s){console.error("Error while getting details of offer",s)}return e},Ke=async(t,e)=>{var m,f;let i,r;const a=+(t.page||1);if(t.region&&t.type)Object.values(ie).includes(t.region)&&Object.values(Oe).includes(t.type)&&(r=t.region,i=t.type);else if(t.region)Object.values(ie).includes(t.region)&&(r=t.region);else if(t.type&&Object.values(Oe).includes(t.type)&&(i=t.type,e.get("id_com_pays"))){const x=(m=e.get("id_com_pays"))==null?void 0:m.split(",").filter(h=>Object.values(Y).includes(h));x&&x.length===1&&Object.keys(kt).includes(x[0])&&(r=kt[x[0]])}const c={error:!1,offerType:i,dom:r,offers:[],mainOffers:[],filters:{},currentPage:a||1,nbOffers:0,nbPerPage:50,selectedSort:""},d={};r?d.id_com_pays=[Y[r]]:e.get("id_com_pays")&&(d.id_com_pays=(f=e.get("id_com_pays"))==null?void 0:f.split(",").filter(x=>Object.values(Y).includes(x))),i&&(d.id_di_ad_cat=we[i.toUpperCase()].toString());const{cityId:u,estateType:g}=ir(t.refinement,t.refinement2);u&&(d.id_com_ville=u.toString()),g&&(d.id_di_ad_type=g.toString()),e.get("motscles")&&(d.motscles=e.get("motscles")||void 0),e.get("sort_by")&&(d.sort_by=e.get("sort_by")||void 0,c.selectedSort=d.sort_by),e.get("id_di_ad_cat")&&(d.id_di_ad_cat=e.get("id_di_ad_cat")||void 0),e.get("id_di_ad_type")&&(d.id_di_ad_type=e.get("id_di_ad_type")||void 0),e.get("prix_mini")&&(d.prix_mini=e.get("prix_mini")||void 0),e.get("prix_maxi")&&(d.prix_maxi=e.get("prix_maxi")||void 0),e.get("surface_mini")&&(d.surface_mini=e.get("surface_mini")||void 0),e.get("surface_maxi")&&(d.surface_maxi=e.get("surface_maxi")||void 0),e.get("id_com_ville")&&(d.id_com_ville=e.get("id_com_ville")||void 0),e.get("nb_pieces")&&(d.nb_pieces=e.get("nb_pieces")||void 0);let l=[];return e.get($e.PISCINE)==="1"&&l.push($e.PISCINE),e.get($e.JARDIN)==="1"&&l.push($e.JARDIN),e.get($e.IMMO_PRO)==="1"&&l.push($e.IMMO_PRO),e.get($e.PHOTO)==="1"&&l.push($e.PHOTO),e.get($e.MEUBLE)==="1"&&l.push($e.MEUBLE),l.length>0&&(d.other_criterias=l.join(",")),d.page=a,d.limit=50,c.filters=d,c.currentPage=+(a||1),c.mainOffers=[],c.offers=await Xe(d),c.nbOffers=await Rt(d),c};var is={},na=rt;Object.defineProperty(is,"__esModule",{value:!0});var pr=is.default=void 0,sa=na(ot()),ia=n;pr=is.default=(0,sa.default)((0,ia.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10h5v-2h-5c-4.34 0-8-3.66-8-8s3.66-8 8-8 8 3.66 8 8v1.43c0 .79-.71 1.57-1.5 1.57s-1.5-.78-1.5-1.57V12c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5c1.38 0 2.64-.56 3.54-1.47.65.89 1.77 1.47 2.96 1.47 1.97 0 3.5-1.6 3.5-3.57V12c0-5.52-4.48-10-10-10m0 13c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3"}),"AlternateEmail");var mr=(t=>(t.DOMIMMO="domimmo",t.DOMAUTO="domauto",t))(mr||{});function on(t){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(t)}function ra(t,e){if(on(t)!="object"||!t)return t;var s=t[Symbol.toPrimitive];if(s!==void 0){var i=s.call(t,e);if(on(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function oa(t){var e=ra(t,"string");return on(e)=="symbol"?e:e+""}function C(t,e,s){return(e=oa(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}function hr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var An,ks;function aa(){if(ks)return An;ks=1;var t=function(s,i,r,a,c,d,u,g){if(!s){var l;if(i===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[r,a,c,d,u,g],f=0;l=new Error(i.replace(/%s/g,function(){return m[f++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};return An=t,An}var la=aa(),ye=hr(la),oe=o.createContext(null);function ca(){ye(!!o.useContext,"useGoogleMap is React hook and requires React version 16.8+");var t=o.useContext(oe);return ye(!!t,"useGoogleMap needs a GoogleMap available up in the tree"),t}function da(t,e,s){return Object.keys(t).reduce(function(r,a){return e(r,t[a],a)},s)}function ua(t,e){Object.keys(t).forEach(s=>e(t[s],s))}function pa(t,e,s,i){var r={},a=(c,d)=>{var u=s[d];
29u!==e[d]&&(r[d]=u,c(i,u))};return ua(t,a),r}function ma(t,e,s){var i=da(s,function(a,c,d){return typeof t[d]=="function"&&a.push(google.maps.event.addListener(e,c,t[d])),a},[]);return i}function ha(t){google.maps.event.removeListener(t)}function ue(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(ha)}function de(t){var{updaterMap:e,eventMap:s,prevProps:i,nextProps:r,instance:a}=t,c=ma(r,a,s);return pa(e,i,r,a),c}var Ps={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},_s={extraMapTypes(t,e){e.forEach(function(i,r){t.mapTypes.set(String(r),i)})},center(t,e){t.setCenter(e)},clickableIcons(t,e){t.setClickableIcons(e)},heading(t,e){t.setHeading(e)},mapTypeId(t,e){t.setMapTypeId(e)},options(t,e){t.setOptions(e)},streetView(t,e){t.setStreetView(e)},tilt(t,e){t.setTilt(e)},zoom(t,e){t.setZoom(e)}};function ga(t){var{children:e,options:s,id:i,mapContainerStyle:r,mapContainerClassName:a,center:c,onClick:d,onDblClick:u,onDrag:g,onDragEnd:l,onDragStart:m,onMouseMove:f,onMouseOut:x,onMouseOver:h,onMouseDown:L,onMouseUp:b,onRightClick:D,onCenterChanged:P,onLoad:U,onUnmount:E}=t,[y,M]=o.useState(null),O=o.useRef(null),[N,j]=o.useState(null),[B,F]=o.useState(null),[H,T]=o.useState(null),[z,$]=o.useState(null),[A,te]=o.useState(null),[J,Q]=o.use
29State(null),[X,ae]=o.useState(null),[le,W]=o.useState(null),[re,k]=o.useState(null),[pe,fe]=o.useState(null),[Z,ve]=o.useState(null),[G,ee]=o.useState(null);return o.useEffect(()=>{s&&y!==null&&y.setOptions(s)},[y,s]),o.useEffect(()=>{y!==null&&typeof c<"u"&&y.setCenter(c)},[y,c]),o.useEffect(()=>{y&&u&&(B!==null&&google.maps.event.removeListener(B),F(google.maps.event.addListener(y,"dblclick",u)))},[u]),o.useEffect(()=>{y&&l&&(H!==null&&google.maps.event.removeListener(H),T(google.maps.event.addListener(y,"dragend",l)))},[l]),o.useEffect(()=>{y&&m&&(z!==null&&google.maps.event.removeListener(z),$(google.maps.event.addListener(y,"dragstart",m)))},[m]),o.useEffect(()=>{y&&L&&(A!==null&&google.maps.event.removeListener(A),te(google.maps.event.addListener(y,"mousedown",L)))},[L]),o.useEffect(()=>{y&&f&&(J!==null&&google.maps.event.removeListener(J),Q(google.maps.event.addListener(y,"mousemove",f)))},[f]),o.useEffect(()=>{y&&x&&(X!==null&&google.maps.event.removeListener(X),ae(google.maps.event.addListener(y,"mouseout",x)))},[x]),o.useEffect(()=>{y&&h&&(le!==null&&google.maps.event.removeListener(le),W(google.maps.event.addListener(y,"mouseover",h)))},[h]),o.useEffect(()=>{y&&b&&(re!==null&&google.maps.event.removeListener(re),k(google.maps.event.addListener(y,"mouseup",b)))},[b]),o.useEffect(()=>{y&&D&&(pe!==null&&google.maps.event.removeListener(pe),fe(google.maps.event.addListener(y,"rightclick",D)))},[D]),o.useEffect(()=>{y&&d&&(Z!==null&&google.maps.event.removeListener(Z),ve(google.maps.event.addListener(y,"click",d)))},[d]),o.useEffect(()=>{y&&g&&(G!==null&&google.maps.event.removeListener(G),ee(google.maps.event.addListener(y,"drag",g)))},[g]),o.useEffect(()=>{y&&P&&(N!==null&&google.maps.event.removeListener(N),j(google.maps.event.addListener(y,"center_changed",P)))},[d]),o.useEffect(()=>{var Le=O.current===null?null:new google.maps.Map(O.current,s);return M(Le),Le!==null&&U&&U(Le),()=>{Le!==null&&E&&E(Le)}},[]),n.jsx("div",{id:i,ref:O,style:r,className:a,children:n.jsx(oe.Provider,{value:y,children:y!==null?e:null})})}o.memo(ga);class fa extends o.PureComponent{constructor(){super(...arguments),C(this,"state",{map:null}),C(this,"registeredEvents",[]),C(this,"mapRef",null),C(this,"getInstance",()=>this.mapRef===null?null:new google.maps.Map(this.mapRef,this.props.options)),C(this,"panTo",e=>{var s=this.getInstance();s&&s.panTo(e)}),C(this,"setMapCallback",()=>{this.state.map!==null&&this.props.onLoad&&this.props.onLoad(this.state.map)}),C(this,"getRef",e=>{this.mapRef=e})}componentDidMount(){var e=this.getInstance();this.registeredEvents=de({updaterMap:_s,eventMap:Ps,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{map:e}},this.setMapCallback)}componentDidUpdate(e){this.state.map!==null&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:_s,eventMap:Ps,prevProps:e,nextProps:this.props,instance:this.state.map}))}componentWillUnmount(){this.state.map!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),ue(this.registeredEvents))}render(){return n.jsx("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName,children:n.jsx(oe.Provider,{value:this.state.map,children:this.state.map!==null?this.props.children:null})})}}function Ns(t,e,s,i,r,a,c){try{var d=t[a](c),u=d.value}catch(g){return void s(g)}d.done?e(u):Promise.resolve(u).then(i,r)}function gr(t){return function(){var e=this,s=arguments;return new Promise(function(i,r){var a=t.apply(e,s);function c(u){Ns(a,i,r,c,d,"next",u)}function d(u){Ns(a,i,r,c,d,"throw",u)}c(void 0)})}}function fr(t){var{googleMapsApiKey:e,googleMapsClientId:s,version:i="weekly",language:r,region:a,libraries:c,channel:d,mapIds:u,authReferrerPolicy:g,apiUrl:l="https://maps.googleapis.com"}=t,m=[];return ye(e&&s||!(e&&s),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),e?m.push("key=".concat(e)):s&&m.push("client=".concat(s)),i&&m.push("v=".concat(i)),r&&m.push("language=".concat(r)),a&&m.push("region=".concat(a)),c&&c.length&&m.push("libraries=".concat(c.sort().join(","))),d&&m.push("channel=".concat(d)),u&&u.length&&m.push("map_ids=".concat(u.join(","))),g&&m.push("auth_referrer_policy=".concat(g)),m.push("loading=async"),m.push("callback=initMap"),"".concat(l,"/maps/api/js?").concat(m.join("&"))}var bt=typeof document<"u";function vr(t){var{url:e,id:s,nonce:i}=t;return bt?new Promise(function(a,c){var d=document.getElementById(s),u=window;if(d){var g=d.getAttribute("data-state");if(d.src===e&&g!=="error"){if(g==="ready")return a(s);var l=u.initMap,m=d.onerror;u.initMap=function(){l&&l(),a(s)},d.onerror=function(x){m&&m(x),c(x)};return}else d.remove()}var f=document.createElement("script");f.type="text/javascript",f.src=e,f.id=s,f.async=!0,f.nonce=i||"",f.onerror=function(h){f.setAttribute("data-state","error"),c(h)},u.initMap=function(){f.setAttribute("data-state","ready"),a(s)},document.head.appendChild(f)}
29).catch(r=>{throw console.error("injectScript error: ",r),r}):Promise.reject(new Error("document is undefined"))}function Is(t){var e=t.href;return e&&(e.indexOf("https://fonts.googleapis.com/css?family=Roboto")===0||e.indexOf("https://fonts.googleapis.com/css?family=Google+Sans+Text")===0)?!0:t.tagName.toLowerCase()==="style"&&t.styleSheet&&t.styleSheet.cssText&&t.styleSheet.cssText.replace(`\r 30`,"").indexOf(".gm-style")===0?(t.styleSheet.cssText="",!0):t.tagName.toLowerCase()==="style"&&t.innerHTML&&t.innerHTML.replace(`\r 31`,"").indexOf(".gm-style")===0?(t.innerHTML="",!0):t.tagName.toLowerCase()==="style"&&!t.styleSheet&&!t.innerHTML}function rs(){var t=document.getElementsByTagName("head")[0];if(t){var e=t.insertBefore.bind(t);t.insertBefore=function(r,a){return Is(r)||Reflect.apply(e,t,[r,a]),r};var s=t.appendChild.bind(t);t.appendChild=function(r){return Is(r)||Reflect.apply(s,t,[r]),r}}}var en=!1;function xr(){return n.jsx("div",{children:"Loading..."})}var an={id:"script-loader",version:"weekly"};class va extends o.PureComponent{constructor(){super(...arguments),C(this,"check",null),C(this,"state",{loaded:!1}),C(this,"cleanupCallback",()=>{delete window.google.maps,this.injectScript()}),C(this,"isCleaningUp",gr(function*(){function e(s){if(!en)s();else if(bt)var i=window.setInterval(function(){en||(window.clearInterval(i),s())},1)}return new Promise(e)})),C(this,"cleanup",()=>{en=!0;var e=document.getElementById(this.props.id);e&&e.parentNode&&e.parentNode.removeChild(e),Array.prototype.slice.call(document.getElementsByTagName("script")).filter(function(i){return typeof i.src=="string"&&i.src.includes("maps.googleapis")}).forEach(function(i){i.parentNode&&i.parentNode.removeChild(i)}),Array.prototype.slice.call(document.getElementsByTagName("link")).filter(function(i){return i.href==="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"}
31).forEach(function(i){i.parentNode&&i.parentNode.removeChild(i)}),Array.prototype.slice.call(document.getElementsByTagName("style")).filter(function(i){return i.innerText!==void 0&&i.innerText.length>0&&i.innerText.includes(".gm-")}).forEach(function(i){i.parentNode&&i.parentNode.removeChild(i)})}),C(this,"injectScript",()=>{this.props.preventGoogleFontsLoading&&rs(),ye(!!this.props.id,'LoadScript requires "id" prop to be a string: %s',this.props.id);var e={id:this.props.id,nonce:this.props.nonce,url:fr(this.props)};vr(e).then(()=>{this.props.onLoad&&this.props.onLoad(),this.setState(function(){return{loaded:!0}})}).catch(s=>{this.props.onError&&this.props.onError(s),console.error(` 32 There has been an Error with loading Google Maps API script, please check that you provided correct google API key (`.concat(this.props.googleMapsApiKey||"-",") or Client ID (").concat(this.props.googleMapsClientId||"-",`) to <LoadScript /> 33 Otherwise it is a Network issue. 34 `))})}),C(this,"getRef",e=>{this.check=e})}componentDidMount(){if(bt){if(window.google&&window.google.maps&&!en){console.error("google api is already presented");return}this.isCleaningUp().then(this.injectScript).catch(function(s){console.error("Error at injecting script after cleaning up: ",s)})}}componentDidUpdate(e){this.props.libraries!==e.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),bt&&e.language!==this.props.language&&(this.cleanup(),this.setState(function(){return{loaded:!1}},this.cleanupCallback))}componentWillUnmount(){if(bt){this.cleanup();var e=()=>{this.check||(delete window.google,en=!1)};window.setTimeout(e,1),this.props.onUnmount&&this.props.onUnmount()}}render(){return n.jsxs(n.Fragment,{children:[n.jsx("div",{ref:this.getRef}),this.state.loaded?this.props.children:this.props.loadingElement||n.jsx(xr,{})]})}}C(va,"defaultProps",an);function xa(t,e){if(t==null)return{};var s={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.includes(i))continue;s[i]=t[i]}return s}function os(t,e){if(t==null)return{};var s,i,r=xa(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)s=a[i],e.includes(s)||{}.propertyIsEnumerable.call(t,s)&&(r[s]=t[s])}return r}var Ds;function ba(t){var{id:e=an.id,version:s=an.version,nonce:i,googleMapsApiKey:r,googleMapsClientId:a,language:c,region:d,libraries:u,preventGoogleFontsLoading:g,channel:l,mapIds:m,authReferrerPolicy:f,apiUrl:x="https://maps.googleapis.com"}=t,h=o.useRef(!1),[L,b]=o.useState(!1),[D,P]=o.useState(void 0);o.useEffect(function(){return h.current=!0,()=>{h.current=!1}},[]),o.useEffect(function(){bt&&g&&rs()},[g]),o.useEffect(function(){L&&ye(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")},[L]);var U=fr({version:s,googleMapsApiKey:r,googleMapsClientId:a,language:c,region:d,libraries:u,channel:l,mapIds:m,authReferrerPolicy:f,apiUrl:x});o.useEffect(function(){if(!bt)return;function M(){h.current&&(b(!0),Ds=U)}if(window.google&&window.google.maps&&Ds===U){M();return}vr({id:e,url:U,nonce:i}).then(M).catch(function(N){h.current&&P(N),console.warn(` 35 There has been an Error with loading Google Maps API script, please check that you provided correct google API key (`.concat(r||"-",") or Client ID (").concat(a||"-",`) 36 Otherwise it is a Network issue. 37 `)),console.error(N)})},[e,U,i]);var E=o.useRef(void 0);return o.useEffect(function(){E.current&&u!==E.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),E.current=u},[u]),{isLoaded:L,loadError:D,url:U}}var ya=["loadingElement","onLoad","onError","onUnmount","children"],La=n.jsx(xr,{});function ja(t){var{loadingElement:e,onLoad:s,onError:i,onUnmount:r,children:a}=t,c=os(t,ya),{isLoaded:d,loadError:u}=ba(c);return o.useEffect(function(){d&&typeof s=="function"&&s()},[d,s]),o.useEffect(function(){u&&typeof i=="function"&&i(u)},[u,i]),o.useEffect(function(){return()=>{r&&r()}},[r]),d?a:e||La}o.memo(ja);function Ca(t,e,s,i){function r(a){return a instanceof s?a:new s(function(c){c(a)})}
37return new(s||(s=Promise))(function(a,c){function d(l){try{g(i.next(l))}catch(m){c(m)}}function u(l){try{g(i.throw(l))}catch(m){c(m)}}function g(l){l.done?a(l.value):r(l.value).then(d,u)}g((i=i.apply(t,[])).next())})}function Ma(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Sa=function t(e,s){if(e===s)return!0;if(e&&s&&typeof e=="object"&&typeof s=="object"){if(e.constructor!==s.constructor)return!1;var i,r,a;if(Array.isArray(e)){if(i=e.length,i!=s.length)return!1;for(r=i;r--!==0;)if(!t(e[r],s[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if(a=Object.keys(e),i=a.length,i!==Object.keys(s).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(s,a[r]))return!1;for(r=i;r--!==0;){var c=a[r];if(!t(e[c],s[c]))return!1}return!0}return e!==e&&s!==s},wa=Ma(Sa),Rs="__googleMapsScriptId",At;(function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"})(At||(At={}));class Ot{constructor(e){var{apiKey:s,authReferrerPolicy:i,channel:r,client:a,id:c=Rs,language:d,libraries:u=[],mapIds:g,nonce:l,region:m,retries:f=3,url:x="https://maps.googleapis.com/maps/api/js",version:h}=e;if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=s,this.authReferrerPolicy=i,this.channel=r,this.client=a,this.id=c||Rs,this.language=d,this.libraries=u,this.mapIds=g,this.nonce=l,this.region=m,this.retries=f,this.url=x,this.version=h,Ot.instance){if(!wa(this.options,Ot.instance.options))throw new Error("Loader must not be called again with different options. ".concat(JSON.stringify(this.options)," !== ").concat(JSON.stringify(Ot.instance.options)));return Ot.instance}Ot.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?At.FAILURE:this.done?At.SUCCESS:this.loading?At.LOADING:At.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){var e=this.url;return e+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(e+="&key=".concat(this.apiKey)),this.channel&&(e+="&channel=".concat(this.channel)),this.client&&(e+="&client=".concat(this.client)),this.libraries.length>0&&(e+="&libraries=".concat(this.libraries.join(","))),this.language&&(e+="&language=".concat(this.language)),this.region&&(e+="®ion=".concat(this.region)),this.version&&(e+="&v=".concat(this.version)),this.mapIds&&(e+="&map_ids=".concat(this.mapIds.join(","))),this.authReferrerPolicy&&(e+="&auth_referrer_policy=".concat(this.authReferrerPolicy)),e}deleteScript(){var e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,s)=>{this.loadCallback(i=>{i?s(i.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,s;if(document.getElementById(this.id)){this.callback();return}var i={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};
37Object.keys(i).forEach(a=>!i[a]&&delete i[a]),!((s=(e=window==null?void 0:window.google)===null||e===void 0?void 0:e.maps)===null||s===void 0)&&s.importLibrary||(a=>{var c,d,u,g="The Google Maps JavaScript API",l="google",m="importLibrary",f="__ib__",x=document,h=window;h=h[l]||(h[l]={});var L=h.maps||(h.maps={}),b=new Set,D=new URLSearchParams,P=()=>c||(c=new Promise((U,E)=>Ca(this,void 0,void 0,function*(){var y;yield d=x.createElement("script"),d.id=this.id,D.set("libraries",[...b]+"");for(u in a)D.set(u.replace(/[A-Z]/g,M=>"_"+M[0].toLowerCase()),a[u]);D.set("callback",l+".maps."+f),d.src=this.url+"?"+D,L[f]=U,d.onerror=()=>c=E(Error(g+" could not load.")),d.nonce=this.nonce||((y=x.querySelector("script[nonce]"))===null||y===void 0?void 0:y.nonce)||"",x.head.append(d)})));L[m]?console.warn(g+" only loads once. Ignoring:",a):L[m]=function(U){for(var E=arguments.length,y=new Array(E>1?E-1:0),M=1;M<E;M++)y[M-1]=arguments[M];return b.add(U)&&P().then(()=>L[m](U,...y))}})(i);var r=this.libraries.map(a=>this.importLibrary(a));r.length||r.push(this.importLibrary("core")),Promise.all(r).then(()=>this.callback(),a=>{var c=new ErrorEvent("error",{error:a});this.loadErrorCallback(c)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){var s=this.errors.length*Math.pow(2,this.errors.length);console.error("Failed to load Google Maps script, retrying in ".concat(s," ms.")),setTimeout(()=>{this.deleteScript(),this.setScript()},s)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),!this.loading)if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading=!0,this.setScript()}}}var Ea=["maps"];function Oa(t){var{id:e=an.id,version:s=an.version,nonce:i,googleMapsApiKey:r,language:a,region:c,libraries:d=Ea,preventGoogleFontsLoading:u,mapIds:g,authReferrerPolicy:l}=t,m=o.useRef(!1),[f,x]=o.useState(!1),[h,L]=o.useState(void 0);o.useEffect(function(){return m.current=!0,()=>{m.current=!1}},[]);var b=o.useMemo(()=>new Ot({id:e,apiKey:r,version:s,libraries:d,language:a||"en",region:c||"US",mapIds:g||[],nonce:i||"",authReferrerPolicy:l||"origin"}),[e,r,s,d,a,c,g,i,l]);o.useEffect(function(){f||b.load().then(()=>{m.current&&x(!0)}).catch(U=>{L(U)})},[]),o.useEffect(()=>{bt&&u&&rs()},[u]);var D=o.useRef();return o.useEffect(()=>{D.current&&d!==D.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),D.current=d},[d]),{isLoaded:f,loadError:h}}function Ts(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function jn(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};e%2?Ts(Object(s),!0).forEach(function(i){C(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):Ts(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}var As={},Us={options(t,e){t.setOptions(e)}};function ka(t){var{options:e,onLoad:s,onUnmount:i}=t,r=o.useContext(oe),[a,c]=o.useState(null);return o.useEffect(()=>{a!==null&&a.setMap(r)},[r]),o.useEffect(()=>{e&&a!==null&&a.setOptions(e)},[a,e]),o.useEffect(()=>{var d=new google.maps.TrafficLayer(jn(jn({},e),{},{map:r}));return c(d),s&&s(d),()=>{a!==null&&(i&&i(a),a.setMap(null))}},[]),null}o.memo(ka);class Pa extends o.PureComponent{constructor(){super(...arguments),C(this,"state",{trafficLayer:null}),C(this,"setTrafficLayerCallback",()=>{this.state.trafficLayer!==null&&this.props.onLoad&&this.props.onLoad(this.state.trafficLayer)}),C(this,"registeredEvents",[])}componentDidMount(){var e=new google.maps.TrafficLayer(jn(jn({},this.props.options),{},{map:this.context}));this.registeredEvents=de({updaterMap:Us,eventMap:As,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{trafficLayer:e}},this.setTrafficLayerCallback)}componentDidUpdate(e){this.state.trafficLayer!==null&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:Us,eventMap:As,prevProps:e,nextProps:this.props,instance:this.state.trafficLayer}))}componentWillUnmount(){this.state.trafficLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),ue(this.registeredEvents),this.state.trafficLayer.setMap(null))}render(){return null}}C(Pa,"contextType",oe);function _a(t){var{onLoad:e,onUnmount:s}
37=t,i=o.useContext(oe),[r,a]=o.useState(null);return o.useEffect(()=>{r!==null&&r.setMap(i)},[i]),o.useEffect(()=>{var c=new google.maps.BicyclingLayer;return a(c),c.setMap(i),e&&e(c),()=>{c!==null&&(s&&s(c),c.setMap(null))}},[]),null}o.memo(_a);class Na extends o.PureComponent{constructor(){super(...arguments),C(this,"state",{bicyclingLayer:null}),C(this,"setBicyclingLayerCallback",()=>{this.state.bicyclingLayer!==null&&(this.state.bicyclingLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.bicyclingLayer))})}componentDidMount(){var e=new google.maps.BicyclingLayer;this.setState(()=>({bicyclingLayer:e}),this.setBicyclingLayerCallback)}componentWillUnmount(){this.state.bicyclingLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))}render(){return null}}C(Na,"contextType",oe);function Ia(t){var{onLoad:e,onUnmount:s}=t,i=o.useContext(oe),[r,a]=o.useState(null);return o.useEffect(()=>{r!==null&&r.setMap(i)},[i]),o.useEffect(()=>{var c=new google.maps.TransitLayer;return a(c),c.setMap(i),e&&e(c),()=>{r!==null&&(s&&s(r),r.setMap(null))}},[]),null}o.memo(Ia);class Da extends o.PureComponent{constructor(){super(...arguments),C(this,"state",{transitLayer:null}),C(this,"setTransitLayerCallback",()=>{this.state.transitLayer!==null&&(this.state.transitLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.transitLayer))})}componentDidMount(){var e=new google.maps.TransitLayer;this.setState(function(){return{transitLayer:e}},this.setTransitLayerCallback)}componentWillUnmount(){this.state.transitLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))}render(){return null}}C(Da,"contextType",oe);function Bs(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function Cn(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};e%2?Bs(Object(s),!0).forEach(function(i){C(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):Bs(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}var zs={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},Fs={drawingMode(t,e){t.setDrawingMode(e)},options(t,e){t.setOptions(e)}};function Ra(t){var{options:e,drawingMode:s,onCircleComplete:i,onMarkerComplete:r,onOverlayComplete:a,onPolygonComplete:c,onPolylineComplete:d,onRectangleComplete:u,onLoad:g,onUnmount:l}=t,m=o.useContext(oe),[f,x]=o.useState(null),[h,L]=o.useState(null),[b,D]=o.useState(null),[P,U]=o.useState(null),[E,y]=o.useState(null),[M,O]=o.useState(null),[N,j]=o.useState(null);return o.useEffect(()=>{f!==null&&f.setMap(m)},[m]),o.useEffect(()=>{e&&f!==null&&f.setOptions(e)},[f,e]),o.useEffect(()=>{f!==null&&f.setDrawingMode(s??null)},[f,s]),o.useEffect(()=>{f&&i&&(h!==null&&google.maps.event.removeListener(h),L(google.maps.event.addListener(f,"circlecomplete",i)))},[f,i]),o.useEffect(()=>{f&&r&&(b!==null&&google.maps.event.removeListener(b),D(google.maps.event.addListener(f,"markercomplete",r)))},[f,r]),o.useEffect(()=>{f&&a&&(P!==null&&google.maps.event.removeListener(P),U(google.maps.event.addListener(f,"overlaycomplete",a)))},[f,a]),o.useEffect(()=>{f&&c&&(E!==null&&google.maps.event.removeListener(E),y(google.maps.event.addListener(f,"polygoncomplete",c)))},[f,c]),o.useEffect(()=>{f&&d&&(M!==null&&google.maps.event.removeListener(M),O(google.maps.event.addListener(f,"polylinecomplete",d)))},[f,d]),o.useEffect(()=>{f&&u&&(N!==null&&google.maps.event.removeListener(N),j(google.maps.event.addListener(f,"rectanglecomplete",u)))},[f,u]),o.useEffect(()=>{ye(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing);var B=new google.maps.drawing.DrawingManager(Cn(Cn({},e),{},{map:m}));return s&&B.setDrawingMode(s),i&&L(google.maps.event.addListener(B,"circlecomplete",i)),r&&D(google.maps.event.addListener(B,"markercomplete",r)),a&&U(google.maps.event.addListener(B,"overlaycomplete",a)),c&&y(google.maps.event.addListener(B,"polygoncomplete",c)),d&&O(google.maps.event.addListener(B,"polylinecomplete",d)),u&&j(google.maps.event.addListener(B,"rectanglecomplete",u)),x(B),g&&g(B),()=>{f!==null&&(h&&google.maps.event.removeListener(h),b&&google.maps.event.removeListener(b),P&&google.maps.event.removeListener(P),E&&google.maps.event.removeListener(E),M&&google.maps.event.removeListener(M),N&&google.maps.event.removeListener(N),l&&l(f),f.setMap(null))}},[]),null}o.memo(Ra);class Ta extends o.PureComponent{constructor(e){super(e),C(this,"registeredEvents",[]),C(this,"state",{drawingManager:null}),C(this,"setDrawingManagerCallback",()=>{this.state.drawingManager!==null&&this.props.onLoad&&this.props.onLoad(this.state.drawingManager)}),ye(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing)}componentDidMount(){var e=new google.maps.drawing.DrawingManager(Cn(Cn({},this.props.options),{},{map:this.context}));this.registeredEvents=de({updaterMap:Fs,eventMap:zs,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{drawingManager:e}},this.setDrawingManagerCallback)}componentDidUpdate(e){this.state.drawingManager!==null&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:Fs,eventMap:zs,prevProps:e,nextProps:this.props,instance:this.state.drawingManager}))}componentWillUnmount(){this.state.drawingManager!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),ue(this.registeredEvents),this.state.drawingManager.setMap(null))}render(){return null}}C(Ta,"contextType",oe);function $s(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function Ut(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};
37e%2?$s(Object(s),!0).forEach(function(i){C(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):$s(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}var Hs={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},Vs={animation(t,e){t.setAnimation(e)},clickable(t,e){t.setClickable(e)},cursor(t,e){t.setCursor(e)},draggable(t,e){t.setDraggable(e)},icon(t,e){t.setIcon(e)},label(t,e){t.setLabel(e)},map(t,e){t.setMap(e)},opacity(t,e){t.setOpacity(e)},options(t,e){t.setOptions(e)},position(t,e){t.setPosition(e)},shape(t,e){t.setShape(e)},title(t,e){t.setTitle(e)},visible(t,e){t.setVisible(e)},zIndex(t,e){t.setZIndex(e)}},Mn={};function Aa(t){var{position:e,options:s,clusterer:i,noClustererRedraw:r,children:a,draggable:c,visible:d,animation:u,clickable:g,cursor:l,icon:m,label:f,opacity:x,shape:h,title:L,zIndex:b,onClick:D,onDblClick:P,onDrag:U,onDragEnd:E,onDragStart:y,onMouseOut:M,onMouseOver:O,onMouseUp:N,onMouseDown:j,onRightClick:B,onClickableChanged:F,onCursorChanged:H,onAnimationChanged:T,onDraggableChanged:z,onFlatChanged:$,onIconChanged:A,onPositionChanged:te,onShapeChanged:J,onTitleChanged:Q,onVisibleChanged:X,onZindexChanged:ae,onLoad:le,onUnmount:W}=t,re=o.useContext(oe),[k,pe]=o.useState(null),[fe,Z]=o.useState(null),[ve,G]=o.useState(null),[ee,Le]=o.useState(null),[Ne,He]=o.useState(null),[me,Be]=o.useState(null),[Ie,at]=o.useState(null),[be,Ve]=o.useState(null),[We,lt]=o.useState(null),[Qe,yt]=o.useState(null),[ct,Lt]=o.useState(null),[Te,jt]=o.useState(null),[Ge,Ct]=o.useState(null),[qe,dt]=o.useState(null),[ze,ut]=o.useState(null),[w,q]=o.useState(null),[xe,Me]=o.useState(null),[ke,Ze]=o.useState(null),[et,pt]=o.useState(null),[mt,_t]=o.useState(null),[ht,Nt]=o.useState(null),[tt,Ae]=o.useState(null);o.useEffect(()=>{k!==null&&k.setMap(re)},[re]),o.useEffect(()=>{typeof s<"u"&&k!==null&&k.setOptions(s)},[k,s]),o.useEffect(()=>{typeof c<"u"&&k!==null&&k.setDraggable(c)},[k,c]),o.useEffect(()=>{e&&k!==null&&k.setPosition(e)},[k,e]),o.useEffect(()=>{typeof d<"u"&&k!==null&&k.setVisible(d)},[k,d]),o.useEffect(()=>{k==null||k.setAnimation(u)},[k,u]),o.useEffect(()=>{k&&g!==void 0&&k.setClickable(g)},[k,g]),o.useEffect(()=>{k&&l!==void 0&&k.setCursor(l)},[k,l]),o.useEffect(()=>{k&&m!==void 0&&k.setIcon(m)},[k,m]),o.useEffect(()=>{k&&f!==void 0&&k.setLabel(f)},[k,f]),o.useEffect(()=>{k&&x!==void 0&&k.setOpacity(x)},[k,x]),o.useEffect(()=>{k&&h!==void 0&&k.setShape(h)},[k,h]),o.useEffect(()=>{k&&L!==void 0&&k.setTitle(L)},[k,L]),o.useEffect(()=>{k&&b!==void 0&&k.setZIndex(b)},[k,b]),o.useEffect(()=>{k&&P&&(fe!==null&&google.maps.event.removeListener(fe),Z(google.maps.event.addListener(k,"dblclick",P)))},[P]),o.useEffect(()=>{k&&E&&(ve!==null&&google.maps.event.removeListener(ve),G(google.maps.event.addListener(k,"dragend",E)))},[E]),o.useEffect(()=>{k&&y&&(ee!==null&&google.maps.event.removeListener(ee),Le(google.maps.event.addListener(k,"dragstart",y)))},[y]),o.useEffect(()=>{k&&j&&(Ne!==null&&google.maps.event.removeListener(Ne),He(google.maps.event.addListener(k,"mousedown",j)))},[j]),o.useEffect(()=>{k&&M&&(me!==null&&google.maps.event.removeListener(me),Be(google.maps.event.addListener(k,"mouseout",M)))},[M]),o.useEffect(()=>{k&&O&&(Ie!==null&&google.maps.event.removeListener(Ie),at(google.maps.event.addListener(k,"mouseover",O)))},[O]),o.useEffect(()=>{k&&N&&(be!==null&&google.maps.event.removeListener(be),Ve(google.maps.event.addListener(k,"mouseup",N)))},[N]),o.useEffect(()=>{k&&B&&(We!==null&&google.maps.event.removeListener(We),lt(google.maps.event.addListener(k,"rightclick",B)))},[B]),o.useEffect(()=>{k&&D&&(Qe!==null&&google.maps.event.removeListener(Qe),yt(google.maps.event.addListener(k,"click",D))
37)},[D]),o.useEffect(()=>{k&&U&&(ct!==null&&google.maps.event.removeListener(ct),Lt(google.maps.event.addListener(k,"drag",U)))},[U]),o.useEffect(()=>{k&&F&&(Te!==null&&google.maps.event.removeListener(Te),jt(google.maps.event.addListener(k,"clickable_changed",F)))},[F]),o.useEffect(()=>{k&&H&&(Ge!==null&&google.maps.event.removeListener(Ge),Ct(google.maps.event.addListener(k,"cursor_changed",H)))},[H]),o.useEffect(()=>{k&&T&&(qe!==null&&google.maps.event.removeListener(qe),dt(google.maps.event.addListener(k,"animation_changed",T)))},[T]),o.useEffect(()=>{k&&z&&(ze!==null&&google.maps.event.removeListener(ze),ut(google.maps.event.addListener(k,"draggable_changed",z)))},[z]),o.useEffect(()=>{k&&$&&(w!==null&&google.maps.event.removeListener(w),q(google.maps.event.addListener(k,"flat_changed",$)))},[$]),o.useEffect(()=>{k&&A&&(xe!==null&&google.maps.event.removeListener(xe),Me(google.maps.event.addListener(k,"icon_changed",A)))},[A]),o.useEffect(()=>{k&&te&&(ke!==null&&google.maps.event.removeListener(ke),Ze(google.maps.event.addListener(k,"position_changed",te)))},[te]),o.useEffect(()=>{k&&J&&(et!==null&&google.maps.event.removeListener(et),pt(google.maps.event.addListener(k,"shape_changed",J)))},[J]),o.useEffect(()=>{k&&Q&&(mt!==null&&google.maps.event.removeListener(mt),_t(google.maps.event.addListener(k,"title_changed",Q)))},[Q]),o.useEffect(()=>{k&&X&&(ht!==null&&google.maps.event.removeListener(ht),Nt(google.maps.event.addListener(k,"visible_changed",X)))},[X]),o.useEffect(()=>{k&&ae&&(tt!==null&&google.maps.event.removeListener(tt),Ae(google.maps.event.addListener(k,"zindex_changed",ae)))},[ae]),o.useEffect(()=>{var Mt=Ut(Ut(Ut({},s||Mn),i?Mn:{map:re}),{},{position:e}),ne=new google.maps.Marker(Mt);return i?i.addMarker(ne,!!r):ne.setMap(re),e&&ne.setPosition(e),typeof d<"u"&&ne.setVisible(d),typeof c<"u"&&ne.setDraggable(c),typeof g<"u"&&ne.setClickable(g),typeof l=="string"&&ne.setCursor(l),m&&ne.setIcon(m),typeof f<"u"&&ne.setLabel(f),typeof x<"u"&&ne.setOpacity(x),h&&ne.setShape(h),typeof L=="string"&&ne.setTitle(L),typeof b=="number"&&ne.setZIndex(b),P&&Z(google.maps.event.addListener(ne,"dblclick",P)),E&&G(google.maps.event.addListener(ne,"dragend",E)),y&&Le(google.maps.event.addListener(ne,"dragstart",y)),j&&He(google.maps.event.addListener(ne,"mousedown",j)),M&&Be(google.maps.event.addListener(ne,"mouseout",M)),O&&at(google.maps.event.addListener(ne,"mouseover",O)),N&&Ve(google.maps.event.addListener(ne,"mouseup",N)),B&<(google.maps.event.addListener(ne,"rightclick",B)),D&&yt(google.maps.event.addListener(ne,"click",D)),U&&Lt(google.maps.event.addListener(ne,"drag",U)),F&&jt(google.maps.event.addListener(ne,"clickable_changed",F)),H&&Ct(google.maps.event.addListener(ne,"cursor_changed",H)),T&&dt(google.maps.event.addListener(ne,"animation_changed",T)),z&&ut(google.maps.event.addListener(ne,"draggable_changed",z)),$&&q(google.maps.event.addListener(ne,"flat_changed",$)),A&&Me(google.maps.event.addListener(ne,"icon_changed",A)),te&&Ze(google.maps.event.addListener(ne,"position_changed",te)),J&&pt(google.maps.event.addListener(ne,"shape_changed",J)),Q&&_t(google.maps.event.addListener(ne,"title_changed",Q)),X&&Nt(google.maps.event.addListener(ne,"visible_changed",X)),ae&&Ae(google.maps.event.addListener(ne,"zindex_changed",ae)),pe(ne),le&&le(ne),()=>{fe!==null&&google.maps.event.removeListener(fe),ve!==null&&google.maps.event.removeListener(ve),ee!==null&&google.maps.event.removeListener(ee),Ne!==null&&google.maps.event.removeListener(Ne),me!==null&&google.maps.event.removeListener(me),Ie!==null&&google.maps.event.removeListener(Ie),be!==null&&google.maps.event.removeListener(be),We!==null&&google.maps.event.removeListener(We),Qe!==null&&google.maps.event.removeListener(Qe),Te!==null&&google.maps.event.removeListener(Te),Ge!==null&&google.maps.event.removeListener(Ge),qe!==null&&google.maps.event.removeListener(qe),ze!==null&&google.maps.event.removeListener(ze),w!==null&&google.maps.event.removeListener(w),xe!==null&&google.maps.event.removeListener(xe),ke!==null&&google.maps.event.removeListener(ke),mt!==null&&google.maps.event.removeListener(mt),ht!==null&&google.maps.event.removeListener(ht),tt!==null&&google.maps.event.removeListener(tt),W&&W(ne),i?i.removeMarker(ne,!!r):ne&&ne.setMap(null)}},[]);var It=o.useMemo(()=>a?o.Children.map(a,Mt=>{if(!o.isValidElement(Mt))return Mt;var ne=Mt;return o.cloneElement(ne,{anchor:k})}):null,[a,k]);return n.jsx(n.Fragment,{children:It})||null}o.memo(Aa);class br extends o.PureComponent{constructor(){super(...arguments),C(this,"registeredEvents",[])}componentDidMount(){var e=this;return gr(function*(){var s=Ut(Ut(Ut({},e.props.options||Mn),e.props.clusterer?Mn:{map:e.context}),{},{position:e.props.position});e.marker=new google.maps.Marker(s),e.props.clusterer?e.props.clusterer.addMarker(e.marker,!!e.props.noClustererRedraw):e.marker.setMap(e.context),e.registeredEvents=de({updaterMap:Vs,eventMap:Hs,prevProps:{},nextProps:e.props,instance:e.marker}),e.props.onLoad&&e.props.onLoad(e.marker)})()}componentDidUpdate(e){this.marker&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:Vs,eventMap:Hs,prevProps:e,nextProps:this.props,instance:this.marker}))}componentWillUnmount(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),ue(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))}render(){var e=this.props.children?o.Children.map(this.props.children,s=>{if(!o.isValidElement(s))return s;var i=s;
37return o.cloneElement(i,{anchor:this.marker})}):null;return e||null}}C(br,"contextType",oe);var Ua=function(){function t(e,s){e.getClusterer().extend(t,google.maps.OverlayView),this.cluster=e,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=s,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.cMouseDownInCluster=null,this.cDraggingMapByCluster=null,this.timeOut=null,this.setMap(e.getMap()),this.onBoundsChanged=this.onBoundsChanged.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onAdd=this.onAdd.bind(this),this.onRemove=this.onRemove.bind(this),this.draw=this.draw.bind(this),this.hide=this.hide.bind(this),this.show=this.show.bind(this),this.useStyle=this.useStyle.bind(this),this.setCenter=this.setCenter.bind(this),this.getPosFromLatLng=this.getPosFromLatLng.bind(this)}return t.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},t.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},t.prototype.onClick=function(e){if(this.cMouseDownInCluster=!1,!this.cDraggingMapByCluster){var s=this.cluster.getClusterer();if(google.maps.event.trigger(s,"click",this.cluster),google.maps.event.trigger(s,"clusterclick",this.cluster),s.getZoomOnClick()){var i=s.getMaxZoom(),r=this.cluster.getBounds(),a=s.getMap();a!==null&&"fitBounds"in a&&a.fitBounds(r),this.timeOut=window.setTimeout(function(){var c=s.getMap();if(c!==null){"fitBounds"in c&&c.fitBounds(r);var d=c.getZoom()||0;i!==null&&d>i&&c.setZoom(i+1)}},100)}e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}},t.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},t.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},t.prototype.onAdd=function(){var e;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),(e=this.getPanes())===null||e===void 0||e.overlayMouseTarget.appendChild(this.div);var s=this.getMap();s!==null&&(this.boundsChangedListener=google.maps.event.addListener(s,"bounds_changed",this.onBoundsChanged),this.div.addEventListener("mousedown",this.onMouseDown),this.div.addEventListener("click",this.onClick),this.div.addEventListener("mouseover",this.onMouseOver),this.div.addEventListener("mouseout",this.onMouseOut))},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),this.boundsChangedListener!==null&&google.maps.event.removeListener(this.boundsChangedListener),this.div.removeEventListener("mousedown",this.onMouseDown),this.div.removeEventListener("click",this.onClick),this.div.removeEventListener("mouseover",this.onMouseOver),this.div.removeEventListener("mouseout",this.onMouseOut),this.div.parentNode.removeChild(this.div),this.timeOut!==null&&(window.clearTimeout(this.timeOut),this.timeOut=null),this.div=null)},t.prototype.draw=function(){if(this.visible&&this.div!==null&&this.center){var e=this.getPosFromLatLng(this.center);this.div.style.top=e!==null?"".concat(e.y,"px"):"0",this.div.style.left=e!==null?"".concat(e.x,"px"):"0"}},t.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},t.prototype.show=function(){var e,s,i,r,a,c;if(this.div&&this.center){var d=this.sums===null||typeof this.sums.title>"u"||this.sums.title===""?this.cluster.getClusterer().getTitle():this.sums.title,u=this.backgroundPosition.split(" "),g=parseInt(((e=u[0])===null||e===void 0?void 0:e.replace(/^\s+|\s+$/g,""))||"0",10),l=parseInt(((s=u[1])===null||s===void 0?void 0:s.replace(/^\s+|\s+$/g,""))||"0",10),m=this.getPosFromLatLng(this.center);this.div.className=this.className,this.div.setAttribute("style","cursor: pointer; position: absolute; top: ".concat(m!==null?"".concat(m.y,"px"):"0","; left: ").concat(m!==null?"".concat(m.x,"px"):"0","; width: ").concat(this.width,"px; height: ").concat(this.height,"px; "));var f=document.createElement("img");f.alt=d,f.src=this.url,f.width=this.width,f.height=this.height,f.setAttribute("style","position: absolute; top: ".concat(l,"px; left: ").concat(g,"px")),this.cluster.getClusterer().enableRetinaIcons||(f.style.clip="rect(-".concat(l,"px, -").concat(g+this.width,"px, -").concat(l+this.height,", -").concat(g,")"));var x=document.createElement("div");x.setAttribute("style","position: absolute; top: ".concat(this.anchorText[0],"px; left: ").concat(this.anchorText[1],"px; color: ").concat(this.textColor,"; font-size: ").concat(this.textSize,"px; font-family: ").concat(this.fontFamily,"; font-weight: ").concat(this.fontWeight,"; fontStyle: ").concat(this.fontStyle,"; text-decoration: ").concat(this.textDecoration,"; text-align: center; width: ").concat(this.width,"px; line-height: ").concat(this.height,"px")),!((i=this.sums)===null||i===void 0)&&i.text&&(x.innerText="".concat((r=this.sums)===null||r===void 0?void 0:r.text)),!((a=this.sums)===null||a===void 0)&&a.html&&(x.innerHTML="".concat((c=this.sums)===null||c===void 0?void 0:c.html)),this.div.innerHTML="",this.div.appendChild(f),this.div.appendChild(x),this.div.title=d,this.div.style.display=""}this.visible=!0},t.prototype.useStyle=function(e){this.sums=e;var s=this.cluster.getClusterer().getStyles(),i=s[Math.min(s.length-1,Math.max(0,e.index-1))];i&&(this.url=i.url,this.height=i.height,this.width=i.width,i.className&&(this.className="".concat(this.clusterClassName," ").concat(i.className)),this.anchorText=i.anch
37orText||[0,0],this.anchorIcon=i.anchorIcon||[this.height/2,this.width/2],this.textColor=i.textColor||"black",this.textSize=i.textSize||11,this.textDecoration=i.textDecoration||"none",this.fontWeight=i.fontWeight||"bold",this.fontStyle=i.fontStyle||"normal",this.fontFamily=i.fontFamily||"Arial,sans-serif",this.backgroundPosition=i.backgroundPosition||"0 0")},t.prototype.setCenter=function(e){this.center=e},t.prototype.getPosFromLatLng=function(e){var s=this.getProjection().fromLatLngToDivPixel(e);return s!==null&&(s.x-=this.anchorIcon[1],s.y-=this.anchorIcon[0]),s},t}(),Ba=function(){function t(e){this.markerClusterer=e,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new Ua(this,this.markerClusterer.getStyles()),this.getSize=this.getSize.bind(this),this.getMarkers=this.getMarkers.bind(this),this.getCenter=this.getCenter.bind(this),this.getMap=this.getMap.bind(this),this.getClusterer=this.getClusterer.bind(this),this.getBounds=this.getBounds.bind(this),this.remove=this.remove.bind(this),this.addMarker=this.addMarker.bind(this),this.isMarkerInClusterBounds=this.isMarkerInClusterBounds.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.updateIcon=this.updateIcon.bind(this),this.isMarkerAlreadyAdded=this.isMarkerAlreadyAdded.bind(this)}return t.prototype.getSize=function(){return this.markers.length},t.prototype.getMarkers=function(){return this.markers},t.prototype.getCenter=function(){return this.center},t.prototype.getMap=function(){return this.map},t.prototype.getClusterer=function(){return this.markerClusterer},t.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center,this.center),s=this.getMarkers(),i=0,r=s;i<r.length;i++){var a=r[i],c=a.getPosition();c&&e.extend(c)}return e},t.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},t.prototype.addMarker=function(e){var s;if(this.isMarkerAlreadyAdded(e))return!1;if(this.center){if(this.averageCenter){var i=e.getPosition();if(i){var r=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(r-1)+i.lat())/r,(this.center.lng()*(r-1)+i.lng())/r),this.calculateBounds()}}}else{var i=e.getPosition();i&&(this.center=i,this.calculateBounds())}e.isAdded=!0,this.markers.push(e);var a=this.markers.length,c=this.markerClusterer.getMaxZoom(),d=(s=this.map)===null||s===void 0?void 0:s.getZoom();if(c!==null&&typeof d<"u"&&d>c)e.getMap()!==this.map&&e.setMap(this.map);else if(a<this.minClusterSize)e.getMap()!==this.map&&e.setMap(this.map);else if(a===this.minClusterSize)for(var u=0,g=this.markers;u<g.length;u++){var l=g[u];l.setMap(null)}else e.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(e){if(this.bounds!==null){var s=e.getPosition();if(s)return this.bounds.contains(s)}return!1},t.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},t.prototype.updateIcon=function(){var e,s=this.markers.length,i=this.markerClusterer.getMaxZoom(),r=(e=this.map)===null||e===void 0?void 0:e.getZoom();if(i!==null&&typeof r<"u"&&r>i){this.clusterIcon.hide();return}if(s<this.minClusterSize){this.clusterIcon.hide();return}this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show()},t.prototype.isMarkerAlreadyAdded=function(e){if(this.markers.includes)return this.markers.includes(e);for(var s=0;s<this.markers.length;s++)if(e===this.markers[s])return!0;return!1},t}();function za(t,e){var s=t.length,i=s.toString().length,r=Math.min(i,e);return{text:s.toString(),index:r,title:""}}var Fa=2e3,$a=500,Ha="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",Va="png",Wa=[53,56,66,78,90],Ga="cluster",yr=function(){function t(e,s,i){s===void 0&&(s=[]),i===void 0&&(i={}),this.getMinimumClusterSize=this.getMinimumClusterSize.bind(this),this.setMinimumClusterSize=this.setMinimumClusterSize.bind(this),this.getEnableRetinaIcons=this.getEnableRetinaIcons.bind(this),this.setEnableRetinaIcons=this.setEnableRetinaIcons.bind(this),this.addToClosestCluster=this.addToClosestCluster.bind(this),this.getImageExtension=this.getImageExtension.bind(this),this.setImageExtension=this.setImageExtension.bind(this),this.getExtendedBounds=this.getExtendedBounds.bind(this),this.getAverageCenter=this.getAverageCenter.bind(this),this.setAverageCenter=this.setAverageCenter.bind(this),this.getTotalClusters=this.getTotalClusters.bind(this),this.fitMapToMarkers=this.fitMapToMarkers.bind(this),this.getIgnoreHidden=this.getIgnoreHidden.bind(this),this.setIgnoreHidden=this.setIgnoreHidden.bind(this),this.getClusterClass=this.getClusterClass.bind(this),this.setClusterClass=this.setClusterClass.bind(this),this.getTotalMarkers=this.getTotalMarkers.bind(this),this.getZoomOnClick=this.getZoomOnClick.bind(this),this.setZoomOnClick=this.setZoomOnClick.bind(this),this.getBatchSizeIE=this.getBatchSizeIE.bind(this),this.setBatchSizeIE=this.setBatchSizeIE.bind(this),this.createCluster
37s=this.createClusters.bind(this),this.onZoomChanged=this.onZoomChanged.bind(this),this.getImageSizes=this.getImageSizes.bind(this),this.setImageSizes=this.setImageSizes.bind(this),this.getCalculator=this.getCalculator.bind(this),this.setCalculator=this.setCalculator.bind(this),this.removeMarkers=this.removeMarkers.bind(this),this.resetViewport=this.resetViewport.bind(this),this.getImagePath=this.getImagePath.bind(this),this.setImagePath=this.setImagePath.bind(this),this.pushMarkerTo=this.pushMarkerTo.bind(this),this.removeMarker=this.removeMarker.bind(this),this.clearMarkers=this.clearMarkers.bind(this),this.setupStyles=this.setupStyles.bind(this),this.getGridSize=this.getGridSize.bind(this),this.setGridSize=this.setGridSize.bind(this),this.getClusters=this.getClusters.bind(this),this.getMaxZoom=this.getMaxZoom.bind(this),this.setMaxZoom=this.setMaxZoom.bind(this),this.getMarkers=this.getMarkers.bind(this),this.addMarkers=this.addMarkers.bind(this),this.getStyles=this.getStyles.bind(this),this.setStyles=this.setStyles.bind(this),this.addMarker=this.addMarker.bind(this),this.onRemove=this.onRemove.bind(this),this.getTitle=this.getTitle.bind(this),this.setTitle=this.setTitle.bind(this),this.repaint=this.repaint.bind(this),this.onIdle=this.onIdle.bind(this),this.redraw=this.redraw.bind(this),this.onAdd=this.onAdd.bind(this),this.draw=this.draw.bind(this),this.extend=this.extend.bind(this),this.extend(t,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=i.gridSize||60,this.minClusterSize=i.minimumClusterSize||2,this.maxZoom=i.maxZoom||null,this.styles=i.styles||[],this.title=i.title||"",this.zoomOnClick=!0,i.zoomOnClick!==void 0&&(this.zoomOnClick=i.zoomOnClick),this.averageCenter=!1,i.averageCenter!==void 0&&(this.averageCenter=i.averageCenter),this.ignoreHidden=!1,i.ignoreHidden!==void 0&&(this.ignoreHidden=i.ignoreHidden),this.enableRetinaIcons=!1,i.enableRetinaIcons!==void 0&&(this.enableRetinaIcons=i.enableRetinaIcons),this.imagePath=i.imagePath||Ha,this.imageExtension=i.imageExtension||Va,this.imageSizes=i.imageSizes||Wa,this.calculator=i.calculator||za,this.batchSize=i.batchSize||Fa,this.batchSizeIE=i.batchSizeIE||$a,this.clusterClass=i.clusterClass||Ga,navigator.userAgent.toLowerCase().indexOf("msie")!==-1&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(s,!0),this.setMap(e)}return t.prototype.onZoomChanged=function(){var e,s;this.resetViewport(!1),(((e=this.getMap())===null||e===void 0?void 0:e.getZoom())===(this.get("minZoom")||0)||((s=this.getMap())===null||s===void 0?void 0:s.getZoom())===this.get("maxZoom"))&&google.maps.event.trigger(this,"idle")},t.prototype.onIdle=function(){this.redraw()},t.prototype.onAdd=function(){var e=this.getMap();this.activeMap=e,this.ready=!0,this.repaint(),e!==null&&(this.listeners=[google.maps.event.addListener(e,"zoom_changed",this.onZoomChanged),google.maps.event.addListener(e,"idle",this.onIdle)])},t.prototype.onRemove=function(){for(var e=0,s=this.markers;e<s.length;e++){var i=s[e];i.getMap()!==this.activeMap&&i.setMap(this.activeMap)}
vendor: 4,494 bytes, line 37
37for(var r=0,a=this.clusters;r<a.length;r++){var c=a[r];c.remove()}this.clusters=[];for(var d=0,u=this.listeners;d<u.length;d++){var g=u[d];google.maps.event.removeListener(g)}this.listeners=[],this.activeMap=null,this.ready=!1},t.prototype.draw=function(){},t.prototype.getMap=function(){return null},t.prototype.getPanes=function(){return null},t.prototype.getProjection=function(){return{fromContainerPixelToLatLng:function(){return null},fromDivPixelToLatLng:function(){return null},fromLatLngToContainerPixel:function(){return null},fromLatLngToDivPixel:function(){return null},getVisibleRegion:function(){return null},getWorldWidth:function(){return 0}}},t.prototype.setMap=function(){},t.prototype.addListener=function(){return{remove:function(){}}},t.prototype.bindTo=function(){},t.prototype.get=function(){},t.prototype.notify=function(){},t.prototype.set=function(){},t.prototype.setValues=function(){},t.prototype.unbind=function(){},t.prototype.unbindAll=function(){},t.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var e=0;e<this.imageSizes.length;e++)this.styles.push({url:"".concat(this.imagePath+(e+1),".").concat(this.imageExtension),height:this.imageSizes[e]||0,width:this.imageSizes[e]||0})},t.prototype.fitMapToMarkers=function(){for(var e=this.getMarkers(),s=new google.maps.LatLngBounds,i=0,r=e;i<r.length;i++){var a=r[i],c=a.getPosition();c&&s.extend(c)}var d=this.getMap();d!==null&&"fitBounds"in d&&d.fitBounds(s)},t.prototype.getGridSize=function(){return this.gridSize},t.prototype.setGridSize=function(e){this.gridSize=e},t.prototype.getMinimumClusterSize=function(){return this.minClusterSize},t.prototype.setMinimumClusterSize=function(e){this.minClusterSize=e},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.setMaxZoom=function(e){this.maxZoom=e},t.prototype.getStyles=function(){return this.styles},t.prototype.setStyles=function(e){this.styles=e},t.prototype.getTitle=function(){return this.title},t.prototype.setTitle=function(e){this.title=e},t.prototype.getZoomOnClick=function(){return this.zoomOnClick},t.prototype.setZoomOnClick=function(e){this.zoomOnClick=e},t.prototype.getAverageCenter=function(){return this.averageCenter},t.prototype.setAverageCenter=function(e){this.averageCenter=e},t.prototype.getIgnoreHidden=function(){return this.ignoreHidden},t.prototype.setIgnoreHidden=function(e){this.ignoreHidden=e},t.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},t.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons=e},t.prototype.getImageExtension=function(){return this.imageExtension},t.prototype.setImageExtension=function(e){this.imageExtension=e},t.prototype.getImagePath=function(){return this.imagePath},t.prototype.setImagePath=function(e){this.imagePath=e},t.prototype.getImageSizes=function(){return this.imageSizes},t.prototype.setImageSizes=function(e){this.imageSizes=e},t.prototype.getCalculator=function(){return this.calculator},t.prototype.setCalculator=function(e){this.calculator=e},t.prototype.getBatchSizeIE=function(){return this.batchSizeIE},t.prototype.setBatchSizeIE=function(e){this.batchSizeIE=e},t.prototype.getClusterClass=function(){return this.clusterClass},t.prototype.setClusterClass=function(e){this.clusterClass=e},t.prototype.getMarkers=function(){return this.markers},t.prototype.getTotalMarkers=function(){return this.markers.length},t.prototype.getClusters=function(){return this.clusters},t.prototype.getTotalClusters=function(){return this.clusters.length},t.prototype.addMarker=function(e,s){this.pushMarkerTo(e),s||this.redraw()},t.prototype.addMarkers=function(e,s){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var r=e[i];r&&this.pushMarkerTo(r)}s||this.redraw()},t.prototype.pushMarkerTo=function(e){var s=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",function(){s.ready&&(e.isAdded=!1,s.repaint())}),e.isAdded=!1,this.markers.push(e)},t.prototype.removeMarker_=function(e){var s=-1;if(this.markers.indexOf)s=this.markers.indexOf(e);else for(var i=0;i<this.markers.length;i++)if(e===this.markers[i]){s=i;break}return s===-1?!1:(e.setMap(null),this.markers.splice(s,1),!0)},t.prototype.removeMarker=function(e,s){var i=this.removeMarker_(e);return!s&&i&&this.repaint(),i},t.prototype.removeMarkers=function(e,s){for(var i=!1,r=0,a=e;r<a.length;r++){var c=a[r];i=i||this.removeMarker_(c)}return!s&&i&&this.repaint(),i},t.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]}
37,t.prototype.repaint=function(){var e=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout(function(){for(var i=0,r=e;i<r.length;i++){var a=r[i];a.remove()}},0)},t.prototype.getExtendedBounds=function(e){var s=this.getProjection(),i=s.fromLatLngToDivPixel(new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()));i!==null&&(i.x+=this.gridSize,i.y-=this.gridSize);var r=s.fromLatLngToDivPixel(new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()));if(r!==null&&(r.x-=this.gridSize,r.y+=this.gridSize),i!==null){var a=s.fromDivPixelToLatLng(i);a!==null&&e.extend(a)}if(r!==null){var c=s.fromDivPixelToLatLng(r);c!==null&&e.extend(c)}return e},t.prototype.redraw=function(){this.createClusters(0)},t.prototype.resetViewport=function(e){for(var s=0,i=this.clusters;s<i.length;s++){var r=i[s];r.remove()}this.clusters=[];for(var a=0,c=this.markers;a<c.length;a++){var d=c[a];d.isAdded=!1,e&&d.setMap(null)}},t.prototype.distanceBetweenPoints=function(e,s){var i=6371,r=(s.lat()-e.lat())*Math.PI/180,a=(s.lng()-e.lng())*Math.PI/180,c=Math.sin(r/2)*Math.sin(r/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(s.lat()*Math.PI/180)*Math.sin(a/2)*Math.sin(a/2);return i*(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)))},t.prototype.isMarkerInBounds=function(e,s){var i=e.getPosition();return i?s.contains(i):!1},t.prototype.addToClosestCluster=function(e){for(var s,i=4e4,r=null,a=0,c=this.cluster
37s;a<c.length;a++){var d=c[a];s=d;var u=s.getCenter(),g=e.getPosition();if(u&&g){var l=this.distanceBetweenPoints(u,g);l<i&&(i=l,r=s)}}r&&r.isMarkerInClusterBounds(e)?r.addMarker(e):(s=new Ba(this),s.addMarker(e),this.clusters.push(s))},t.prototype.createClusters=function(e){var s=this;if(this.ready){e===0&&(google.maps.event.trigger(this,"clusteringbegin",this),this.timerRefStatic!==null&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var i=this.getMap(),r=i!==null&&("getBounds"in i)?i.getBounds():null,a=(i==null?void 0:i.getZoom())||0,c=a>3?new google.maps.LatLngBounds(r==null?void 0:r.getSouthWest(),r==null?void 0:r.getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),d=this.getExtendedBounds(c),u=Math.min(e+this.batchSize,this.markers.length),g=e;g<u;g++){var l=this.markers[g];l&&!l.isAdded&&this.isMarkerInBounds(l,d)&&(!this.ignoreHidden||this.ignoreHidden&&l.getVisible())&&this.addToClosestCluster(l)}if(u<this.markers.length)this.timerRefStatic=window.setTimeout(function(){s.createClusters(u)},0);else{this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this);
37for(var m=0,f=this.clusters;m<f.length;m++){var x=f[m];x.updateIcon()}}}},t.prototype.extend=function(e,s){return(function(r){for(var a in r.prototype){var c=a;this.prototype[c]=r.prototype[c]}return this}).apply(e,[s])},t}();function Ws(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function qa(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};e%2?Ws(Object(s),!0).forEach(function(i){C(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):Ws(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}var Ue={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},he={averageCenter(t,e){t.setAverageCenter(e)},batchSizeIE(t,e){t.setBatchSizeIE(e)},calculator(t,e){t.setCalculator(e)},clusterClass(t,e){t.setClusterClass(e)},enableRetinaIcons(t,e){t.setEnableRetinaIcons(e)},gridSize(t,e){t.setGridSize(e)},ignoreHidden(t,e){t.setIgnoreHidden(e)},imageExtension(t,e){t.setImageExtension(e)},imagePath(t,e){t.setImagePath(e)},imageSizes(t,e){t.setImageSizes(e)},maxZoom(t,e){t.setMaxZoom(e)},minimumClusterSize(t,e){t.setMinimumClusterSize(e)},styles(t,e){t.setStyles(e)},title(t,e){t.setTitle(e)},zoomOnClick(t,e){t.setZoomOnClick(e)}},Za={};function Ka(t){var{children:e,options:s,averageCenter:i,batchSizeIE:r,calculator:a,clusterClass:c,enableRetinaIcons:d,gridSize:u,ignoreHidden:g,imageExtension:l,imagePath:m,imageSizes:f,maxZoom:x,minimumClusterSize:h,styles:L,title:b,zoomOnClick:D,onClick:P,onClusteringBegin:U,onClusteringEnd:E,onMouseOver:y,onMouseOut:M,onLoad:O,onUnmount:N}=t,[j,B]=o.useState(null),F=o.useContext(oe),[H,T]=o.useState(null),[z,$]=o.useState(null),[A,te]=o.useState(null),[J,Q]=o.use
37State(null),[X,ae]=o.useState(null);return o.useEffect(()=>{j&&M&&(J!==null&&google.maps.event.removeListener(J),Q(google.maps.event.addListener(j,Ue.onMouseOut,M)))},[M]),o.useEffect(()=>{j&&y&&(X!==null&&google.maps.event.removeListener(X),ae(google.maps.event.addListener(j,Ue.onMouseOver,y)))},[y]),o.useEffect(()=>{j&&P&&(H!==null&&google.maps.event.removeListener(H),T(google.maps.event.addListener(j,Ue.onClick,P)))},[P]),o.useEffect(()=>{j&&U&&(z!==null&&google.maps.event.removeListener(z),$(google.maps.event.addListener(j,Ue.onClusteringBegin,U)))},[U]),o.useEffect(()=>{j&&E&&(A!==null&&google.maps.event.removeListener(A),$(google.maps.event.addListener(j,Ue.onClusteringEnd,E)))},[E]),o.useEffect(()=>{typeof i<"u"&&j!==null&&he.averageCenter(j,i)},[j,i]),o.useEffect(()=>{typeof r<"u"&&j!==null&&he.batchSizeIE(j,r)},[j,r]),o.useEffect(()=>{typeof a<"u"&&j!==null&&he.calculator(j,a)},[j,a]),o.useEffect(()=>{typeof c<"u"&&j!==null&&he.clusterClass(j,c)},[j,c]),o.useEffect(()=>{typeof d<"u"&&j!==null&&he.enableRetinaIcons(j,d)},[j,d]),o.useEffect(()=>{typeof u<"u"&&j!==null&&he.gridSize(j,u)},[j,u]),o.useEffect(()=>{typeof g<"u"&&j!==null&&he.ignoreHidden(j,g)},[j,g]),o.useEffect(()=>{typeof l<"u"&&j!==null&&he.imageExtension(j,l)},[j,l]),o.useEffect(()=>{typeof m<"u"&&j!==null&&he.imagePath(j,m)},[j,m]),o.useEffect(()=>{typeof f<"u"&&j!==null&&he.imageSizes(j,f)},[j,f]),o.useEffect(()=>{typeof x<"u"&&j!==null&&he.maxZoom(j,x)},[j,x]),o.useEffect(()=>{typeof h<"u"&&j!==null&&he.minimumClusterSize(j,h)},[j,h]),o.useEffect(()=>{typeof L<"u"&&j!==null&&he.styles(j,L)},[j,L]),o.useEffect(()=>{typeof b<"u"&&j!==null&&he.title(j,b)},[j,b]),o.useEffect(()=>{typeof D<"u"&&j!==null&&he.zoomOnClick(j,D)},[j,D]),o.useEffect(()=>{if(F){var le=qa({},s||Za),W=new yr(F,[],le);return i&&he.averageCenter(W,i),r&&he.batchSizeIE(W,r),a&&he.calculator(W,a),c&&he.clusterClass(W,c),d&&he.enableRetinaIcons(W,d),u&&he.gridSize(W,u),g&&he.ignoreHidden(W,g),l&&he.imageExtension(W,l),m&&he.imagePath(W,m),f&&he.imageSizes(W,f),x&&he.maxZoom(W,x),h&&he.minimumClusterSize(W,h),L&&he.styles(W,L),b&&he.title(W,b),D&&he.zoomOnClick(W,D),M&&Q(google.maps.event.addListener(W,Ue.onMouseOut,M)),y&&ae(google.maps.event.addListener(W,Ue.onMouseOver,y)),P&&T(google.maps.event.addListener(W,Ue.onClick,P)),U&&$(google.maps.event.addListener(W,Ue.onClusteringBegin,U)),E&&te(google.maps.event.addListener(W,Ue.onClusteringEnd,E)),B(W),O&&O(W),()=>{J!==null&&google.maps.event.removeListener(J),X!==null&&google.maps.event.removeListener(X),H!==null&&google.maps.event.removeListener(H),z!==null&&google.maps.event.removeListener(z),A!==null&&google.maps.event.removeListener(A),N&&N(W)}}},[]),j!==null&&e(j)||null}o.memo(Ka);class Ja extends o.PureComponent{constructor(){super(...arguments),C(this,"registeredEvents",[]),C(this,"state",{markerClusterer:null}),C(this,"setClustererCallback",()=>{this.state.markerClusterer!==null&&this.props.onLoad&&this.props.onLoad(this.state.markerClusterer)})}componentDidMount(){if(this.context){var e=new yr(this.context,[],this.props.options);this.registeredEvents=de({updaterMap:he,eventMap:Ue,prevProps:{},nextProps:this.props,instance:e}),this.setState(()=>({markerClusterer:e}),this.setClustererCallback)}}componentDidUpdate(e){this.state.markerClusterer&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:he,eventMap:Ue,prevProps:e,nextProps:this.props,instance:this.state.markerClusterer}))}componentWillUnmount(){this.state.markerClusterer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),ue(this.registeredEvents),this.state.markerClusterer.setMap(null))}render(){return this.state.markerClusterer!==null?this.props.children(this.state.markerClusterer):null}}C(Ja,"contextType",oe);function Gs(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()}var Lr=function(){function t(e){e===void 0&&(e={}),this.getCloseClickHandler=this.getCloseClickHandler.bind(this),this.closeClickHandler=this.closeClickHandler.bind(this),this.createInfoBoxDiv=this.createInfoBoxDiv.bind(this),this.addClickHandler=this.addClickHandler.bind(this),this.getCloseBoxImg=this.getCloseBoxImg.b
37ind(this),this.getBoxWidths=this.getBoxWidths.bind(this),this.setBoxStyle=this.setBoxStyle.bind(this),this.setPosition=this.setPosition.bind(this),this.getPosition=this.getPosition.bind(this),this.setOptions=this.setOptions.bind(this),this.setContent=this.setContent.bind(this),this.setVisible=this.setVisible.bind(this),this.getContent=this.getContent.bind(this),this.getVisible=this.getVisible.bind(this),this.setZIndex=this.setZIndex.bind(this),this.getZIndex=this.getZIndex.bind(this),this.onRemove=this.onRemove.bind(this),this.panBox=this.panBox.bind(this),this.extend=this.extend.bind(this),this.close=this.close.bind(this),this.draw=this.draw.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.open=this.open.bind(this),this.extend(t,google.maps.OverlayView),this.content=e.content||"",this.disableAutoPan=e.disableAutoPan||!1,this.maxWidth=e.maxWidth||0,this.pixelOffset=e.pixelOffset||new google.maps.Size(0,0),this.position=e.position||new google.maps.LatLng(0,0),this.zIndex=e.zIndex||null,this.boxClass=e.boxClass||"infoBox",this.boxStyle=e.boxStyle||{},this.closeBoxMargin=e.closeBoxMargin||"2px",this.closeBoxURL=e.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",e.closeBoxURL===""&&(this.closeBoxURL=""),this.infoBoxClearance=e.infoBoxClearance||new google.maps.Size(1,1),typeof e.visible>"u"&&(typeof e.isHidden>"u"?e.visible=!0:e.visible=!e.isHidden),this.isHidden=!e.visible,this.alignBottom=e.alignBottom||!1,this.pane=e.pane||"floatPane",this.enableEventPropagation=e.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return t.prototype.createInfoBoxDiv=function(){var e=this,s=function(l){l.returnValue=!1,l.preventDefault&&l.preventDefault(),e.enableEventPropagation||Gs(l)};if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),typeof this.content=="string"?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var i=this.getPanes();if(i!==null&&i[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(this.maxWidth!==0&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var r=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-r.left-r.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var a=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],c=0,d=a;c<d.length;c++){var u=d[c];this.eventListeners.push(google.maps.event.addListener(this.div,u,Gs))}this.eventListeners.push(google.maps.event.addListener(this.div,"mouseover",function(){e.div&&(e.div.style.cursor="default")}))}this.contextListener=google.maps.event.addListener(this.div,"contextmenu",s),google.maps.event.trigger(this,"domready")}},t.prototype.getCloseBoxImg=function(){var e="";return this.closeBoxURL!==""&&(e='<img alt=""',e+=' aria-hidden="true"',e+=" src='"+this.closeBoxURL+"'",e+=" align=right",e+=" style='",e+=" position: relative;",e+=" cursor: pointer;",e+=" margin: "+this.closeBoxMargin+";",e+="'>"),e},t.prototype.addClickHandler=function(){this.closeListener=this.div&&this.div.firstChild&&this.closeBoxURL!==""?google.maps.event.addListener(this.div.firstChild,"click",this.getCloseClickHandler()):null},t.prototype.closeClickHandler=function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),google.maps.event.trigger(this,"closeclick"),this.close()},t.prototype.getCloseClickHandler=function(){return this.closeClickHandler},t.prototype.panBox=function(e){if(this.div&&!e){var s=this.getMap();if(s instanceof google.maps.Map){var i=0,r=0,a=s.getBounds();a&&!a.contains(this.position)&&s.setCenter(this.position);var c=s.getDiv(),d=c.offsetWidth,u=c.offsetHeight,g=this.pixelOffset.width,l=this.pixelOffset.height,m=this.div.offsetWidth,f=this.div.offsetHeight,x=this.infoBoxClearance.width,h=this.infoBoxClearance.height,L=this.getProjection(),b=L.fromLatLngToContainerPixel(this.position);b!==null&&(b.x<-g+x?i=b.x+g-x:b.x+m+g+x>d&&(i=b.x+m+g+x-d),this.alignBottom?b.y<-l+h+f?r=b.y+l-h-f:b.y+l+h>u&&(r=b.y+l+h-u):b.y<-l+h?r=b.y+l-h:b.y+f+l+h>u&&(r=b.y+f+l+h-u)),i===0&&r===0||s.panBy(i,r)}}},t.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var e=this.boxStyle;for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(this.div.style[s]=e[s]);if(this.div.style.webkitTransform="translateZ(0)",typeof this.div.style.opacity<"u"&&this.div.style.opacity!==""){var i=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+i*100+')"',this.div.style.filter="alpha(opacity="+i*100+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",this.zIndex!==null&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},t.prototype.getBoxWidths=function(){var e={top:0,bottom:0,left:0,right:0};if(!this.div)return e;if(document.defaultView){var s=this.div.ownerDocument,i=s&&s.defaultView?s.defaultView.getComputedStyle(this.div,""):null;i&&(e.top=parseInt(i.borderTopWidth||"",10)||0,e.bottom=parseInt(i.borderBottomWidth||"",10)||0,e.left=parseInt(i.borderLeftWidth||"",10)||0,e.right=parseInt(i.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var r=this.div.currentStyle;r&&(e.top=parseInt(r.borderTopWidth||"",10)||0,e.bottom=parseInt(r.borderBottomWidth||"",10)||0,e.left=parseInt(r.borderLeftWidth||"",10)||0,e.right=parseInt(r.borderRightWidth||"",10)||0)}return e},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},t.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var e=this.getProjection(),s=e.fromLatLngToDivPixel(this.position);s!==null&&(this.div.style.left=s.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(s.y+this.pixelOffset.height)+"px":this.div.style.top=s.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},t.prototype.setOptions=function(e){e===void 0&&(e={}),typeof e.boxClass<"u"&&(this.boxClass=e.boxClass,this.setBoxStyle()),typeof e.boxStyle<"u"&&(this.boxStyle=e.boxStyle,this.setBoxStyle()),typeof e.content<"u"&&this.setContent(e.content),typeof e.disableAutoPan<"u"&&(this.disableAutoPan=e.disableAutoPan),typeof e.maxWidth<"u"&&(this.maxWidth=e.maxWidth),typeof e.pixelOffset<"u"&&(this.pixelOffset=e.pixelOffset),typeof e.alignBottom<"u"&&(this.alignBottom=e.alignBottom),typeof e.position<"u"&&this.setPosition(e.position),typeof e.zIndex<"u"&&this.setZIndex(e.zIndex),typeof e.closeBoxMargin<"u"&&(this.closeBoxMargin=e.closeBoxMargin),typeof e.closeBoxURL<"u"&&(this.closeBoxURL=e.closeBoxURL),typeof e.infoBoxClearance<"u"&&(this.infoBoxClearance=e.infoBoxClearance),typeof e.isHidden<"u"&&(this.isHidden=e.isHidden),typeof e.visible<"u"&&(this.isHidden=!e.visible),typeof e.enableEventPropagation<"u"&&(this.enableEventPropagation=e.enableEventPropagation),this.div&&this.draw()},t.prototype.setContent=function(e){this.content=e,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),typeof e=="string"?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px",typeof e=="string"?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},t.prototype.setPosition=function(e){this.position=e,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},t.prototype.setVisible=function(e){this.isHidden=!e,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},t.prototype.setZIndex=function(e){this.zIndex=e,this.div&&(this.div.style.zIndex=e+""),google.maps.event.trigger(this,"zindex_changed")},t.prototype.getContent=function(){return this.content},t.prototype.getPosition=function(){return this.position},t.prototype.getZIndex=function(){return this.zIndex},t.prototype.getVisible=function(){var e=this.getMap();return typeof e>"u"||e===null?!1:!this.isHidden},t.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},t.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},t.prototype.open=function(e,s){var i=this;s&&(this.position=s.getPosition(),this.moveListener=google.maps.event.addListener(s,"position_changed",function(){var r=s.getPosition();i.setPosition(r)}),this.mapListener=google.maps.event.addListener(s,"map_changed",function(){i.setMap(s.map)})),this.setMap(e),this.div&&this.panBox()},t.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var e=0,s=this.eventListeners;e<s.length;e++){var i=s[e];google.maps.event.removeListener(i)}this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},t.prototype.extend=function(e,s){return(function(r){for(var a in r.prototype)Object.prototype.hasOwnProperty.call(this,a)||(this.prototype[a]=r.prototype[a]);return this}).apply(e,[s])},t}(),Ya=["position"],Xa=["position"];function qs(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function Sn(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};
37e%2?qs(Object(s),!0).forEach(function(i){C(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):qs(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}var Zs={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},Ks={options(t,e){t.setOptions(e)},position(t,e){e instanceof google.maps.LatLng?t.setPosition(e):t.setPosition(new google.maps.LatLng(e.lat,e.lng))},visible(t,e){t.setVisible(e)},zIndex(t,e){t.setZIndex(e)}},Qa={};function el(t){var{children:e,anchor:s,options:i,position:r,zIndex:a,onCloseClick:c,onDomReady:d,onContentChanged:u,onPositionChanged:g,onZindexChanged:l,onLoad:m,onUnmount:f}=t,x=o.useContext(oe),[h,L]=o.useState(null),[b,D]=o.useState(null),[P,U]=o.useState(null),[E,y]=o.useState(null),[M,O]=o.useState(null),[N,j]=o.useState(null),B=o.useRef(null);return o.useEffect(()=>{x&&h!==null&&(h.close(),s?h.open(x,s):h.getPosition()&&h.open(x))},[x,h,s]),o.useEffect(()=>{i&&h!==null&&h.setOptions(i)},[h,i]),o.useEffect(()=>{if(r&&h!==null){var F=r instanceof google.maps.LatLng?r:new google.maps.LatLng(r.lat,r.lng);h.setPosition(F)}},[r]),o.useEffect(()=>{typeof a=="number"&&h!==null&&h.setZIndex(a)},[a]),o.useEffect(()=>{h&&c&&(b!==null&&google.maps.event.removeListener(b),D(google.maps.event.addListener(h,"closeclick",c)))},[c]),o.useEffect(()=>{h&&d&&(P!==null&&google.maps.event.removeListener(P),U(google.maps.event.addListener(h,"domready",d)))},[d]),o.useEffect(()=>{h&&u&&(E!==null&&google.maps.event.removeListener(E),y(google.maps.event.addListener(h,"content_changed",u)))},[u]),o.useEffect(()=>{h&&g&&(M!==null&&google.maps.event.removeListener(M),O(google.maps.event.addListener(h,"position_changed",g)))},[g]),o.useEffect(()=>{h&&l&&(N!==null&&google.maps.event.removeListener(N),j(google.maps.event.addListener(h,"zindex_changed",l)))},[l]),o.useEffect(()=>{if(x){var F=i||Qa,{position:H}=F,T=os(F,Ya),z;H&&!(H instanceof google.maps.LatLng)&&(z=new google.maps.LatLng(H.lat,H.lng));var $=new Lr(Sn(Sn({},T),z?{position:z}:{}));B.current=document.createElement("div"),L($),c&&D(google.maps.event.addListener($,"closeclick",c)),d&&U(google.maps.event.addListener($,"domready",d)),u&&y(google.maps.event.addListener($,"content_changed",u)),g&&O(google.maps.event.addListener($,"position_changed",g)),l&&j(google.maps.event.addListener($,"zindex_changed",l)),$.setContent(B.current),s?$.open(x,s):$.getPosition()?$.open(x):ye(!1,"You must provide either an anchor or a position prop for <InfoBox>."),m&&m($)}return()=>{h!==null&&(b&&google.maps.event.removeListener(b),E&&google.maps.event.removeListener(E),P&&google.maps.event.removeListener(P),M&&google.maps.event.removeListener(M),N&&google.maps.event.removeListener(N),f&&f(h),h.close())}},[]),B.current?Bt.createPortal(o.Children.only(e),B.current):null}o.memo(el);class tl extends o.PureComponent{constructor(){super(...arguments),C(this,"registeredEvents",[]),C(this,"containerElement",null),C(this,"state",{infoBox:null}),C(this,"open",(e,s)=>{s?this.context!==null&&e.open(this.context,s):e.getPosition()?this.context!==null&&e.open(this.context):ye(!1,"You must provide either an anchor or a position prop for <InfoBox>.")}),C(this,"setInfoBoxCallback",()=>{this.state.infoBox!==null&&this.containerElement!==null&&(this.state.infoBox.setContent(this.containerElement),this.open(this.state.infoBox,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoBox))})}componentDidMount(){var e=this.props.options||{},{position:s}=e,i=os(e,Xa),r;s&&!(s instanceof google.maps.LatLng)&&(r=new google.maps.LatLng(s.lat,s.lng));var a=new Lr(Sn(Sn({},i),r?{position:r}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=de({updaterMap:Ks,eventMap:Zs,prevProps:{},nextProps:this.props,instance:a}),this.setState({infoBox:a},this.setInfoBoxCallback)}componentDidUpdate(e){var{infoBox:s}=this.state;s!==null&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:Ks,eventMap:Zs,prevProps:e,nextProps:this.props,instance:s}))}componentWillUnmount(){var{onUnmount:e}=this.props,{infoBox:s}=this.state;s!==null&&(e&&e(s),ue(this.registeredEvents),s.close())}render(){return this.containerElement?Bt.createPortal(o.Children.only(this.props.children),this.containerElement):null}}C(tl,"contextType",oe);var Un,Js;function nl(){return Js||(Js=1,Un=function t(e,s){if(e===s)return!0;
37if(e&&s&&typeof e=="object"&&typeof s=="object"){if(e.constructor!==s.constructor)return!1;var i,r,a;if(Array.isArray(e)){if(i=e.length,i!=s.length)return!1;for(r=i;r--!==0;)if(!t(e[r],s[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if(a=Object.keys(e),i=a.length,i!==Object.keys(s).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(s,a[r]))return!1;for(r=i;r--!==0;){var c=a[r];if(!t(e[c],s[c]))return!1}return!0}return e!==e&&s!==s}),Un}var sl=nl(),Ys=hr(sl),Xs=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],Bn=1,tn=8;class as{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");var[s,i]=new Uint8Array(e,0,2);if(s!==219)throw new Error("Data does not appear to be in a KDBush format.");var r=i>>4;if(r!==Bn)throw new Error("Got v".concat(r," data when expected v").concat(Bn,"."));var a=Xs[i&15];if(!a)throw new Error("Unrecognized array type.");var[c]=new Uint16Array(e,2,1),[d]=new Uint32Array(e,4,1);return new as(d,c,a,e)}constructor(e){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:64,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Float64Array,r=arguments.length>3?arguments[3]:void 0;if(isNaN(e)||e<0)throw new Error("Unpexpected numItems value: ".concat(e,"."));this.numItems=+e,this.nodeSize=Math.min(Math.max(+s,2),65535),this.ArrayType=i,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;var a=Xs.indexOf(this.ArrayType),c=e*2*this.ArrayType.BYTES_PER_ELEMENT,d=e*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-d%8)%8;if(a<0)throw new Error("Unexpected typed array class: ".concat(i,"."));r&&r instanceof ArrayBuffer?(this.data=r,this.ids=new this.IndexArrayType(this.data,tn,e),this.coords=new this.ArrayType(this.data,tn+d+u,e*2),this._pos=e*2,this._finished=!0):(this.data=new ArrayBuffer(tn+c+d+u),this.ids=new this.IndexArrayType(this.data,tn,e),this.coords=new this.ArrayType(this.data,tn+d+u,e*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(Bn<<4)+a]),new Uint16Array(this.data,2,1)[0]=s,new Uint32Array(this.data,4,1)[0]=e)}add(e,s){var i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=e,this.coords[this._pos++]=s,i}finish(){var e=this._pos>>1;if(e!==this.numItems)throw new Error("Added ".concat(e," items when expected ").concat(this.numItems,"."));return Zn(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,s,i,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var{ids:a,coords:c,nodeSize:d}=this,u=[0,a.length-1,0],g=[];u.length;){var l=u.pop()||0,m=u.pop()||0,f=u.pop()||0;if(m-f<=d){for(var x=f;x<=m;x++){var h=c[2*x],L=c[2*x+1];h>=e&&h<=i&&L>=s&&L<=r&&g.push(a[x])}continue}var b=f+m>>1,D=c[2*b],P=c[2*b+1];D>=e&&D<=i&&P>=s&&P<=r&&g.push(a[b]),(l===0?e<=D:s<=P)&&(u.push(f),u.push(b-1),u.push(1-l)),(l===0?i>=D:r>=P)&&(u.push(b+1),u.push(m),u.push(1-l))}return g}within(e,s,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var{ids:r,coords:a,nodeSize:c}=this,d=[0,r.length-1,0],u=[],g=i*i;d.length;){var l=d.pop()||0,m=d.pop()||0,f=d.pop()||0;if(m-f<=c){for(var x=f;x<=m;x++)Qs(a[2*x],a[2*x+1],e,s)<=g&&u.push(r[x]);continue}var h=f+m>>1,L=a[2*h],b=a[2*h+1];Qs(L,b,e,s)<=g&&u.push(r[h]),(l===0?e-i<=L:s-i<=b)&&(d.push(f),d.push(h-1),d.push(1-l)),(l===0?e+i>=L:s+i>=b)&&(d.push(h+1),d.push(m),d.push(1-l))}return u}}function Zn(t,e,s,i,r,a){if(!(r-i<=s)){var c=i+r>>1;jr(t,e,c,i,r,a),Zn(t,e,s,i,c-1,1-a),Zn(t,e,s,c+1,r,1-a)}}function jr(t,e,s,i,r,a){for(;r>i;){if(r-i>600){var c=r-i+1,d=s-i+1,u=Math.log(c),g=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*g*(c-g)/c)*(d-c/2<0?-1:1),m=Math.max(i,Math.floor(s-d*g/c+l)),f=Math.min(r,Math.floor(s+(c-d)*g/c+l));jr(t,e,s,m,f,a)}var x=e[2*s+a],h=i,L=r;for(nn(t,e,i,s),e[2*r+a]>x&&nn(t,e,i,r);h<L;){for(nn(t,e,h,L),h++,L--;e[2*h+a]<x;)h++;for(;e[2*L+a]>x;)L--}
37e[2*i+a]===x?nn(t,e,i,L):(L++,nn(t,e,L,r)),L<=s&&(i=L+1),s<=L&&(r=L-1)}}function nn(t,e,s,i){zn(t,s,i),zn(e,2*s,2*i),zn(e,2*s+1,2*i+1)}function zn(t,e,s){var i=t[e];t[e]=t[s],t[s]=i}function Qs(t,e,s,i){var r=t-s,a=e-i;return r*r+a*a}var il={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},ei=Math.fround||(t=>e=>(t[0]=+e,t[0]))(new Float32Array(1)),St=2,xt=3,Fn=4,ft=5,Cr=6;class rl{constructor(e){this.options=Object.assign(Object.create(il),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){var{log:s,minZoom:i,maxZoom:r}=this.options;s&&console.time("total time");var a="prepare ".concat(e.length," points");s&&console.time(a),this.points=e;for(var c=[],d=0;d<e.length;d++){var u=e[d];if(u.geometry){var[g,l]=u.geometry.coordinates,m=ei(fn(g)),f=ei(vn(l));c.push(m,f,1/0,d,-1,1),this.options.reduce&&c.push(0)}}var x=this.trees[r+1]=this._createTree(c);s&&console.timeEnd(a);for(var h=r;h>=i;h--){var L=+Date.now();x=this.trees[h]=this._createTree(this._cluster(x,h)),s&&console.log("z%d: %d clusters in %dms",h,x.numItems,+Date.now()-L)}return s&&console.timeEnd("total time"),this}getClusters(e,s){var i=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),a=e[2]===180?180:((e[2]+180)%360+360)%360-180,c=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)i=-180,a=180;else if(i>a){var d=this.getClusters([i,r,180,c],s),u=this.getClusters([-180,r,a,c],s);return d.concat(u)}var g=this.trees[this._limitZoom(s)],l=g.range(fn(i),vn(c),fn(a),vn(r)),m=g.data,f=[];for(var x of l){var h=this.stride*x;f.push(m[h+ft]>1?ti(m,h,this.clusterProps):this.points[m[h+xt]])}return f}getChildren(e){var s=this._getOriginId(e),i=this._getOriginZoom(e),r="No cluster with the specified id.",a=this.trees[i];if(!a)throw new Error(r);var c=a.data;if(s*this.stride>=c.length)throw new Error(r);var d=this.options.radius/(this.options.extent*Math.pow(2,i-1)),u=c[s*this.stride],g=c[s*this.stride+1],l=a.within(u,g,d),m=[];for(var f of l){var x=f*this.stride;c[x+Fn]===e&&m.push(c[x+ft]>1?ti(c,x,this.clusterProps):this.points[c[x+xt]])}if(m.length===0)throw new Error(r);return m}getLeaves(e,s,i){s=s||10,i=i||0;var r=[];return this._appendLeaves(r,e,s,i,0),r}getTile(e,s,i){var r=this.trees[this._limitZoom(e)],a=Math.pow(2,e),{extent:c,radius:d}=this.options,u=d/c,g=(i-u)/a,l=(i+1+u)/a,m={features:[]};return this._addTileFeatures(r.range((s-u)/a,g,(s+1+u)/a,l),r.data,s,i,a,m),s===0&&this._addTileFeatures(r.range(1-u/a,g,1,l),r.data,a,i,a,m),s===a-1&&this._addTileFeatures(r.range(0,g,u/a,l),r.data,-1,i,a,m),m.features.length?m:null}getClusterExpansionZoom(e){for(var s=this._getOriginZoom(e)-1;s<=this.options.maxZoom;){var i=this.getChildren(e);if(s++,i.length!==1)break;e=i[0].properties.cluster_id}return s}_appendLeaves(e,s,i,r,a){var c=this.getChildren(s);for(var d of c){var u=d.properties;if(u&&u.cluster?a+u.point_count<=r?a+=u.point_count:a=this._appendLeaves(e,u.cluster_id,i,r,a):a<r?a++:e.push(d),e.length===i)break}return a}_createTree(e){for(var s=new as(e.length/this.stride|0,this.options.nodeSize,Float32Array),i=0;i<e.length;i+=this.stride)s.add(e[i],e[i+1]);return s.finish(),s.data=e,s}_addTileFeatures(e,s,i,r,a,c){for(var d of e){var u=d*this.stride,g=s[u+ft]>1,l=void 0,m=void 0,f=void 0;if(g)l=Mr(s,u,this.clusterProps),m=s[u],f=s[u+1];else{var x=this.points[s[u+xt]];l=x.properties;var[h,L]=x.geometry.coordinates;m=fn(h),f=vn(L)}var b={type:1,geometry:[[Math.round(this.options.extent*(m*a-i)),Math.round(this.options.extent*(f*a-r))]],tags:l},D=void 0;g||this.options.generateId?D=s[u+xt]:D=this.points[s[u+xt]].id,D!==void 0&&(b.id=D),c.features.push(b)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,s){for(var{radius:i,extent:r,reduce:a,minPoints:c}=this.options,d=i/(r*Math.pow(2,s)),u=e.data,g=[],l=this.stride,m=0;m<u.length;m+=l)if(!(u[m+St]<=s)){u[m+St]=s;var f=u[m],x=u[m+1],h=e.within(u[m],u[m+1],d),L=u[m+ft],b=L;for(var D of h){var P=D*l;u[P+St]>s&&(b+=u[P+ft])}if(b>L&&b>=c){var U=f*L,E=x*L,y=void 0,M=-1,O=((m/l|0)<<5)+(s+1)+this.points.length;for(var N of h){var j=N*l;if(!(u[j+St]<=s)){u[j+St]=s;var B=u[j+ft];U+=u[j]*B,E+=u[j+1]*B,u[j+Fn]=O,a&&(y||(y=this._map(u,m,!0),M=this.clusterProps.length,this.clusterProps.push(y)),a(y,this._map(u,j)))}}u[m+Fn]=O,g.push(U/b,E/b,1/0,O,-1,b),a&&g.push(M)}else{for(var F=0;F<l;F++)g.push(u[m+F]);if(b>1)for(var H of h){var T=H*l;if(!(u[T+St]<=s)){u[T+St]=s;for(var z=0;z<l;z++)g.push(u[T+z])}}}}return g}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,s,i){if(e[s+ft]>1){var r=this.clusterProps[e[s+Cr]];return i?Object.assign({},r):r}var a=this.points[e[s+xt]].properties,c=this.options.map(a);return i&&c===a?Object.assign({},c):c}}function ti(t,e,s){return{type:"Feature",id:t[e+xt],properties:Mr(t,e,s),geometry:{type:"Point",coordinates:[ol(t[e]),al(t[e+1])]}}}function Mr(t,e,s){var i=t[e+ft],r=i>=1e4?"".concat(Math.round(i/1e3),"k"):i>
37=1e3?"".concat(Math.round(i/100)/10,"k"):i,a=t[e+Cr],c=a===-1?{}:Object.assign({},s[a]);return Object.assign(c,{cluster:!0,cluster_id:t[e+xt],point_count:i,point_count_abbreviated:r})}function fn(t){return t/360+.5}function vn(t){var e=Math.sin(t*Math.PI/180),s=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return s<0?0:s>1?1:s}function ol(t){return(t-.5)*360}function al(t){var e=(180-t*360)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}/*! ***************************************************************************** 38Copyright (c) Microsoft Corporation. 39 40Permission to use, copy, modify, and/or distribute this software for any 41purpose with or without fee is hereby granted. 42 43THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 44REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 45AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 46INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 47LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 48OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 49PERFORMANCE OF THIS SOFTWARE. 50***************************************************************************** */function ll(t,e){var s={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(s[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(s[i[r]]=t[i[r]]);return s}class Re{static isAdvancedMarkerAvailable(e){return google.maps.marker&&e.getMapCapabilities().isAdvancedMarkersAvailable===!0}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,s){this.isAdvancedMarker(e)?e.map=s:e.setMap(s)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(e.position.lat&&e.position.lng)return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return this.isAdvancedMarker(e)?!0:e.getVisible()}}class Kn{constructor(e){var{markers:s,position:i}=e;this.markers=s,i&&(i instanceof google.maps.LatLng?this._position=i:this._position=new google.maps.LatLng(i))}get bounds(){if(!(this.markers.length===0&&!this._position)){var e=new google.maps.LatLngBounds(this._position,this._position);for(var s of this.markers)e.extend(Re.getPosition(s));return e}}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(e=>Re.getVisible(e)).length}push(e){this.markers.push(e)}delete(){this.marker&&(Re.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class cl{constructor(e){var{maxZoom:s=16}=e;this.maxZoom=s}noop(e){var{markers:s}=e;return dl(s)}}var dl=t=>{var e=t.map(s=>new Kn({position:Re.getPosition(s),markers:[s]}));return e};class ul extends cl{constructor(e){var{maxZoom:s,radius:i=60}=e,r=ll(e,["maxZoom","radius"]);super({maxZoom:s}),this.state={zoom:-1},this.superCluster=new rl(Object.assign({maxZoom:this.maxZoom,radius:i},r))}calculate(e){var s=!1,i={zoom:e.map.getZoom()};if(!Ys(e.markers,this.markers)){s=!0,this.markers=[...e.markers];var r=this.markers.map(a=>{var c=Re.getPosition(a),d=[c.lng(),c.lat()];return{type:"Feature",geometry:{type:"Point",coordinates:d},properties:{marker:a}}});this.superCluster.load(r)}return s||(this.state.zoom<=this.maxZoom||i.zoom<=this.maxZoom)&&(s=!Ys(this.state,i)),this.state=i,s&&(this.cluster
50s=this.cluster(e)),{clusters:this.clusters,changed:s}}cluster(e){var{map:s}=e;return this.superCluster.getClusters([-180,-90,180,90],Math.round(s.getZoom())).map(i=>this.transformCluster(i))}transformCluster(e){var{geometry:{coordinates:[s,i]},properties:r}=e;if(r.cluster)return new Kn({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(c=>c.properties.marker),position:{lat:i,lng:s}});var a=r.marker;return new Kn({markers:[a],position:Re.getPosition(a)})}}class pl{constructor(e,s){this.markers={sum:e.length};var i=s.map(a=>a.count),r=i.reduce((a,c)=>a+c,0);this.clusters={count:s.length,markers:{mean:r/s.length,sum:r,min:Math.min(...i),max:Math.max(...i)}}}}class ml{render(e,s,i){var{count:r,position:a}=e,c=r>Math.max(10,s.clusters.markers.mean)?"#ff0000":"#0000ff",d='<svg fill="'.concat(c,`" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50"> 51<circle cx="120" cy="120" opacity=".6" r="70" /> 52<circle cx="120" cy="120" opacity=".3" r="90" /> 53<circle cx="120" cy="120" opacity=".2" r="110" /> 54<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">`).concat(r,`</text> 55</svg>`),u="Cluster of ".concat(r," markers"),g=Number(google.maps.Marker.MAX_ZINDEX)+r;if(Re.isAdvancedMarkerAvailable(i)){var l=new DOMParser,m=l.parseFromString(d,"image/svg+xml").documentElement;m.setAttribute("transform","translate(0 25)");var f={map:i,position:a,zIndex:g,title:u,content:m};return new google.maps.marker.AdvancedMarkerElement(f)}var x={position:a,zIndex:g,title:u,icon:{url:"data:image/svg+xml;base64,".concat(btoa(d)),anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(x)}}function hl(t,e){for(var s in e.prototype)t.prototype[s]=e.prototype[s]}class ls{constructor(){hl(ls,google.maps.OverlayView)}}var sn;(function(t){t.CLUSTERING_BEGIN="clusteringbegin",t.CLUSTERING_END="clusteringend",t.CLUSTER_CLICK="click"})(sn||(sn={}));var gl=(t,e,s)=>{s.fitBounds(e.bounds)};class fl extends ls{constructor(e){var{map:s,markers:i=[],algorithmOptions:r={},algorithm:a=new ul(r),renderer:c=new ml,onClusterClick:d=gl}=e;super(),this.markers=[...i],this.clusters=[],this.algorithm=a,this.renderer=c,this.onClusterClick=d,s&&this.setMap(s)}addMarker(e,s){this.markers.includes(e)||(this.markers.push(e),s||this.render())}addMarkers(e,s){e.forEach(i=>{this.addMarker(i,!0)}),s||this.render()}removeMarker(e,s){var i=this.markers.indexOf(e);return i===-1?!1:(Re.setMap(e,null),this.markers.splice(i,1),s||this.render(),!0)}removeMarkers(e,s){var i=!1;return e.forEach(r=>{i=this.removeMarker(r,!0)||i}),i&&!s&&this.render(),i}clearMarkers(e){this.markers.length=0,e||this.render()}render(){var e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,sn.CLUSTERING_BEGIN,this);var{clusters:s,changed:i}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(i||i==null){var r=new Set;for(var a of s)a.markers.length==1&&r.add(a.markers[0]);var c=[];for(var d of this.clusters)d.marker!=null&&(d.markers.length==1?r.has(d.marker)||Re.setMap(d.marker,null):c.push(d.marker));this.clusters=s,this.renderClusters(),requestAnimationFrame(()=>c.forEach(u=>Re.setMap(u,null)))}google.maps.event.trigger(this,sn.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(e=>Re.setMap(e,null)),this.clusters.forEach(e=>e.delete()),this.clusters=[]}renderClusters(){var e=new pl(this.markers,this.clusters),s=this.getMap();this.clusters.forEach(i=>{i.markers.length===1?i.marker=i.markers[0]:(i.marker=this.renderer.render(i,e,s),i.markers.forEach(r=>Re.setMap(r,null)),this.onClusterClick&&i.marker.addListener("click",r=>{google.maps.event.trigger(this,sn.CLUSTER_CLICK,i),this.onClusterClick(r,i,s)})),Re.setMap(i.marker,s)})}}function ni(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function si(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};
55e%2?ni(Object(s),!0).forEach(function(i){C(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):ni(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}function vl(t){var e=ca(),[s,i]=o.useState(null);return o.useEffect(()=>{if(e&&s===null){var r=new fl(si(si({},t),{},{map:e}));i(r)}},[e]),s}function xl(t){var{children:e,options:s}=t,i=vl(s);return i!==null?e(i):null}o.memo(xl);var ii={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},ri={options(t,e){t.setOptions(e)},position(t,e){t.setPosition(e)},zIndex(t,e){t.setZIndex(e)}};function bl(t){var{children:e,anchor:s,options:i,position:r,zIndex:a,onCloseClick:c,onDomReady:d,onContentChanged:u,onPositionChanged:g,onZindexChanged:l,onLoad:m,onUnmount:f}=t,x=o.useContext(oe),[h,L]=o.useState(null),[b,D]=o.useState(null),[P,U]=o.useState(null),[E,y]=o.useState(null),[M,O]=o.useState(null),[N,j]=o.useState(null),B=o.useRef(null);return o.useEffect(()=>{h!==null&&(h.close(),s?h.open(x,s):h.getPosition()&&h.open(x))},[x,h,s]),o.useEffect(()=>{i&&h!==null&&h.setOptions(i)},[h,i]),o.useEffect(()=>{r&&h!==null&&h.setPosition(r)},[r]),o.useEffect(()=>{typeof a=="number"&&h!==null&&h.setZIndex(a)},[a]),o.useEffect(()=>{h&&c&&(b!==null&&google.maps.event.removeListener(b),D(google.maps.event.addListener(h,"closeclick",c)))},[c]),o.useEffect(()=>{h&&d&&(P!==null&&google.maps.event.removeListener(P),U(google.maps.event.addListener(h,"domready",d)))},[d]),o.useEffect(()=>{h&&u&&(E!==null&&google.maps.event.removeListener(E),y(google.maps.event.addListener(h,"content_changed",u)))},[u]),o.useEffect(()=>{h&&g&&(M!==null&&google.maps.event.removeListener(M),O(google.maps.event.addListener(h,"position_changed",g)))},[g]),o.useEffect(()=>{h&&l&&(N!==null&&google.maps.event.removeListener(N),j(google.maps.event.addListener(h,"zindex_changed",l)))},[l]),o.useEffect(()=>{var F=new google.maps.InfoWindow(i);return L(F),B.current=document.createElement("div"),c&&D(google.maps.event.addListener(F,"closeclick",c)),d&&U(google.maps.event.addListener(F,"domready",d)),u&&y(google.maps.event.addListener(F,"content_changed",u)),g&&O(google.maps.event.addListener(F,"position_changed",g)),l&&j(google.maps.event.addListener(F,"zindex_changed",l)),F.setContent(B.current),r&&F.setPosition(r),a&&F.setZIndex(a),s?F.open(x,s):F.getPosition()?F.open(x):ye(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."),m&&m(F),()=>{b&&google.maps.event.removeListener(b),E&&google.maps.event.removeListener(E),P&&google.maps.event.removeListener(P),M&&google.maps.event.removeListener(M),N&&google.maps.event.removeListener(N),f&&f(F),F.close()}},[]),B.current?Bt.createPortal(o.Children.only(e),B.current):null}o.memo(bl);class yl extends o.PureComponent{constructor(){super(...arguments),C(this,"registeredEvents",[]),C(this,"containerElement",null),C(this,"state",{infoWindow:null}),C(this,"open",(e,s)=>{s?e.open(this.context,s):e.getPosition()?e.open(this.context):ye(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")}),C(this,"setInfoWindowCallback",()=>{this.state.infoWindow!==null&&this.containerElement!==null&&(this.state.infoWindow.setContent(this.containerElement),this.open(this.state.infoWindow,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoWindow))})}componentDidMount(){var e=new google.maps.InfoWindow(this.props.options);this.containerElement=document.createElement("div"),this.registeredEvents=de({updaterMap:ri,eventMap:ii,prevProps:{},nextProps:this.props,instance:e}),this.setState(()=>({infoWindow:e}),this.setInfoWindowCallback)}componentDidUpdate(e){this.state.infoWindow!==null&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:ri,eventMap:ii,prevProps:e,nextProps:this.props,instance:this.state.infoWindow}))}componentWillUnmount(){this.state.infoWindow!==null&&(ue(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())}render(){return this.containerElement?Bt.createPortal(o.Children.only(this.props.children),this.containerElement):null}}C(yl,"contextType",oe);function oi(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function wn(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};
55e%2?oi(Object(s),!0).forEach(function(i){C(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):oi(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}var ai={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},li={draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},path(t,e){t.setPath(e)},visible(t,e){t.setVisible(e)}},Ll={};function jl(t){var{options:e,draggable:s,editable:i,visible:r,path:a,onDblClick:c,onDragEnd:d,onDragStart:u,onMouseDown:g,onMouseMove:l,onMouseOut:m,onMouseOver:f,onMouseUp:x,onRightClick:h,onClick:L,onDrag:b,onLoad:D,onUnmount:P}=t,U=o.useContext(oe),[E,y]=o.useState(null),[M,O]=o.useState(null),[N,j]=o.useState(null),[B,F]=o.useState(null),[H,T]=o.useState(null),[z,$]=o.useState(null),[A,te]=o.useState(null),[J,Q]=o.use
55State(null),[X,ae]=o.useState(null),[le,W]=o.useState(null),[re,k]=o.useState(null),[pe,fe]=o.useState(null);return o.useEffect(()=>{E!==null&&E.setMap(U)},[U]),o.useEffect(()=>{typeof e<"u"&&E!==null&&E.setOptions(e)},[E,e]),o.useEffect(()=>{typeof s<"u"&&E!==null&&E.setDraggable(s)},[E,s]),o.useEffect(()=>{typeof i<"u"&&E!==null&&E.setEditable(i)},[E,i]),o.useEffect(()=>{typeof r<"u"&&E!==null&&E.setVisible(r)},[E,r]),o.useEffect(()=>{typeof a<"u"&&E!==null&&E.setPath(a)},[E,a]),o.useEffect(()=>{E&&c&&(M!==null&&google.maps.event.removeListener(M),O(google.maps.event.addListener(E,"dblclick",c)))},[c]),o.useEffect(()=>{E&&d&&(N!==null&&google.maps.event.removeListener(N),j(google.maps.event.addListener(E,"dragend",d)))},[d]),o.useEffect(()=>{E&&u&&(B!==null&&google.maps.event.removeListener(B),F(google.maps.event.addListener(E,"dragstart",u)))},[u]),o.useEffect(()=>{E&&g&&(H!==null&&google.maps.event.removeListener(H),T(google.maps.event.addListener(E,"mousedown",g)))},[g]),o.useEffect(()=>{E&&l&&(z!==null&&google.maps.event.removeListener(z),$(google.maps.event.addListener(E,"mousemove",l)))},[l]),o.useEffect(()=>{E&&m&&(A!==null&&google.maps.event.removeListener(A),te(google.maps.event.addListener(E,"mouseout",m)))},[m]),o.useEffect(()=>{E&&f&&(J!==null&&google.maps.event.removeListener(J),Q(google.maps.event.addListener(E,"mouseover",f)))},[f]),o.useEffect(()=>{E&&x&&(X!==null&&google.maps.event.removeListener(X),ae(google.maps.event.addListener(E,"mouseup",x)))},[x]),o.useEffect(()=>{E&&h&&(le!==null&&google.maps.event.removeListener(le),W(google.maps.event.addListener(E,"rightclick",h)))},[h]),o.useEffect(()=>{E&&L&&(re!==null&&google.maps.event.removeListener(re),k(google.maps.event.addListener(E,"click",L)))},[L]),o.useEffect(()=>{E&&b&&(pe!==null&&google.maps.event.removeListener(pe),fe(google.maps.event.addListener(E,"drag",b)))},[b]),o.useEffect(()=>{var Z=new google.maps.Polyline(wn(wn({},e||Ll),{},{map:U}));return a&&Z.setPath(a),typeof r<"u"&&Z.setVisible(r),typeof i<"u"&&Z.setEditable(i),typeof s<"u"&&Z.setDraggable(s),c&&O(google.maps.event.addListener(Z,"dblclick",c)),d&&j(google.maps.event.addListener(Z,"dragend",d)),u&&F(google.maps.event.addListener(Z,"dragstart",u)),g&&T(google.maps.event.addListener(Z,"mousedown",g)),l&&$(google.maps.event.addListener(Z,"mousemove",l)),m&&te(google.maps.event.addListener(Z,"mouseout",m)),f&&Q(google.maps.event.addListener(Z,"mouseover",f)),x&&ae(google.maps.event.addListener(Z,"mouseup",x)),h&&W(google.maps.event.addListener(Z,"rightclick",h)),L&&k(google.maps.event.addListener(Z,"click",L)),b&&fe(google.maps.event.addListener(Z,"drag",b)),y(Z),D&&D(Z),()=>{M!==null&&google.maps.event.removeListener(M),N!==null&&google.maps.event.removeListener(N),B!==null&&google.maps.event.removeListener(B),H!==null&&google.maps.event.removeListener(H),z!==null&&google.maps.event.removeListener(z),A!==null&&google.maps.event.removeListener(A),J!==null&&google.maps.event.removeListener(J),X!==null&&google.maps.event.removeListener(X),le!==null&&google.maps.event.removeListener(le),re!==null&&google.maps.event.removeListener(re),P&&P(Z),Z.setMap(null)}},[]),null}o.memo(jl);class Cl extends o.PureComponent{constructor(){super(...arguments),C(this,"registeredEvents",[]),C(this,"state",{polyline:null}),C(this,"setPolylineCallback",()=>{this.state.polyline!==null&&this.props.onLoad&&this.props.onLoad(this.state.polyline)})}componentDidMount(){var e=new google.maps.Polyline(wn(wn({},this.props.options),{},{map:this.context}));this.registeredEvents=de({updaterMap:li,eventMap:ai,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{polyline:e}},this.setPolylineCallback)}componentDidUpdate(e){this.state.polyline!==null&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:li,eventMap:ai,prevProps:e,nextProps:this.props,instance:this.state.polyline}))}componentWillUnmount(){this.state.polyline!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),ue(this.registeredEvents),this.state.polyline.setMap(null))}render(){return null}}C(Cl,"contextType",oe);function ci(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function di(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};
55e%2?ci(Object(s),!0).forEach(function(i){C(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):ci(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}var ui={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},pi={draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},path(t,e){t.setPath(e)},paths(t,e){t.setPaths(e)},visible(t,e){t.setVisible(e)}};function Ml(t){var{options:e,draggable:s,editable:i,visible:r,path:a,paths:c,onDblClick:d,onDragEnd:u,onDragStart:g,onMouseDown:l,onMouseMove:m,onMouseOut:f,onMouseOver:x,onMouseUp:h,onRightClick:L,onClick:b,onDrag:D,onLoad:P,onUnmount:U,onEdit:E}=t,y=o.useContext(oe),[M,O]=o.useState(null),[N,j]=o.useState(null),[B,F]=o.useState(null),[H,T]=o.useState(null),[z,$]=o.useState(null),[A,te]=o.useState(null),[J,Q]=o.use
55State(null),[X,ae]=o.useState(null),[le,W]=o.useState(null),[re,k]=o.useState(null),[pe,fe]=o.useState(null),[Z,ve]=o.useState(null);return o.useEffect(()=>{M!==null&&M.setMap(y)},[y]),o.useEffect(()=>{typeof e<"u"&&M!==null&&M.setOptions(e)},[M,e]),o.useEffect(()=>{typeof s<"u"&&M!==null&&M.setDraggable(s)},[M,s]),o.useEffect(()=>{typeof i<"u"&&M!==null&&M.setEditable(i)},[M,i]),o.useEffect(()=>{typeof r<"u"&&M!==null&&M.setVisible(r)},[M,r]),o.useEffect(()=>{typeof a<"u"&&M!==null&&M.setPath(a)},[M,a]),o.useEffect(()=>{typeof c<"u"&&M!==null&&M.setPaths(c)},[M,c]),o.useEffect(()=>{M&&typeof d=="function"&&(N!==null&&google.maps.event.removeListener(N),j(google.maps.event.addListener(M,"dblclick",d)))},[d]),o.useEffect(()=>{M&&(google.maps.event.addListener(M.getPath(),"insert_at",()=>{E==null||E(M)}),google.maps.event.addListener(M.getPath(),"set_at",()=>{E==null||E(M)}),google.maps.event.addListener(M.getPath(),"remove_at",()=>{E==null||E(M)}))},[M,E]),o.useEffect(()=>{M&&typeof u=="function"&&(B!==null&&google.maps.event.removeListener(B),F(google.maps.event.addListener(M,"dragend",u)))},[u]),o.useEffect(()=>
55{M&&typeof g=="function"&&(H!==null&&google.maps.event.removeListener(H),T(google.maps.event.addListener(M,"dragstart",g)))},[g]),o.useEffect(()=>{M&&typeof l=="function"&&(z!==null&&google.maps.event.removeListener(z),$(google.maps.event.addListener(M,"mousedown",l)))},[l]),o.useEffect(()=>{M&&typeof m=="function"&&(A!==null&&google.maps.event.removeListener(A),te(google.maps.event.addListener(M,"mousemove",m)))},[m]),o.useEffect(()=>{M&&typeof f=="function"&&(J!==null&&google.maps.event.removeListener(J),Q(google.maps.event.addListener(M,"mouseout",f)))},[f]),o.useEffect(()=>{M&&typeof x=="function"&&(X!==null&&google.maps.event.removeListener(X),ae(google.maps.event.addListener(M,"mouseover",x)))},[x]),o.useEffect(()=>{M&&typeof h=="function"&&(le!==null&&google.maps.event.removeListener(le),W(google.maps.event.addListener(M,"mouseup",h)))},[h]),o.useEffect(()=>{M&&typeof L=="function"&&(re!==null&&google.maps.event.removeListener(re),k(google.maps.event.addListener(M,"rightclick",L)))},[L]),o.useEffect(()=>{M&&typeof b=="function"&&(pe!==null&&google.maps.event.removeListener(pe),fe(google.maps.event.addListener(M,"click",b)))},[b]),o.useEffect(()=>
55{M&&typeof D=="function"&&(Z!==null&&google.maps.event.removeListener(Z),ve(google.maps.event.addListener(M,"drag",D)))},[D]),o.useEffect(()=>{var G=new google.maps.Polygon(di(di({},e),{},{map:y}));return a&&G.setPath(a),c&&G.setPaths(c),typeof r<"u"&&G.setVisible(r),typeof i<"u"&&G.setEditable(i),typeof s<"u"&&G.setDraggable(s),d&&j(google.maps.event.addListener(G,"dblclick",d)),u&&F(google.maps.event.addListener(G,"dragend",u)),g&&T(google.maps.event.addListener(G,"dragstart",g)),l&&$(google.maps.event.addListener(G,"mousedown",l)),m&&te(google.maps.event.addListener(G,"mousemove",m)),f&&Q(google.maps.event.addListener(G,"mouseout",f)),x&&ae(google.maps.event.addListener(G,"mouseover",x)),h&&W(google.maps.event.addListener(G,"mouseup",h)),L&&k(google.maps.event.addListener(G,"rightclick",L)),b&&fe(google.maps.event.addListener(G,"click",b)),D&&ve(google.maps.event.addListener(G,"drag",D)),O(G),P&&P(G),()=>{N!==null&&google.maps.event.removeListener(N),B!==null&&google.maps.event.removeListener(B),H!==null&&google.maps.event.removeListener(H),z!==null&&google.maps.event.removeListener(z),A!==null&&google.maps.event.removeListener(A),J!==null&&google.maps.event.removeListener(J),X!==null&&google.maps.event.removeListener(X),le!==null&&google.maps.event.removeListener(le),re!==null&&google.maps.event.removeListener(re),pe!==null&&google.maps.event.removeListener(pe),U&&U(G),G.setMap(null)}},[]),null}o.memo(Ml);class Sl extends o.PureComponent{constructor(){super(...arguments),C(this,"registeredEvents",[])}componentDidMount(){var e=this.props.options||{};this.polygon=new google.maps.Polygon(e),this.polygon.setMap(this.context),this.registeredEvents=de({updaterMap:pi,eventMap:ui,prevProps:{},nextProps:this.props,instance:this.polygon}),this.props.onLoad&&this.props.onLoad(this.polygon)}componentDidUpdate(e){this.polygon&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:pi,eventMap:ui,prevProps:e,nextProps:this.props,instance:this.polygon}))}componentWillUnmount(){this.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.polygon),ue(this.registeredEvents),this.polygon&&this.polygon.setMap(null))}render(){return null}}C(Sl,"contextType",oe);function mi(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function En(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};e%2?mi(Object(s),!0).forEach(function(i){C(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):mi(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}var hi={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},gi={bounds(t,e){t.setBounds(e)},draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},visible(t,e){t.setVisible(e)}};function wl(t){var{options:e,bounds:s,draggable:i,editable:r,visible:a,onDblClick:c,onDragEnd:d,onDragStart:u,onMouseDown:g,onMouseMove:l,onMouseOut:m,onMouseOver:f,onMouseUp:x,onRightClick:h,onClick:L,onDrag:b,onBoundsChanged:D,onLoad:P,onUnmount:U}=t,E=o.useContext(oe),[y,M]=o.useState(null),[O,N]=o.useState(null),[j,B]=o.useState(null),[F,H]=o.useState(null),[T,z]=o.useState(null),[$,A]=o.useState(null),[te,J]=o.useState(null),[Q,X]=o.useState(null),[ae,le]=o.useState(null),[W,re]=o.useState(null),[k,pe]=o.useState(null),[fe,Z]=o.useState(null),[ve,G]=o.useState(null);return o.useEffect(()=>{y!==null&&y.setMap(E)},[E]),o.useEffect(()=>{typeof e<"u"&&y!==null&&y.setOptions(e)},[y,e]),o.useEffect(()=>{typeof i<"u"&&y!==null&&y.setDraggable(i)},[y,i]),o.useEffect(()=>{typeof r<"u"&&y!==null&&y.setEditable(r)},[y,r]),o.useEffect(()=>{typeof a<"u"&&y!==null&&y.setVisible(a)},[y,a]),o.useEffect(()=>{typeof s<"u"&&y!==null&&y.setBounds(s)},[y,s]),o.useEffect(()=>{y&&c&&(O!==null&&google.maps.event.removeListener(O),N(google.maps.event.addListener(y,"dblclick",c)))},[c]),o.useEffect(()=>{y&&d&&(j!==null&&google.maps.event.removeListener(j),B(google.maps.event.addListener(y,"dragend",d)))},[d]),o.useEffect(()=>{y&&u&&(F!==null&&google.maps.event.removeListener(F),H(google.maps.event.addListener(y,"dragstart",u)))},[u]),o.useEffect(()=>{y&&g&&(T!==null&&google.maps.event.removeListener(T),z(google.maps.event.addListener(y,"mousedown",g)))},[g]),o.useEffect(()=>{y&&l&&($!==null&&google.maps.event.removeListener($),A(google.maps.event.addListener(y,"mousemove",l)))},[l]),o.useEffect(()=>{y&&m&&(te!==null&&google.maps.event.removeListener(te),J(google.maps.event.addListener(y,"mouseout",m)))},[m]),o.useEffect(()=>{y&&f&&(Q!==null&&google.maps.event.removeListener(Q),X(google.maps.event.addListener(y,"mouseover",f)))},[f]),o.useEffect(()=>{y&&x&&(ae!==null&&google.maps.event.removeListener(ae),le(google.maps.event.addListener(y,"mouseup",x)))},[x]),o.useEffect(()=>{y&&h&&(W!==null&&google.maps.event.removeListener(W),re(google.maps.event.addListener(y,"rightclick",h)))},[h]),o.useEffect(()=>{y&&L&&(k!==null&&google.maps.event.removeListener(k),pe(google.maps.event.addListener(y,"click",L)))},[L]),o.useEffect(()=>{y&&b&&(fe!==null&&google.maps.event.removeListener(fe),Z(google.maps.event.addListener(y,"drag",b)))},[b]),o.useEffect(()=>{y&&D&&(ve!==null&&google.maps.event.removeListener(ve),G(google.maps.event.addListener(y,"bounds_changed",D)))},[D]),o.useEffect(()=>{var ee=new google.maps.Rectangle(En(En({},e),{},{map:E}));return typeof a<"u"&&ee.setVisible(a),typeof r<"u"&&ee.setEditable(r),typeof i<"u"&&ee.setDraggable(i),typeof s<"u"&&ee.setBounds(s),c&&N(google.maps.event.addListener(ee,"dblclick",c)),d&&B(google.maps.event.addListener(ee,"dragend",d)),u&&H(google.maps.event.addListener(ee,"dragstart",u)),g&&z(google.maps.event.addListener(ee,"mousedown",g)),l&&A(google.maps.event.addListener(ee,"mousemove",l)),m&&J(google.maps.event.addListener(ee,"mouseout",m)),f&&X(google.maps.event.addListener(ee,"mouseover",f)),x&&le(google.maps.event.addListener(ee,"mouseup",x)),h&&re(google.maps.event.addListener(ee,"rightclick",h)),L&&pe(google.maps.event.addListener(ee,"click",L)),b&&Z(google.maps.event.addListener(ee,"drag",b)),D&&G(google.maps.event.addListener(ee,"boun
55ds_changed",D)),M(ee),P&&P(ee),()=>{O!==null&&google.maps.event.removeListener(O),j!==null&&google.maps.event.removeListener(j),F!==null&&google.maps.event.removeListener(F),T!==null&&google.maps.event.removeListener(T),$!==null&&google.maps.event.removeListener($),te!==null&&google.maps.event.removeListener(te),Q!==null&&google.maps.event.removeListener(Q),ae!==null&&google.maps.event.removeListener(ae),W!==null&&google.maps.event.removeListener(W),k!==null&&google.maps.event.removeListener(k),fe!==null&&google.maps.event.removeListener(fe),ve!==null&&google.maps.event.removeListener(ve),U&&U(ee),ee.setMap(null)}},[]),null}o.memo(wl);class El extends o.PureComponent{constructor(){super(...arguments),C(this,"registeredEvents",[]),C(this,"state",{rectangle:null}),C(this,"setRectangleCallback",()=>{this.state.rectangle!==null&&this.props.onLoad&&this.props.onLoad(this.state.rectangle)})}componentDidMount(){var e=new google.maps.Rectangle(En(En({},this.props.options),{},{map:this.context}));this.registeredEvents=de({updaterMap:gi,eventMap:hi,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{rectangle:e}},this.setRectangleCallback)}componentDidUpdate(e){this.state.rectangle!==null&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:gi,eventMap:hi,prevProps:e,nextProps:this.props,instance:this.state.rectangle}))}componentWillUnmount(){this.state.rectangle!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),ue(this.registeredEvents),this.state.rectangle.setMap(null))}render(){return null}}C(El,"contextType",oe);function fi(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function On(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};e%2?fi(Object(s),!0).forEach(function(i){C(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):fi(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}var vi={onCenterChanged:"center_changed",onRadiusChanged:"radius_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},xi={center(t,e){t.setCenter(e)},draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},radius(t,e){t.setRadius(e)},visible(t,e){t.setVisible(e)}},Ol={};function kl(t){var{options:e,center:s,radius:i,draggable:r,editable:a,visible:c,onDblClick:d,onDragEnd:u,onDragStart:g,onMouseDown:l,onMouseMove:m,onMouseOut:f,onMouseOver:x,onMouseUp:h,onRightClick:L,onClick:b,onDrag:D,onCenterChanged:P,onRadiusChanged:U,onLoad:E,onUnmount:y}=t,M=o.useContext(oe),[O,N]=o.useState(null),[j,B]=o.useState(null),[F,H]=o.useState(null),[T,z]=o.useState(null),[$,A]=o.useState(null),[te,J]=o.useState(null),[Q,X]=o.useState(null),[ae,le]=o.useState(null),[W,re]=o.useState(null),[k,pe]=o.useState(null),[fe,Z]=o.useState(null),[ve,G]=o.useState(null),[ee,Le]=o.useState(null),[Ne,He]=o.useState(null);return o.useEffect(()=>{O!==null&&O.setMap(M)},[M]),o.useEffect(()=>{typeof e<"u"&&O!==null&&O.setOptions(e)},[O,e]),o.useEffect(()=>{typeof r<"u"&&O!==null&&O.setDraggable(r)},[O,r]),o.useEffect(()=>{typeof a<"u"&&O!==null&&O.setEditable(a)},[O,a]),o.useEffect(()=>{typeof c<"u"&&O!==null&&O.setVisible(c)},[O,c]),o.useEffect(()=>{typeof i=="number"&&O!==null&&O.setRadius(i)},[O,i]),o.useEffect(()=>{typeof s<"u"&&O!==null&&O.setCenter(s)},[O,s]),o.useEffect(()=>{O&&d&&(j!==null&&google.maps.event.removeListener(j),B(google.maps.event.addListener(O,"dblclick",d)))},[d]),o.useEffect(()=>{O&&u&&(F!==null&&google.maps.event.removeListener(F),H(google.maps.event.addListener(O,"dragend",u)))},[u]),o.useEffect(()=>{O&&g&&(T!==null&&google.maps.event.removeListener(T),z(google.maps.event.addListener(O,"dragstart",g)))},[g]),o.useEffect(()=>{O&&l&&($!==null&&google.maps.event.removeListener($),A(google.maps.event.addListener(O,"mousedown",l)))},[l]),o.useEffect(()=>{O&&m&&(te!==null&&google.maps.event.removeListener(te),J(google.maps.event.addListener(O,"mousemove",m)))},[m]),o.useEffect(()=>{O&&f&&(Q!==null&&google.maps.event.removeListener(Q),X(google.maps.event.addListener(O,"mouseout",f)))},[f]),o.useEffect(()=>{O&&x&&(ae!==null&&google.maps.event.removeListener(ae),le(google.maps.event.addListener(O,"mouseover",x)))},[x]),o.useEffect(()=>{O&&h&&(W!==null&&google.maps.event.removeListener(W),re(google.maps.event.addListener(O,"mouseup",h)))},[h]),o.useEffect(()=>{O&&L&&(k!==null&&google.maps.event.removeListener(k),pe(google.maps.event.addListener(O,"rightclick",L)))},[L]),o.useEffect(()=>{O&&b&&(fe!==null&&google.maps.event.removeListener(fe),Z(google.maps.event.addListener(O,"click",b)))},[b]),o.useEffect(()=>{O&&D&&(ve!==null&&google.maps.event.removeListener(ve),G(google.maps.event.addListener(O,"drag",D)))},[D]),o.useEffect(()=>{O&&P&&(ee!==null&&google.maps.event.removeListener(ee),Le(google.maps.event.addListener(O,"center_changed",P)))},[b]),o.useEffect(()=>{O&&U&&(Ne!==null&&google.maps.event.removeListener(Ne),He(google.maps.event.addListener(O,"radius_changed",U)))},[U]),o.useEffect(()=>{var me=new google.maps.Circle(On(On({},e||Ol),{},{map:M}));return typeof i=="number"&&me.setRadius(i),typeof s<"u"&&me.setCenter(s),typeof i=="number"&&me.setRadius(i),typeof c<"u"&&me.setVisible(c),typeof a<"u"&&me.setEditable(a),typeof r<"u"&&me.setDraggable(r),d&&B(google.maps.event.addListener(me,"dblclick",d)),u&&H(google.maps.event.addListener(me,"dragend",u)),g&&z(google.maps.event.addListener(me,"dragstart",g)),l&&A(google.maps.event.addListener(me,"mousedown",l)),m&&J(google.maps.event.addListener(me,"mousemove",m)),f&&X(google.maps.event.addListener(me,"mouseout",f)),x&&le(google.maps.event.addListener(me,"mouseover",x)),h&&re(google.maps.event.addListener(me,"mouseup",h)),L&&pe(google.maps.event.addListener(me,"rightclick",L)),b&&Z(google.maps.event.addListener(me,"click",b)),D&&G(google.maps.event.addListener(me,"drag",D)),P&&Le(google.maps.event.addListener(me,"center_changed",P)),U&&He(google.maps.event.addListener(me,"radius_changed",U)),N(me),E&&E(me),()=>{j!==null&&google.maps.event.removeListener(j),F!==null&&google.maps.event.removeListener(F),T!==null&&google.maps.event.removeListener(T),$!==null&&google.maps.event.removeListener($),te!==null&&google.maps.event.removeListener(te),Q!==null&&google.maps.event.removeListener(Q),ae!==null&&google.maps.event.removeListener(ae),W!==null&&google.maps.event.removeListener(W),k!==null&&google.maps.event.removeListener(k),fe!==null&&google.maps.event.removeListener(fe),ee!==null&&google.maps.event.removeListener(ee),Ne!==null&&google.maps.event.removeListener(Ne),y&&y(me),me.setMap(null)}},[]),null}o.memo(kl);class Pl extends o.PureComponent{constructor(){super(...arguments),C(this,"registeredEvents",[]),C(this,"state",{circle:null}
55),C(this,"setCircleCallback",()=>{this.state.circle!==null&&this.props.onLoad&&this.props.onLoad(this.state.circle)})}componentDidMount(){var e=new google.maps.Circle(On(On({},this.props.options),{},{map:this.context}));this.registeredEvents=de({updaterMap:xi,eventMap:vi,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{circle:e}},this.setCircleCallback)}componentDidUpdate(e){this.state.circle!==null&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:xi,eventMap:vi,prevProps:e,nextProps:this.props,instance:this.state.circle}))}componentWillUnmount(){if(this.state.circle!==null){var e;this.props.onUnmount&&this.props.onUnmount(this.state.circle),ue(this.registeredEvents),(e=this.state.circle)===null||e===void 0||e.setMap(null)}}render(){return null}}C(Pl,"contextType",oe);function bi(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function kn(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};e%2?bi(Object(s),!0).forEach(function(i){C(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):bi(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}var yi={onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAddFeature:"addfeature",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},Li={add(t,e){t.add(e)},addgeojson(t,e,s){t.addGeoJson(e,s)},contains(t,e){t.contains(e)},foreach(t,e){t.forEach(e)},loadgeojson(t,e,s,i){t.loadGeoJson(e,s,i)},overridestyle(t,e,s){t.overrideStyle(e,s)},remove(t,e){t.remove(e)},revertstyle(t,e){t.revertStyle(e)},controlposition(t,e){t.setControlPosition(e)},controls(t,e){t.setControls(e)},drawingmode(t,e){t.setDrawingMode(e)},map(t,e){t.setMap(e)},style(t,e){t.setStyle(e)},togeojson(t,e){t.toGeoJson(e)}};function _l(t){var{options:e,onClick:s,onDblClick:i,onMouseDown:r,onMouseMove:a,onMouseOut:c,onMouseOver:d,onMouseUp:u,onRightClick:g,onAddFeature:l,onRemoveFeature:m,onRemoveProperty:f,onSetGeometry:x,onSetProperty:h,onLoad:L,onUnmount:b}=t,D=o.useContext(oe),[P,U]=o.useState(null),[E,y]=o.useState(null),[M,O]=o.useState(null),[N,j]=o.useState(null),[B,F]=o.useState(null),[H,T]=o.useState(null),[z,$]=o.useState(null),[A,te]=o.useState(null),[J,Q]=o.use
55State(null),[X,ae]=o.useState(null),[le,W]=o.useState(null),[re,k]=o.useState(null),[pe,fe]=o.useState(null),[Z,ve]=o.useState(null);return o.useEffect(()=>{P!==null&&P.setMap(D)},[D]),o.useEffect(()=>{P&&i&&(E!==null&&google.maps.event.removeListener(E),y(google.maps.event.addListener(P,"dblclick",i)))},[i]),o.useEffect(()=>{P&&r&&(M!==null&&google.maps.event.removeListener(M),O(google.maps.event.addListener(P,"mousedown",r)))},[r]),o.useEffect(()=>{P&&a&&(N!==null&&google.maps.event.removeListener(N),j(google.maps.event.addListener(P,"mousemove",a)))},[a]),o.useEffect(()=>{P&&c&&(B!==null&&google.maps.event.removeListener(B),F(google.maps.event.addListener(P,"mouseout",c)))},[c]),o.useEffect(()=>{P&&d&&(H!==null&&google.maps.event.removeListener(H),T(google.maps.event.addListener(P,"mouseover",d)))},[d]),o.useEffect(()=>{P&&u&&(z!==null&&google.maps.event.removeListener(z),$(google.maps.event.addListener(P,"mouseup",u)))},[u]),o.useEffect(()=>{P&&g&&(A!==null&&google.maps.event.removeListener(A),te(google.maps.event.addListener(P,"rightclick",g)))},[g]),o.useEffect(()=>{P&&s&&(J!==null&&google.maps.event.removeListener(J),Q(google.maps.event.addListener(P,"click",s)))},[s]),o.useEffect(()=>{P&&l&&(X!==null&&google.maps.event.removeListener(X),ae(google.maps.event.addListener(P,"addfeature",l)))},[l]),o.useEffect(()=>{P&&m&&(le!==null&&google.maps.event.removeListener(le),W(google.maps.event.addListener(P,"removefeature",m)))},[m]),o.useEffect(()=>{P&&f&&(re!==null&&google.maps.event.removeListener(re),k(google.maps.event.addListener(P,"removeproperty",f)))},[f]),o.useEffect(()=>{P&&x&&(pe!==null&&google.maps.event.removeListener(pe),fe(google.maps.event.addListener(P,"setgeometry",x)))},[x]),o.useEffect(()=>{P&&h&&(Z!==null&&google.maps.event.removeListener(Z),ve(google.maps.event.addListener(P,"setproperty",h)))},[h]),o.useEffect(()=>{if(D!==null){var G=new google.maps.Data(kn(kn({},e),{},{map:D}));i&&y(google.maps.event.addListener(G,"dblclick",i)),r&&O(google.maps.event.addListener(G,"mousedown",r)),a&&j(google.maps.event.addListener(G,"mousemove",a)),c&&F(google.maps.event.addListener(G,"mouseout",c)),d&&T(google.maps.event.addListener(G,"mouseover",d)),u&&$(google.maps.event.addListener(G,"mouseup",u)),g&&te(google.maps.event.addListener(G,"rightclick",g)),s&&Q(google.maps.event.addListener(G,"click",s)),l&&ae(google.maps.event.addListener(G,"addfeature",l)),m&&W(google.maps.event.addListener(G,"removefeature",m)),f&&k(google.maps.event.addListener(G,"removeproperty",f)),x&&fe(google.maps.event.addListener(G,"setgeometry",x)),h&&ve(google.maps.event.addListener(G,"setproperty",h)),U(G),L&&L(G)}return()=>{P&&(E!==null&&google.maps.event.removeListener(E),M!==null&&google.maps.event.removeListener(M),N!==null&&google.maps.event.removeListener(N),B!==null&&google.maps.event.removeListener(B),H!==null&&google.maps.event.removeListener(H),z!==null&&google.maps.event.removeListener(z),A!==null&&google.maps.event.removeListener(A),J!==null&&google.maps.event.removeListener(J),X!==null&&google.maps.event.removeListener(X),le!==null&&google.maps.event.removeListener(le),re!==null&&google.maps.event.removeListener(re),pe!==null&&google.maps.event.removeListener(pe),Z!==null&&google.maps.event.removeListener(Z),b&&b(P),P.setMap(null))}},[]),null}o.memo(_l);class Nl extends o.PureComponent{constructor(){super(...arguments),C(this,"registeredEvents",[]),C(this,"state",{data:null}),C(this,"setDataCallback",()=>{this.state.data!==null&&this.props.onLoad&&this.props.onLoad(this.state.data)})}componentDidMount(){if(this.context!==null){var e=new google.maps.Data(kn(kn({},this.props.options),{},{map:this.context}));this.registeredEvents=de({updaterMap:Li,eventMap:yi,prevProps:{},nextProps:this.props,instance:e}),this.setState(()=>({data:e}),this.setDataCallback)}}componentDidUpdate(e){this.state.data!==null&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:Li,eventMap:yi,prevProps:e,nextProps:this.props,instance:this.state.data}))}componentWillUnmount(){this.state.data!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),ue(this.registeredEvents),this.state.data&&this.state.data.setMap(null))}render(){return null}}C(Nl,"contextType",oe);function ji(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function Ci(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};
55e%2?ji(Object(s),!0).forEach(function(i){C(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):ji(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}var Mi={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},Si={options(t,e){t.setOptions(e)},url(t,e){t.setUrl(e)},zIndex(t,e){t.setZIndex(e)}};class Il extends o.PureComponent{constructor(){super(...arguments),C(this,"registeredEvents",[]),C(this,"state",{kmlLayer:null}),C(this,"setKmlLayerCallback",()=>{this.state.kmlLayer!==null&&this.props.onLoad&&this.props.onLoad(this.state.kmlLayer)})}componentDidMount(){var e=new google.maps.KmlLayer(Ci(Ci({},this.props.options),{},{map:this.context}));this.registeredEvents=de({updaterMap:Si,eventMap:Mi,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{kmlLayer:e}},this.setKmlLayerCallback)}componentDidUpdate(e){this.state.kmlLayer!==null&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:Si,eventMap:Mi,prevProps:e,nextProps:this.props,instance:this.state.kmlLayer}))}componentWillUnmount(){this.state.kmlLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),ue(this.registeredEvents),this.state.kmlLayer.setMap(null))}render(){return null}}C(Il,"contextType",oe);function Sr(t,e){return typeof e=="function"?e(t.offsetWidth,t.offsetHeight):{x:0,y:0}}function Dl(t,e){return new e(t.lat,t.lng)}function Rl(t,e){return new e(new google.maps.LatLng(t.ne.lat,t.ne.lng),new google.maps.LatLng(t.sw.lat,t.sw.lng))}function Tl(t,e,s){return t instanceof e?t:s(t,e)}function Al(t,e,s){return t instanceof e?t:s(t,e)}function Ul(t,e,s){var i=t&&t.fromLatLngToDivPixel(s.getNorthEast()),r=t&&t.fromLatLngToDivPixel(s.getSouthWest
55());return i&&r?{left:"".concat(r.x+e.x,"px"),top:"".concat(i.y+e.y,"px"),width:"".concat(i.x-r.x-e.x,"px"),height:"".concat(r.y-i.y-e.y,"px")}:{left:"-9999px",top:"-9999px"}}function Bl(t,e,s){var i=t&&t.fromLatLngToDivPixel(s);if(i){var{x:r,y:a}=i;return{left:"".concat(r+e.x,"px"),top:"".concat(a+e.y,"px")}}return{left:"-9999px",top:"-9999px"}}function wr(t,e,s,i){return s!==void 0?Ul(t,e,Al(s,google.maps.LatLngBounds,Rl)):Bl(t,e,Tl(i,google.maps.LatLng,Dl))}function zl(t,e){return t.left===e.left&&t.top===e.top&&t.width===e.height&&t.height===e.height}function wi(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function Fl(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};e%2?wi(Object(s),!0).forEach(function(i){C(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):wi(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}function $l(t,e,s,i,r){class a extends google.maps.OverlayView{constructor(d,u,g,l){super(),this.container=d,this.pane=u,this.position=g,this.bounds=l}onAdd(){var d,u=(d=this.getPanes())===null||d===void 0?void 0:d[this.pane];u==null||u.appendChild(this.container)}draw(){var d=this.getProjection(),u=Fl({},this.container?Sr(this.container,r):{x:0,y:0}),g=wr(d,u,this.bounds,this.position);for(var[l,m]of Object.entries(g))this.container.style[l]=m}onRemove(){this.container.parentNode!==null&&this.container.parentNode.removeChild(this.container)}}return new a(t,e,s,i)}function Ei(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function Hl(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};e%2?Ei(Object(s),!0).forEach(function(i){C(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):Ei(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}function Oi(t){if(!t)return"";var e=t instanceof google.maps.LatLng?t:new google.maps.LatLng(t.lat,t.lng);return e+""}function ki(t){if(!t)return"";var e=t instanceof google.maps.LatLngBounds?t:new google.maps.LatLngBounds(new google.maps.LatLng(t.south,t.east),new google.maps.LatLng(t.north,t.west));return e+""}function Vl(t){var{position:e,bounds:s,mapPaneName:i,zIndex:r,onLoad:a,onUnmount:c,getPixelPositionOffset:d,children:u}=t,g=o.useContext(oe),l=o.useMemo(()=>{var f=document.createElement("div");return f.style.position="absolute",f},[]),m=o.useMemo(()=>$l(l,i,e,s,d),[l,i,e,s]);return o.useEffect(()=>(a==null||a(m),m==null||m.setMap(g),()=>{c==null||c(m),m==null||m.setMap(null)}),[g,m]),o.useEffect(()=>{l.style.zIndex="".concat(r)},[r,l]),Bt.createPortal(u,l)}o.memo(Vl);class qt extends o.PureComponent{constructor(e){super(e),C(this,"state",{paneEl:null,containerStyle:{position:"absolute"}}),C(this,"updatePane",()=>{var i=this.props.mapPaneName,r=this.overlayView.getPanes();ye(!!i,"OverlayView requires props.mapPaneName but got %s",i),r?this.setState({paneEl:r[i]}):this.setState({paneEl:null})}),C(this,"onAdd",()=>{var i,r;this.updatePane(),(i=(r=this.props).onLoad)===null||i===void 0||i.call(r,this.overlayView)}),C(this,"onPositionElement",()=>{var i=this.overlayView.getProjection(),r=Hl({x:0,y:0},this.containerRef.current?Sr(this.containerRef.current,this.props.getPixelPositionOffset):{}),a=wr(i,r,this.props.bounds,this.props.position);if(!zl(a,{left:this.state.containerStyle.left,top:this.state.containerStyle.top,width:this.state.containerStyle.width,height:this.state.containerStyle.height})){var c,d,u,g;this.setState({containerStyle:{top:(c=a.top)!==null&&c!==void 0?c:0,left:(d=a.left)!==null&&d!==void 0?d:0,width:(u=a.width)!==null&&u!==void 0?u:0,height:(g=a.height)!==null&&g!==void 0?g:0,position:"absolute"}})}}),C(this,"draw",()=>{this.onPositionElement()}),C(this,"onRemove",()=>{var i,r;this.setState(()=>({paneEl:null})),(i=(r=this.props).onUnmount)===null||i===void 0||i.call(r,this.overlayView)}
55),this.containerRef=o.createRef();var s=new google.maps.OverlayView;s.onAdd=this.onAdd,s.draw=this.draw,s.onRemove=this.onRemove,this.overlayView=s}componentDidMount(){this.overlayView.setMap(this.context)}componentDidUpdate(e){var s=Oi(e.position),i=Oi(this.props.position),r=ki(e.bounds),a=ki(this.props.bounds);(s!==i||r!==a)&&this.overlayView.draw(),e.mapPaneName!==this.props.mapPaneName&&this.updatePane()}componentWillUnmount(){this.overlayView.setMap(null)}render(){var e=this.state.paneEl;return e?Bt.createPortal(n.jsx("div",{ref:this.containerRef,style:this.state.containerStyle,children:o.Children.only(this.props.children)}),e):null}}C(qt,"FLOAT_PANE","floatPane");C(qt,"MAP_PANE","mapPane");C(qt,"MARKER_LAYER","markerLayer");C(qt,"OVERLAY_LAYER","overlayLayer");C(qt,"OVERLAY_MOUSE_TARGET","overlayMouseTarget");C(qt,"contextType",oe);function Wl(){}function Pi(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function _i(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};e%2?Pi(Object(s),!0).forEach(function(i){C(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):Pi(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}var Ni={onDblClick:"dblclick",onClick:"click"},Ii={opacity(t,e){t.setOpacity(e)}};function Gl(t){var{url:e,bounds:s,options:i,visible:r}=t,a=o.useContext(oe),c=new google.maps.LatLngBounds(new google.maps.LatLng(s.south,s.west),new google.maps.LatLng(s.north,s.east)),d=o.useMemo(()=>new google.maps.GroundOverlay(e,c,i),[]);return o.useEffect(()=>{d!==null&&d.setMap(a)},[a]),o.useEffect(()=>{typeof e<"u"&&d!==null&&(d.set("url",e),d.setMap(a))},[d,e]),o.useEffect(()=>{typeof r<"u"&&d!==null&&d.setOpacity(r?1:0)},[d,r]),o.useEffect(()=>{var u=new google.maps.LatLngBounds(new google.maps.LatLng(s.south,s.west),new google.maps.LatLng(s.north,s.east));typeof s<"u"&&d!==null&&(d.set("bounds",u),d.setMap(a))},[d,s]),null}o.memo(Gl);class Er extends o.PureComponent{constructor(){super(...arguments),C(this,"registeredEvents",[]),C(this,"state",{groundOverlay:null}),C(this,"setGroundOverlayCallback",()=>{this.state.groundOverlay!==null&&this.props.onLoad&&this.props.onLoad(this.state.groundOverlay)})}componentDidMount(){ye(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");var e=new google.maps.GroundOverlay(this.props.url,this.props.bounds,_i(_i({},this.props.options),{},{map:this.context}));this.registeredEvents=de({updaterMap:Ii,eventMap:Ni,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{groundOverlay:e}},this.setGroundOverlayCallback)}componentDidUpdate(e){this.state.groundOverlay!==null&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:Ii,eventMap:Ni,prevProps:e,nextProps:this.props,instance:this.state.groundOverlay}))}componentWillUnmount(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))}render(){return null}}C(Er,"defaultProps",{onLoad:Wl});C(Er,"contextType",oe);function Di(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function Pn(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};
55e%2?Di(Object(s),!0).forEach(function(i){C(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):Di(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}var Ri={},Ti={data(t,e){t.setData(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)}};function ql(t){var{data:e,onLoad:s,onUnmount:i,options:r}=t,a=o.useContext(oe),[c,d]=o.useState(null);return o.useEffect(()=>{google.maps.visualization||ye(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} in useJsApiScript? %s',google.maps.visualization)},[]),o.useEffect(()=>{ye(!!e,"data property is required in HeatmapLayer %s",e)},[e]),o.useEffect(()=>{c!==null&&c.setMap(a)},[a]),o.useEffect(()=>{r&&c!==null&&c.setOptions(r)},[c,r]),o.useEffect(()=>{var u=new google.maps.visualization.HeatmapLayer(Pn(Pn({},r),{},{data:e,map:a}));return d(u),s&&s(u),()=>{c!==null&&(i&&i(c),c.setMap(null))}},[]),null}o.memo(ql);class Zl extends o.PureComponent{constructor(){super(...arguments),C(this,"registeredEvents",[]),C(this,"state",{heatmapLayer:null}),C(this,"setHeatmapLayerCallback",()=>{this.state.heatmapLayer!==null&&this.props.onLoad&&this.props.onLoad(this.state.heatmapLayer)})}componentDidMount(){ye(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),ye(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var e=new google.maps.visualization.HeatmapLayer(Pn(Pn({},this.props.options),{},{data:this.props.data,map:this.context}));this.registeredEvents=de({updaterMap:Ti,eventMap:Ri,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{heatmapLayer:e}},this.setHeatmapLayerCallback)}componentDidUpdate(e){ue(this.registeredEvents),this.registeredEvents=de({updaterMap:Ti,eventMap:Ri,prevProps:e,nextProps:this.props,instance:this.state.heatmapLayer})}componentWillUnmount(){this.state.heatmapLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),ue(this.registeredEvents),this.state.heatmapLayer.setMap(null))}render(){return null}}C(Zl,"contextType",oe);var Ai={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},Ui={register(t,e,s){t.registerPanoProvider(e,s)},links(t,e){t.setLinks(e)},motionTracking(t,e){t.setMotionTracking(e)},options(t,e){t.setOptions(e)},pano(t,e){t.setPano(e)},position(t,e){t.setPosition(e)},pov(t,e){t.setPov(e)},visible(t,e){t.setVisible(e)},zoom(t,e){t.setZoom(e)}};class Kl extends o.PureComponent{constructor(){super(...arguments),C(this,"registeredEvents",[]),C(this,"state",{streetViewPanorama:null}),C(this,"setStreetViewPanoramaCallback",()=>{this.state.streetViewPanorama!==null&&this.props.onLoad&&this.props.onLoad(this.state.streetViewPanorama)})}componentDidMount(){var e,s,i=(e=(s=this.context)===null||s===void 0?void 0:s.getStreetView())!==null&&e!==void 0?e:null;this.registeredEvents=de({updaterMap:Ui,eventMap:Ai,prevProps:{},nextProps:this.props,instance:i}),this.setState(()=>({streetViewPanorama:i}),this.setStreetViewPanoramaCallback)}componentDidUpdate(e){this.state.streetViewPanorama!==null&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:Ui,eventMap:Ai,prevProps:e,nextProps:this.props,instance:this.state.streetViewPanorama}))}componentWillUnmount(){this.state.streetViewPanorama!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),ue(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))}render(){return null}}C(Kl,"contextType",oe);class Jl extends o.PureComponent{constructor(){super(...arguments),C(this,"state",{streetViewService:null}),C(this,"setStreetViewServiceCallback",()=>{this.state.streetViewService!==null&&this.props.onLoad&&this.props.onLoad(this.state.streetViewService)})}componentDidMount(){var e=new google.maps.StreetViewService;this.setState(function(){return{streetViewService:e}},this.setStreetViewServiceCallback)}componentWillUnmount(){this.state.streetViewService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)}render(){return null}}C(Jl,"contextType",oe);var Bi={onDirectionsChanged:"directions_changed"},zi={directions(t,e){t.setDirections(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},panel(t,e){t.setPanel(e)},routeIndex(t,e){t.setRouteIndex(e)}};class Yl extends o.PureComponent{constructor(){super(...arguments),C(this,"registeredEvents",[]),C(this,"state",{directionsRenderer:null}),C(this,"setDirectionsRendererCallback",()=>{this.state.directionsRenderer!==null&&(this.state.directionsRenderer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.directionsRenderer))})}componentDidMount(){var e=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=de({updaterMap:zi,eventMap:Bi,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{directionsRenderer:e}},this.setDirectionsRendererCallback)}componentDidUpdate(e){this.state.directionsRenderer!==null&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:zi,eventMap:Bi,prevProps:e,nextProps:this.props,instance:this.state.directionsRenderer}))}componentWillUnmount(){this.state.directionsRenderer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),ue(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))}render(){return null}}C(Yl,"contextType",oe);var Fi={onPlacesChanged:"places_changed"},$i={bounds(t,e){t.setBounds(e)}};class Xl extends o.PureComponent{constructor(){super(...arguments),C(this,"registeredEvents",[]),C(this,"containerElement",o.createRef()),C(this,"state",{searchBox:null}),C(this,"setSearchBoxCallback",()=>{this.state.searchBox!==null&&this.props.onLoad&&this.props.onLoad(this.state.searchBox
55)})}componentDidMount(){if(ye(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),this.containerElement!==null&&this.containerElement.current!==null){var e=this.containerElement.current.querySelector("input");if(e!==null){var s=new google.maps.places.SearchBox(e,this.props.options);this.registeredEvents=de({updaterMap:$i,eventMap:Fi,prevProps:{},nextProps:this.props,instance:s}),this.setState(function(){return{searchBox:s}},this.setSearchBoxCallback)}}}componentDidUpdate(e){this.state.searchBox!==null&&(ue(this.registeredEvents),this.registeredEvents=de({updaterMap:$i,eventMap:Fi,prevProps:e,nextProps:this.props,instance:this.state.searchBox}))}componentWillUnmount(){this.state.searchBox!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),ue(this.registeredEvents))}render(){return n.jsx("div",{ref:this.containerElement,children:o.Children.only(this.props.children)})}}C(Xl,"contextType",oe);var Hi={onPlaceChanged:"place_changed"},Vi={bounds(t,e){t.setBounds(e)},restrictions(t,e){t.setComponentRestrictions(e)},fields(t,e){t.setFields(e)},options(t,e){t.setOptions(e)},types(t,e){t.setTypes(e)}};class Or extends o.PureComponent{constructor(){super(...arguments),C(this,"registeredEvents",[]),C(this,"containerElement",o.createRef()),C(this,"state",{autocomplete:null}),C(this,"setAutocompleteCallback",()=>{this.state.autocomplete!==null&&this.props.onLoad&&this.props.onLoad(this.state.autocomplete)})}componentDidMount(){var e;ye(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);var s=(e=this.containerElement.current)===null||e===void 0?void 0:e.querySelector("input");if(s){var i=new google.maps.places.Autocomplete(s,this.props.options);this.registeredEvents=de({updaterMap:Vi,eventMap:Hi,prevProps:{},nextProps:this.props,instance:i}),this.setState(()=>({autocomplete:i}),this.setAutocompleteCallback)}}componentDidUpdate(e){ue(this.registeredEvents),this.registeredEvents=de({updaterMap:Vi,eventMap:Hi,prevProps:e,nextProps:this.props,instance:this.state.autocomplete})}componentWillUnmount(){this.state.autocomplete!==null&&ue(this.registeredEvents)}render(){return n.jsx("div",{ref:this.containerElement,className:this.props.className,children:o.Children.only(this.props.children)})}}C(Or,"defaultProps",{className:""});C(Or,"contextType",oe);const Ql={width:"100%",height:"400px"},ec=void 0,tc=({center:t})=>{const{isLoaded:e}=Oa({googleMapsApiKey:ec});return e?n.jsx(fa,{mapContainerStyle:Ql,center:t,zoom:15,children:n.jsx(br,{position:t})}):n.jsx("div",{children:"Loading..."})};var yn=(t=>(t.piscine="piscine",t.jardin="jardin",t.climatisation="climatisation",t))(yn||{}),kr=(t=>(t.piscine="Piscine",t.jardin="Jardin",t.climatisation="Climatisation",t))(kr||{}),cs={},nc=rt;Object.defineProperty(cs,"__esModule",{value:!0});var Pr=cs.default=void 0,sc=nc(ot()),Wi=n;Pr=cs.default=(0,sc.default)([(0,Wi.jsx)("path",{d:"M22 21c-1.11 0-1.73-.37-2.18-.64-.37-.22-.6-.36-1.15-.36-.56 0-.78.13-1.15.36-.46.27-1.07.64-2.18.64s-1.73-.37-2.18-.64c-.37-.22-.6-.36-1.15-.36-.56 0-.78.13-1.15.36-.46.27-1.08.64-2.19.64-1.11 0-1.73-.37-2.18-.64-.37-.23-.6-.36-1.15-.36s-.78.13-1.15.36c-.46.27-1.08.64-2.19.64v-2c.56 0 .78-.13 1.15-.36.46-.27 1.08-.64 2.19-.64s1.73.37 2.18.64c.37.23.59.36 1.15.36.56 0 .78-.13 1.15-.36.46-.27 1.08-.64 2.19-.64 1.11 0 1.73.37 2.18.64.37.22.6.36 1.15.36s.78-.13 1.15-.36c.45-.27 1.07-.64 2.18-.64s1.73.37 2.18.64c.37.23.59.36 1.15.36zm0-4.5c-1.11 0-1.73-.37-2.18-.64-.37-.22-.6-.36-1.15-.36-.56 0-.78.13-1.15.36-.45.27-1.07.64-2.18.64s-1.73-.37-2.18-.64c-.37-.22-.6-.36-1.15-.36-.56 0-.78.13-1.15.36-.45.27-1.07.64-2.18.64s-1.73-.37-2.18-.64c-.37-.22-.6-.36-1.15-.36s-.78.13-1.15.36c-.47.27-1.09.64-2.2.64v-2c.56 0 .78-.13 1.15-.36.45-.27 1.07-.64 2.18-.64s1.73.37 2.18.64c.37.22.6.36 1.15.36.56 0 .78-.13 1.15-.36.45-.27 1.07-.64 2.18-.64s1.73.37 2.18.64c.37.22.6.36 1.15.36s.78-.13 1.15-.36c.45-.27 1.07-.64 2.18-.64s1.73.37 2.18.64c.37.22.6.36 1.15.36v2zM8.67 12c.56 0 .78-.13 1.15-.36.46-.27 1.08-.64 2.19-.64 1.11 0 1.73.37 2.18.64.37.22.6.36 1.15.36s.78-.13 1.15-.36c.12-.07.26-.15.41-.23L10.48 5C8.93 3.45 7.5 2.99 5 3v2.5c1.82-.01 2.89.39 4 1.5l1 1-3.25 3.25c.31.12.56.27.77.39.37.23.59.36 1.15.36"},"0"),(0,Wi.jsx)("circle",{cx:"16.5",cy:"5.5",r:"2.5"},"1")],"Pool");var ds={},ic=rt;Object.defineProperty(ds,"__esModule",{value:!0});var _r=ds.default=void 0,rc=ic(ot()),oc=n;_r=ds.default=(0,rc.default)((0,oc.jsx)("path",{d:"M22 11h-4.17l3.24-3.24-1.41-1.42L15 11h-2V9l4.66-4.66-1.42-1.41L13 6.17V2h-2v4.17L7.76 2.93 6.34 4.34 11 9v2H9L4.34 6.34 2.93 7.76 6.17 11H2v2h4.17l-3.24 3.24 1.41 1.42L9 13h2v2l-4.66 4.66 1.42 1.41L11 17.83V22h2v-4.17l3.24 3.24 1.42-1.41L13 15v-2h2l4.66 4.66 1.41-1.42L17.83 13H22z"}),"AcUnit");var us={},ac=rt;Object.defineProperty(us,"__esModule",{value:!0});var Nr=us.default=void 0,lc=ac(ot()),cc=n;Nr=us.default=(0,lc.default)((0,cc.jsx)("path",{d:"M12 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9M5.6 10.25c0 1.38 1.12 2.5 2.5 2.5.53 0 1.01-.16 1.42-.44l-.02.19c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5l-.02-.19c.4.28.89.44 1.42.44 1.38 0 2.5-1.12 2.5-2.5 0-1-.59-1.85-1.43-2.25.84-.4 1.43-1.25 1.43-2.25 0-1.38-1.12-2.5-2.5-2.5-.53 0-1.01.16-1.42.44l.02-.19C14.5 2.12 13.38 1 12 1S9.5 2.12 9.5 3.5l.02.19c-.4-.28-.89-.44-1.42-.44-1.38 0-2.5 1.12-2.5 2.5 0 1 .59 1.85 1.43 2.25-.84.4-1.43 1.25-1.43 2.25M12 5.5c1.38 0 2.5 1.12 2.5 2.5s-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8s1.12-2.5 2.5-2.5M3 13c0 4.97 4.03 9 9 9 0-4.97-4.03-9-9-9"}),"LocalFlorist");const dc={[yn.piscine]:n.jsx(Pr,{}),[yn.jardin]:n.jsx(Nr,{}),[yn.climatisation]:n.jsx(_r,{})};function wt(t){if(t!=null)return new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:0,maximumFractionDigits:0}).format(t)}function xn(t){return t.includes("â¬")||t.includes("€")?t:`${t} â¬`}function Gi(t){if(typeof t!="string")return!1;const e=t.replace(/[ \t\r\n]|â¬|€/g,"").replace(",",".").trim();return e===""?!1:!isNaN(Number(e))}function uc({offer:t}){const e=t.id_di_ad_cat===we.VENTE,i=t.id_di_ad_cat===we.LOCATION&&t.companyId!=null,r=[R.LOCAL_COMMERCIAL,R.FONDS_COMMERCE,R.BUREAUX].includes(t.id_di_ad_type),a=typeof t.honoraires_taux=="number"?t.honoraires_taux:void 0,c=e&&a!==void 0&&a>0&&t.honoraires_charge===1,d=c?t.price/(1+a/100):void 0,u=t.prix_type===4,g=r?"":" cc";return n.jsxs(v,{className:"container-generic",children:[n.jsx(v,{className:"titre",children:"Informations légales"}),n.jsxs("ul",{className:"alur-list",children:[c&&n.jsxs(n.Fragment,{children:[n.jsxs("li",{children:["Prix ",n.jsxs("b",{children:[wt(t.price)," honoraires inclus"]})]}),d!==void 0&&n.jsxs("li",{style:{fontStyle:"italic"},children:["Prix ",n.jsxs("b",{children:[wt(d)," honoraires exclus"]})]}),n.jsxs("li",{children:["Honoraires de ",n.jsxs("b",{children:[a,"% TTC"]})]})]}),e&&t.honoraires_charge===1&&n.jsxs("li",{children:["Honoraires à la charge de ",n.jsx("b",{children:"l'acquéreur"})]}),e&&t.copropriete&&n.jsxs(n.Fragment,{children:[n.jsxs("li",{children:["Ce bien est situé dans une ",n.jsx("b",{children:"copropriété"})]}),typeof t.nb_lots=="number"&&t.nb_lots>0&&n.jsxs("li",{children:["Nombre de lots : ",n.jsx("b",{children:t.nb_lots})]}),typeof t.quote_part_charges=="number"&&t.quote_part_charges>0&&n.jsxs("li",{children:["Montant moyen annuel de la quote-part de charges courantes :",n.jsxs("b",{children:[" ",wt(t.quote_part_charges)]})]}),t.procedure?n.jsxs(n.Fragment,{children:[n.jsx("li",{children:n.jsx("b",{children:"Procédure en cours"})}),t.procedure_desc&&n.jsxs("li",{children:[n.jsx("b",{children:"Détail de la procédure concernant le syndic : "}),t.procedure_desc]})]}):n.jsx("li",{children:"Aucune procédure en cours menée sur le fondement des articles 29-1 A et 29-1 de la loi n° 65-557 du 10 juillet 1965 et de l'article L. 615-6 du CCH"})]}),i&&n.jsxs(n.Fragment,{children:[t.price>0&&u&&n.jsxs("li",{children:["Loyer : ",n.jsxs("b",{children:[wt(t.price),g," / mois"]})]}),Gi(t.charges)&&n.jsxs("li",{children:["Charges : ",n.jsx("b",{children:xn(t.charges)})]}),t.alur_loc_charges_mod===1&&n.jsxs("li",{children:["Modalités charges locataire: ",n.jsx("b",{children:"Forfaitaires mensuelles"})]}),t.alur_loc_charges_mod===2&&n.jsxs("li",{children:["Modalités charges locataire: ",n.jsx("b",{children:"Prévisionnelles mensuelles avec régularisation annuelle"})]}),t.alur_loc_charges_mod===3&&n.jsxs("li",{children:["Modalités charges locataire: ",n.jsx("b",{children:"Remboursement annuel par le locataire"})]}),Gi(t.honoraires)&&n.jsxs("li",{children:["Honoraires :",n.jsxs("b",{children:[" ",xn(t.honoraires),r?"":" TTC"]}
55)]}),typeof t.alur_loc_parthonoetat=="number"&&t.alur_loc_parthonoetat>0&&n.jsxs("li",{children:["- Dont honoraires",r?"":" TTC"," réalisation état des lieux :",n.jsxs("b",{children:[" ",wt(t.alur_loc_parthonoetat)]})]}),typeof t.alur_loc_complement_loyer=="number"&&t.alur_loc_complement_loyer>0&&n.jsxs("li",{children:["Complément loyer : ",n.jsx("b",{children:wt(t.alur_loc_complement_loyer)})]}),typeof t.depot_garantie=="number"&&t.depot_garantie>0&&n.jsxs("li",{children:["Dépôt de garantie : ",n.jsx("b",{children:wt(t.depot_garantie)})]})]}),!i&&!e&&t.honoraires&&t.honoraires!=="0"&&t.honoraires!=="0 â¬"&&n.jsxs("li",{children:["Honoraires ",n.jsx("b",{children:xn(t.honoraires)})]}),!i&&t.charges&&t.charges!=="0"&&t.charges!=="0 â¬"&&t.charges!==".00"&&n.jsxs("li",{children:["Charges ",n.jsx("b",{children:xn(t.charges)})]}),t.pro_tarifs_url&&n.jsx("li",{children:n.jsx("a",{href:t.pro_tarifs_url,target:"_blank",rel:"noreferrer",children:"Consultez notre barème d'honoraires"})})]}),n.jsxs("div",{children:["Les informations sur les risques auxquels ce bien est exposé sont disponibles sur le site Géorisques :",n.jsx("a",{href:"https://www.georisques.gouv.fr",target:"_blank",rel:"noreferrer",children:" www.georisques.gouv.fr"})]})]})}const Jn=["A","B","C","D","E","F","G"],pc={A:{bg:"#008F35",fg:"#ffffff"},B:{bg:"#57AA27",fg:"#ffffff"},C:{bg:"#B1D848",fg:"#26340a"},D:{bg:"#F2E205",fg:"#3a2f00"},E:{bg:"#F5B800",fg:"#3a2600"},F:{bg:"#F07818",fg:"#ffffff"}
55,G:{bg:"#E30613",fg:"#ffffff"}},mc={A:"⤠15",B:"16 à 25",C:"26 à 30",D:"31 à 45",E:"46 à 60",F:"61 à 90",G:"> 90"},hc={A:{bg:"#EFE3F3",fg:"#4a2359"},B:{bg:"#D8BBE0",fg:"#4a2359"},C:{bg:"#C6A8CC",fg:"#3d1a4a"},D:{bg:"#A97DB5",fg:"#ffffff"},E:{bg:"#8B5A9E",fg:"#ffffff"},F:{bg:"#6E3B87",fg:"#ffffff"},G:{bg:"#4E1E6B",fg:"#ffffff"}},gc={[Y.guadeloupe]:{dpeUnit:"kWh/m²/an (énergie finale â indicateur ICE)",gesUnit:"kg COâ/m²/an",dpeRanges:mc},[Y.martinique]:{dpeUnit:"kWh/m²/an (énergie primaire)",gesUnit:"kg COâ/m²/an"}},fc={dpeUnit:"kWh/m²/an",gesUnit:"kg COâ/m²/an"};function vc(t){return gc[t]??fc}function qi(t){if(typeof t!="string")return null;const e=t.trim().toUpperCase();return Jn.includes(e)?e:null}function Zi({title:t,unit:e,grade:s,colors:i,ranges:r}){return n.jsxs("div",{className:"diag-ladder",children:[n.jsx("p",{className:"diag-ladder__title",children:t}),n.jsx("p",{className:"diag-ladder__unit",children:e}),n.jsx("div",{className:"diag-ladder__scale",children:Jn.map((a,c)=>{const d=a===s,u=46+c/(Jn.length-1)*54;return n.jsxs("div",{className:`diag-ladder__row${d?" diag-ladder__row--active":""}`,children:[n.jsxs("div",{className:"diag-ladder__bar",style:{width:`${u}%`,backgroundColor:i[a].bg,color:i[a].fg},children:[n.jsx("span",{className:"diag-ladder__letter",children:a}),r&&n.jsx("span",{className:"diag-ladder__range",children:r[a]})]}),d&&n.jsx("span",{className:"diag-ladder__marker",style:{backgroundColor:i[a].bg,color:i[a].fg},children:a})]},a)})})]})}function xc({offer:t}){const e=qi(t.diag_dpe_statut),s=qi(t.diag_ges_statut);if(!e&&!s)return null;const i=vc(t.location),r=e==="F"||e==="G";return n.jsxs("div",{className:"od-card od-diag-card",children:[n.jsx("p",{className:"od-section-label",children:"DIAGNOSTICS ÃNERGÃTIQUES"}),n.jsxs("div",{className:"diag-ladders",children:[e&&n.jsx(Zi,{title:"Consommation énergétique",unit:i.dpeUnit,grade:e,colors:pc,ranges:i.dpeRanges}),s&&n.jsx(Zi,{title:"Ãmissions de gaz à effet de serre",unit:i.gesUnit,grade:s,colors:hc,ranges:i.gesRanges})]}),r&&n.jsxs("p",{className:"diag-excessive",children:["Logement à consommation énergétique excessive : classe ",e]})]})}const Ki=t=>t.replace(/^(à Vendre|à Louer|A Vendre|A Louer)\s*:\s*/i,"").trim();function bc(){var Ve,We,lt,Qe,yt,ct,Lt,Te,jt,Ge,Ct,qe,dt,ze,ut;const t=o.useRef(null),e=o.useRef(null),s=Yi(),i=ln(),r=cn(),[a,c]=o.useState(),[d,u]=o.useState([]),g=()=>{try{const w=localStorage.getItem("domimmo_contact_info");if(w)return JSON.parse(w)}catch{}return{name:"",email:"",mobile:""}},[l,m]=o.useState({...g(),message:`Bonjour, 56Je souhaiterais avoir plus de renseignements sur ce bien. 57Merci de prendre contact avec moi.`}),[f,x]=o.useState(""),[h,L]=o.useState(!1),[b,D]=o.useState(!1);o.useEffect(()=>{const w=t.current;if(!w||window.innerWidth<900)return;let q=window.scrollY;const xe=82;function Me(){if(!w)return;const Ze=window.scrollY,et=window.innerHeight,pt=w.offsetHeight;if(pt<=et-xe){w.style.top=xe+"px",q=Ze;return}const mt=Ze-q,_t=parseInt(w.style.top)||xe,ht=xe,Nt=parseFloat(getComputedStyle(w).marginBottom)||0,tt=et-pt-Nt;let Ae=_t-mt;Ae=Math.min(Ae,ht),Ae=Math.max(Ae,tt),w.style.top=Ae+"px",q=Ze}function ke(){q=window.scrollY,Me()}return window.addEventListener("scroll",Me,{passive:!0}),window.addEventListener("resize",ke,{passive:!0}),Me(),()=>{window.removeEventListener("scroll",Me),window.removeEventListener("resize",ke)}},[]),o.useEffect(()=>{try{localStorage.setItem("domimmo_contact_info",JSON.stringify({name:l.name,email:l.email,mobile:l.mobile}))}catch{}},[l.name,l.email,l.mobile]);const[P,U]=o.useState(!1),[E,y]=o.useState([]),[M,O]=$n({loop:!1,align:"start"}),[N,j]=o.useState(!1),[B,F]=o.useState(!1),H=o.useCallback(()=>{O&&(j(O.canScrollPrev()),F(O.canScrollNext()))},[O]);o.useEffect(()=>{if(O)return H(),O.on("select",H),O.on("reInit",H),()=>{O.off("select",H),O.off("reInit",H)}},[O,H]);const T=o.useCallback(w=>{w.stopPropagation(),O==null||O.scrollPrev()},[O]),z=o.useCallback(w=>{w.stopPropagation(),O==null||O.scrollNext()},[O]),[$,A]=$n({loop:!1}),[te,J]=o.useState(0),Q=o.useCallback(()=>{A&&J(A.selectedScrollSnap())},[A]);o.useEffect(()=>{if(A)return Q(),A.on("select",Q),A.on("reInit",Q),()=>{A.off("select",Q),A.off("reInit",Q)}},[A,Q]);const X=o.useCallback(w=>{w.stopPropagation(),w.preventDefault(),A==null||A.scrollPrev()},[A]),ae=o.useCallback(w=>{w.stopPropagation(),w.preventDefault(),A==null||A.scrollNext()},[A]);o.useEffect(()=>{try{u(Wt())}catch(w){console.error("ERROR get data ",w)}},[]);const le=w=>{const q=_e(d,w.id)?un(w):dn(w);u(q)},W=async w=>{if(w.preventDefault(),!!r.currentOffer){x(""),D(!0);try{(await lo(l,r.currentOffer.id,mr.DOMIMMO)).error?x("Erreur lors de l'envoi. Vérifiez vos informations."):(L(!0),m(xe=>({...xe,message:""})))}catch{x("Erreur lors de l'envoi du formulaire.")}D(!1)}},re=w=>!w||w===""?"":w.split(",").map(q=>`${Qn[q]}`).join(", "),k=async()=>{var w;if(navigator.share)try{await navigator.share({title:`${(w=r.currentOffer)==null?void 0:w.title}`,text:"Voici une annonce qui pourrait vous intéresser",url:a})}catch(q){console.log("Sharing failed",q)}else console.log("Your system doesn't support sharing through the web")};if(o.useEffect(()=>{(async()=>{try{r&&r.currentOffer&&(await Io(""+r.currentOffer.id),c(`${window.location.protocol}//${window.location.host}${window.location.pathname}`))}catch(w){console.error(w)}})()},[s]),o.useEffect(()=>{const w=r.currentOffer;if(!w)return;const q=Math.round(w.price*.5),xe=Math.round(w.price*1.5);Xe({id_com_pays:[w.location],id_di_ad_cat:w.id_di_ad_cat.toString(),prix_mini:q.toString(),prix_maxi:xe.toString(),limit:7}).then(Me=>{y(Me.filter(ke=>ke.id!==w.id).slice(0,6))}).catch(()=>{})},[(Ve=r.currentOffer)==null?void 0:Ve.id]),!r.currentOffer)return null;const pe=dr(r.currentOffer),fe=w=>!w||w.includes("/an/photos/400/")?w:w.replace(/(\/an\/photos\/)(\d+\/)?/,"$1400/"),Z=w=>w&&w.replace(/(\/an\/photos\/)\d+\//,"$1"),ve=Array.isArray((We=r.currentOffer)==null?void 0:We.photos)?r.currentOffer.photos.filter(w=>w&&!w.endsWith("/")):[],G=ve.length>0,ee=ve.map(Z),Le=((lt=st.find(w=>{var q;return w.code===((q=r.currentOffer)==null?void 0:q.id_di_ad_type)}))==null?void 0:lt.label)??"",He={[R.APPARTEMENT]:"ð¢",[R.MAISON]:"ð ",[R.TERRAIN]:"ð¿",[R.LOCAL_COMMERCIAL]:"ðª",[R.BUREAUX]:"ð¢",[R.FONDS_COMMERCE]:"ð¬",[R.IMMEUBLE]:"ð",[R.DEPOT]:"ð¦",[R.PARKING]:"ð ¿ï¸",[R.BUNGALOW]:"ð¡",[R.DIVERS]:"ð",[R.CHAMBRE_HOTES]:"ð",[R.GITE_RURAL]:"ð¡"}[r.currentOffer.id_di_ad_type]??"ð ",me=(()=>
57{switch(r.currentOffer.id_di_ad_cat){case we.LOCATION:case we.COLOCATION:return"/ mois";case we.SAISONNIER:return r.currentOffer.prix_type===7?"/ jour":"/ sem.";default:return""}})(),Be=new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:0,maximumFractionDigits:0}).format(r.currentOffer.price),Ie=_e(d,r.currentOffer.id),at=()=>{le(r.currentOffer)},be=[];if(r.currentOffer){const w=r.currentOffer,q=w.id_di_ad_type===R.TERRAIN,xe=[R.LOCAL_COMMERCIAL,R.FONDS_COMMERCE,R.BUREAUX].includes(w.id_di_ad_type);q||be.push({label:"Pièces",value:String(w.pieces||0)}),w.nb_etages&&be.push({label:"Nbre d'étages",value:String(w.nb_etages)}),!xe&&!q&&be.push({label:"Chambres",value:String(w.chambres||0)}),w.reference&&be.push({label:"Référence",value:String(w.reference)}),q||be.push({label:"Salles de bain",value:String(w.salles_eau||0)}),w.publicationDate&&be.push({label:"Publication",value:String(w.publicationDate)}),q||be.push({label:"Toilettes",value:String(w.toilettes||0)}),w.copropriete!==void 0&&be.push({label:"Copropriété",value:w.copropriete?"Oui":"Non"}),q||be.push({label:"Surface habitable",value:`${w.surface_habitable||0} m²`}),w.surface_terrain&&be.push({label:"Surface terrain",value:`${w.surface_terrain} m²`})}return n.jsxs(n.Fragment,{children:[r.currentOffer&&n.jsxs(Pt,{children:[n.jsx("title",{children:`${r.currentOffer.title}, ${re(r.currentOffer.location)}`}),n.jsx("meta",{name:"description",content:r.currentOffer.title}),n.jsx("meta",{property:"og:title",content:`${r.currentOffer.title}, ${re(r.currentOffer.location)}`}),n.jsx("meta",{property:"og:type",content:"article"}),n.jsx("meta",{property:"og:url",content:a}),n.jsx("meta",{property:"og:image",content:r.currentOffer.ogImageSrc||r.currentOffer.imageSrc}),n.jsx("meta",{property:"twitter:title",content:`${r.currentOffer.title}, ${re(r.currentOffer.location)}`}),n.jsx("meta",{property:"twitter:image",content:r.currentOffer.ogImageSrc||r.currentOffer.imageSrc})]}),n.jsx($t,{HeaderLinksLeft:n.jsx(Ht,{site:Vt.DOMIMMO}),CenterActions:n.jsx(rn,{refMenu:e,hideFiltersButtons:!0,hideMobileFab:!0}),HeaderRightActions:n.jsx(Gt,{})}),n.jsx("main",{children:n.jsxs("div",{className:"page-wrapper",children:[n.jsx("nav",{className:"offer-breadcrumb",children:n.jsx("button",{onClick:()=>i(-1),className:"offer-breadcrumb-btn",children:"â Retour aux résultats"})}),!r.currentOffer&&n.jsx("p",{children:"Aucune offre trouvée"}),r.currentOffer&&n.jsxs("div",{className:"main-layout",children:[n.jsxs("div",{className:"left-col",children:[G&&n.jsxs("div",{className:"od-card od-gallery-card",children:[n.jsxs("div",{className:"od-gallery-main",ref:$,children:[n.jsx("div",{className:"od-gallery-embla__container",children:ee.map((w,q)=>n.jsx("div",{className:"od-gallery-embla__slide",children:n.jsx("img",{src:w,alt:`Photo ${q+1}`,onError:xe=>xe.currentTarget.src="/domimmoassets/images/nophoto.png",loading:q===0?"eager":"lazy"})},q))}),ee.length>1&&te>0&&n.jsx("button",{className:"od-gallery-nav prev",onClick:X,"aria-label":"Photo précédente",children:n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"15 18 9 12 15 6"})})}),ee.length>1&&te<ee.length-1&&n.jsx("button",{className:"od-gallery-nav next",onClick:ae,"aria-label":"Photo suivante",children:n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"9 18 15 12 9 6"})})}),ee.length>1&&n.jsxs("div",{className:"od-gallery-counter",children:[te+1," / ",ee.length]})]}),ee.length>1&&n.jsx("div",{className:"od-gallery-thumbs",children:ee.slice(0,5).map((w,q)=>{const xe=q===4&&ee.length>5;return n.jsxs("button",{className:`od-gallery-thumb${te===q?" active":""}`,onClick:()=>A==null?void 0:A.scrollTo(q),children:[n.jsx("img",{src:w,alt:`Miniature ${q+1}`,onError:Me=>Me.currentTarget.src="/domimmoassets/images/nophoto.png"}),xe&&n.jsxs("div",{className:"od-gallery-thumb-overlay",children:["+",ee.length-5]})]},q)})})]}),n.jsxs("div",{className:"od-card od-main-info",children:[n.jsxs("div",{className:"od-price-row",children:[n.jsx("span",{className:"od-price",children:Be}),me&&n.jsx("span",{className:"od-price-unit",children:me}),pe&&n.jsxs("span",{className:"od-price-sqm",children:[new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:0,maximumFractionDigits:0}).format(pe),"/m²"]})]}),n.jsx("h1",{className:"od-title",children:Ki(r.currentOffer.title)}),n.jsxs("div",{className:"od-meta-row",children:[r.currentOffer.city&&n.jsxs("span",{className:"od-meta-city",children:[n.jsx("svg",{viewBox:"0 0 24 24",fill:"
57currentColor",width:"12",height:"12",children:n.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"})}),r.currentOffer.city]}),r.currentOffer.reference&&n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"od-meta-dot"}),n.jsxs("span",{className:"od-meta-ref",children:["Réf. ",r.currentOffer.reference]})]}),r.currentOffer.publicationDate&&n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"od-meta-dot"}),n.jsx("span",{className:"od-meta-date",children:r.currentOffer.publicationDate})]})]}),n.jsxs("div",{className:"od-chips",children:[r.currentOffer.id_di_ad_type===R.TERRAIN?r.currentOffer.surface_terrain&&r.currentOffer.surface_terrain>0?n.jsxs("span",{className:"od-chip",children:[new Intl.NumberFormat("fr-FR").format(r.currentOffer.surface_terrain)," ","m²"]}):null:r.currentOffer.surface_habitable>0?n.jsxs("span",{className:"od-chip",children:[r.currentOffer.surface_habitable," m²"]}):null,Le&&n.jsxs("span",{className:"od-chip",children:[He," ",Le]}),r.currentOffer.chambres>0&&n.jsxs("span",{className:"od-chip",children:["ð ",r.currentOffer.chambres," ch."]}),r.currentOffer.pieces>0&&n.jsxs("span",{className:"od-chip",children:[r.currentOffer.pieces," pièces"]}),r.currentOffer.salles_eau>0&&n.jsxs("span",{className:"od-chip",children:["ð ",r.currentOffer.salles_eau]}),r.currentOffer.nb_etages&&r.currentOffer.nb_etages>0&&n.jsxs("span",{className:"od-chip",children:[r.currentOffer.nb_etages," étages"]})]}),n.jsxs("div",{className:"od-actions",children:[n.jsxs("button",{className:`od-action-btn od-favori-btn${Ie?" active":""}`,onClick:at,children:[Ie?"â¥":"â¡"," ",Ie?"Retirer des favoris":"Ajouter aux favoris"]}),a&&n.jsxs("button",{className:"od-action-btn od-share-btn",onClick:k,children:[n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",width:"14",height:"14",children:[n.jsx("circle",{cx:"18",cy:"5",r:"3"}),n.jsx("circle",{cx:"6",cy:"12",r:"3"}),n.jsx("circle",{cx:"18",cy:"19",r:"3"}),n.jsx("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),n.jsx("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})]}),"Partager"]})]})]}),r.currentOffer.perks.length>0&&n.jsxs("div",{className:"od-card od-perks-card",children:[n.jsx("p",{className:"od-section-label",children:"ATOUTS DU BIEN"}),n.jsx("div",{className:"od-perks",children:r.currentOffer.perks.map(w=>n.jsxs("span",{className:"od-perk-chip",children:[dc[w]," ",kr[w]]},w))})]}),r.currentOffer.description&&n.jsxs("div",{className:"od-card od-description-card",children:[n.jsx("p",{className:"od-section-label",children:"DESCRIPTION"}),n.jsx("div",{className:`od-description-text${P?" expanded":""}`,dangerouslySetInnerHTML:{__html:go(fo(r.currentOffer.description),!1)||""}}),!P&&n.jsxs("button",{className:"od-read-more",onClick:()=>U(!0),children:["Lire la suite",n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",width:"14",height:"14",children:n.jsx("polyline",{points:"6 9 12 15 18 9"})})]})]}),r.currentOffer.youtubeUrl&&n.jsx("div",{className:"od-card",style:{padding:0,overflow:"hidden"},children:n.jsx(jo,{title:r.currentOffer.title,videoId:r.currentOffer.youtubeUrl,forcedRatio:1})}),r.currentOffer.lat&&r.currentOffer.lng&&n.jsx("div",{className:"od-card",style:{padding:0,overflow:"hidden"},children:n.jsx(tc,{center:{lat:r.currentOffer.lat,lng:r.currentOffer.lng}})}),be.length>0&&n.jsxs("div",{className:"od-card od-recap-card",children:[n.jsx("p",{className:"od-section-label",children:"FICHE RÃCAPITULATIVE"}),n.jsx("div",{className:"od-recap-grid",children:be.map((w,q)=>n.jsxs("div",{className:`od-recap-row${q%2!==0?" odd":""}`,children:[n.jsx("span",{className:"od-recap-key",children:w.label}),n.jsx("span",{className:"od-recap-value",children:w.value})]},q))})]}),n.jsx(xc,{offer:r.currentOffer}),n.jsxs("div",{className:"od-card od-legal-card",children:[n.jsx("p",{className:"od-section-label",children:"INFORMATIONS LÃGALES"}),n.jsx(uc,{offer:r.currentOffer})]}),r.currentCompany&&n.jsxs("div",{className:"od-card od-agency-card",children:[n.jsx("p",{className:"od-section-label",children:"AGENCE EN CHARGE DE CE BIEN"}),n.jsxs("div",{className:"od-agency-layout",children:[r.currentCompany.logoSrc&&n.jsx("img",{src:r.currentCompany.logoSrc,alt:r.currentCompany.name||"",className:"od-agency-logo",onError:w=>w.currentTarget.style.display="none"}),n.jsxs("div",{className:"od-agency-info",children:[n.jsx("p",{className:"od-agency-name",children:r.currentCompany.name}),r.currentCompany.address&&n.jsxs("p",{className:"od-agency-address",children:[r.currentCompany.address,r.currentCompany.cp?`, ${r.currentCompany.cp}`:"",r.currentCompany.city?` ${r.currentCompany.city}`:""]}),r.currentCompany.websiteUrl&&n.jsx("a",{href:r.currentCompany.websiteUrl,target:"_blank",rel:"noopener noreferrer",className:"od-agency-web",children:r.currentCompany.websiteUrl})]}),n.jsx(K,{to:it(se.company,{region:kt[r.currentCompany.location]||"france",id:r.currentCompany.id}),className:"od-agency-btn",children:"Voir la page agence"})]})]}),E.length>0&&n.jsxs("div",{className:"od-card od-similar-card",children:[n.jsxs("div",{className:"od-similar-header",children:[n.jsx("p",{className:"od-section-label",children:"ANNONCES SIMILAIRES"}),n.jsxs("div",{className:"od-similar-nav",children:[N&&n.jsx("button",{className:"od-sim-nav-btn",onClick:T,"aria-label":"Précédent",children:n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"15 18 9 12 15 6"})})}),B&&n.jsx("button",{className:"od-sim-nav-btn",onClick:z,"aria-label":"Suivant",children:n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"9 18 15 12 9 6"})})})]})]}),n.jsx("div",{className:"od-similar-embla",ref:M,children:n.jsx("div",{className:"od-similar-embla__container",children:E.map(w=>n.jsxs(K,{className:"sim-card od-similar-embla__slide",to:it(se.offer,{id:w.id,region:kt[w.location]}),children:[n.jsx("div",{className:"sim-card-photo",children:n.jsx("img",{src:fe(w.imageSrc||""),alt:w.imageAlt||w.title,onError:q=>q.currentTarget.src="/domimmoassets/images/nophoto.png"})}),n.jsxs("div",{className:"sim-card-body",children:[n.jsx("span",{className:"sim-card-price",children:new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:0,maximumFractionDigits:0}).format(w.price)}),n.jsx("p",{className:"sim-card-title",children:Ki(w.title)}),w.city&&n.jsxs("span",{className:"sim-card-city",children:[n.jsx("svg",{viewBox:"0 0 24 24",fill:"
57currentColor",width:"10",height:"10",children:n.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"})}),w.city]})]})]},w.id))})})]})]}),n.jsxs("div",{className:"right-col",ref:t,children:[n.jsxs("div",{className:"contact-card",children:[n.jsx("p",{className:"contact-card-title",children:"Contacter l'annonceur"}),(((Qe=r.currentOffer)==null?void 0:Qe.contactPhone)||((yt=r.currentCompany)==null?void 0:yt.telephone))&&n.jsxs("a",{href:`tel:${((ct=r.currentOffer)==null?void 0:ct.contactPhone)||((Lt=r.currentCompany)==null?void 0:Lt.telephone)}`,className:"contact-phone-block",onClick:w=>w.stopPropagation(),children:[n.jsx("div",{className:"contact-phone-icon",children:n.jsx(Hn,{fontSize:"small"})}),n.jsxs("div",{children:[n.jsx("span",{className:"contact-phone-label",children:"Appeler directement"}),n.jsx("span",{className:"contact-phone-number",children:((Te=r.currentOffer)==null?void 0:Te.contactPhone)||((jt=r.currentCompany)==null?void 0:jt.telephone)})]})]}),n.jsx("div",{className:"contact-separator",children:n.jsx("span",{children:"ou envoyer un message"})}),n.jsxs("form",{onSubmit:W,children:[n.jsxs("div",{className:"contact-form-fields",children:[n.jsxs("div",{children:[n.jsx("label",{htmlFor:"cf-name",children:"Nom complet"}),n.jsx("input",{id:"cf-name",type:"text",required:!0,placeholder:"Votre nom",value:l.name,onChange:w=>m(q=>({...q,name:w.target.value}))})]}),n.jsxs("div",{children:[n.jsx("label",{htmlFor:"cf-email",children:"Email"}),n.jsx("input",{id:"cf-email",type:"email",required:!0,placeholder:"[email protected]",value:l.email,onChange:w=>m(q=>({...q,email:w.target.value}))})]}),n.jsxs("div",{children:[n.jsx("label",{htmlFor:"cf-phone",children:"Téléphone"}),n.jsx("input",{id:"cf-phone",type:"tel",placeholder:"06 00 00 00 00",value:l.mobile,onChange:w=>m(q=>({...q,mobile:w.target.value}))})]}),n.jsxs("div",{children:[n.jsx("label",{htmlFor:"cf-message",children:"Message"}),n.jsx("textarea",{id:"cf-message",required:!0,value:l.message,onChange:w=>m(q=>({...q,message:w.target.value}))})]})]}),f&&n.jsx("p",{style:{color:"#e8563a",fontSize:"12px",marginTop:"8px"},children:f}),h&&n.jsx("p",{style:{color:"#2EC4A0",fontSize:"12px",marginTop:"8px"},children:"Message envoyé avec succès !"}),n.jsx("button",{type:"submit",className:"contact-submit-btn",disabled:b,children:b?"Envoi...":"Envoyer le message"})]})]}),r.currentCompany&&n.jsxs("div",{className:"agent-mini",children:[r.currentCompany.logoSrc&&n.jsx("img",{src:r.currentCompany.logoSrc,alt:r.currentCompany.name||""}),n.jsxs("div",{className:"agent-mini-info",children:[n.jsx("div",{className:"agent-mini-name",children:r.currentCompany.name}),n.jsx(K,{to:it(se.company,{region:kt[r.currentCompany.location]||"france",id:r.currentCompany.id}),className:"agent-mini-link",children:"Voir l'agence â"})]})]})]})]})]})}),n.jsx("div",{className:"mobile-contact-bar",children:n.jsxs("div",{className:"mobile-contact-btns",children:[(((Ge=r.currentOffer)==null?void 0:Ge.contactPhone)||((Ct=r.currentCompany)==null?void 0:Ct.telephone))&&n.jsxs("a",{href:`tel:${((qe=r.currentOffer)==null?void 0:qe.contactPhone)||((dt=r.currentCompany)==null?void 0:dt.telephone)}`,className:"mobile-cta-btn mobile-cta-btn--call",children:[n.jsx(Hn,{fontSize:"small"}),"Appeler"]}),n.jsxs("button",{className:`mobile-cta-btn mobile-cta-btn--contact${(ze=r.currentOffer)!=null&&ze.contactPhone||(ut=r.currentCompany)!=null&&ut.telephone?"":" full-width"}`,onClick:()=>{if(t.current){const w=t.current.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:w,behavior:"smooth"})}},children:[n.jsx(pr,{fontSize:"small"}),"Contacter"]})]})})]})}var ps={},yc=rt;Object.defineProperty(ps,"__esModule",{value:!0});var Ir=ps.default=void 0,Lc=yc(ot()),bn=n;Ir=ps.default=(0,Lc.default)([(0,bn.jsx)("path",{d:"M14 12h4v1.5h-4zm0 3h4v1.5h-4z"},"0"),(0,bn.jsx)("path",{d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-9 0V4h2v5h-2zm9 13H4V9h5c0 1.1.9 2 2 2h2c1.1 0 2-.9 2-2h5z"},"1"),(0,bn.jsx)("circle",{cx:"9",cy:"13.5",r:"1.5"},"2"),(0,bn.jsx)("path",{d:"M11.08 16.18c-.64-.28-1.34-.43-2.08-.43s-1.44.15-2.08.43c-.56.24-.92.78-.92 1.39V18h6v-.43c0-.61-.36-1.15-.92-1.39"},"3")],"BadgeOutlined");var ms={},jc=rt;Object.defineProperty(ms,"__esModule",{value:!0});var Dr=ms.default=void 0,Cc=jc(ot()),Mc=n;Dr=ms.default=(0,Cc.default)((0,Mc.jsx)("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zm0-12H5V6h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z"}),"CalendarMonthOutlined");var hs={},Sc=rt;Object.defineProperty(hs,"__esModule",{value:!0});var Rr=hs.default=void 0,wc=Sc(ot()),Ec=n;Rr=hs.default=(0,wc.default)((0,Ec.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Mail");const Oc={[R.APPARTEMENT]:"ð¢",[R.MAISON]:"ð ",[R.TERRAIN]:"ð¿",[R.LOCAL_COMMERCIAL]:"ðª",[R.BUREAUX]:"ð¢",[R.FONDS_COMMERCE]:"ð¬",[R.IMMEUBLE]:"ð",[R.DEPOT]:"ð¦",[R.PARKING]:"ð
¿ï¸",[R.DIVERS]:"ð",[R.BUNGALOW]:"ð¡",[R.CHAMBRE_HOTES]:"ð",[R.GITE_RURAL]:"ð¡"},kc=t=>
57{switch(t.id_di_ad_cat){case we.LOCATION:case we.COLOCATION:return"/ mois";case we.SAISONNIER:return t.prix_type===7?"/ jour":"/ sem.";default:return""}},gs=t=>{var O;const{offer:e}=t,s=ln(),i=N=>!N||N.includes("/an/photos/400/")?N:N.replace(/(\/an\/photos\/)(\d+\/)?/,"$1400/"),r=Array.isArray(e.photos)?e.photos.filter(N=>N&&!N.endsWith("/")):[],a=r.length>0,c=a?r.map(i):[],[d,u]=o.useState(0),[g,l]=$n({loop:!1}),m=o.useCallback(()=>{l&&u(l.selectedScrollSnap())},[l]);o.useEffect(()=>{if(l)return m(),l.on("select",m),l.on("reInit",m),()=>{l.off("select",m),l.off("reInit",m)}},[l,m]),o.useEffect(()=>{if(!t.autoPlay||!l||c.length<2)return;let N;return N=setInterval(()=>{const j=l.scrollSnapList().length-1;if(l.selectedScrollSnap()>=j){clearInterval(N);return}l.scrollNext()},2500),()=>clearInterval(N)},[l,t.autoPlay,c.length]);const f=o.useCallback(N=>{N.stopPropagation(),N.preventDefault(),l==null||l.scrollPrev()},[l]),x=o.useCallback(N=>{N.stopPropagation(),N.preventDefault(),l==null||l.scrollNext()},[l]),h=it(se.offer,{id:e.id,region:kt[e.location]}),L=()=>{s(h)},b=N=>{var j;N.stopPropagation(),N.preventDefault(),(j=t.updateFavorite)==null||j.call(t)},D=N=>{N.stopPropagation(),N.preventDefault(),navigator.share&&navigator.share({title:e.title,url:window.location.origin+h})},P=kc(e),U=[];e.id_di_ad_type===R.TERRAIN?e.surface_terrain&&e.surface_terrain>0&&U.push(`${new Intl.NumberFormat("fr-FR").format(e.surface_terrain)} m²`):e.surface_habitable&&e.surface_habitable>0&&U.push(`${e.surface_habitable} m²`);const E=(O=st.find(N=>N.code===e.id_di_ad_type))==null?void 0:O.label,y=Oc[e.id_di_ad_type]??"ð ";E&&U.push(`${y} ${E}`),e.chambres&&e.chambres>0&&U.push(`ð ${e.chambres} ch.`),e.pieces&&e.pieces>0&&U.push(`${e.pieces} pièces`);const M=new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:0,maximumFractionDigits:0}).format(e.price);return n.jsxs("div",{className:"immo-list-card",onClick:L,children:[n.jsxs("div",{className:"card-photo-col",children:[a?n.jsxs(n.Fragment,{children:[n.jsx("div",{ref:g,className:"immo-image-embla",children:n.jsx("div",{className:"immo-image-embla__container",children:c.map((N,j)=>n.jsx("div",{className:"immo-image-embla__slide",children:n.jsx("img",{onError:B=>B.currentTarget.src="/domimmoassets/images/nophoto.png",src:N,alt:e.imageAlt,loading:j===0?"eager":"lazy"})},j))})}),c.length>1&&n.jsxs(n.Fragment,{children:[d>0&&n.jsx("button",{className:"card-nav-btn prev",onClick:f,"aria-label":"Photo précédente",children:n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"15 18 9 12 15 6"})})}),d<c.length-1&&n.jsx("button",{className:"card-nav-btn next",onClick:x,"aria-label":"Photo suivante",children:n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"9 18 15 12 9 6"})})})]}),c.length>1&&n.jsx("div",{className:"card-photo-bar",children:c.map((N,j)=>n.jsx("span",{className:`card-photo-bar-segment${j===d?" active":""}`,onClick:B=>{B.stopPropagation(),B.preventDefault(),l==null||l.scrollTo(j)}},j))})]}):n.jsx(rr,{estateType:e.id_di_ad_type}),t.updateFavorite!==void 0&&n.jsx("button",{className:`card-favorite-btn${t.isFavori?" active":""}`,onClick:b,"aria-label":"Ajouter aux favoris",children:t.isFavori?"â¥":"â¡"})]}),n.jsxs("div",{className:"card-body-col",children:[n.jsxs("div",{className:"card-top",children:[n.jsxs("div",{className:"card-price-row",children:[n.jsx("span",{className:"card-price",children:M}),P&&n.jsx("span",{className:"card-price-unit",children:P})]}),n.jsx("h3",{className:"card-title",children:e.title}),e.city&&n.jsxs("div",{className:"card-location",children:[n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"})}),n.jsx("span",{children:e.city})]}),U.length>0&&n.jsx("div",{className:"card-chips",children:U.map((N,j)=>n.jsx("span",{className:"chip",children:N},j))})]}),n.jsxs("div",{className:"card-footer",children:[n.jsxs("div",{className:"card-footer-left",children:[e.companyLogoSrc&&n.jsx("img",{src:e.companyLogoSrc,alt:e.company??"",onError:N=>N.currentTarget.style.display="none"}),e.company&&n.jsx("span",{children:e.company})]}),n.jsx("div",{className:"card-footer-right",children:n.jsx("button",{className:"card-s
57hare-btn",onClick:D,"aria-label":"Partager",children:n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("circle",{cx:"18",cy:"5",r:"3"}),n.jsx("circle",{cx:"6",cy:"12",r:"3"}),n.jsx("circle",{cx:"18",cy:"19",r:"3"}),n.jsx("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),n.jsx("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})]})})})]})]})]})};function Pc(){const t=o.useRef(null),e=ln(),[s]=Yn(),i=cn(),[r,a]=o.useState([]),c=g=>{const l=_e(r,g.id)?un(g):dn(g);a(l)},d=g=>(g==null?void 0:g.location)!==null?g.location.split(",").map(l=>`${Qn[l]}`).join(", "):"";o.useEffect(()=>{(async()=>{try{i!=null&&i.currentCompany&&await Qo(""+i.currentCompany.id)}catch(g){console.error(g)}})()},[i]),o.useEffect(()=>{const g=t.current;if(!g||window.innerWidth<900)return;let l=window.scrollY;const m=82;function f(){if(!g)return;const h=window.scrollY,L=window.innerHeight,b=g.offsetHeight;if(b<=L-m){g.style.top=m+"px",l=h;return}const D=h-l,P=parseInt(g.style.top)||m,U=m,E=parseFloat(getComputedStyle(g).marginBottom)||0,y=L-b-E;let M=P-D;M=Math.min(M,U),M=Math.max(M,y),g.style.top=M+"px",l=h}function x(){l=window.scrollY,f()}return window.addEventListener("scroll",f,{passive:!0}),window.addEventListener("resize",x,{passive:!0}),f(),()=>{window.removeEventListener("scroll",f),window.removeEventListener("resize",x)}},[]);const u=i==null?void 0:i.currentCompany;return u?n.jsxs(n.Fragment,{children:[n.jsxs(Pt,{children:[n.jsxs("title",{children:[u.name," â ",d(u)]}),n.jsx("meta",{name:"description",content:u.name})]}),n.jsx($t,{HeaderLinksLeft:n.jsx(Ht,{site:Vt.DOMIMMO}),HeaderRightActions:n.jsx(Gt,{})}),n.jsxs("div",{className:"company-page",children:[n.jsx("div",{className:"company-back",children:n.jsxs("button",{className:"back-btn",onClick:()=>{document.documentElement.scrollTo({top:0,left:0,behavior:"instant"}),e(-1)},children:["â ",s.get("fromOffer")?"Retour à l'annonce":"Retour aux agences"]})}),n.jsx("div",{className:"company-hero",children:n.jsxs("div",{className:"company-hero-inner",children:[n.jsxs("div",{className:"company-hero-info",children:[n.jsx("h1",{className:"company-name",children:u.name}),u.description&&n.jsx("div",{className:"company-description",dangerouslySetInnerHTML:{__html:vo(u.description)}}),n.jsxs("div",{className:"company-chips",children:[u.location&&n.jsxs("span",{className:"company-chip",children:[n.jsx(sr,{}),d(u)]}),u.staffNb&&n.jsxs("span",{className:"company-chip",children:[n.jsx(Ir,{}),u.staffNb," employés"]}),u.creationDate&&n.jsxs("span",{className:"company-chip",children:[n.jsx(Dr,{}),"Depuis ",u.creationDate]})]})]}),n.jsxs("div",{className:"company-hero-logo",children:[n.jsx("div",{className:"company-logo-box",children:n.jsx("img",{src:u.logoSrc||"/domimmoassets/images/nophoto.png",alt:u.name})}),n.jsxs("div",{className:"company-rs",children:[u.instagramUrl&&n.jsx(K,{target:"_blank",to:u.instagramUrl,children:n.jsx(nr,{})}),u.facebookUrl&&n.jsx(K,{target:"_blank",to:u.facebookUrl,children:n.jsx(er,{})}),u.linkedinUrl&&n.jsx(K,{target:"_blank",to:u.linkedinUrl,children:n.jsx(tr,{})}),u.twitterUrl&&n.jsx(K,{target:"_blank",to:u.twitterUrl,children:n.jsx(Co,{})}),u.websiteUrl&&n.jsx(K,{target:"_blank",to:u.websiteUrl,children:n.jsx(ws,{})}),u.otherUrl&&n.jsx(K,{target:"_blank",to:u.otherUrl,children:n.jsx(ws,{})})]})]})]})}),n.jsxs("div",{className:"company-body",children:[n.jsxs("div",{className:"company-offers",children:[n.jsxs("h2",{className:"company-offers-title",children:["Les annonces de ",u.name,i.companyOffers.length>0&&n.jsx("span",{className:"company-offers-count",children:i.companyOffers.length})]}),i.companyOffers.length===0?n.jsx("p",{className:"company-no-offers",children:"Aucune annonce pour le moment."}):i.companyOffers.map((g,l)=>n.jsx(gs,{offer:g,isFavori:_e(r,g.id),updateFavorite:()=>c(g)},`company-offer-${l}`))]}),n.jsx("aside",{className:"company-contact-aside",ref:t,children:n.jsxs("div",{className:"contact-card",children:[n.jsx("p",{className:"contact-card-title",children:"Contact commercial"}),n.jsx("div",{className:"contact-card-logo",children:n.jsx("img",{src:u.logoSrc||"/domimmoassets/images/nophoto.png",alt:u.name})}),u.contactName&&n.jsx("p",{className:"contact-name",children:u.contactName}),u.rsac&&n.jsxs("p",{className:"contact-rsac",children:["RSAC N°",u.rsac]}),u.contactDescription&&n.jsx("p",{className:"contact-desc",children:u.contactDescription}),n.jsxs("div",{className:"contact-actions",children:[u.email&&n.jsxs("a",{className:"contact-btn contact-btn--email",href:`mailto:${u.email}`,children:[n.jsx(Rr,{}),u.email]}),u.telephone&&n.jsxs("a",{className:"contact-btn contact-btn--phone",href:`tel:${u.telephone}`,children:[n.jsx(Hn,{}),u.telephone]})]})]})})]})]})]}):null}function Je(){var B,F,H;const e=Yi(),s=ln(),i=_n(),{width:r}=es(),a=r<i.breakpoints.values.md,{type:c,region:d}=Xn(),[u,g]=o.useState(c);o.useEffect(()=>{g(c)},[c]);const l=(T,z,$)=>`${new Intl.NumberFormat("fr-FR").format(T)} annonces ${z?ts[z]:""} ${$?$.length===1?Ln[$[0]]:Ln[ie.tom]:" dans les DOM"}`,m=o.useRef(null),f=o.useRef(null),x=o.useRef(null),h=o.useRef(null);o.useEffect(()=>{const T=x.current;if(!T||a)return;let z=window.scrollY;const $=82;function A(){if(!T)return;const J=window.scrollY,Q=window.innerHeight,X=T.offsetHeight;if(X<=Q-$){T.style.top=$+"px",z=J;return}const ae=J-z,le=parseInt(T.style.top)||$,W=$,re=parseFloat(getComputedStyle(T).marginBottom)||
570,k=Q-X-re;let pe=le-ae;pe=Math.min(pe,W),pe=Math.max(pe,k),T.style.top=pe+"px",z=J}function te(){z=window.scrollY,A()}return window.addEventListener("scroll",A,{passive:!0}),window.addEventListener("resize",te,{passive:!0}),A(),()=>{window.removeEventListener("scroll",A),window.removeEventListener("resize",te)}},[a]);const[L]=Yn(),b=cn(),[D,P]=o.useState([]),[U,E]=o.useState(!1);o.useEffect(()=>{try{P(Wt())}catch(T){console.error("ERROR get data ",T)}},[]);const y=T=>{const z=_e(D,T.id)?un(T):dn(T);P(z)},M=[{value:"date_desc",label:"Date décroissante"},{value:"date_asc",label:"Date croissante"},{value:"price_asc",label:"Prix croissant"},{value:"price_desc",label:"Prix décroissant"}];o.useEffect(()=>{function T(z){h.current&&!h.current.contains(z.target)&&E(!1)}return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[]);const O=T=>{const z=new URLSearchParams(L);z.set("sort_by",T),s({pathname:e.pathname,search:`?${z.toString()}`})},N=(T,z)=>{let $=e.pathname;if($==="/"&&($="/immobilier"),L&&$.includes("/page/")){const A=$.replace(/\/page\/\d+/,z<=1?"":`/page/${z}`);s({pathname:A,search:L.toString()})}else{let A=$;A=A.endsWith("/")?A.slice(0,-1):A,s({pathname:A+"/page/"+z,search:L.toString()})}},j=()=>b.offers.length||0;return n.jsxs(n.Fragment,{children:[n.jsxs(Pt,{children:[n.jsx("title",{children:lr(b.dom,b.offerType,(B=b.filters)==null?void 0:B.id_di_ad_type)}),n.jsx("meta",{name:"description",content:cr(b.dom,b.offerType,(F=b.filters)==null?void 0:F.id_di_ad_type)})]}),n.jsx($t,{HeaderLinksLeft:n.jsx(Ht,{site:Vt.DOMIMMO}),CenterActions:n.jsx(rn,{refMenu:m,hideFiltersButtons:!0}),HeaderRightActions:n.jsx(Gt,{})}),n.jsxs("main",{children:[n.jsx(v,{className:"home-header-immo home-header-listing",children:n.jsx(vt,{maxWidth:!1,className:"logo-container",children:n.jsx(ce,{container:!0,flexDirection:"column",justifyContent:{xs:"center",md:"flex-start"},alignItems:{xs:"center",md:"flex-start"},children:n.jsx(ce,{item:!0,flex:1,container:!0,flexDirection:"column",justifyContent:"center",alignItems:{xs:"center",md:"flex-start"},children:n.jsxs(v,{className:"slogan",children:["Vous explorez",n.jsx("br",{}),n.jsx("span",{className:"gros",children:"Tout l'immobilier dans les DOM"})]})})})})}),!1,!1,n.jsxs("div",{className:"container-listing page-wrapper",children:[n.jsxs("section",{children:[j()===0&&n.jsx(v,{textAlign:"center",margin:"30px 10px",children:"Aucune annonce ne correspond à votre recherche, veuillez modifier vos critères."}),n.jsxs(ce,{container:!0,flexDirection:"row",alignItems:"flex-start",children:[!a&&n.jsx(ce,{item:!0,ref:x,className:"bloc-filtre-sidebar",children:n.jsx(rn,{refMenu:f,sidebarMode:!0})}),!a&&n.jsx(ce,{width:20}),n.jsxs(ce,{item:!0,sx:{minHeight:"400px"},xs:!0,className:"bloc-gauche",children:[n.jsxs(v,{className:"tri-container",sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[n.jsx(I,{variant:"h2",className:"liste-title-nb",children:l(b.nbOffers,b.offerType,b.dom?[b.dom]:void 0)}),n.jsxs("div",{className:"trier-liste",ref:h,children:[n.jsxs("button",{className:`sort-btn${U?" open":""}`,onClick:()=>E(!U),children:[((H=M.find(T=>T.value===b.selectedSort))==null?void 0:H.label)??"Trier par",n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),U&&n.jsx("div",{className:"sort-dropdown",children:M.map(T=>n.jsx("div",{className:`sort-option${b.selectedSort===T.value?" active":""}`,onClick:()=>{O(T.value),E(!1)},children:T.label},T.value))})]})]}),b.offers.length>0&&b.offers.map((T,z)=>{const $=z+1,A=5,te=$/A;return n.jsxs(Fr.Fragment,{children:[n.jsx(gs,{offer:T,isFavori:_e(D,T.id),updateFavorite:()=>y(T),autoPlay:z===0&&L.toString()===""}),$%A===0&&n.jsx(Ye,{id:"domimmo-listing-"+te,className:"domimmo-listing",targetsMobile:a,width:a?"300px":"728px",height:a?"250px":"90px"})]},`general-offer-${z}`)})]}),!a&&n.jsx(ce,{width:10}),n.jsx(ce,{display:{xs:"none",md:"block"},item:!0,sx:{position:"sticky",top:100,alignSelf:"flex-start"},children:n.jsx(Ye,{id:"domimmo-mpu",className:"domimmo-mpu"})})]})]}),j()>0&&n.jsx(ce,{container:!0,flexDirection:"row",alignItems:"center",justifyContent:"center",mb:"70px",children:n.jsx(ce,{item:!0,children:n.jsx(Mo,{size:r<i.breakpoints.values.md?"small":"medium",count:Math.ceil(b.nbOffers/50),variant:"outlined",siblingCount:1,boundaryCount:1,page:b.currentPage,onChange:N,hideNextButton:b.currentPage===Math.ceil(b.nbOffers/50),hidePrevButton:b.currentPage===1,color:"primary"})})})]})]})]})}function _c(){const t=o.useRef(null),e=$r(),s=cn();return n.jsxs(n.Fragment,{children:[n.jsxs(Pt,{children:[n.jsx("title",{children:"Liste des annonces immobilières favorites"}),n.jsx("meta",{name:"description",content:"Liste des annonces favorites pour les offres immobilières des DOM"})]}),n.jsx($t,{HeaderLinksLeft:n.jsx(Ht,{site:Vt.DOMIMMO}
57),CenterActions:n.jsx(rn,{refMenu:t}),HeaderRightActions:n.jsx(Gt,{})}),n.jsxs("main",{children:[n.jsx(v,{className:"listing-header favorites",children:n.jsx(I,{variant:"h1",className:"listing-titre",children:"Liste des annonces immobilières favorites"})}),n.jsx(vt,{maxWidth:!1,className:"container-listing favorites",children:n.jsx("section",{children:n.jsx(ce,{container:!0,flexDirection:"row",children:n.jsxs(ce,{item:!0,sx:{minHeight:"200px"},xs:!0,children:[s.length>0&&s.map((i,r)=>n.jsx(gs,{offer:i,isFavori:_e(s,i.id),updateFavorite:()=>{_e(s,i.id)?un(i):dn(i),e.revalidate()}},`fav-offer-${r}`)),s.length===0&&n.jsx(v,{className:"empty-favorites",children:n.jsx(I,{textAlign:"center",children:`Vous n'avez aucune annonce en favori, sélectionnez vos favoris en cliquant sur les icônes "coeur".`})})]})})})})]})]})}function Nc(){return n.jsxs(n.Fragment,{children:[n.jsxs(Pt,{children:[n.jsx("title",{children:"Conditions Générales d'Utilisation | Domimmo"}),n.jsx("meta",{name:"description",content:"Conditions Générales d'Utilisation du site Domimmo. Consultez les règles d'utilisation des services de publication et de consultation d'annonces immobilières."})]}),n.jsx($t,{HeaderLinksLeft:n.jsx(Ht,{site:Vt.DOMIMMO}),CenterActions:n.jsx(n.Fragment,{}),HeaderRightActions:n.jsx(Gt,{})}),n.jsxs("main",{children:[n.jsx(v,{className:"static-header-immo",children:n.jsx(I,{variant:"h1",className:"static-titre-immo",children:"Conditions Générales d'Utilisation"})}),n.jsxs(v,{className:"container-static-immo",children:[n.jsx(I,{className:"cgu-update-date",children:"Dernière mise à jour au 01/07/2026"}),n.jsx(I,{variant:"h2",children:"ARTICLE 1 â Objet"}),n.jsx(I,{children:"Les présentes conditions générales d'utilisation (ci-après les « Conditions Générales d'Utilisation » ou les « CGU ») ont pour objet de déterminer les conditions d'utilisation des Services DOMIMMO mis à disposition des Utilisateurs visitant le Site exploité par la société KELDOM."}),n.jsx(I,{children:"Les conditions de publication d'Annonces de mise à disposition de biens immobiliers ne sont pas traitées dans le présent document et sont fixées respectivement dans les conditions générales de vente applicables aux particuliers (les « Conditions Générales de Vente Particuliers ») et les conditions générales de vente applicables aux professionnels (les « Conditions Générales de Vente Professionnels ») librement accessibles sur le Site."}),n.jsx(I,{variant:"h2",children:"ARTICLE 2 â Définitions"}),n.jsxs(I,{children:[n.jsx("strong",{children:"Annonce :"})," désigne l'ensemble des éléments et données (visuelles, textuelles, photographies, dessins, etc.) déposés par un Annonceur sous sa responsabilité éditoriale, en vue de louer ou de vendre un bien immobilier diffusés sur le Site."]}),n.jsxs(I,{children:[n.jsx("strong",{children:"Annonceur :"})," désigne tout Utilisateur ayant publié une annonce sur le Site DOMIMMO pour proposer son bien immobilier à la location ou à la vente."]}),n.jsxs(I,{children:[n.jsx("strong",{children:"Compte :"})," désigne l'espace gratuit, accessible depuis le Site, que tout Utilisateur peut créer."]}),n.jsxs(I,{children:[n.jsx("strong",{children:"Option payante :"})," option souscrite par un Utilisateur du Site pour améliorer la visibilité de son Annonce sur le Site."]}),n.jsxs(I,{children:[n.jsx("strong",{children:"Réseau KELDOM :"})," désigne le site internet www.keldom.com et l'ensemble des sites internet exploités par la société KELDOM et accessibles depuis le site www.keldom.com à savoir : www.domimmo.com, www.domauto.com, www.domemploi.com."]}),n.jsxs(I,{children:[n.jsx("strong",{children:"Service :"})," désigne les services mis à la disposition des Utilisateurs sur le Site à savoir la publication et la consultation d'annonces de locations et de ventes immobilières."]}),n.jsxs(I,{children:[n.jsx("strong",{children:"Site :"})," désigne le site internet exploité par KELDOM accessible depuis le nom de domaine : www.domimmo.com"]}),n.jsxs(I,{children:[n.jsx("strong",{children:"Utilisateur :"}
57)," toute personne se rendant sur le Site à des fins de simple consultation, ou en vue d'accéder au Service."]}),n.jsx(I,{variant:"h2",children:"ARTICLE 3 â Acceptation des Conditions Générales d'Utilisation"}),n.jsx(I,{children:"Les Conditions Générales d'Utilisation sont librement accessibles depuis le Site DOMIMMO."}),n.jsx(I,{children:"Tout Utilisateur déclare, en accédant et en utilisant le Service, avoir pris connaissance des présentes Conditions Générales d'Utilisation et les accepter expressément sans réserve ni modification de quelque nature que ce soit."}),n.jsxs(I,{children:["Le recours aux Services de DOMIMMO emporte également acceptation des termes des Conditions Générales de Vente DOMIMMO, et de la"," ",n.jsx(K,{to:"https://www.keldom.com/privacy/",className:"cgu-link",children:"Charte de confidentialité KELDOM"}),"."]}),n.jsx(I,{variant:"h2",children:"ARTICLE 4 â Fonctionnement des Services"}),n.jsx(I,{variant:"h3",children:"4.1 Recherche d'Annonces"}),n.jsx(I,{children:"La consultation d'Annonces est accessible librement à toute personne depuis le Site DOMIMMO."}),n.jsx(I,{children:"Tout Utilisateur a accès à toutes les Annonces de biens immobiliers à louer ou à acheter depuis la page d'accueil du Site."}),n.jsx(I,{children:"L'Utilisateur peut effectuer une recherche spécifique à partir de critères liés à la catégorie d'Annonces, au type de biens immobiliers, à la localisation, à la fourchette de budget, à la superficie ou au nombre de pièces."}),n.jsx(I,{variant:"h3",children:"4.2 Référencement des Annonces"}),n.jsx(I,{children:"Le référencement des Annonces du Site est produit par un algorithme identifiant les biens immobiliers correspondant aux critères de recherches sélectionnés par l'Utilisateur. Par défaut, les Annonces sont présentées par ordre d'ancienneté de la publication."}),n.jsx(I,{children:"Les Annonces pour lesquelles l'Annonceur a souscrit une Option payante pour améliorer la visibilité de son Annonce apparaissent en premier dans les résultats de recherche."}),n.jsx(I,{children:"Les Annonces peuvent être proposées par des particuliers ou des professionnels. Le statut de l'Annonceur est indiqué pour chacune des Annonces publiées sur le Site DOMIMMO."}),n.jsx(I,{variant:"h3",children:"4.3 Prise de contact et réservation entre Utilisateurs"}),n.jsx(I,{children:"Lorsqu'un Utilisateur souhaite obtenir des informations concernant un bien immobilier, réserver un bien immobilier à la location ou effectuer la visite d'un bien immobilier à la vente, il lui est possible d'adresser un message à l'Annonceur concerné par l'intermédiaire du Site."}),n.jsx(I,{children:"L'Utilisateur peut également, à la discrétion de l'Annonceur, avoir accès à son numéro de téléphone."}),n.jsx(I,{children:"Le premier message de prise de contact s'effectue par l'intermédiaire du Site. Par la suite, si l'Annonceur décide de répondre à l'Utilisateur, les échanges s'effectueront directement entre l'Annonceur et l'Utilisateur concerné."}),n.jsx(I,{children:"Le rôle de KELDOM consiste à mettre à disposition des Utilisateurs l'accès au Service. KELDOM n'intervient à aucun moment dans les correspondances et échanges entre Utilisateurs et Annonceurs. L'Utilisateur et l'Annonceur décident librement s'ils souhaitent que les échanges qu'ils ont initié par le biais du Site aboutissent ou non à la conclusion d'un contrat de location ou d'un contrat de vente."}),n.jsx(I,{children:"KELDOM n'intervient pas dans la formation d'un éventuel contrat entre les parties et ne perçoit aucune rétribution, commission, ou avantage financier en lien avec la conclusion de tels contrats. Aucun paiement lié à la location ou à l'achat de biens immobiliers ne s'effectue par l'intermédiaire du Site."}),n.jsx(I,{variant:"h2",children:"ARTICLE 5 â Contenu des Annonces et notification de contenus illicites"}),n.jsx(I,{children:"En mettant à la disposition des Utilisateurs un service de publication et de consultation d'Annonces, KELDOM intervient en qualité d'hébergeur des contenus au sens de l'article 6, I, 2. de la loi n°2004-575 du 21 juin 2004 pour la confiance dans l'économie numérique (LCEN)."}),n.jsx(I,{children:"En cette qualité, KELDOM n'est pas soumise à une obligation générale de surveiller les informations figurant sur le Site, ni à une obligation générale de rechercher des faits ou des cir
57constances révélant des activités illicites."}),n.jsxs(I,{children:["KELDOM invite en revanche les Utilisateurs à lui notifier l'existence de toute publication ou de tout contenu présent sur le Site, qui serait injurieux, diffamatoire, discriminatoire et plus généralement contraire à toute disposition légale et réglementaire en vigueur, en adressant un email à l'adresse"," ",n.jsx("a",{href:"mailto:[email protected]",className:"cgu-link",children:"[email protected]"}),"."]}),n.jsx(I,{children:"KELDOM s'engage à agir promptement pour retirer les contenus ou Annonces concernés dès lors qu'elle a effectivement connaissance de leur caractère illicite ou de faits et circonstances faisant apparaître ce caractère."}),n.jsx(I,{variant:"h2",children:"ARTICLE 6 â Responsabilité"}),n.jsx(I,{variant:"h3",children:"6.1 Disponibilité du Service"}),n.jsx(I,{children:"KELDOM s'engage à faire ses meilleurs efforts, et à prendre toutes les précautions nécessaires, pour s'assurer de la disponibilité des Services et du bon fonctionnement du Site. L'Utilisateur est toutefois informé que des opérations de maintenance du Site peuvent temporairement entraver l'accès au Site. Des évènements, relevant d'un cas de force majeure, peuvent également échapper au contrôle de KELDOM, comme des attaques informatiques. Aussi, la responsabilité de KELDOM ne saurait être engagée en cas d'indisponibilité temporaire du Site."}),n.jsx(I,{children:"KELDOM décline par ailleurs toute responsabilité en cas de perte éventuelle des informations accessibles sur le Compte de l'Utilisateur, notamment le contenu des Annonces, l'Utilisateur devant s'assurer de sauvegarder une copie des informations qu'il juge nécessaires et ne pouvant prétendre à aucun dédommagement à ce titre."}),n.jsx(I,{variant:"h3",children:"6.2 Transactions réalisées suite à la consultation d'une Annonce"}),n.jsx(I,{children:"KELDOM met à la disposition des Utilisateurs un service de publication et de consultation d'Annonces et n'intervient d'aucune manière dans les transactions éventuellement réalisées par les Utilisateurs à la suite de la consultation desdites Annonces."}),n.jsx(I,{children:"La responsabilité de KELDOM ne pourra dès lors être engagée à raison de tout dommage résultant directement ou indirectement de la négociation, de la formation, de l'exécution, de l'inexécution, de l'expiration et de la résiliation d'un contrat de location, d'un contrat de vente ou de toute autre convention conclue par les Utilisateurs à la suite de l'utilisation du Service."}),n.jsx(I,{children:"L'Utilisateur est par ailleurs seul responsable du bon accomplissement de toutes les formalités notamment administratives, fiscales et/ou sociales et de tous les paiements de cotisations, taxes ou impôts de toutes natures qui lui incombent le cas échéant en relation avec son utilisation des Services."}),n.jsx(I,{variant:"h3",children:"6.3 Liens hypertextes"}),n.jsx(I,{children:"Le Site peut inclure des liens vers des sites tiers."}),n.jsx(I,{children:"KELDOM décline toute responsabilité quant à la disponibilité technique de ces sites, mais également quant au contenu, publicités, produits et/ou services disponibles sur de tels sites gérés par des tiers."}),n.jsx(I,{children:"Les sites tiers sont régis par leurs propres conditions générales d'utilisation."}),n.jsx(I,{variant:"h2",children:"ARTICLE 7 â Loi applicable et juridiction compétente"}),n.jsx(I,{children:"Les présentes Conditions Générales d'Utilisation sont soumises au droit français."}),n.jsx(I,{children:"Dans le cas où elles seraient traduites en une ou plusieurs langues, seul le texte français ferait foi en cas de litige."}),n.jsxs(I,{children:["En cas de litige lié à l'interprétation ou l'exécution des présentes Conditions Générales d'Utilisation, l'Utilisateur s'engage à adresser ses réclamations à KELDOM à l'adresse suivante :"," ",n.jsx("a",{href:"mailto:[email protected]",className:"cgu-link",children:"[email protected]"}),"."]}),n.jsx(I,{variant:"h2",children:"ARTICLE 8 â Mentions légales"}),n.jsx(I,{children:"Les sites www.keldom.com, www.domimmo.com, www.domemploi.com et www.domauto.com sont la propriété de : KELDOM, société par actions simplifiée, immatriculée au RCS de Fort de France sous le numéro 445 213 846, dont le siège social est Immeuble Centre Auto Zone industrielle de Place d'Armes â 97232 Le Lamentin, prise en la personne de son représentant légal en exercice."}),n.jsx(I,{children:"Numéro de TVA intracommunautaire : FR50 445213846"}),n.jsx(I,{children:"Le Directeur de Publication du Site DOMIMMO est M. François AUBERY."}),n.jsx(I,{children:"Le Site est hébergé par : Microsoft Azure â Microsoft Ireland Operations Limited, One Microsoft Place, South County Business Park, Leopardstown, Dublin 18, Irlande."}),n.jsx(I,{variant:"h2",children:"ARTICLE 9 â Mise à jour des Conditions Générales d'Utilisation"}),n.jsx(I,{children:"Les Conditions Générales d'Utilisation pourront être modifiées à tout moment par KELDOM. La date de « Dernière mise à jour » sera modifiée en conséquence. Les Conditions Générales d'Utilisation dans leur version en vigueur sont consultables à tout moment sur le Site."}),n.jsx(I,{variant:"h2",children:"ARTICLE 10 â Contact"}),n.jsxs(I,{children:["Pour toute question relative aux présentes Conditions Générales d'Utilisation, l'Utilisateur peut contacter KELDOM par courrier électronique à "," ",n.jsx("a",{href:"mailto:[email protected]",className:"cgu-link",children:"[email protected]"})," ","ou par courrier postal à l'adresse suivante : KELDOM, Immeuble Centre Auto, Zone industrielle de Place d'Armes â 97232 Le Lamentin."]})]})]})]})}const Ee=(t,e=null,s=null)=>{setTimeout(()=>{const i={dataLayer:{event:"domimmo_pagevue",pagePath:t,id_com_pays:e||"null",type:s||"null"}};Xi.dataLayer(i)},Zr)},gt=t=>{let e=null;return t&&(e=Y[t]),e},Ic=Hr([{path:se.home,element:n.jsx(qr,{theme:Ji,children:n.jsx(Vr,{children:n.jsx(Oo,{})})}),children:[{path:se.home,loader:async({params:t,request:e})=>{const i=new URL(e.url).searchParams,r=i.get("id_com_pays"),a=await Ke(t,i);return Ee(se.search,r),a},element:n.jsx(Je,{})},...Object.keys(Oe).map(t=>({path:`/${t}`,loader:async()=>{try{const e=await ea({id_di_ad_cat:we[t.toUpperCase()].toString()});return Ee(se.typeHome,null,t),e}catch{return[]}},element:n.jsx(Yo,{mainImageSrc:"/domimmoassets/images/home-pro-header.jpg"})})),{path:se.cgu,loader:async()=>(Ee(se.cgu),null),element:n.jsx(Nc,{})},{path:se.favorites,loader:async()=>{try{const t=await Wt();return Ee(se.favorites),t}catch{return[]}},element:n.jsx(_c,{})},{path:se.regionListing,loader:async({params:t,request:e})=>{const i=new URL(e.url).searchParams,r=gt(t.region),a=await Ke(t,i);return Ee(se.regionListing,r),a},element:n.jsx(Je,{})},{path:se.regionListingPage,loader:async({params:t,request:e})=>{const i=new URL(e.url).searchParams,r=gt(t.region),a=await Ke(t,i);return Ee(se.regionListing,r),a},element:n.jsx(Je,{})},{path:se.search,loader:async({params:t,request:e})=>{const i=new URL(e.url).searchParams,r=i.get("id_com_pays"),a=await Ke(t,i);return Ee(se.search,r),a},element:n.jsx(Je,{})},{path:se.regionTypeListing,loader:async({params:t,request:e})=>{const i=new URL(e.url).searchParams,{region:r,type:a}=t,c=gt(r),d=await Ke(t,i);return Ee(se.regionListing,c,a),d},element:n.jsx(Je,{})},{path:se.regionTypeListingPage,loader:async({params:t,request:e})=>{const i=new URL(e.url).searchParams,{region:r,type:a}=t,c=gt(r),d=await Ke(t,i);return Ee(se.regionListing,c,a),d},element:n.jsx(Je,{})},{path:se.regionTypeRefinementListing,loader:async({params:t,request:e})=>{const i=new URL(e.url).searchParams,{region:r,type:a}=t,c=gt(r),d=await Ke(t,i);return Ee(se.regionListing,c,a),d},element:n.jsx(Je,{})},{path:se.regionTypeRefinementListingPage,loader:async({params:t,request:e})=>{const i=new URL(e.url).searchParams,{region:r,type:a}=t,c=gt(r),d=await Ke(t,i);return Ee(se.regionListing,c,a),d},element:n.jsx(Je,{})},{path:se.regionTypeRefinement2Listing,loader:async({params:t,request:e})=>{const i=new URL(e.url).searchParams,{region:r,type:a}=t,c=gt(r),d=await Ke(t,i);return Ee(se.regionListing,c,a),d},element:n.jsx(Je,{})},{path:se.regionTypeRefinement2ListingPage,loader:async({params:t,request:e})=>{const i=new URL(e.url).searchParams,{region:r,type:a}=t,c=gt(r),d=await Ke(t,i);return Ee(se.regionListing,c,a),d},element:n.jsx(Je,{})},{path:se.offer,loader:async({params:t})=>{var s,i;const e=await ta(t);return Ee(se.offer,(s=e.currentOffer)==null?void 0:s.location,(i=e.currentOffer)==null?void 0:i.id_di_ad_type),e},element:n.jsx(bc,{})},{path:se.company,loader:async({params:t})=>{var s;const e=await Xo(t);return Ee(se.company,(s=e.currentCompany)==null?void 0:s.location,null),e},element:n.jsx(Pc,{})}]}]);Wr.createRoot(document.getElementById("root")).render(n.jsx(Gr,{router:Ic}));
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.