PageSourceSearch

https://www.theinfatuation.com/_next/static/chunks/4996-711abb031d1c5953.js

js theinfatuation.com collected 2026-10-02 02:15:24 UTC 10,605 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4996],{34996:function(e,t,s){"use strict";s.d(t,{Z:function(){return R}});var i=s(62272),a=s(84814),l=s(72536),r=s(54948),o=class extends l.z{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,r.Gm)()},t)}getOptimisticResult(e){return e.behavior=(0,r.Gm)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,i=super.createResult(e,t),{isFetching:a,isRefetching:l,isError:o,isRefetchError:n}=i,d=s.fetchMeta?.fetchMore?.direction,c=o&&"forward"===d,p=a&&"forward"===d,h=o&&"backward"===d,u=a&&"backward"===d;return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,r.Qy)(t,s.data),hasPreviousPage:(0,r.ZF)(t,s.data),isFetchNextPageError:c,isFetchingNextPage:p,isFetchPreviousPageError:h,isFetchingPreviousPage:u,isRefetchError:n&&!c&&!h,isRefetching:l&&!p&&!u}}},n=s(20364);var d=s(9008),c=s.n(d),p=s(11163),h=s(90512),u=s(14418),m=s(91669),y=s(97822),g=s(23100),v=s(36916),x=s(23793),_=s(7869),P=s(71723),N=s(11999),f=s(43401),j=s(87126),w=s(1526),S=s(2515),b=s.n(S),T=s(9310);var I=e=>{let{variant:t="default",data:s,className:l,fetchMore:r,hasMore:o,headText:n,isHeaderPageHeader:d,isLoading:c,isWithWrapper:S=!0,cmpName:I,cmpType:k,isPushShallow:Z}=e;const C=(0,p.useRouter)(),R=(0,N.Uw)(C.query.page),M=(0,N.CU)(C.asPath),L=(0,N.ho)(C.asPath),E="default"===t,F=(0,i.jsxs)(i.Fragment,{children:[E?(0,i.jsxs)("div",{className:b().title,children:[(0,i.jsx)(P.LogoIcon,{className:b().logoIcon,fill:f.DM.primary}),(0,i.jsx)(u.X,{as:d?"h1":"h2",variant:"h3",textTransform:"uppercase",children:n}),(0,i.jsx)("span",{className:b().label,children:R>1&&(0,i.jsxs)("span",{children:["Page ",R]})})]}):(0,i.jsx)(T.Z,{as:"h4",variant:"postWidget",title:"All Posts",mb:6}),(0,i.jsx)(m.g,{className:b().posts,gap:E?"initial":6,children:null==s?void 0:s.items.map(((e,l)=>{var r,o,n;const d=e,{src:c,alt:p}=(0,w.Oe)(e,"headerImage");return(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)(x.Z,{variant:t,post:d,className:(0,h.Z)(b().detailedStory,"detailedStory"),contributors:null==d||null===(r=d.contributorCollection)||void 0===r?void 0:r.items,city:"city"in d?null===(o=d.city)||void 0===o?void 0:o.abbreviation:"",date:(0,j.P)(d),id:d.sys.id,imageProps:{alt:p||(0,N.GH)(null==d?void 0:d.__typename,null==d?void 0:d.title),sizes:"(min-width: 600px) 292px, calc(100vw - 32px)",src:c},path:null==d?void 0:d.canonicalPath,preview:(null==d?void 0:d.preview)||"",rating:"rating"in d&&0!==(null==d?void 0:d.rating)?null==d?void 0:d.rating:null,slug:null==d||null===(n=d.slug)||void 0===n?void 0:n.name,title:null==d?void 0:d.title,type:(0,N.z_)(null==d?void 0:d.__typename),itemPosition:l+1,cmpName:E?I:"All Posts",cmpType:k,mt:"0px !important"}),E||s.items.length===l+1?null:(0,i.jsx)(y.i,{m:"0px !important",borderColor:"gray10"})]},d.sys.id)}))}),(0,i.jsxs)(g.xu,{textAlign:E?"center":"left",children:[L&&!Z&&(0,i.jsx)(_.Z,{variant:"secondary",className:b().loadMoreButton,href:L,children:"Previous page"}),o&&(0,i.jsx)(_.Z,{href:M,className:b().loadMoreButton,onClick:e=>{e.preventDefault(),c||r()},children:c?"Loading...":"Load more"})]})]});return S?(0,i.jsx)("section",{className:b().mostRecent,children:(0,i.jsx)(v.yl,{...v.L2,className:(0,h.Z)(b().wrapper,l),children:(0,i.jsx)(v.P4,{colSpan:{base:6,md:12,lg:9},children:F})})}):(0,i.jsx)("div",{className:l,children:F})},k=s(11096),Z=s(81956),C=s(65060);var R=e=>{var t;const{variant:s="default",query:l,pageNumber:r,className:d,title:h,isTitlePageHeader:u,isWithWrapper:m=!0,hasMostPopular:y,cityName:g,isPushShallow:v}=e,x=(0,p.useRouter)(),_=(0,C.Z)(),[P,j]=(0,a.useState)(Boolean(x.query.sectionName)||r>1);(0,a.useEffect)((()=>{const e=function(){j(!0)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)}),[]);const w="SECTION"===l.type||"CITY"===l.type?(0,k.Kl)({sectionIds:"SECTION"===l.type?l.sectionIds:void 0,options:{enabled:P},startPageZeroIndexed:r?r-1:0,..."CITY"===l.type&&{cityTypes:l.cityTypes,postType:l.postType}}):(0,k.hv)(l.contributorSlug,{enabled:P},r?r-1:0),{data:S,fetchNextPage:b,isFetchingNextPage:T,hasNextPage:R}=(M=w,(0,n.r)(M,o,L));var M,L;const E=(0,a.useCallback)((()=>{var e;b();
1(null==x||null===(e=x.query)||void 0===e?void 0:e.page)&&(v?x.push({query:{...x.query,page:r+1}},void 0,{shallow:!0}):x.replace({query:{...x.query,page:r+1}})),_("More Results Requested",null,{cmpName:A,cmpType:"Post Feed"})}),[b,x.pathname,_,r]),F=(0,a.useMemo)((()=>{var e;const t=null==S||null===(e=S.pages)||void 0===e?void 0:e.reduce((0,k.js)("items"));return t&&"items"in t?{...t,items:t.items?t.items.reduce(((e,t)=>t?[...e,(0,Z.J8)(t)]:e),[]):[],hits:{hits:[],total:{value:0}}}:{...t,items:[],hits:{hits:[],total:{value:0}}}}),[S]),A=(0,a.useMemo)((()=>{switch(x.pathname){case f.jN.SECTION:return x.asPath.includes("guides")?"All Guides":x.asPath.includes("reviews")&&y?"All Reviews":"".concat(g," Reviews");case f.jN.SUBSECTION:return(0,N.cE)(x.asPath)&&!y?h:"All Posts";default:return"All Posts"}}),[x.pathname,x.asPath]);return(null==F||null===(t=F.items)||void 0===t?void 0:t.length)?(0,i.jsx)(I,{variant:s,data:F,className:d,fetchMore:E,isLoading:T,headText:A||h||"",isHeaderPageHeader:u,hasMore:R,isWithWrapper:m,cmpName:A||"",cmpType:"Post Feed",isPushShallow:v}):r>1?(0,i.jsx)(c(),{children:(0,i.jsx)("meta",{name:"robots",content:"noindex"})}):null}},23793:function(e,t,s){"use strict";var i=s(62272),a=s(85931),l=s(39849),r=s(776),o=s(23100),n=s(204),d=s(14418),c=s(88911),p=s(90512),h=s(41664),u=s.n(h),m=s(15545),y=s(17410),g=s(93047),v=s(69060),x=s(11999),_=s(43401),P=s(33446),N=s(65060),f=s(47178),j=s.n(f),w=s(52285),S=s(40715),b=s(63888),T=s(19586),I=s(53300),k=s(9425);t.Z=e=>{let{variant:t,className:s,contributors:h,date:f,imageProps:Z,path:C,preview:R,rating:M,slug:L,title:E,type:F="Feature",cmpName:A,cmpType:B,post:D,itemPosition:G,isTrending:O,...q}=e;const H=(0,P.Z)(_.RJ),{setUserEngagement:W}=(0,w.f)(),z=(0,N.Z)(),{ui:U}=(0,T.J)(),{flippedItemId:V}=U.flippedItem,X=()=>{W("post_discovery"),z("Post Clicked",D,{cmpName:A,cmpType:B,itemPosition:G})};var J,Q;return"updated"===t?(0,i.jsx)(a.f,{role:"group",width:"full",onClick:X,"data-testid":"detailedStory-storyElement",className:j().wrapper,...q,children:(0,i.jsxs)(l.M,{columns:6,columnGap:H?4:6,rowGap:4,className:j().updatedDetailedStory,children:[(0,i.jsxs)(r.P,{gridColumn:H?"1 / span 2":1,position:"relative",children:[(0,i.jsx)(o.xu,{borderRadius:8,overflow:"hidden",children:(0,i.jsx)(m.Z,{...H?{height:324,width:432}:{height:219,width:292},alt:null==Z?void 0:Z.alt,...Z,sizes:"(min-width: 600px) 192px, calc(100vw - 32px)",style:{objectFit:"cover",display:"block"}})}),M&&(0,i.jsx)(g.Z,{className:j().rating,rating:M,position:"absolute",top:"-14px",right:H?-2:-3})]}),(0,i.jsxs)(r.P,{gridColumn:H?"3 / span 4":"2 / span 5",className:j().content,alignSelf:"center",children:[(0,i.jsxs)(n.k,{justifyContent:"space-between",alignItems:"flex-start",gap:2,children:[(0,i.jsx)(u(),{href:(0,x.DG)(F,L,C),passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(a.A,{"data-testid":"".concat(L?"detailedStory-link-".concat(L):"detailedStory-link"),children:(0,i.jsx)(d.X,{variant:"h3",as:"h3",className:j().detailedStoryTitle,children:E})})}),(0,i.jsxs)(n.k,{children:[O&&(0,i.jsx)(I.GraphAscendIcon,{boxSize:6,mr:2}),(null==D||null===(J=D.sys)||void 0===J?void 0:J.id)&&V!==(null==D||null===(Q=D.sys)||void 0===Q?void 0:Q.id)&&(0,b.Ch)(F)&&(0,i.jsx)(S.Z,{"data-testid":"bookmarkIcon-bookmark",post:D,cmpName:A,cmpType:B,itemPosition:G,zIndex:2,position:"static"}),(0,x.nW)(D)&&(0,i.jsx)(k.Z,{post:D,cmpName:A,cmpType:B,itemPosition:G,variant:"outlined"})]})]}),(0,x.lp)(D)&&(0,i.jsx)(v.Z,{post:D,cuisine:(0,x.V4)(D),neighborhood:(0,x._D)(D),itemPosition:G,cityPath:C,cmpName:A,cmpType:B})]}),!H&&(0,i.jsx)(r.P,{gridColumn:"span 6",children:(0,i.jsx)(c.x,{noOfLines:2,children:R})}),!H&&(0,i.jsx)(r.P,{gridColumn:"span 6",children:(0,i.jsx)(y.Z,{post:D,postType:F,cmpName:A,cmpType:B,className:j().postByLine,contributors:h,date:f,isSmall:!0})})]})}):(0,i.jsx)(a.f,{role:"group",className:j().wrapper,onClick:X,"data-testid":"detailedStory-storyElement",...q,children:(0,i.jsx)("div",{className:(0,p.Z)(j().detailedStory,s),children:(0,i.jsxs)(n.k,{direction:{base:"column",md:"row"},className:j().detailedStoryContainer,children:[(0,i.jsxs)("div",{className:j().detailedStoryImg,children:[(0,i.jsx)(m.Z,{...H?{height:324,width:432}:{height:219,width:292},alt:null==Z?void 0:Z.alt,...Z}),M?(0,i.jsx)(g.Z,{className:j().rating,rating:M}):null,(0,i.jsx)("span",{className:j().detailedStoryLine})]}
1),(0,i.jsxs)("div",{className:j().content,children:[(0,i.jsx)(u(),{href:(0,x.DG)(F,L,C),passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(a.A,{"data-testid":"".concat(L?"detailedStory-link-".concat(L):"detailedStory-link"),children:(0,i.jsx)(d.X,{variant:"h3",as:"h3",className:j().detailedStoryTitle,children:E})})}),(0,x.lp)(D)&&(0,i.jsx)(v.Z,{post:D,cuisine:(0,x.V4)(D),neighborhood:(0,x._D)(D),itemPosition:G,cityPath:C,cmpName:A,cmpType:B}),R&&(0,i.jsx)(c.x,{noOfLines:2,children:R}),(0,i.jsx)(y.Z,{post:D,postType:F,cmpName:A,cmpType:B,className:j().postByLine,contributors:h,date:f,isSmall:!0})]})]})})})}},2515:function(e){e.exports={mostRecent:"most-recent_styles_mostRecent__TRiT8",wrapper:"most-recent_styles_wrapper__91VN3",title:"most-recent_styles_title__wr4Sv",logoIcon:"most-recent_styles_logoIcon__ai1Yn",posts:"most-recent_styles_posts__IF1EB",detailedStory:"most-recent_styles_detailedStory__TkRxI",loadMoreButton:"most-recent_styles_loadMoreButton__QGleq"}},47178:function(e){e.exports={wrapper:"detailed_styles_wrapper__MUDAA",detailedStory:"detailed_styles_detailedStory__op8yV",detailedStoryTitle:"detailed_styles_detailedStoryTitle__ldKhA",detailedStoryLine:"detailed_styles_detailedStoryLine__ic8RF",detailedStoryImg:"detailed_styles_detailedStoryImg__HRc6D",updatedDetailedStory:"detailed_styles_updatedDetailedStory__gjUIh",rating:"detailed_styles_rating__aQWmX",detailedStoryLabel:"detailed_styles_detailedStoryLabel__eZZGi",tag:"detailed_styles_tag__tN_pu",postByLine:"detailed_styles_postByLine__ve01R",preview:"detailed_styles_preview__98Llk",detailedStoryContainer:"detailed_styles_detailedStoryContainer__a8Hfd",content:"detailed_styles_content__yucmx"}}}]);

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.