1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{39068:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(71847).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},47563:(e,t,r)=>{Promise.resolve().then(r.bind(r,98197)),Promise.resolve().then(r.bind(r,88169))},71847:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(12115);let s=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},n=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:c="",children:m,iconNode:f,...h}=e;return(0,a.createElement)("svg",{ref:t,...o,width:s,height:s,stroke:r,strokeWidth:l?24*Number(i)/Number(s):i,className:n("lucide",c),...!m&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(h)&&{"aria-hidden":"true"},...h},[...f.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(m)?m:[m]])}),l=(e,t)=>{let r=(0,a.forwardRef)((r,o)=>{let{className:l,...c}=r;return(0,a.createElement)(i,{ref:o,iconNode:t,className:n("lucide-".concat(s(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),l),...c})});return r.displayName=s(e),r}},88169:(e,t,r)=>{"use strict";r.d(t,{default:()=>f});var a=r(95155),s=r(12115),n=r(52619),o=r.n(n),i=r(15239),l=r(39068),c=r(20063);let m={fr:{home:"Accueil",about:"\xc0 propos",mission:"Notre mission",blog:"Blog",faq:"FAQ",contact:"Contact",lang:"Langue",fr:"Fran\xe7ais (FR)",en:"English (EN)"},en:{home:"Home",about:"About",mission:"Our mission",blog:"Blog",faq:"FAQ",contact:"Contact",lang:"Language",fr:"Fran\xe7ais (FR)",en:"English (EN)"}};function f(e){let{locale:t,localizedSlugs:r}=e,n=(0,c.useRouter)(),f=(0,c.usePathname)()||"/".concat(t),h=t.startsWith("fr")?"fr":"en",d=m[h],[x,u]=(0,s.useState)(!1),[g,y]=(0,s.useState)(!1),p=(0,s.useRef)(null),b=(0,s.useRef)(null),v=(0,s.useRef)(null);async function w(e){let t=f.match(/^\/(fr-fr|en-fr)\/blog\/([^\/?#]+)/);if(!t)return void n.push(f.replace(/^\/(fr-fr|en-fr)/,"/".concat(e)));let a=t[2],s=null!=r?r:function(e){try{let t=sessionStorage.getItem("i18n:slugmap:".concat(e));if(t)return JSON.parse(t)}catch(e){}}(f),o=null==s?void 0:s[e];if(!o)try{let t=e.startsWith("fr")?"fr":"en",r=await fetch("/api/resolve-slug?slug=".concat(encodeURIComponent(a),"&to=").concat(t),{cache:"no-store"});if(r.ok){let e=await r.json();(null==e?void 0:e.slug)&&(o=e.slug)}}catch(e){}n.push(o?"/".concat(e,"/blog/").concat(o):"/".concat(e,"/blog"))}(0,s.useEffect)(()=>{let e=e=>{b.current&&!b.current.contains(e.target)&&p.current&&!p.current.contains(e.target)&&u(!1),v.current&&!v.current.contains(e.target)&&y(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let N={home:"/".concat(t),about:"/".concat(t,"/about#top"),mission:"/".concat(t,"/our-mission#top"),blog:"/".concat(t,"/blog"),faq:"/".concat(t,"/faq"),contact:"/".concat(t,"/contact")};return(0,a.jsx)("header",{className:"fixed top-0 left-0 right-0 z-50 bg-white/95 backdrop-blur-sm border-b border-gray-200",children:(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center py-4",children:[(0,a.jsx)(o(),{href:"/".concat(t),className:"flex items-center flex-shrink-0",children:(0,a.jsx)(i.default,{src:"/images/logo-draftly-main.png",alt:"Draftly Logo",width:120,height:32,className:"h-8 w-auto"})}),(0,a.jsxs)("nav",{className:"hidden md:flex items-center space-x-8",children:[(0,a.jsx)(o(),{href:N.home,className:"text-gray-700 hover:text-primary transition-colors font-inter",children:d.home}),(0,a.jsx)(o(),{href:N.about,className:"text-gray-700 hover:text-primary transition-colors font-inter",children:d.about}),(0,a.jsx)(o(),{href:N.mission,className:"text-gray-700 hover:text-primary transition-colors font-inter",children:d.mission}),(0,a.jsx)(o(),{href:N.faq,className:"text-gray-700 hover:text-primary transition-colors font-inter",children:d.faq}),(0,a.jsx)(o(),{href:N.blog,className:"text-gray-700 hover:text-primary transition-colors font-inter",children:d.blog}),(0,a.jsx)(o(),{href:N.contact,className:"text-gray-700 hover:text-primary transition-colors font-inter",children:d.contact}),(0,a.jsxs)("div",{className:"relative",ref:v,children:[(0,a.jsx)("button",{onClick:()=>y(!g),className:"flex items-center text-gray-700 hover:text-primary transition-colors",title:d.lang,children:(0,a.jsx)(l.A,{className:"w-5 h-5"})}),g&&(0,a.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-40 bg-white rounded-lg shadow-lg border border-gray-200 py-2 z-50",children:[(0,a.jsx)("button",{onClick:()=>{y(!1),w("fr-fr")},className:"block w-full px-4 py-2 text-left hover:bg-gray-50 transition-colors font-inter text-sm ".concat("fr"===h?"text-primary font-medium":"text-gray-700"),children:d.fr}),(0,a.jsx)("button",{onClick:()=>{y(!1),w("en-fr")},className:"block w-full px-4 py-2 text-left hover:bg-gray-50 transition-colors font-inter text-sm ".concat("en"===h?"text-primary font-medium":"text-gray-700"),children:d.en})]})]})]}),(0,a.jsx)("div",{className:"md:hidden",children:(0,a.jsx)("button",{ref:p,onClick:()=>u(!x),className:"text-gray-700 hover:text-primary focus:outline-none focus:text-primary",children:(0,a.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})})})]}),x&&(0,a.jsx)("div",{ref:b,className:"md:hidden py-4 border-t border-gray-200",children:(0,a.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,a.jsx)(o(),{href:N.home,className:"text-gray-700 hover:text-primary transition-colors font-inter",onClick:()=>u(!1),children:d.home}),(0,a.jsx)(o(),{href:N.about,className:"text-gray-700 hover:text-primary transition-colors font-inter",onClick:()=>u(!1),children:d.about}),(0,a.jsx)(o(),{href:N.mission,className:"text-gray-700 hover:text-primary transition-colors font-inter",onClick:()=>u(!1),children:d.mission}),(0,a.jsx)(o(),{href:N.faq,className:"text-gray-700 hover:text-primary transition-colors font-inter",onClick:()=>u(!1),children:d.faq}),(0,a.jsx)(o(),{href:N.blog,className:"text-gray-700 hover:text-primary transition-colors font-inter",onClick:()=>u(!1),children:d.blog}),(0,a.jsx)(o(),{href:N.contact,className:"text-gray-700 hover:text-primary transition-colors font-inter",onClick:()=>u(!1),children:d.contact}),(0,a.jsxs)("div",{className:"border-t border-gray-200 pt-4 mt-4",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-gray-500 mb-3",children:d.lang}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("button",{onClick:()=>{u(!1),w("fr-fr")},className:"w-full px-3 py-2 rounded-md text-sm font-inter transition-colors text-left ".concat("fr"===h?"bg-primary text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"),children:d.fr}),(0,a.jsx)("button",{onClick:()=>{u(!1),w("en-fr")},className:"w-full px-3 py-2 rounded-md text-sm font-inter transition-colors text-left ".concat("en"===h?"bg-primary text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"),children:d.en})]})]})]})})]})})}},98197:(e,t,r)=>{"use strict";r.d(t,{default:()=>d});var a=r(95155),s=r(12115),n=r(15239),o=r(52619),i=r.n(o),l=r(39068);let c=(0,r(71847).A)("instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);var m=r(20063);let f={fr:{lang:"Langue",nav:"Navigation",support:"Support",legal:"L\xe9gal",about:"\xc0 propos",mission:"Notre mission",blog:"Blog",contact:"Contact",faq:"FAQ",join:"Rejoindre la communaut\xe9",api:"API Draftly",tos:"Conditions d'utilisation",privacy:"Politique de confidentialit\xe9",legalNotice:"Mentions l\xe9gales",manageCookies:"G\xe9rer mes cookies",followInsta:"Suivre sur Instagram",pitch:"La plateforme de r\xe9f\xe9rence pour l'estimation gratuite de v\xe9los d'occasion en France.",country:"Fran\xe7ais (FR)",english:"English (EN)",copyright:"\xa9 "+new Date().getFullYear()+" Draftly. Tous droits r\xe9serv\xe9s."},en:{lang:"Language",nav:"Navigation",support:"Support",legal:"Legal",about:"About",mission:"Our mission",blog:"Blog",contact:"Contact",faq:"FAQ",join:"Join the community",a
1pi:"Draftly API",tos:"Terms of Service",privacy:"Privacy Policy",legalNotice:"Legal Notice",manageCookies:"Manage Cookies",followInsta:"Follow on Instagram",pitch:"The reference platform for free used bike valuation in France.",country:"France (FR)",english:"English (EN)",copyright:"\xa9 "+new Date().getFullYear()+" Draftly. All rights reserved."}},h={about:e=>"/".concat(e,"/about#top"),mission:e=>"/".concat(e,"/our-mission#top"),blog:e=>"/".concat(e,"/blog#top"),contact:e=>"/".concat(e,"/contact#top"),faq:e=>"/".concat(e,"/faq#top"),api:e=>"/".concat(e,"/pro#top"),tos:e=>"/".concat(e,"/terms-conditions#top"),privacy:e=>"/".concat(e,"/privacy-policy#top"),legalNotice:e=>"/".concat(e,"/legal#top")};function d(e){let{locale:t}=e,r=t.startsWith("fr")?"fr":"en",o=f[r],d=(0,m.usePathname)()||"/".concat(t),[x,u]=(0,s.useState)(!0),g=(0,s.useRef)(null);(0,s.useEffect)(()=>u(!0),[]);let[y,p]=(0,s.useState)(!1),b=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=e=>{b.current&&!b.current.contains(e.target)&&p(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let v="fr-fr"===t?"en-fr":"fr-fr";return(0,a.jsx)("footer",{ref:g,className:"relative bg-[#004728] text-white py-12 overflow-hidden transition-all duration-700 ".concat(x?"opacity-100 translate-y-0":"opacity-0 translate-y-12"),children:(0,a.jsxs)("div",{className:"relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,a.jsxs)("div",{className:"space-y-8",children:[(0,a.jsxs)("div",{className:"text-center md:text-left transition-all duration-700 ".concat(x?"opacity-100 translate-y-0":"opacity-0 -translate-y-8"),style:{transitionDelay:x?"200ms":"0ms"},children:[(0,a.jsx)(n.default,{src:"/images/logo-draftly-footer.png",alt:"Draftly",width:120,height:32,className:"h-8 w-auto mb-3 mx-auto md:mx-0"}),(0,a.jsx)("p",{className:"text-gray-300 font-inter mx-auto md:mx-0 text-sm leading-relaxed max-w-md",children:o.pitch})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 md:gap-16 justify-items-start items-start max-w-6xl",children:[(0,a.jsxs)("div",{className:"text-left w-full transition-all duration-700 ".concat(x?"opacity-100 translate-x-0":"opacity-0 -translate-x-8"),style:{transitionDelay:x?"300ms":"0ms"},children:[(0,a.jsx)("h4",{className:"text-white font-semibold font-inter mb-2",children:o.nav}),(0,a.jsx)("div",{className:"w-12 h-1 bg-white mb-4"}),(0,a.jsxs)("div",{className:"flex flex-col space-y-3",children:[(0,a.jsxs)(i(),{href:h.about(t),className:"text-gray-300 hover:text-white transition-colors font-inter flex items-center",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 bg-white rounded-full mr-3"}),o.about]}),(0,a.jsxs)(i(),{href:h.mission(t),className:"text-gray-300 hover:text-white transition-colors font-inter flex items-center",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 bg-white rounded-full mr-3"}),o.mission]}),(0,a.jsxs)(i(),{href:h.blog(t),className:"text-gray-300 hover:text-white transition-colors font-inter flex items-center",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 bg-white rounded-full mr-3"}),o.blog]})]})]}),(0,a.jsxs)("div",{className:"text-left w-full transition-all duration-700 ".concat(x?"opacity-100 translate-y-0":"opacity-0 translate-y-8"),style:{transitionDelay:x?"400ms":"0ms"},children:[(0,a.jsx)("h4",{className:"text-white font-semibold font-inter mb-2",children:o.support}),(0,a.jsx)("div",{className:"w-10 h-1 bg-white mb-4"}),(0,a.jsxs)("div",{className:"flex flex-col space-y-3",children:[(0,a.jsxs)(i(),{href:h.contact(t),className:"text-gray-300 hover:text-white transition-colors font-inter flex items-center",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 bg-white rounded-full mr-3"}),o.contact]}),(0,a.jsxs)(i(),{href:h.faq(t),className:"text-gray-300 hover:text-white transition-colors font-inter flex items-center",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 bg-white rounded-full mr-3"}),o.faq]}),(0,a.jsxs)("a",{href:"https://community.draftly.io/",target:"_blank",rel:"noopener noreferrer",className:"text-gray-300 hover:text-white transition-colors font-inter flex items-center",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 bg-white rounded-full mr-3"}),o.join]}),(0,a.jsxs)(i(),{href:h.api(t),className:"text-gray-300 hover:text-white transition-colors font-inter flex items-center",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 bg-white rounded-full mr-3"}),o.api]})]})]}),(0,a.jsxs)("div",{className:"text-left w-full transition-all duration-700 ".concat(x?"opacity-100 translate-x-0":"opacity-0 translate-x-8"),style:{transitionDelay:x?"500ms":"0ms"},children:[(0,a.jsx)("h4",{className:"text-white font-semibold font-inter mb-2",children:o.legal}),(0,a.jsx)("div",{className:"w-8 h-1 bg-white mb-4"}),(0,a.jsxs)("div",{className:"flex flex-col space-y-3",children:[(0,a.jsxs)(i(),{href:h.tos(t),className:"text-gray-300 hover:text-white transition-colors font-inter flex items-center",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 bg-white rounded-full mr-3"}),o.tos]}),(0,a.jsxs)(i(),{href:h.privacy(t),className:"text-gray-300 hover:text-white transition-colors font-inter flex items-center",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 bg-white rounded-full mr-3"}),o.privacy]}),(0,a.jsxs)(i(),{href:h.legalNotice(t),className:"text-gray-300 hover:text-white transition-colors font-inter flex items-center",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 bg-white rounded-full mr-3"}),o.legalNotice]}),(0,a.jsxs)("button",{type:"button",onClick:()=>{try{var e,t;null==(e=(t=window).manageCookies)||e.call(t)}catch(e){}},className:"text-left text-gray-300 hover:text-white transition-colors font-inter flex items-center",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 bg-white rounded-full mr-3"}),o.manageCookies]})]})]})]})]}),(0,a.jsxs)("div",{className:"border-top border-t border-gray-600 mt-8 pt-8 flex flex-col md:flex-row md:justify-between md:items-center transition-all duration-700 ".concat(x?"opacity-100 translate-y-0":"opacity-0 translate-y-4"),style:{transitionDelay:x?"600ms":"0ms"},children:[(0,a.jsx)("p",{className:"text-gray-300 font-inter text-sm text-center md:text-left mb-4 md:mb-0",children:o.copyright}),(0,a.jsxs)("div",{className:"relative mb-4 md:mb-0 flex justify-center md:justify-start",ref:b,children:[(0,a.jsxs)("button",{onClick:()=>p(!y),className:"flex items-center text-gray-300 hover:text-white transition-colors font-inter text-sm",title:o.lang,children:[(0,a.jsx)(l.A,{className:"w-4 h-4 mr-2"}),"fr"===r?o.country:o.english]}),y&&(0,a.jsxs)("div",{className:"absolute left-1/2 -translate-x-1/2 bottom-full mb-2 w-56 bg-white rounded-lg shadow-lg border border-gray-200 py-2 z-50",children:[(0,a.jsxs)(i(),{href:d.replace(/^\/(fr-fr|en-fr)/,"/fr-fr"),onClick:()=>p(!1),className:"w-full px-4 py-2 text-left hover:bg-gray-50 transition-colors font-inter text-sm flex items-center ".concat("fr"===r?"text-[#004728] font-medium":"text-gray-700"),children:[(0,a.jsx)(l.A,{className:"w-4 h-4 mr-3"}),o.country]}),(0,a.jsxs)(i(),{href:(()=>
1{if(d.match(/^\/(fr-fr|en-fr)\/blog\/([^\/?#]+)/))try{let e="i18n:slugmap:".concat(d),t=sessionStorage.getItem(e);if(t){let e=JSON.parse(t)[v];if(e)return"/".concat(v,"/blog/").concat(e)}}catch(e){}return d.replace(/^\/(fr-fr|en-fr)/,"/".concat(v))})(),onClick:()=>p(!1),className:"w-full px-4 py-2 text-left hover:bg-gray-50 transition-colors font-inter text-sm flex items-center ".concat("en"===r?"text-[#004728] font-medium":"text-gray-700"),children:[(0,a.jsx)(l.A,{className:"w-4 h-4 mr-3"}),o.english]})]})]}),(0,a.jsx)("div",{className:"text-center md:text-right",children:(0,a.jsxs)("a",{href:"https://www.instagram.com/draftly_official",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-gray-300 hover:text-white transition-colors",children:[(0,a.jsx)(c,{className:"w-5 h-5 mr-2"}),o.followInsta]})})]})]})})}}},e=>{e.O(0,[2619,6394,8441,1255,7358],()=>e(e.s=47563)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.