PageSourceSearch

https://www.shangri-la.com/fe-static/sl-fe-revamp-prod/_next/stati…/restaurants-bars/list-5a4633ffc91fb55e.js

js shangri-la.com collected 2026-09-24 08:33:30 UTC 28,534 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5007],{51519:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/restaurants-bars/list",function(){return t(98449)}])},98413:function(e,n,t){"use strict";t.d(n,{j:function(){return x}});var a=t(14924),i=t(26042),l=t(69396),r=t(99534),c=t(85893),s=t(31059),o=t(94184),u=t.n(o),d=t(67784),m=t.n(d),h={brand:"brand"},x={square:"square",circle:"circle"},_=function(e){var n,t=e.theme,o=e.className,d=e.adobeTrack,_=void 0===d?{}:d,v=e.shape,f=e.disable,p=e.disabled,b=(0,r.Z)(e,["theme","className","adobeTrack","shape","disable","disabled"]),g={};return(null==_?void 0:_.editable)&&(g["data-track-button-name"]=null==_?void 0:_.editable),(0,c.jsx)("div",(0,l.Z)((0,i.Z)({className:u()([o,m().wraper,(n={},(0,a.Z)(n,m().brand,t===h.brand),(0,a.Z)(n,m().square,v===x.square),(0,a.Z)(n,m().circle,v===x.circle),n),(null==_?void 0:_.editable)?"adobe-link":"",])},g),{children:(0,c.jsx)(s.default,(0,l.Z)((0,i.Z)({},b),{disabled:null!=p?p:f}))}))};_.Group=s.default.Group,n.Z=_},11440:function(e,n,t){"use strict";var a=t(26042),i=t(85893),l=t(97538),r=t(83566),c=t.n(r),s=l.Z.Item,o=l.Z.ErrorList,u=l.Z.List,d=l.Z.Provider,m=l.Z.create,h=l.Z.useForm,x=function(e){return(0,i.jsx)("div",{className:c().wraper,children:(0,i.jsx)(l.Z,(0,a.Z)({},e))})};x.Item=s,x.ErrorList=o,x.List=u,x.Provider=d,x.create=m,x.useForm=h,n.Z=x},66248:function(e,n,t){"use strict";var a=t(85893),i=t(11163),l=t(17248),r=t.n(l),c=t(86073),s=t(94184),o=t.n(s),u=t(57852);n.Z=function(e){var n=e.title,t=e.back,l=e.backFn,s=e.show,d=void 0!==s&&s,m=(0,i.useRouter)(),h=(0,u.Z)();return(0,a.jsxs)("div",{className:o()("h-50px bg-color-fff relative flex justify-center items-center sm:hidden",{hidden:d?!d:h}),children:[(void 0===t?null:t)||(0,a.jsx)("span",{className:"".concat(r().iconBack," py-10px px-15px absolute left-0"),onClick:function(){"function"==typeof l?l():m.back()}}),(0,a.jsx)(c.Z,{className:"text-st line-clamp-1 px-30px",children:n})]})}},88939:function(e,n,t){"use strict";var a=t(14924),i=t(26042),l=t(69396),r=t(99534),c=t(85893),s=t(64749),o=t(94184),u=t.n(o),d=t(727),m=t.n(d),h=s.default.Option,x=function(e){var n=e.label,t=e.children,o=e.options,d=e.needEmptyOption,x=e.required,_=e.wrapClassName,v=(0,r.Z)(e,["wrapClassName"]),f=!1;return(null==t?void 0:t.length)||(null==o?void 0:o.length)||(f=!0),(0,c.jsxs)("div",{className:u()(m().wraper,_),children:[n&&(0,c.jsx)("div",{className:u()(["mb-10px","font-medium",(0,a.Z)({},m().required,x),]),children:n}),f&&(void 0===d||d)?(0,c.jsx)(s.default,(0,l.Z)((0,i.Z)({getPopupContainer:function(e){return e.parentElement},allowClear:!0},v),{children:(0,c.jsx)(h,{value:"",children:"N/A"},"N/A")})):(0,c.jsx)(s.default,(0,i.Z)({allowClear:!0,getPopupContainer:function(e){return e.parentElement}},v))]})};x.Option=h,n.Z=x},26706:function(e,n,t){"use strict";t.d(n,{Z:function(){return _}});var a=t(85893),i=t(41433),l=t.n(i),r=t(94184),c=t.n(r),s=t(71468);t(67294);var o=t(7950),u=t(10268),d=t(11163),m=t(86073),h=t(48071),x=t(84740);function _(e){var n=e.data,t=e.countryCity,i=(0,d.useRouter)().locale,r=(0,u.$G)("dining").t;return n&&n.length&&!(n.length<0)?(0,a.jsxs)("div",{className:l().cardBox,children:[(0,a.jsx)(m.Z,{tag:"div",className:c()(l().text,"title-font title-regular"),children:r("popularRestaurants")}),(0,a.jsx)("div",{className:l().cards,children:null==n?void 0:n.filter(function(e,n){return n<8}).map(function(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.cityAlias,c=t.hotelAlias,s=t.restaurantAlias,u=(null==t?void 0:t.newReservationPage)?(0,x.XW)(h.YV,{locale:i,cityAlias:r,hotelAlias:c,restaurantAlias:s}):t.bookingUrl;return(0,a.jsx)("div",{className:l().card,children:(0,a.jsx)(o.Z,{title:t.restaurantTitle,secondLine:t.hotelName,thirdLine:t.cityName,imageUrl:t.imageima,cuisines:t.cuisines,budget:t.budget,bookingUrl:(null==t?void 0:t.serviceTag)&&(null==t?void 0:null===(e=t.serviceTag)||void 0===e?void 0:e.length)&&(null==t?void 0:null===(n=t.serviceTag)||void 0===n?void 0:n.indexOf("Bookable"))!==-1?u:void 0,cardContentClass:l().cardContentClass,detailUri:t.restaurantDetailUri?"/".concat(i).c
1oncat(t.restaurantDetailUri):null,imageLayout:"top",imageAdobeTrack:{editable:"Click_global-restaurants-and-bars-homepage_cardpic"},bookableAdobeTrack:{editable:"Click_global-restaurants-and-bars-homepage_bookatable"}})},t.restaurantCode)})}),t&&(0,a.jsx)("div",{className:l().more,children:(0,a.jsx)(s.Z,{className:c()(l().link,"text-font text-regular"),underLine:!0,adobeTrack:{editable:"Click_global-restaurants-and-bars-homepage_rbviewall"},target:"_blank",data:{text:r("viewAll"),url:"/".concat(i,"/restaurants-bars/list")+(t?"?country=".concat(t.countryCode,"&city=").concat(t.cityCode):"")}})})]}):null}},7950:function(e,n,t){"use strict";var a=t(14924),i=t(85893),l=t(4894),r=t.n(l),c=t(46005),s=t(75978),o=t(94184),u=t.n(o),d=t(10268),m=t(71468),h=t(71729),x=t(67294),_=t(7e3),v={top:"top",left:"left"},f=function(e){var n=e.title,t=e.imageUrl,l=e.secondLine,o=e.thirdLine,f=e.cuisines,p=e.budget,b=e.bookingUrl,g=e.detailUri,j=e.imageLayout,C=void 0===j?v.left:j,y=e.imageAdobeTrack,N=e.bookableAdobeTrack,Z=e.cardContentClass,B=(0,d.$G)("dining").t,k=function(e){for(var n="",t=0;t<e;t++)n+="$";return n},S=(0,x.useState)(!1),I=S[0],R=S[1],M=function(e){e.preventDefault(),b&&-1!==b.indexOf(_.Fz)?R(!0):window.open(b,"_self")},P=function(){R(!1)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(m.Z,{target:"_self",data:{url:g},tag:g?"a":"div",adobeTrack:y,className:u()(r().card,(0,a.Z)({},r()[C],C===v.top||C===v.left)),children:[C===v.top?(0,i.jsx)("div",{className:u()(r().imageRatioBox),style:{paddingBottom:"48.8%"},children:(0,i.jsx)("div",{className:r().imageRatio,children:(0,i.jsx)(s.Z,{data:{src:t,alt:n},showType:"bg"})})}):(0,i.jsx)("div",{className:u()(r().imageBox),children:(0,i.jsx)(s.Z,{data:{src:t,alt:n},showType:"bg"})}),(0,i.jsxs)("div",{className:u()(r().content,Z),children:[(0,i.jsx)("div",{className:u()(r().title,"text-font text-medium"),children:n}),(0,i.jsx)("div",{className:u()(r().subtitle0,"text-font text-medium"),children:l}),(0,i.jsx)("div",{className:u()(r().subtitle,"text-font text-medium"),children:o}),(0,i.jsxs)("div",{className:u()(r().price,"text-font text-medium"),children:[(0,i.jsx)("span",{children:null==f?void 0:f[0]}),f&&f.length&&f.length>0&&p&&k(p)?(0,i.jsx)("span",{className:r().line}):null,(0,i.jsx)("span",{children:k(p)})]}),b&&(0,i.jsx)("div",{className:r().cardBtnBox,children:(0,i.jsx)(c.Z,{adobeTrack:N,onClick:M,className:r().btn,children:B("bookATable")})})]})]}),(0,i.jsx)(h.Z,{closable:!0,width:"50%",customClass:r().bookingModal,title:B("bookATable"),footer:null,visible:I,onCancel:P,children:(0,i.jsx)("iframe",{className:r().bookingBox,frameBorder:"no",src:b,style:{width:"100%",height:"500px"}})})]})};n.Z=f},23163:function(e,n,t){"use strict";t.d(n,{d_:function(){return a},i2:function(){return c},jp:function(){return l},qG:function(){return r},s8:function(){return i}});var a=5,i=1,l=300,r={GROUP_TITLE:"GROUP_TITLE",POPULAR_DESTINATIONS:"POPULAR_DESTINATIONS",RESTAURANTS_AND_BAR:"RESTAURANTS_AND_BAR",CUISINE:"CUISINE_LIST",HOTEL:"HOTEL_LIST",ERROR:"ERROR",HISTORY:"HISTORY",CITY:"CITY"},c=[{code:"1",name:"$"},{code:"2",name:"$$"},{code:"3",name:"$$$"},{code:"4",name:"$$$$"},]},98449:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return ei},default:function(){return el}});var a=t(26042),i=t(69396),l=t(828),r=t(7297),c=t(29815),s=t(85893),o=t(84482),u=t(14924),d=t(11440),m=t(98413),h=t(46005),x=t(88939),_=t(71535),v=t(25692),f=t.n(v),p=function(e){return(0,s.jsx)("div",{className:f().wraper,children:(0,s.jsx)(_.Z,(0,a.Z)({allowClear:!0,getPopupContainer:function(e){return e.parentElement}},e))})},b=t(27542),g=t.n(b),j=t(94184),C=t.n(j),y=t(67294),N=t(47568),Z=t(10092),B=t(44946),k=t(90902),S=t(56891);function I(e,n,t){return R.apply(this,arguments)}function R(){return(R=(0,N.Z)(function(e,n,t){var a,i,l;return(0,Z.__generator)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,(0,B.v_)({url:k.mobile,data:{service:S.getHotelList,query:{countryEn:n,cityEn:t}}})];case 1:return[2,(null===(a=e.sent().data)||void 0===a?void 0:a.hotelList)||[]];case 2:return l=e.sent(),console.error(l),[3,3];case 3:return[2]}})})).apply(this,arguments)}var M=t(11163),P=t(10268),L=function(e){return e.stopPropagation()},T=function(e,n){var t=0;return null==e||e.forEach(function(e){var n;return t+=null===(n=e.sonList)||void 0===n?void 0:n.length}),[{value:"all",label:"".concat(n("allCities"),"(").concat(t,")")},].concat((0,c.Z)(e?e.map(function(e){var t,a,i,l=null===(t=e.sonList)||void 0===t?void 0:t.map(function(e){return{value:e.code,label:e.name}}),r=null===(a=e.sonList)||void 0===a?void 0:a.length;return{value:e.code,label:"".concat(e.name,"(").concat(null===(i=e.sonList)||void 0===i?void 0:i.length,")"),children:r>1?[{value:"all",label:"".concat(n("all"),"(").concat(r,")")},].concat((0,c.Z)(l)):l}}):[]))},O=function(e){return e.map(function(e,n){return(0,s.jsx)("span",{children:0===n?e.substring(0,e.indexOf("(")):" / "+e},e)})},E=function(e,n,t){var a=(0,l.Z)(e||[],2),i=a[0],r=a[1],c=t("city");return"all"===i||"all"===r?t("all"):(n.forEach(function(e){e.code===i&&e.sonList.forEach(function(e){e.code===r&&(c=e.name)})}),c)},w=function(e,n,t){var a=t("hotel");return"all"===e?t("allHotels"):(n.forEach(function(n){n.hotelCode===e&&(a=n.hotelName)}),a)},A=function(e,n,t){var a="";if((null==e?void 0:e.indexOf("all"))!==-1)return t("allCuisines");var i=!0,l=!1,r=void 0;try{for(var c,s=n[Symbol.iterator]();!(i=(c=s.next()).done);i=!0){var o=c.value;if((null==e?void 0:e.indexOf(o.code))!==-1){if(a){a+="...";break}a=o.name}}}catch(u){l=!0,r=u}finally{try{i||null==s.return||s.return()}finally{if(l)throw r}}return a||t("cuisine")},U=function(e,n,t){var a="";if((null==e?void 0:e.indexOf("all"))!==-1)return t("allBudgets");var i=!0,l=!1,r=void 0;try{for(var c,s=n[Symbol.iterator]();!(i=(c=s.next()).done);i=!0){var o=c.value;if((null==e?void 0:e.indexOf(o.code))!==-1){if(a){a+="...";break}a=o.name}}}catch(u){l=!0,r=u}finally{try{i||null==s.return||s.return()}finally{if(l)throw r}}return a||t("budget")},q=function(e,n,t,a){var i=(0,c.Z)(n),l=i.indexOf(e);if(-1!==l){if("all"===e)i=[];else{i.splice(l,1);var r=i.indexOf("all");-1!==r&&i.splice(r,1)}}else"all"===e?i=["all"].concat((0,c.Z)(a.map(function(e){return e.code}))):(i.push(e),i.length===a.length&&i.push("all"));t(i)},H=t(86073),F=void 0,G=function(e){var n,t,a,i,r,o,_,v,f,b,j,N,Z,B,k,S=e.countryCityList,R=e.cuisineList,G=e.budgetList,D=e.onSearch,$=(0,M.useRouter)(),z=$.locale,K=$.query,W=$.isReady,J=(0,P.$G)("dining").t,Y=(0,y.useState)([]),X=Y[0],V=Y[1],Q=(0,y.useState)(0),ee=Q[0],en=Q[1],et=function(e){ee===e&&(e=0),en(e)},ea=function(){return en(0)},ei=(0,l.Z)(d.Z.useForm(),1)[0],el=(0,y.useState)(void 0),er=el[0],ec=el[1],es=(0,y.useState)(K.hotel),eo=es[0],eu=es[1],ed=(0,y.useState)((null===(n=K.cuisine)||void 0===n?void 0:n.split(","))||[]),em=ed[0],eh=ed[1],ex=(0,y.useState)([]),e_=ex[0],ev=ex[1],ef=(0,y.useRef)(K.country&&K.city?[K.country,K.city]:void 0);if((0,y.useEffect)(function(){S&&S.length&&ef.current&&ec(ef.current)},[S,ef]),(0,y.useEffect)(function(){var e=(0,l.Z)(ef.current||[],2),n=e[0],t=e[1],a=n&&"all"!==n;I(z,a?n:null,a&&t&&"all"!==t?t:null).then(function(e){V(e||[])})},[z,ef]),!W)return null;var ep=function(e,n){if(e.length<1){ec(void 0),eu(void 0),V([]);return}var t=(0,l.Z)(e,2),a=t[0],i=t[1];ec(e);var r=a&&"all"!==a;I(z,r?a:null,r&&i&&"all"!==i?i:null).then(function(t){V(t||[]);var a=t&&t.length?1===t.length?t[0].hotelCode:"all":null;eu(a),"mobile"===n&&eB(e,a,em,e_)}
1).catch(function(){"mobile"===n&&eB(e,eo,em,e_)})},eb=function(e){var n;if(!er){var t=X.find(function(n){return n.hotelCode===e})||{},a=t.countryEn,i=t.cityEn;a&&i&&(ec(n=[a,i]),V(X.filter(function(e){return e.countryEn===a&&e.cityEn===i})))}return n},eg=function(e){eu(e),eb(e)},ej=function(e){eu(e);var n=eb(e)||er;eB(n,e,em,e_)},eC=function(){e_&&e_.length&&4===e_.length?ev([]):ev(G.map(function(e){return e.code}))},ey=function(e){var n=em.indexOf("all"),t=e.indexOf("all");-1===n&&-1!==t?eh(["all"].concat((0,c.Z)(R.map(function(e){return e.code})))):-1!==n&&-1===t?eh([]):(-1!==n&&(null==em?void 0:em.length)>(null==e?void 0:e.length)&&e.splice(t,1),eh(e))},eN=function(e){var n=(0,c.Z)(e_),t=n.indexOf(e);-1!==t?n.splice(t,1):n.push(e),ev(n)},eZ=function(e){ev(e)},eB=function(e,n,t,a){ea(),D({city:e,hotel:n,cuisine:t,budget:a})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:C()(g().mobile,(0,u.Z)({},g().active,0!==ee)),children:[(0,s.jsxs)("div",{className:C()(g().menuItem,"text-medium",(_={},(0,u.Z)(_,g().active,1===ee),(0,u.Z)(_,g().menuItemSelected,E(er,S,J)!==J("city")),_)),onClick:et.bind(F,1),children:[(0,s.jsx)("span",{className:C()(g().menuItemText,{"text-medium":1===ee}),children:E(er,S,J)}),(0,s.jsxs)("div",{className:g().cityMenu,onClick:L,children:[(0,s.jsxs)("div",{className:g().cityMenuItemBox,children:[(0,s.jsx)("div",{onClick:ep.bind(F,["all"],"mobile"),className:C()(g().cityMenuItem,(v={},(0,u.Z)(v,g().active,(null==er?void 0:er[0])==="all"),(0,u.Z)(v,"text-medium",(null==er?void 0:er[0])==="all"),v)),children:(0,s.jsx)("span",{children:J("allCities")})},"all"),null==S?void 0:S.map(function(e){var n,t;return(0,s.jsx)("div",{onClick:ep.bind(F,[e.code,null===(n=e.sonList)||void 0===n?void 0:n[0].code,]),className:C()(g().cityMenuItem,(t={},(0,u.Z)(t,g().active,e.code===(null==er?void 0:er[0])),(0,u.Z)(t,"text-medium",e.code===(null==er?void 0:er[0])),t)),children:(0,s.jsx)("span",{children:e.name})},e.code)})]}),(0,s.jsx)("div",{className:g().cityMenuLine}),(0,s.jsxs)("div",{className:g().cityMenuItemBox,children:[(null===(t=null==S?void 0:S.filter(function(e){return e.code===(null==er?void 0:er[0])}))||void 0===t?void 0:null===(a=t[0])||void 0===a?void 0:null===(i=a.sonList)||void 0===i?void 0:i.length)>1?(0,s.jsx)("div",{onClick:ep.bind(F,[null==er?void 0:er[0],"all"],"mobile"),className:C()(g().cityMenuItem,(f={},(0,u.Z)(f,g().active,(null==er?void 0:er[1])==="all"),(0,u.Z)(f,"text-medium",(null==er?void 0:er[1])==="all"),f)),children:(0,s.jsx)("span",{children:J("all")})},"all"):null,null===(r=null==S?void 0:S.filter(function(e){return e.code===(null==er?void 0:er[0])}))||void 0===r?void 0:null===(o=r[0])||void 0===o?void 0:o.sonList.map(function(e){var n;return(0,s.jsx)("div",{className:C()(g().cityMenuItem,(n={},(0,u.Z)(n,g().active,e.code===(null==er?void 0:er[1])),(0,u.Z)(n,"text-medium",e.code===(null==er?void 0:er[1])),n)),onClick:ep.bind(F,[e.countryCode,e.code],"mobile"),children:(0,s.jsx)("span",{children:e.name})},e.code)})]})]})]}),(0,s.jsxs)("div",{className:C()(g().menuItem,"text-medium",(b={},(0,u.Z)(b,g().active,2===ee),(0,u.Z)(b,g().menuItemSelected,w(eo,X,J)!==J("hotel")),b)),onClick:et.bind(F,2),children:[(0,s.jsx)("span",{className:C()(g().menuItemText,{"text-medium":2===ee}),children:w(eo,X,J)}),(0,s.jsx)("div",{className:g().hotelMenu,onClick:L,children:(0,s.jsxs)("div",{className:g().hotelMenuItemBox,children:[(null==X?void 0:X.length)>1?(0,s.jsx)("div",{onClick:ej.bind(F,"all"),className:C()(g().hotelMenuItem,(j={},(0,u.Z)(j,g().active,"all"===eo),(0,u.Z)(j,"text-medium","all"===eo),j)),children:(0,s.jsx)("span",{children:J("allHotels")})}):null,null==X?void 0:X.map(function(e){var n;return(0,s.jsx)("div",{className:C()(g().hotelMenuItem,(n={},(0,u.Z)(n,g().active,e.hotelCode===eo),(0,u.Z)(n,"text-medium",e.hotelCode===eo),n)),onClick:ej.bind(F,e.hotelCode),children:(0,s.jsx)("span",{className:g().hotelMenuItemText,children:e.hotelName})},e.hotelCode)})]})})]}),(0,s.jsxs)("div",{className:C()(g().menuItem,"text-medium",(N={},(0,u.Z)(N,g().active,3===ee),(0,u.Z)(N,g().menuItemSelected,A(em,R,J)!==J("cuisine")),N)),onClick:et.bind(F,3),children:[(0,s.jsx)("span",{className:C()(g().menuItemText,{"text-medium":3===ee}),children:A(em,R,J)}),(0,s.jsxs)("div",{className:g().cuisineMenu,onClick:L,children:[(0,s.jsxs)("div",{className:g().cuisineMenuItemBox,children:[(0,s.jsx)("div",{className:C()(g().cuisineMenuItem,(Z={},(0,u.Z)(Z,g().active,-1!==em.indexOf("all")),(0,u.Z)(Z,"text-medium",-1!==em.indexOf("all")),Z)),onClick:q.bind(F,"all",em,eh,R),children:(0,s.jsx)("span",{children:J("allCuisines")})}),null==R?void 0:R.map(function(e){var n;return(0,s.jsx)("div",{className:C()(g().cuisineMenuItem,(n={},(0,u.Z)(n,g().active,-1!==em.indexOf(e.code)),(0,u.Z)(n,"text-medium",-1!==em.indexOf(e.code)),n)),onClick:q.bind(F,e.code,em,eh,R),children:(0,s.jsx)("span",{children:e.name})},e.code)})]}),(0,s.jsx)("div",{className:g().cuisineMenuLine}),(0,s.jsxs)("div",{className:g().cuisineMenuBtnBox,children:[(0,s.jsx)(h.Z,{type:"default",className:g().cuisineMenuBtn,onClick:ea,children:J("cancel")}),(0,s.jsx)(h.Z,{type:"primary",className:g().cuisineMenuBtn,onClick:eB.bind(F,er,eo,em,e_),children:J("ok")})]})]})]}),(0,s.jsxs)("div",{className:C()(g().menuItem,"text-medium",(B={},(0,u.Z)(B,g().active,4===ee),(0,u.Z)(B,g().menuItemSelected,U(e_,G,J)!==J("budget")),B)),onClick:et.bind(F,4),children:[(0,s.jsx)("span",{className:C()(g().menuItemText,{"text-medium":4===ee}),children:U(e_,G,J)}),(0,s.jsxs)("div",{className:g().budgetMenu,onClick:L,children:[(0,s.jsxs)("div",{className:C()(g().budgetMenuItemBox,g().checkMenuBox),children:[(0,s.jsx)("div",{className:C()(g().budgetMenuItem,(k={},(0,u.Z)(k,g().active,e_&&e_.length&&4===e_.length),(0,u.Z)(k,"text-medium",e_&&e_.length&&4===e_.length),k)),onClick:eC,children:(0,s.jsx)("span",{children:J("all")})}),G.map(function(e){var n;return(0,s.jsx)("div",{className:C()(g().budgetMenuItem,(n={},(0,u.Z)(n,g().active,-1!==e_.indexOf(e.code)),(0,u.Z)(n,"text-medium",-1!==e_.indexOf(e.code)),n)),onClick:eN.bind(F,e.code),children:(0,s.jsx)("span",{children:e.name})},e.code)})]}),(0,s.jsx)("div",{className:g().budgetMenuLine}),(0,s.jsxs)("div",{className:g().budgetMenuBtnBox,children:[(0,s.jsx)(h.Z,{type:"default",className:g().budgetMenuBtn,onClick:ea,children:J("cancel")}),(0,s.jsx)(h.Z,{type:"primary",className:g().budgetMenuBtn,onClick:eB.bind(F,er,eo,em,e_),children:J("ok")})]})]})]})]}),(0,s.jsx)("div",{className:g().menuMask,onClick:ea}),(0,s.jsxs)("div",{className:g().pc,children:[(0,s.jsx)(H.Z,{tag:"div",className:C()(g().title,"title-font title-regular"),children:J("findRestaurantsBars")}),(0,s.jsx)("div",{className:g().hLine}),(0,s.jsxs)(d.Z,{layout:"inline",form:ei,children:[(0,s.jsxs)("div",{className:C()(g().customForm,"text-font"),children:[(0,s.jsx)("div",{className:C()(g().formItem,g().citySelectBox),children:(0,s.jsx)(d.Z.Item,{label:(0,s.jsx)("span",{className:"title-font",children:J("city")}),children:(0,s.jsx)(p,{displayRender:O,options:T(S,J),placeholder:J("
1city"),onChange:ep,value:er,expandIcon:(0,s.jsx)("div",{className:g().expandIconBox})})})}),(0,s.jsx)("div",{className:C()(g().formItem,g().flexCenter),children:(0,s.jsx)(d.Z.Item,{label:(0,s.jsx)("span",{className:"title-font",children:J("hotel")}),children:(0,s.jsxs)(x.Z,{listHeight:408,placeholder:J("hotel"),value:eo,onChange:eg,children:[(null==X?void 0:X.length)>1?(0,s.jsx)(x.Z.Option,{className:g().firstOption,value:"all",children:J("allHotels")},"all"):null,null==X?void 0:X.map(function(e){return(0,s.jsx)(x.Z.Option,{value:e.hotelCode,children:e.hotelName},e.hotelCode)})]})})}),(0,s.jsx)("div",{className:C()(g().formItem,g().flexEnd),children:(0,s.jsx)(d.Z.Item,{label:(0,s.jsx)("span",{className:"title-font",children:J("cuisine")}),className:g().checkSelect,children:(0,s.jsxs)(x.Z,{listHeight:408,placeholder:J("cuisine"),mode:"multiple",maxTagCount:1,value:em,onChange:ey,children:[(0,s.jsx)(x.Z.Option,{className:g().firstOption,value:"all",children:J("allCuisines")},"all"),null==R?void 0:R.map(function(e){return(0,s.jsx)(x.Z.Option,{value:e.code,children:e.name},e.code)})]})})})]}),(0,s.jsxs)("div",{className:C()(g().customForm,"text-font"),children:[(0,s.jsx)(d.Z.Item,{label:(0,s.jsx)("span",{className:"title-font",children:J("budget")}),children:(0,s.jsx)(m.Z.Group,{value:e_,onChange:eZ,children:(0,s.jsx)("div",{className:g().budgetBox,children:G.map(function(e){return(0,s.jsx)("div",{className:g().budgetItemBox,children:(0,s.jsx)(m.Z,{theme:"brand",value:e.code,children:e.name})},e.code)})})})}),(0,s.jsx)("div",{className:g().btnBox,children:(0,s.jsx)(h.Z,{type:"primary",onClick:eB.bind(F,er,eo,em,e_),children:J("search")})})]})]})]})]})},D=t(7950),$=t(59056),z=t.n($),K=t(74555),W=t(96870),J=t(14410),Y=t(66248),X=t(26706),V=t(23163),Q=t(48071),ee=t(84740);function en(){var e=(0,r.Z)(["restaurantsBarsList"]);return en=function(){return e},e}var et=function(e){var n=(0,M.useRouter)(),t=n.locale,r=n.query,u=n.isReady,d=(0,P.$G)("dining").t,m=e.dispatch,h=e.countryCityList,x=e.cuisineList,_=e.recommendList,v=(0,y.useRef)(1),f=(0,y.useRef)({}),p=(0,y.useRef)(!0);(0,y.useEffect)(function(){(0,W.Mf)([J.Z]),m({type:"restaurants/getCountryCity",payload:{language:t}}),m({type:"restaurants/getCuisineList",payload:{language:t}})},[m,t]),(0,y.useEffect)(function(){var e;if(u)return f.current={countryCode:r.country,cityCode:r.city,hotelCode:r.hotel,cuisineCodes:null===(e=r.cuisine)||void 0===e?void 0:e.split(",")},m({type:"restaurants/websiteRestaurantSearch",payload:{language:t,query:(0,i.Z)((0,a.Z)({},f.current),{currentPage:1,pageSize:3}),callback:function(e){p.current=!1,k(e)}}}),function(){k([])}},[m,t,r,u]);var b=(0,y.useRef)(),g=(0,y.useRef)(!1),j=(0,y.useRef)(!1),N=function(){if(b){var e,n,t,a=document.documentElement.clientHeight,i=document.documentElement.scrollTop,l=null===(e=b.current)||void 0===e?void 0:e.offsetTop;a+i-l-(null===(n=b.current)||void 0===n?void 0:n.offsetHeight)>=0&&R(!1)}};(0,y.useEffect)(function(){document.body.onscroll=N});var Z=(0,y.useState)([]),B=Z[0],k=Z[1],S=function(e){f.current=L(e),v.current=1,j.current=!1,I(function(e){k(e)})},I=function(e,n){m({type:"restaurants/websiteRestaurantSearch",payload:{language:t,query:(0,i.Z)((0,a.Z)({},f.current),{currentPage:v.current,pageSize:3,excludeHotelCodes:n}),callback:function(n){n&&n.length&&n.length>0?(m({type:"restaurants/clearRestaurantRecommendList",payload:{}}),e(n)):(e([]),1===v.current?m({type:"restaurants/getRestaurantRecommendList",payload:{language:t,query:{currentPage:1,pageSize:8}}}):j.current=!0)}}})},R=function(){!g.current&&!j.current&&(g.current=!0,v.current++,I(function(e){k((0,c.Z)(B).concat((0,c.Z)(e))),g.current=!1},B.map(function(e){return e.hotelCode})))},L=function(e){var n=e.city,t=e.hotel,a=e.cuisine,i=e.budget,r={},c=(0,l.Z)(n||[],2),s=c[0],o=c[1];return s&&"all"!==s&&(r.countryCode=s),o&&"all"!==o&&(r.cityCode=o),t&&"all"!==t&&(r.hotelCode=t),a&&a.length>0&&-1===a.indexOf("all")&&(r.cuisineCodes=a),i&&i.length>0&&(r.budgetCodes=i),r};return u?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"sm:hidden relative z-1",children:(0,s.jsx)(Y.Z,{title:d(en())})}),(0,s.jsx)("div",{className:z().con,children:(0,s.jsx)(o.Z,{type:"normal",children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(G,{countryCityList:h,cuisineList:x,budgetList:V.i2,onSearch:S,isFirstRequest:p}),(0,s.jsxs)("div",{className:z().cardBox,ref:b,children:[B.map(function(e,n){return(0,s.jsxs)("div",{children:[0===n||B[n-1].cityCode!==e.cityCode?(0,s.jsx)("div",{className:C()(z().textCity,"title-regular"),children:e.cityName}):null,(0,s.jsxs)("div",{className:C()(z().textHotel,"text-regular"),children:[e.hotelName,"\xa0(",e.totals,")"]}),(0,s.jsx)("div",{className:z().cards,children:e.restaurantList.map(function(){var e,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=a.cityAlias,l=a.hotelAlias,c=a.restaurantAlias,o=(null==a?void 0:a.newReservationPage)?(0,ee.XW)(Q.B6,{locale:t,cityAlias:i,hotelAlias:l,restaurantAlias:c,offerId:null==r?void 0:r.offerId}):a.bookingUrl;return(0,s.jsx)("div",{className:z().card,children:(0,s.jsx)(D.Z,{title:a.restaurantTitle,secondLine:a.hotelName,thirdLine:a.cityName,imageUrl:a.imageima,cuisines:a.cuisines,budget:a.budget,bookingUrl:(null==a?void 0:a.serviceTag)&&(null==a?void 0:null===(e=a.serviceTag)||void 0===e?void 0:e.length)&&(null==a?void 0:null===(n=a.serviceTag)||void 0===n?void 0:n.indexOf("Bookable"))!==-1?o:void 0,detailUri:a.restaurantDetailUri?"/".concat(t).concat(a.restaurantDetailUri,"?offerId=").concat((null==r?void 0:r.offerId)||""):null,imageAdobeTrack:{editable:"Click_global-restaurants-and-bars-listpage_cardpic"},bookableAdobeTrack:{editable:"Click_global-restaurants-and-bars-listpage_bookatable"}})}
1,a.restaurantCode)})})]},n)}),p.current||0!==B.length?null:(0,s.jsxs)("div",{className:C()(z().noResultsBox,"text-regular"),children:[d("noResults"),(0,s.jsx)(X.Z,{data:_})]})]})]})})})]}):null},ea=(0,K.$j)(function(e){return e.restaurants||{}})(et);ea.model=[J.Z];var ei=!0,el=ea},25692:function(e){e.exports={wraper:"Cascader_wraper__Z1KeU",required:"Cascader_required__u0_K7"}},67784:function(e){e.exports={wraper:"CheckBox_wraper__GbOVe",square:"CheckBox_square__CAk9R",circle:"CheckBox_circle__YRSzj",brand:"CheckBox_brand__ymZyU"}},83566:function(e){e.exports={wraper:"Form_wraper__jC8Fu"}},17248:function(e){e.exports={iconBack:"MobileBack_iconBack__fSzge"}},727:function(e){e.exports={wraper:"Select_wraper__AdO17",required:"Select_required__YWij3"}},27542:function(e){e.exports={pc:"SearchPanel_pc__CmmsF",title:"SearchPanel_title__3H_l4",hLine:"SearchPanel_hLine__sJwS7",customForm:"SearchPanel_customForm__PGXCX",formItem:"SearchPanel_formItem__9Zwpx",firstOption:"SearchPanel_firstOption__nJOX3",citySelectBox:"SearchPanel_citySelectBox__ljqi0",budgetBox:"SearchPanel_budgetBox__bwc_Q",budgetItemBox:"SearchPanel_budgetItemBox__7dRWW",btnBox:"SearchPanel_btnBox__UAKCO",flexCenter:"SearchPanel_flexCenter__J0hm7",flexEnd:"SearchPanel_flexEnd__IDy4q",expandIconBox:"SearchPanel_expandIconBox__pt8cE",checkSelect:"SearchPanel_checkSelect__wVPAR",searchBtn:"SearchPanel_searchBtn__VBFMK",mobile:"SearchPanel_mobile__qzefZ",menuItem:"SearchPanel_menuItem__b65GZ",menuItemText:"SearchPanel_menuItemText__c_pvU",cityMenu:"SearchPanel_cityMenu__YKMg2",hotelMenu:"SearchPanel_hotelMenu__hKQiR",cuisineMenu:"SearchPanel_cuisineMenu__MDrvB",budgetMenu:"SearchPanel_budgetMenu__ndAVJ",menuItemSelected:"SearchPanel_menuItemSelected__Hmsgv",active:"SearchPanel_active__9r_Qa",cityMenuItemBox:"SearchPanel_cityMenuItemBox__HeBDk",cityMenuItem:"SearchPanel_cityMenuItem__8Aygf",cityMenuLine:"SearchPanel_cityMenuLine__r7rIb",hotelMenuItemBox:"SearchPanel_hotelMenuItemBox__oemwa",hotelMenuItem:"SearchPanel_hotelMenuItem__9XNF_",cuisineMenuItemBox:"SearchPanel_cuisineMenuItemBox__SU1Ic",cuisineMenuItem:"SearchPanel_cuisineMenuItem__I0J__",cuisineMenuLine:"SearchPanel_cuisineMenuLine__WCdAx",cuisineMenuBtnBox:"SearchPanel_cuisineMenuBtnBox__Ue27T",cuisineMenuBtn:"SearchPanel_cuisineMenuBtn__hCSKA",budgetMenuItemBox:"SearchPanel_budgetMenuItemBox__g0Fk7",budgetMenuItem:"SearchPanel_budgetMenuItem__BTQ8G",budgetMenuLine:"SearchPanel_budgetMenuLine__UA_vR",budgetMenuBtnBox:"SearchPanel_budgetMenuBtnBox__sWEHm",budgetMenuBtn:"SearchPanel_budgetMenuBtn__wGRHd",menuMask:"SearchPanel_menuMask__IiG9P"}},59056:function(e){e.exports={con:"List_con__9ZPeS",cardBox:"List_cardBox__WLwKL",textCity:"List_textCity__hiFzv",textHotel:"List_textHotel__5QnVW",cards:"List_cards__WHyso",card:"List_card__hKsZw",noResultsBox:"List_noResultsBox__sS09d"}},41433:function(e){e.exports={cardBox:"PopularRecommended_cardBox__WIYKR",text:"PopularRecommended_text__gjZgN",cards:"PopularRecommended_cards__GabhA",card:"PopularRecommended_card__6JqJF",cardContentClass:"PopularRecommended_cardContentClass__Ay_Cz",more:"PopularRecommended_more__LXJo0",link:"PopularRecommended_link__DA6ex"}},4894:function(e){e.exports={card:"RestaurantsBarsCard_card__3hadi",imageRatioBox:"RestaurantsBarsCard_imageRatioBox__KGGOg",imageRatio:"RestaurantsBarsCard_imageRatio__y1sDE",imageBox:"RestaurantsBarsCard_imageBox__uEpzU",content:"RestaurantsBarsCard_content__xq_GD",title:"RestaurantsBarsCard_title__BYaEh",subtitle:"RestaurantsBarsCard_subtitle__obn4S",subtitle0:"RestaurantsBarsCard_subtitle0__rvcdJ",price:"RestaurantsBarsCard_price___unH6",line:"RestaurantsBarsCard_line__8PJag",cardBtnBox:"RestaurantsBarsCard_cardBtnBox__ZmCsm",btn:"RestaurantsBarsCard_btn__cbtK0",top:"RestaurantsBarsCard_top__z_a83",bookingModal:"RestaurantsBarsCard_bookingModal__dDybc",bookingBox:"RestaurantsBarsCard_bookingBox__ITS7s"}}},function(e){e.O(0,[4749,7538,1059,7390,7718,7406,9774,2888,179],function(){return e(e.s=51519)}),_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.