PageSourceSearch

https://www.quick.fr/_next/static/chunks/5539.8c25f5f4fd972f2a.js

js quick.fr collected 2026-09-24 10:00:20 UTC 11,564 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5539],{514:(e,t,n)=>{"use strict";n.d(t,{Nq:()=>d,Lt:()=>f,X3:()=>p});var r=n(14232);n(98477);var l=n(35073);function i(e){return(0,r.forwardRef)(function(t,n){let{instance:i,context:o}=e(t).current;return(0,r.useImperativeHandle)(n,()=>i),null==t.children?null:r.createElement(l.hL,{value:o},t.children)})}var o=n(42526);function u(e,t){let n=(0,r.useRef)();(0,r.useEffect)(function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}},[e,t])}var a=n(48420);function c(e,t){(0,r.useEffect)(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){t.layerContainer?.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function s(e){return function(t){let n=(0,l.U$)(),i=e((0,a.P)(t,n),n);return!function(e,t){let n=(0,r.useRef)(t);(0,r.useEffect)(function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}(n.map,t.attribution),u(i.current,t.eventHandlers),c(i.current,n),i}}function d(e,t){return i(s((0,o.K)(e,t)))}function f(e,t){var n;return i((n=(0,o.K)(e,t),function(e){let t=(0,l.U$)(),i=n((0,a.P)(e,t),t);u(i.current,e.eventHandlers),c(i.current,t);var o=i.current;let s=(0,r.useRef)();return(0,r.useEffect)(function(){if(e.pathOptions!==s.current){let t=e.pathOptions??{};o.instance.setStyle(t),s.current=t}},[o,e]),i}))}function p(e,t){var n;return n=s((0,o.K)(e,t)),(0,r.forwardRef)(function(e,t){let{instance:l}=n(e).current;return(0,r.useImperativeHandle)(t,()=>l),null})}},14027:(e,t,n)=>{"use strict";n.d(t,{W:()=>u});var r=n(35073),l=n(16895),i=n(14232);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let u=(0,i.forwardRef)(function({bounds:e,boundsOptions:t,center:n,children:u,className:a,id:c,placeholder:s,style:d,whenReady:f,zoom:p,...g},v){let[b]=(0,i.useState)({className:a,id:c,style:d}),[h,m]=(0,i.useState)(null);(0,i.useImperativeHandle)(v,()=>h?.map??null,[h]);let k=(0,i.useCallback)(i=>{if(null!==i&&null===h){let o=new l.Map(i,g);null!=n&&null!=p?o.setView(n,p):null!=e&&o.fitBounds(e,t),null!=f&&o.whenReady(f),m((0,r.fB)(o))}},[]);(0,i.useEffect)(()=>()=>{h?.map.remove()},[h]);let x=h?i.createElement(r.hL,{value:h},u):s??null;return i.createElement("div",o({},b,{ref:k}),x)})},15874:e=>{e.exports="/_next/static/images/itinerary-04280b00a6b6940948d060af6c80d21a.gif"},25539:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>K});var r=n(18153),l=n(95062),i=n.n(l),o=n(14232),u=n(89099),a=n(24249),c=n(41116),s=n.n(c),d=n(1340),f=n(20288),p=n(14027),g=n(76002),v=n(57152),b=n(16895),h=n.n(b),m=n(20011),k=n(87e3),x=n(21611),y=n(59029),C=n(39351),w=n.n(C),R=n(58017);let _=(0,x.A)("div",{target:"e1kovo0d2"})(e=>{let{theme:t}=e;return{display:"flex",flexDirection:"column",position:"absolute",left:t.breakpoints.xl?20:"calc((100vw - 1270px) / 2)",bottom:30,right:t.breakpoints.xl?20:"calc((100vw - 1270px) / 2)",zIndex:2,fontStyle:"italic"}}),A=(0,x.A)("div",{target:"e1kovo0d3"})(()=>({display:"flex",marginTop:25})),z=(0,x.A)(y.A,{target:"e1kovo0d4"})(()=>({margin:"0",paddingTop:18,paddingBottom:18})),I=(0,x.A)(z,{target:"e1kovo0d5"})(()=>({margin:"0 20px 0 0"})),O=(0,x.A)("button",{target:"e1kovo0d6"})(()=>({backgroundImage:'url("'.concat(w(),'")'),backgroundRepeat:"no-repeat",width:28,height:35,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",marginBottom:17,padding:0})),Y={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",width:360,padding:0}},E=(0,x.A)("h2",{target:"e1kovo0d7"})(()=>({color:"black",fontSize:26,marginBottom:20,textAlign:"center",marginTop:0})),q=(0,x.A)("div",{target:"e1kovo0d8"})(()=>({padding:"50px 19px 30px",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"})),S=(0,x.A)("div",{target:"e1kovo0d9"})(e=>{let{theme:t}=e;return{padding:"25px 0",backgroundColor:t.colors.greyInput,display:"flex",justifyContent:"center",alignItems:"center"}}),L=(0,x.A)("div",{target:"e1kovo0d10"})(()=>({textAlign:"center",position:"relative",zIndex:1,["&:hover ".concat(R.m)]:{dis
1play:"flex"}}));var j=n(23261),B=n(35260),F=n.n(B),U=n(15874),D=n.n(U),N=n(72170),T=n.n(N),H=n(92637);s().setAppElement("#__next");let P=h().icon({iconUrl:"/map-pin.svg",iconSize:[36,48],iconAnchor:[18,48]});function Q(e){var t,n,l,i,c,b,h,x,y,C,w,B,U,N,Q,K;let{restaurant:M}=e,{breakpoints:{isDesktop:W}}=(0,a.u)();(0,u.useRouter)();let[Z,V]=(0,o.useState)(!1),{handleLike:$,handleDislike:X,isNearest:G,...J}=(0,d.x)(),ee=((null==(t=J.activeRestaurant)?void 0:t.id)?null==(l=J.activeRestaurant)||null==(n=l.attributes)?void 0:n.fr:null==(c=J.localRestaurant)||null==(i=c.attributes)?void 0:i.fr)||{},et=(0,o.useMemo)(()=>{var e;return!G&&ee===(null==M||null==(e=M.attributes)?void 0:e.fr)},[null==M||null==(b=M.attributes)?void 0:b.fr,ee,G]),en=(0,k.A)("ST_ENABLE_GLITCHES"),er={quick_title_line_1:{quick_title_line_part_1:{color:"Blanc",id:1,title:"Restaurant"}},quick_title_line_2:{quick_title_line_part_1:{color:"Blanc",id:2,title:(null==M||null==(h=M.attributes)?void 0:h.name)||""}}},el=(0,o.useRef)(null),ei=(0,o.useRef)(null),eo=(0,o.useCallback)(()=>{var e,t;window.open("".concat("https://www.google.com/maps/dir/?api=1&destination=").concat(encodeURI("".concat(null==M||null==(e=M.attributes)?void 0:e.lat,",").concat(null==M||null==(t=M.attributes)?void 0:t.lng))),"_blank")},[M]),eu=(0,o.useCallback)(()=>{V(!0)},[]);return window&&window.location?(0,r.FD)(r.FK,{children:[!!(null==M?void 0:M.attributes)&&(0,r.FD)(s(),{style:Y,onRequestClose:()=>V(!1),shouldCloseOnOverlayClick:!0,isOpen:Z,children:[(0,r.FD)(q,{children:[(0,r.Y)(E,{children:"Votre restaurant Quick favori"}),(0,r.Y)("p",{style:{textAlign:"center"},children:et?"Souhaitez-vous que le restaurant ".concat(null!=(Q=null==M||null==(x=M.attributes)?void 0:x.name)?Q:"cette"," ne soit plus votre restaurant Quick favori\xa0?"):"Souhaitez-vous que le restaurant ".concat(null!=(K=null==M||null==(y=M.attributes)?void 0:y.name)?K:"cette"," devienne votre restaurant Quick favori\xa0?")}),et?(0,r.Y)(z,{onClick:X(()=>V(!1)),color:"red",children:"Valider"}):(0,r.Y)(z,{onClick:$(M,()=>V(!1)),color:"red",children:"Mettre en favori"})]}),(0,r.Y)(S,{children:(0,r.Y)(z,{onClick:()=>V(!1),color:"transparent_red",children:"Annuler"})})]}),(0,r.FD)("div",{className:"w-full h-[280px] md:h-[405px] relative",children:[(0,r.FD)(p.W,{style:{width:"100%",height:"100%",zIndex:1},center:{lat:parseFloat(null==M||null==(C=M.attributes)?void 0:C.lat)||0,lng:parseFloat(null==M||null==(w=M.attributes)?void 0:w.lng)||0},zoom:16,dragging:!1,scrollWheelZoom:!1,doubleClickZoom:!1,touchZoom:!1,zoomControl:!1,attributionControl:!1,children:[(0,r.Y)(g.e,{url:H.h}),(0,r.Y)(v.p,{icon:P,position:[null==M||null==(B=M.attributes)?void 0:B.lat,null==M||null==(U=M.attributes)?void 0:U.lng]})]}),(0,r.Y)("div",{className:"absolute top-0 left-0 w-full h-full z-10 bg-gradient-to-b from-black/80 to-black/10",children:!!(null==M||null==(N=M.attributes)?void 0:N.fr)&&(W?(0,r.FD)(_,{children:[(0,r.Y)(O,{onClick:()=>{window.location.href="/restaurants"}}),(0,r.Y)(j.QU,{size:"Normal",quickTitle:er,directionColumn:!0}),(0,r.FD)(A,{children:[(0,r.FD)(L,{children:[(0,r.Y)(I,{onClick:eu,color:"red",width:"fit-content",ref:ei,children:et?"Mon restaurant favori":"Choisir ce restaurant"}),en&&W&&(0,r.Y)(R.A,{imageUrl:et?T():F(),onClick:eu,buttonRef:ei,left:et?-80.5:-88})]}),f.U.is.darkKitchen(M)?null:(0,r.FD)(L,{children:[(0,r.Y)(z,{onClick:eo,color:"grey_red",ref:el,children:"Itin\xe9raire"}),en&&W&&(0,r.Y)(R.A,{imageUrl:D(),buttonRef:el,onClick:eo})]})]})]}):(0,r.Y)(m.bm,{onClick:()=>{window.location.href="/restaurants"}}))})]})]}):null}Q.propTypes={center:i().shape({lat:i().number,lng:i().number}),restaurant:i().object};let K=Q},35073:(e,t,n)=>{"use strict";n.d(t,{U$:()=>a,W4:()=>i,fB:()=>l,hL:()=>u});var r=n(14232);function l(e){return Object.freeze({__version:1,map:e})}function i(e,t){return Object.freeze({...e,...t})}let o=(0,r.createContext)(null),u=o.Provider;function a(){let e=(0,r.useContext)(o);if(null==e)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}},35260:e=>{e.exports="/_next/static/images/choose-restaurant-588afca1039095ec5a73a03f69cfcfca.gif"},42526:(e,t,n)=>{"use strict";n.d(t,{K:()=>i,Q:()=>l});var r=n(14232);function l(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function i(e,t){return null==t?function(t,n){let l=(0,r.useRef)();return l.current||(l.current=e(t,n)),l}:function(n,l){let i=(0,r.useRef)();i.current||(i.current=e(n,l));let o=(0,r.useRef)(n),{instance:u}=i.current;return(0,r.useEffect)(function(){o.current!==n&&(t(u,n,o.current),o.current=n)},[u,n,l]),i}}},48420:(e,t,n)=>{"use strict";function r(e,t){let n=e.pane??t.pane;return n?{...e,pane:n}
1:e}n.d(t,{P:()=>r})},57152:(e,t,n)=>{"use strict";n.d(t,{p:()=>u});var r=n(514),l=n(42526),i=n(35073),o=n(16895);let u=(0,r.Nq)(function({position:e,...t},n){let r=new o.Marker(e,t);return(0,l.Q)(r,(0,i.W4)(n,{overlayContainer:r}))},function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())})},58017:(e,t,n)=>{"use strict";n.d(t,{A:()=>d,m:()=>c});var r=n(18153),l=n(21611),i=n(14232),o=n(95062),u=n.n(o);let a=(0,l.A)("div",{target:"ejxqxgg0"})(e=>{let{imageUrl:t}=e;return{width:407,height:95,display:"flex",backgroundImage:'url("'.concat(t,'")'),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"}}),c=(0,l.A)("div",{target:"ejxqxgg1"})(e=>{let{width:t,height:n,isHorizontallyAligned:r,top:l,left:i}=e;return{position:"absolute",left:r?0:i||-((407-t)/2*1),top:l,zIndex:2,width:r?"100%":407,height:n,display:"none",justifyContent:"center",alignItems:"center",cursor:"pointer"}});function s(e){var t;let{buttonRef:n,imageUrl:l,isHorizontallyAligned:o=!1,top:u=0,onClick:s,left:d=null}=e,[f,p]=(0,i.useState)(0),[g,v]=(0,i.useState)(0);return((0,i.useEffect)(()=>{let e=null==n?void 0:n.current;e&&(v(e.getBoundingClientRect().height),p(e.getBoundingClientRect().width))},[null==n||null==(t=n.current)?void 0:t.getBoundingClientRect().width]),g&&f)?(0,r.Y)(c,{width:f,height:g,isHorizontallyAligned:o,top:u,onClick:s,left:d,children:(0,r.Y)(a,{imageUrl:l})}):null}s.propTypes={buttonRef:u().object.isRequired,imageUrl:u().string.isRequired,isHorizontallyAligned:u().bool,top:u().number,onClick:u().func,left:u().number};let d=s},72170:e=>{e.exports="/_next/static/images/favori-restaurant-9c36d8d077603b9cb577515249151503.gif"},76002:(e,t,n)=>{"use strict";n.d(t,{e:()=>u});var r=n(514),l=n(48420),i=n(42526),o=n(16895);let u=(0,r.X3)(function({url:e,...t},n){let r=new o.TileLayer(e,(0,l.P)(t,n));return(0,i.Q)(r,n)},function(e,t,n){let{opacity:r,zIndex:l}=t;null!=r&&r!==n.opacity&&e.setOpacity(r),null!=l&&l!==n.zIndex&&e.setZIndex(l);let{url:i}=t;null!=i&&i!==n.url&&e.setUrl(i)})},92637:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});let r="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}}]);

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.