{"version":3,"file":"LocalAddressCheck.DC27iadD.mjs","names":["mask","Base","forwardRef","_jsx","MotionSVG","SVG","svg","getProps","Icon","React.forwardRef","forwardRef","_jsx","React.forwardRef","React.useState","React.useRef","React.useId","React.useEffect","_jsx","_jsxs","__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","ce","init_jsx_runtime","J","c","p","_e","ie","de","window","useSVGTemplate","init_framer_ChujFWHC","cx","addPropertyControls","withCSS","ControlType","motion","mask$1","Base$1","MotionSVG$1","SVG$1","svg$1","getProps$1","Icon$1","init_uNe_nxGSR","props","ref","animated","layoutId","children","rest","color","height","id","width","width1","style","className","variant","P_DcoRcrY","JEeZYcamG","restProps","href","mask","Base","MotionSVG","SVG","svg","getProps","Icon","init_sT4fztT_4","distanceKm","lat","lng","a","b","rad","dlat","dlng","h","LocalAddressCheck","radius","contactUrl","open","setOpen","query","setQuery","busy","setBusy","error","setError","choices","setChoices","result","setResult","controller","input","uid","btn","search","timer","response","features","f","select","nearest","towns","t","precise","i","init_LocalAddressCheck"],"sources":["https:/framerusercontent.com/modules/DIcczzvV3r5Ef1rLf48z/0yO8XVlQ4zRYOcUQE6eL/uNe_nxGSR.js","https:/framerusercontent.com/modules/gltP9ifiTxuUDqktMPPj/TpMNnPSr67TxXdimLN7u/sT4fztT_4.js","https:/framerusercontent.com/modules/a8wHBSp5L6mJU8NMnF7t/wl7w62BZwU1saLrlaRYf/LocalAddressCheck.js"],"sourcesContent":["// Generated by Framer (85eaff3)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 0 L 4 0\" fill=\"transparent\" height=\"1px\" id=\"NsiR7sQ31\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(10 2)\" width=\"4px\"/><path d=\"M 0 3 L 3 0\" fill=\"transparent\" height=\"3px\" id=\"sPfuQDvCd\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(12 11)\" width=\"3px\"/><path d=\"M 0 8 C 0 3.582 3.582 0 8 0 C 12.418 0 16 3.582 16 8 C 16 12.418 12.418 16 8 16 C 3.582 16 0 12.418 0 8 Z\" fill=\"transparent\" height=\"16px\" id=\"glBYDoBr2\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(4 6)\" width=\"16px\"/></svg>';const getProps=({color,height,id,width,width1,...props})=>{return{...props,JEeZYcamG:width1??props.JEeZYcamG??2,P_DcoRcrY:color??props.P_DcoRcrY??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,P_DcoRcrY,JEeZYcamG,...restProps}=getProps(props);const href=useSVGTemplate(\"872675930\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-BGAPE\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1m973uw\":P_DcoRcrY,\"--js9iwy\":JEeZYcamG,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-BGAPE { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"P_DcoRcrY\":\"color\",\"JEeZYcamG\":\"width1\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Timer\",\"color\":{\"type\":\"variable\",\"value\":\"1m973uw\"},\"set\":{\"localId\":\"vectorSet/ZsiCCGPvG\",\"id\":\"ZsiCCGPvG\",\"moduleId\":\"Y7SpbVH16cWqMhj75z1M\"}}\n */const Icon=withCSS(Component,css,\"framer-BGAPE\");Icon.displayName=\"Timer\";export default Icon;addPropertyControls(Icon,{P_DcoRcrY:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},JEeZYcamG:{defaultValue:2,displayStepper:true,hidden:false,max:16,min:1,title:\"Width\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerVector\":\"{\\\"name\\\":\\\"Timer\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"1m973uw\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/ZsiCCGPvG\\\",\\\"id\\\":\\\"ZsiCCGPvG\\\",\\\"moduleId\\\":\\\"Y7SpbVH16cWqMhj75z1M\\\"}}\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"24\",\"framerImmutableVariables\":\"true\",\"framerVariables\":\"{\\\"P_DcoRcrY\\\":\\\"color\\\",\\\"JEeZYcamG\\\":\\\"width1\\\"}\",\"framerIntrinsicWidth\":\"24\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (85eaff3)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 0 L 0 4\" fill=\"transparent\" height=\"4px\" id=\"Ic0r_PtI_\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(8 2)\" width=\"1px\"/><path d=\"M 0 0 L 0 4\" fill=\"transparent\" height=\"4px\" id=\"hClrFJeHP\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(16 2)\" width=\"1px\"/><path d=\"M 2 18 C 0.895 18 0 17.105 0 16 L 0 2 C 0 0.895 0.895 0 2 0 L 16 0 C 17.105 0 18 0.895 18 2 L 18 16 C 18 17.105 17.105 18 16 18 Z\" fill=\"transparent\" height=\"18px\" id=\"gMlvtypDg\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(3 4)\" width=\"18px\"/><path d=\"M 0 0 L 18 0\" fill=\"transparent\" height=\"1px\" id=\"T45H70pbG\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(3 10)\" width=\"18px\"/><path d=\"M 0 0 L 0.01 0\" fill=\"transparent\" height=\"1px\" id=\"P8B9DlsLE\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(8 14)\" width=\"1px\"/><path d=\"M 0 0 L 0.01 0\" fill=\"transparent\" height=\"1px\" id=\"i5_yi1SBn\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(12 14)\" width=\"1px\"/><path d=\"M 0 0 L 0.01 0\" fill=\"transparent\" height=\"1px\" id=\"YEmEBn255\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(16 14)\" width=\"1px\"/><path d=\"M 0 0 L 0.01 0\" fill=\"transparent\" height=\"1px\" id=\"fyXCV7ZfB\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(8 18)\" width=\"1px\"/><path d=\"M 0 0 L 0.01 0\" fill=\"transparent\" height=\"1px\" id=\"g2JsudC57\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(12 18)\" width=\"1px\"/><path d=\"M 0 0 L 0.01 0\" fill=\"transparent\" height=\"1px\" id=\"VUFc1VnyW\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(16 18)\" width=\"1px\"/></svg>';const getProps=({color,height,id,width,width1,...props})=>{return{...props,JEeZYcamG:width1??props.JEeZYcamG??2,P_DcoRcrY:color??props.P_DcoRcrY??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,P_DcoRcrY,JEeZYcamG,...restProps}=getProps(props);const href=useSVGTemplate(\"152160681\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-mhihM\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1m973uw\":P_DcoRcrY,\"--js9iwy\":JEeZYcamG,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-mhihM { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"P_DcoRcrY\":\"color\",\"JEeZYcamG\":\"width1\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Calendar Days\",\"color\":{\"type\":\"variable\",\"value\":\"1m973uw\"},\"set\":{\"localId\":\"vectorSet/ZsiCCGPvG\",\"id\":\"ZsiCCGPvG\",\"moduleId\":\"Y7SpbVH16cWqMhj75z1M\"}}\n */const Icon=withCSS(Component,css,\"framer-mhihM\");Icon.displayName=\"Calendar Days\";export default Icon;addPropertyControls(Icon,{P_DcoRcrY:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},JEeZYcamG:{defaultValue:2,displayStepper:true,hidden:false,max:16,min:1,title:\"Width\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"24\",\"framerImmutableVariables\":\"true\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerVariables\":\"{\\\"P_DcoRcrY\\\":\\\"color\\\",\\\"JEeZYcamG\\\":\\\"width1\\\"}\",\"framerVector\":\"{\\\"name\\\":\\\"Calendar Days\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"1m973uw\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/ZsiCCGPvG\\\",\\\"id\\\":\\\"ZsiCCGPvG\\\",\\\"moduleId\\\":\\\"Y7SpbVH16cWqMhj75z1M\\\"}}\",\"framerIntrinsicHeight\":\"24\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";const towns=[{name:\"Limoges\",lat:45.8336,lng:1.2611},{name:\"Brive-la-Gaillarde\",lat:45.1585,lng:1.5332},{name:\"Lubersac\",lat:45.4439,lng:1.4044}];export function distanceKm(lat,lng,a,b){const rad=Math.PI/180,dlat=(a-lat)*rad,dlng=(b-lng)*rad;const h=Math.sin(dlat/2)**2+Math.cos(lat*rad)*Math.cos(a*rad)*Math.sin(dlng/2)**2;return 6371*2*Math.atan2(Math.sqrt(h),Math.sqrt(1-h));}/** @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto */export default function LocalAddressCheck({style,radius=40,contactUrl=\"/#contact\"}){const[open,setOpen]=React.useState(true),[query,setQuery]=React.useState(\"\"),[busy,setBusy]=React.useState(false),[error,setError]=React.useState(\"\"),[choices,setChoices]=React.useState([]),[result,setResult]=React.useState(null);const controller=React.useRef(null),input=React.useRef(null),uid=React.useId();React.useEffect(()=>()=>controller.current?.abort(),[]);const btn={width:\"100%\",minHeight:50,border:0,borderRadius:8,padding:\"12px 16px\",background:\"#D3AA4F\",color:\"#141414\",font:\"600 14px Inter, sans-serif\",cursor:\"pointer\",lineHeight:1.4};const search=async e=>{e.preventDefault();controller.current?.abort();const c=new AbortController;controller.current=c;setError(\"\");setResult(null);setChoices([]);if(query.trim().length<8){setError(\"Pr\\xe9cisez la rue, le code postal et la commune de votre logement.\");return;}setBusy(true);const timer=setTimeout(()=>c.abort(),12e3);try{const response=await fetch(\"https://data.geopf.fr/geocodage/search?limit=5&q=\"+encodeURIComponent(query.trim()),{signal:c.signal});if(!response.ok)throw new Error(\"service\");const data=await response.json();const features=(data.features||[]).filter(f=>f.geometry?.type===\"Point\"&&f.geometry.coordinates?.length===2&&Number.isFinite(f.geometry.coordinates[0])&&Number.isFinite(f.geometry.coordinates[1]));if(!features.length)setError(\"Adresse introuvable. V\\xe9rifiez la rue et le code postal, ou contactez notre \\xe9quipe.\");else setChoices(features);}catch(e){if(controller.current===c)setError(\"La recherche est momentan\\xe9ment indisponible. R\\xe9essayez ou contactez notre \\xe9quipe.\");}finally{clearTimeout(timer);if(controller.current===c)setBusy(false);}};function select(f){const[lng,lat]=f.geometry.coordinates;const nearest=towns.map(t=>({...t,distance:distanceKm(lat,lng,t.lat,t.lng)})).sort((a,b)=>a.distance-b.distance)[0];const precise=[\"housenumber\",\"street\"].includes(f.properties.type)&&f.properties.score>=.6;setResult({label:f.properties.label,nearest,precise,eligible:precise&&nearest.distance<=radius});window.dispatchEvent(new CustomEvent(\"limohome:address\",{detail:{address:f.properties.label}}));setChoices([]);}return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",fontFamily:\"Inter, sans-serif\",...style},children:open&&/*#__PURE__*/_jsxs(\"div\",{id:uid,style:{marginTop:0,padding:0,borderRadius:12,background:\"transparent\",color:\"#FDFBF7\",textAlign:\"left\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"p\",{style:{fontSize:13,margin:\"0 0 16px\",color:\"#DDDDD3\"},children:\"V\\xe9rifiez si nous intervenons pr\\xe8s de votre logement.\"}),/*#__PURE__*/_jsx(\"style\",{children:`.lh-local-address-form{display:flex;gap:8px;align-items:flex-start}.lh-local-address-form input{flex:1;min-width:0}.lh-local-address-form button{width:auto!important;min-width:100px}.lh-local-address-form label{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}@media(max-width:480px){.lh-local-address-form{flex-direction:column}.lh-local-address-form input,.lh-local-address-form button{width:100%!important}} `}),/*#__PURE__*/_jsxs(\"form\",{className:\"lh-local-address-form\",onSubmit:search,children:[/*#__PURE__*/_jsx(\"label\",{htmlFor:uid+\"-address\",style:{display:\"block\",fontSize:13,fontWeight:600,marginBottom:8},children:\"Adresse du logement\"}),/*#__PURE__*/_jsx(\"input\",{ref:input,id:uid+\"-address\",name:\"property_address\",autoComplete:\"street-address\",value:query,onChange:e=>{controller.current?.abort();setBusy(false);setQuery(e.target.value);setResult(null);setChoices([]);setError(\"\");},placeholder:\"Num\\xe9ro, rue, code postal et ville\",required:true,minLength:8,style:{boxSizing:\"border-box\",width:\"100%\",minHeight:48,padding:12,fontSize:16,border:\"1px solid #B7AC94\",borderRadius:8,background:\"#FFFFFF\",color:\"#141414\",marginBottom:10}}),/*#__PURE__*/_jsx(\"button\",{type:\"submit\",disabled:busy,style:{...btn,opacity:busy?.65:1},children:busy?\"Recherche…\":\"V\\xe9rifier →\"})]}),/*#__PURE__*/_jsxs(\"div\",{\"aria-live\":\"polite\",\"aria-busy\":busy,children:[error&&/*#__PURE__*/_jsx(\"p\",{role:\"alert\",style:{fontSize:13,lineHeight:1.5},children:error}),choices.length>0&&/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:14},children:[/*#__PURE__*/_jsx(\"p\",{style:{fontSize:13,fontWeight:600},children:\"Confirmez votre adresse :\"}),/*#__PURE__*/_jsx(\"ul\",{style:{listStyle:\"none\",padding:0,margin:0},children:choices.map((f,i)=>/*#__PURE__*/_jsx(\"li\",{children:/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>select(f),style:{textAlign:\"left\",font:\"inherit\",fontSize:13,lineHeight:1.5,width:\"100%\",padding:12,marginBottom:6,background:\"#FFFFFF\",color:\"#141414\",border:\"1px solid #DCD9CF\",borderRadius:8,cursor:\"pointer\"},children:f.properties.label})},i))})]}),result&&/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:16,padding:14,borderRadius:8,border:\"1px solid #C5A059\",background:\"#FFFFFF\",color:\"#141414\"},children:[/*#__PURE__*/_jsx(\"h4\",{style:{fontSize:17,lineHeight:1.35,margin:\"0 0 8px\"},children:result.eligible?\"Votre logement est \\xe9ligible !\":!result.precise?\"Adresse \\xe0 pr\\xe9ciser\":\"Votre adresse m\\xe9rite une \\xe9tude personnalis\\xe9e\"}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:13,lineHeight:1.5,margin:\"0 0 8px\"},children:result.label}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:13,lineHeight:1.5,margin:\"0 0 12px\"},children:result.eligible?\"Votre adresse se situe dans notre secteur d’intervention, \\xe0 environ \"+Math.round(result.nearest.distance)+\" km de \"+result.nearest.name+\".\":!result.precise?\"Nous n’avons pas identifi\\xe9 une adresse assez pr\\xe9cise. Ajoutez le num\\xe9ro et la rue ou demandez confirmation \\xe0 notre \\xe9quipe.\":\"Votre adresse se situe au-del\\xe0 du rayon de \"+radius+\" km. Contactez-nous pour v\\xe9rifier les possibilit\\xe9s d’accompagnement.\"}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:12,lineHeight:1.5,margin:\"0 0 14px\",color:\"#59564F\"},children:\"\\xc9ligibilit\\xe9 g\\xe9ographique indicative, calcul\\xe9e \\xe0 vol d’oiseau depuis les centres-villes. L’accompagnement reste soumis \\xe0 l’\\xe9tude du logement et aux disponibilit\\xe9s de notre \\xe9quipe.\"}),/*#__PURE__*/_jsx(\"a\",{href:contactUrl,style:{...btn,display:\"block\",boxSizing:\"border-box\",textAlign:\"center\",textDecoration:\"none\"},children:result.eligible?\"\\xc9tudier mon projet\":\"Demander une confirmation\"})]})]}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:11,lineHeight:1.5,color:\"#BDBDB2\",margin:\"14px 0 0\"},children:\"Votre recherche est transmise au service public de g\\xe9ocodage de l’IGN pour localiser l’adresse. Elle n’est pas enregistr\\xe9e par cet outil.\"})]})});}addPropertyControls(LocalAddressCheck,{radius:{type:ControlType.Number,title:\"Rayon (km)\",defaultValue:40,min:1,max:150},contactUrl:{type:ControlType.String,title:\"Contact\",defaultValue:\"/#contact\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LocalAddressCheck\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"\",\"framerContractVersion\":\"1\"}},\"distanceKm\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LocalAddressCheck.map"],"mappings":"A,wVACgMA,EAAK,0BAAgCC,EAAkBC,gBAAW,SAAS4C,EAAMC,EAAI,CAAC,MAAoB5C,gBAAK,MAAM,CAAC,GAAG2C,EAAUC,MAAI,SAASD,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ1C,EAAUiC,EAAO,OAAOpC,CAAI,EAAQI,EAAiBH,iBAAY4C,EAAMC,IAAM,CAAC,GAAK,CAACC,WAASC,WAASC,WAAS,GAAGC,GAAML,EAAM,OAAOE,EAAsB7C,gBAAKC,EAAU,CAAC,GAAG+C,EAAcF,WAAaF,MAAaG,UAAQ,CAAC,EAAe/C,gBAAK,MAAM,CAAC,GAAGgD,EAASJ,MAAaG,UAAQ,CAAC,CAAE,CAAC,EAAQ5C,EAAI,w6BAA86BC,GAAU,CAAC6C,QAAMC,SAAOC,KAAGC,Q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