PageSourceSearch

https://www.rappi.com.br/static-restaurantes/_next/static/chunks/pages/[city]/restaurantes-a7f1716d1b8aa123.js

js rappi.com.br collected 2026-09-24 15:25:08 UTC 9,058 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6295],{13755:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[city]/restaurantes",function(){return n(25982)}])},25982:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSP:function(){return z}});var r=n(34727),i=n(14251),s=n(32692),a=n(69779),c=n(70655),o=n(85893),u=n(23100),l=n(88911),d=n(30354),f=n(32226),y=n(31279),m=n(31953),h=n(22773),p=n(90219),b=n(10146),_=n(50840),g=n(33302),v=n(89018),C=n(95818),x=n(37544),S=n(29654),Z=n(86885),O=n(92341),w=n(5895),j=n(58657),q=n(71425),F=n(4395),k=n(42389),I=n(74171),T=n(92589),P=n(48082),R=n(59485),E=n(87066),B=n(48053),D=n.n(B),N=n(75039),A=n.n(N),H=n(22156),U=n(5152),M=n.n(U),G=n(37984),$=n(67294),L=n(50066),Y=n(8100);function X(){var t=(0,s.Z)(["\n  margin-top: 0;\n"]);return X=function(){return t},t}var K=M()(function(){return n.e(9613).then(n.bind(n,79613))},{loadableGenerated:{webpack:function(){return[79613]}},ssr:!1}),V=(0,Y.wE)((0,O.au)({chosenCategoryId:void 0,chosenFilters:[],chosenOrderId:""})),J=(0,L.default)(m.Z).withConfig({componentId:"sc-d7b83662-0"})(X()),Q=function(t){var e,s,m,B=t.numberOfRestaurants,N=t.storesPerPage,U=t.location,M=t.city,L=t.restaurantCategories,Y=t.filters,X=t.primeStatus,Q=t.fallback,z=t.promosPill,W=t.promotionBanners,tt=t.seoCarrousel,te=t.dataFAQ,tn=(0,H.$G)("common").t,tr=(0,H.$G)("restaurants").t,ti=(0,H.$G)("city-cuisine").t,ts=(0,H.$G)("city-home").t,ta=ts("seo.carrousel",{returnObjects:!0,city:U.city}),tc=ts("seo.faq_accordion",{returnObjects:!0,city:U.city}),to=(null==tt?void 0:tt.length)>0,tu=(null==te?void 0:te.length)>0,tl=(0,$.useState)(!1),td=tl[0],tf=tl[1],ty=(0,$.useState)(N),tm=ty[0],th=ty[1],tp=(0,w.TL)(),tb=(0,w.mr)().homeFilters,t_=tb.filters,tg=tb.categoryId,tv=tb.order||(0,F.Fb)(tn),tC=Q[V],tx=(0,$.useState)(tC),tS=tx[0],tZ=tx[1],tO=(0,$.useState)(tC),tw=tO[0],tj=tO[1],tq=(0,$.useRef)([]),tF=(0,P.p)((0,O.au)({chosenCategoryId:tg,chosenFilters:t_,chosenOrderId:tv.id}),(s=(0,r.Z)(function(t,e){var n;return(0,c.__generator)(this,function(t){switch(t.label){case 0:if(0!==tq.current.length)return[3,2];return[4,(0,q.wU)({location:U,primeStatus:X},E.Z)];case 1:n=t.sent(),tq.current=n,t.label=2;case 2:return[2,(0,q.oS)({storeIds:tq.current,axiosInstance:E.Z,primeStatus:X,order:tv,location:U,tags:e?[e]:[],filters:t_})]}})}),function(t,e){return s.apply(this,arguments)})),tk=tF.data,tI=void 0===tk?[]:tk,tT=tF.isValidating,tP=(0,d.p)(),tR=v.O.top_brand_carousel,tE=(0,k.ax)({t:tr,city:null!==(e=M.city)&&void 0!==e?e:(0,R.kC)(U.city),filteredFaqs:(0,k.Y0)(tC)}),tB=tn("countryCuisine.title"),tD=tn("countryCuisine.content"),tN=(0,k.bO)({hasCityDescription:Object.keys(ti("".concat(M.url))).includes("cityCuisine"),city:M,t:ti,hasDefaultDescription:Object.keys(ti("default")).includes("cityCuisine"),numberOfRestaurants:B}),tA=Boolean(tg||t_.length>0||tv.id!==(0,F.Fb)(tn).id),tH=(0,S.T)(tS[0]);tN&&tN.title&&(tB=tN.title,tD=tN.content),(0,$.useEffect)(function(){var t;Promise.resolve().then(n.bind(n,96)).then((t=(0,r.Z)(function(t){var e;return(0,c.__generator)(this,function(e){switch(e.label){case 0:return[4,(0,t.AnalyticsActions).viewStoreType((0,Z.J)({screenType:"RESTAURANT_CITY_HOME"}))];case 1:return e.sent(),[2]}})}),function(e){return t.apply(this,arguments)}))},[]);var tU,tM,tG,t$=(m=(0,r.Z)(function(){var t,e,n,r,i;return(0,c.__generator)(this,function(s){switch(s.label){case 0:if(tf(!0),0!==tq.current.length)return[3,2];return[4,(0,q.wU)({location:U,primeStatus:X},E.Z)];case 1:t=s.sent(),tq.current=t,s.label=2;case 2:e=tm,n=tm+N,s.label=3;case 3:return s.trys.push([3,,5,6]),[4,(0,q.qY)({location:U,alreadySeenIds:tq.current.slice(e,n),axiosInstance:E.Z,primeStatus:X})];case 4:return r=s.sent(),i=(0,a.Z)(tw).concat((0,a.Z)(r)),tj(i),tZ(i),th(n),[3,6];case 5:return tf(!1),[7];case 6:return[2]}})}),function(){return m.apply(this,arguments)});return(0,$.useEffect)(function(){t_.length>0||tg||tv.id!==(0,F.Fb)(tn).id?tZ(tI):tZ(tw)},[t_,tI,tg,tv]),(0,$.useEffect)(function(){var t=(0,G.isUserAuthenticated)(),e=t&&(null==z?void 0:z.title)?z:{title:tn("pill.message"),boldMessage:tn("pill.bold_message")},n=(0,R.mU)({render:function(){return(0,o.jsx)(g.Z,(0,i.Z)({},e))},userIsLogged:t,toast:tP,promosPill:z});return function(){clearTimeout(n)}},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(x.H,{title:tr("restaurants.city.head_title",{city:M.city,numberOfStores:B}),description:tr("restaurants.city.head_description",{city:M.city,numberOfStores:B}),thumbnail:tH,canonical:"".concat(v.O.infoCountry.base_domain,"/").concat(M.url,"/restaurantes"),breadCrumbsSchema:(0,T.eU)({restsHome:ti("breadcrumb.restaurants_title"),restsByCity:tn("link_box.restaurants.url",{city:M.city||""}),cityUrl:M.url}),faqsSchema:tu?(0,I.y)((0,C.S)(tn("wordConnector"),tc,te).faqDataToSchema):(0,T.dP)(tE)}),(0,o.jsx)(A(),{id:"restaurants-list-schema",schema:(0,T.rX)(tC,M.city)}),(0,o.jsx)(K,{}),(0,o.jsx)(_.Z,{title:tr("restaurants.city.breadcrumb_title",{city:M.city}),breadcrumbPaths:[{name:tn("company"),url:v.O.infoCountry.base_domain},{name:ti("breadcrumb.restaurants_title"),url:"".concat(v.O.infoCountry.base_domain,"/restaurantes")}
1,{name:tn("link_box.restaurants.url",{city:M.city||""}),url:""},]}),(0,o.jsx)(f.Z,{isFiltering:tA,isFetching:tT,isRequestingMoreRestaurants:td,filters:Y,restaurantCategories:L,categoryChosen:tg,chosenFilters:t_,restaurants:tS,promotionBanners:W,onViewMoreRestaurants:t$,shouldShowMoreRestaurantsButton:tm<B,chosenOrder:tv,topBrandsChainPrefix:"/",topBrandsChains:tR,shouldShowPromotionBanners:!1,restaurantsCloseToMeText:U.city?tr("restaurants.city.title",{city:U.city}):tn("titles.opened"),setChosenFilters:function(t){tp({type:j.ql.SaveHomeFiltersSelected,payload:t})},setChosenOrder:function(t){tp({type:j.ql.SaveHomeOrderSelected,payload:t})},cleanAllFilters:function(){tp({type:j.ql.ClearHomeFilters})},setCategoryChosen:function(t){tp({type:j.ql.SaveHomeCategorySelected,payload:t})}}),to&&tt.map(function(t){var e=ta.find(function(e){return t.type===e.type});return(0,o.jsx)(b.Z,{title:e.title,restaurants:t.restaurants,description:e.description},e.title)}),tu?(0,o.jsx)(u.xu,{py:4,bg:"gray.10",children:(0,o.jsxs)(u.xu,{bg:"white",p:4,children:[(0,o.jsx)(l.x,{mb:2,variant:"Base216",children:tr("restaurants.faqs.title")}),(0,o.jsx)(y.Z,{items:(0,C.S)(tn("wordConnector"),tc,te).accordionData})]})}):(0,o.jsx)(h.Z,{isList:!1,faqs:tE}),(0,o.jsx)(J,{title:tB,description:tD,formattedDescription:!0}),(0,o.jsx)(D(),{links:(0,k.O5)({restaurants:tC.slice(0,30),location:M,t:tn,translationKey:"link_box.city.url"}),title:tn("link_box.city_home.title"),columns:4,maxItems:30}),(0,o.jsx)(p.Z,{})]})},z=!0;e.default=Q},76653:function(t,e,n){"use strict";n.d(e,{Lr:function(){return s},v6:function(){return a}});var r=n(89018),i=n(59485),s=function(t){var e="BR"===r.O.infoCountry.code_iso?" e ":" y ";return t.join(", ").replace(/,(?=[^,]*$)/,e)},a=function(t){return{store_id:t.id||t.brandId,brand_name:t.name,url:"/restaurantes/".concat(t.id,"-").concat((0,i.vj)(t.name))}}},42389:function(t,e,n){"use strict";n.d(e,{O5:function(){return d},Y0:function(){return y},ax:function(){return f},bO:function(){return m}});var r,i,s=n(14251),a=n(52875),c=n(80969),o=n(69779),u=n(76653),l=n(59485);(i=r||(r={}))[i.rating_rests=1]="rating_rests",i[i.promos_rests=2]="promos_rests",i[i.new_rests=3]="new_rests";var d=function(t){var e=t.restaurants,n=t.location,r=t.t,i=t.translationKey,s=t.isCuisinePage;return e.map(function(t){var e=t.id,a=t.brandId,c=t.name,o="/restaurantes/delivery/".concat(a,"-").concat((0,l.vj)(c));return{id:e,text:s?r(i,{brand:(0,l.kC)(c),city:n.city}):"".concat((0,l.kC)(c)," ").concat(n.city),url:n.url?"/".concat(n.url).concat(o):o}})},f=function(t){var e=t.t,n=t.filteredFaqs,i=t.city;return Object.entries(n).map(function(t){var n=(0,c.Z)(t,2),s=n[0],a=n[1];return{title:e("restaurants.city.faqs.questions.".concat(s,".title"),{city:i,rating:"4,5"}),description:e("restaurants.city.faqs.questions.".concat(s,".description"),{city:i}),items:a,order:r[s]}}).sort(function(t,e){return t.order-e.order})},y=function(t){return t.reduce(function(t,e){var n,r,i,c=null!==(n=t.rating_rests)&&void 0!==n?n:[],l=null!==(r=t.promos_rests)&&void 0!==r?r:[],d=null!==(i=t.new_rests)&&void 0!==i?i:[];return e.rating>4.5&&c.length<3?(0,a.Z)((0,s.Z)({},t),{rating_rests:(0,o.Z)(c).concat([(0,u.v6)(e)])}):e.promotionText&&l.length<3?(0,a.Z)((0,s.Z)({},t),{promos_rests:(0,o.Z)(l).concat([(0,u.v6)(e)])}):e.isNew&&d.length<3?(0,a.Z)((0,s.Z)({},t),{new_rests:(0,o.Z)(d).concat([(0,u.v6)(e)])}):t},{})},m=function(t){var e=t.hasCityDescription,n=t.city,r=t.hasDefaultDescription,i=t.t,s=t.numberOfRestaurants;return e?{title:i("".concat(n.url,".cityCuisine.title")),content:i("".concat(n.url,".cityCuisine.content"))}:r?{title:i("default.cityCuisine.title",{city:n.city}),content:i("default.cityCuisine.content",{city:n.city,numberOfRestaurants:s})}:{title:"",content:""}}}},function(t){t.O(0,[513,29,8138,3048,9782,1043,5852,96,3223,1005,3711,9774,2888,179],function(){return t(t.s=13755)}),_N_E=t.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.