1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9761],{37919:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blogs/news",function(){return n(65023)}])},19193:function(e,t,n){"use strict";n.d(t,{T:function(){return d}});var r=n(85893);n(67294);var a=n(5793),i=n(15532),s=n(57095),l=n(77028),o=n(95888),c=n.n(o);let d=e=>{let{handle:t,image:n,text:o}=e,{getArticlePath:d}=(0,l.g)(),u=t.startsWith("/")?t:d(t);return(0,r.jsx)("a",{href:u,className:c().articleCardLink,children:(0,r.jsxs)("div",{className:c().articleCardContainer,children:[(0,r.jsx)(a.E,{src:(0,i.zk)(n,300),alt:"article-card-img",width:"100%",className:c().articleCardImage}),(0,r.jsx)("div",{className:c().articleCardText,children:(0,r.jsx)(s.Z,{content:o})})]})})}},65023:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return e_},default:function(){return em}});var r=n(85893),a=n(67294),i=n(9008),s=n.n(i),l=n(11163),o=n(14196),c=n(61115),d=n(93007),u=n(96410),g=n(30719);n(64274);var h=n(49189),p=n.n(h),m=e=>{var t;let{selectedCategory:n,handleChangeCategory:a,categories:i,behaveAsSwiper:s}=e,l=null===(t=n[0])||void 0===t?void 0:t.alias,o=(e,t)=>(0,r.jsx)("button",{type:"button",className:"".concat(p().searchBarCategory," ").concat(e.alias===l?p().selectedCategory:""),onClick:()=>a(e),children:e.label},"cat-".concat(e.alias,"-").concat(t));return s?(0,r.jsx)(g.tq,{className:p().categoriesSwiper,slidesPerView:"auto",spaceBetween:15,observer:!0,observeParents:!0,children:i.map((e,t)=>(0,r.jsx)(g.o5,{style:{marginRight:15},children:o(e,t)},"".concat(e.alias,"-").concat(t)))}):(0,r.jsx)(r.Fragment,{children:i.map(o)})},_=n(69870),x=n.n(_),v=e=>{let{heading:t,title:n="Categories",selectedCategory:a,handleChangeCategory:i,categories:s}=e,{isMobile:l,isTablet:o}=(0,u.v)({hasBooleanFlags:!0});return(0,r.jsx)("div",{className:x().categoriesContainer,children:(0,r.jsxs)("div",{className:x().searchBarCategories,children:[t&&(0,r.jsx)("h1",{className:x().categoriesBlogHeading,children:t}),(0,r.jsx)("h2",{className:x().titleButtonsCategories,children:n}),(0,r.jsx)("div",{className:x().buttonsCategories,children:(0,r.jsx)(m,{selectedCategory:a,handleChangeCategory:i,categories:s,behaveAsSwiper:l||o})})]})})},C=n(60814),f=n(19193),y=n(70393),b=n(58900),j=n(76517),w=n.n(j);let N=b.id.map(e=>({iD:0,handle:e.href.replace(/^\/blogs\/news\//,""),title:e.title,author:"Shapermint Team",bodyHtml:"",summaryHtml:"",tags:"",createdAt:"",updatedAt:"",published:"true",publishedAt:new Date().toISOString(),templateSuffix:"",imageSrc:e.image,imageWidth:1200,imageHeight:628,imageAltText:e.title,blogID:0,blogHandle:"news",blogTitle:"News",blogCommentable:"moderate",blogTemplateSuffix:"",blogCreatedAt:"",blogUpdatedAt:"",metafieldTitleTag:e.title,metafieldDescriptionTag:""}));var S=e=>{let{title:t="Most Loved Articles"}=e,{isMobile:n,isTablet:a}=(0,u.v)({hasBooleanFlags:!0});return(0,r.jsxs)("div",{className:w().mostLovedArticlesSectionContainer,children:[(0,r.jsx)(C.x,{variant:"heading2",className:w().mostLovedArticlesSectionTitle,children:t}),(0,r.jsx)("div",{className:w().mostLovedArticlesSectionCardsContainer,children:(0,r.jsx)(y.Z,{articles:N,behaveAsSwiper:n||a,children:f.T})})]})},A=n(27306),T=n(84827),I=n(34760),L=n.n(I),B=e=>{let{categoryArticles:t}=e,{landingSeo:n}=(0,T.EJ)("news"),[i,s]=(0,a.useState)(A.jX),l={all:[],popular:[],trending:[],recent:[]},o=(0,a.useCallback)(e=>{if("blogHome"===e.alias){s(A.jX);return}s([e])},[]);return(0,r.jsxs)("section",{className:L().blogArticlesSectionContainer,children:[(0,r.jsx)("div",{className:L().categoriesWithSearchBar,children:(0,r.jsx)(v,{heading:n.heading,selectedCategory:i,handleChangeCategory:o,categories:A.jX})}),(0,r.jsx)("div",{className:L().mostLovedArticlesContainer,children:(0,r.jsx)(S,{})}),(0,r.jsx)("div",{className:L().articlesByCategoryContainer,children:i.map((e,n)=>{var a;let{label:i,alias:s}=e;if("blogHome"===s)return null;let o=null!==(a=t[s])&&void 0!==a?a:l;return(0,r.jsx)(d.Z,{title:i,articles:o},"".concat(i,"-").concat(n))})})]})},k=n(5793),E=n(83566),P=n(15532),O=n(24569),G=n(77028),Z=n(17201),F=n.n(Z),K=()=>{let{isMobile:e}=(0,u.v)({hasBooleanFlags:!0}),{localePrefix:t}=(0,G.g)();return(0,r.jsxs)("div",{className:F().wardrobeSectionContainer,children:[(0,r.jsx)("div",{className:F().wardrobeImageWrapper,children:(0,r.jsx)(k.E,{src:(0,P.zk)(O.k.image,e?700:1200),alt:"The Wardrobe",width:"100%",className:F().wardrobeImage})}),(0,r.jsxs)("div",{className:F().wardrobeSectionLinksContainer,children:[(0,r.jsx)(C.x,{variant:"heading3",children:O.k.title}),O.k.links.map(e=>(0,r.jsxs)("p",{children:[(0,r.jsx)("a",{href:(0,b.kl)(e.href,t),children:e.label}),(0,r.jsx)(E.J.Arrows.ChevronRight,{width:.8,height:.8})]},e.href))]})]})},R=n(48480),z=n(85945),H=n(17e3),W=n(14126),q=n(39963),D=n(32704);let X=async e=>{let{page:t,first:n=b.dj,blogKey:r="news"}=e,a=new URLSearchParams({page:String(t),first:String(n),blogKey:r}),i=await fetch("/api/blogs/articles?".concat(a.toString()));if(!i.ok)throw Error("Failed to fetch blog articles page");return i.json()};var J=n(43795),M=n(82729),V=n(26601),U=n(70917);function Q(){let e=(0,M._)(["\n width: 100%;\n max-width: 1168px;\n margin: 48px auto;\n padding: 0 15px;\n\n @media (min-width: 1200px) {\n padding: 0;\n }\n"]);return Q=function(){return e},e}function $(){let e=(0,M._)(["\n margin-bottom: 24px !important;\n text-align: center;
1\n color: "," !important;\n"]);return $=function(){return e},e}function Y(){let e=(0,M._)(["\n display: grid;\n grid-template-columns: 1fr;\n gap: 24px;\n transition: opacity 0.2s ease-in-out;\n opacity: ",";\n\n [class*='articleCardShadedContainer'],\n [class*='articleCardShadedImage'] {\n width: 100%;\n }\n\n /* The card reserves the text height from a fixed 155px image, which is\n shorter than the image of a full width card, so the meta line lands\n outside the card. */\n [class*='articleCardShadedContainer'] {\n display: flex;\n flex-direction: column;\n }\n\n [class*='articleCardShadedText'] {\n height: auto;\n flex: 1;\n }\n\n @media (min-width: 768px) {\n grid-template-columns: repeat(2, 1fr);\n gap: 28px;\n }\n\n @media (min-width: 1200px) {\n grid-template-columns: repeat(3, 1fr);\n gap: 32px;\n }\n"]);return Y=function(){return e},e}function ee(){let e=(0,M._)(["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 16px;\n margin-top: 32px;\n"]);return ee=function(){return e},e}function et(){let e=(0,M._)(["\n min-width: 96px;\n padding: 10px 16px;\n border: 1px solid ",";\n border-radius: 4px;\n background-color: ",";\n color: ",";\n font-size: 14px;\n font-weight: 600;\n text-align: center;\n text-decoration: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n"]);return et=function(){return e},e}function en(){let e=(0,M._)(["\n ","\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-visible {\n outline: 2px solid ",";\n outline-offset: 2px;\n }\n"]);return en=function(){return e},e}function er(){let e=(0,M._)(["\n ","\n opacity: 0.5;\n cursor: not-allowed;\n"]);return er=function(){return e},e}function ea(){let e=(0,M._)(["\n color: ",";\n font-size: 14px;\n"]);return ea=function(){return e},e}let ei=V.Z.section(Q()),es=(0,V.Z)(C.x)($(),e=>{let{theme:t}=e;return t.colors.shades[700].color}),el=V.Z.div(Y(),e=>{let{$isFetching:t}=e;return t?.55:1}),eo=V.Z.nav(ee()),ec=e=>{let{theme:t}=e;return(0,U.iv)(et(),t.colors.shades[300].color,t.colors.shades.white.color,t.colors.shades[700].color)},ed=V.Z.a(en(),ec,e=>{let{theme:t}=e;return t.colors.shades[700].color},e=>{let{theme:t}=e;return t.colors.shades[700].color}),eu=V.Z.span(er(),ec),eg=V.Z.span(ea(),e=>{let{theme:t}=e;return t.colors.shades[500].color}),eh=e=>e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||0!==e.button;var ep=e=>{var t,n,a;let{initialData:i,blogKey:s="news"}=e,o=(0,l.useRouter)(),c=(0,z.NL)(),{translate:d,TRANSLATION_KEYS:u}=(0,W.T)(),g=u.COMMON,h=i.pageInfo.page||1,p=o.isReady?(0,J.AL)(o.query[J.Zr]):h,m=e=>({queryKey:["blog-articles-page",s,e],queryFn:()=>X({page:e,blogKey:s}),staleTime:3e5}),{data:_,isFetching:x}=(0,H.a)({...m(p),initialData:p===h?i:void 0,keepPreviousData:!0}),v=null!==(n=null==_?void 0:_.articles)&&void 0!==n?n:[];if(!v.length)return null;let C=p>1,f=null!==(a=null==_?void 0:null===(t=_.pageInfo)||void 0===t?void 0:t.hasNextPage)&&void 0!==a&&a,y=(e,t)=>{var n,r;eh(e)||(e.preventDefault(),o.push({pathname:o.pathname,query:(0,J.P8)(o.query,t)},void 0,{shallow:!0,scroll:!1}),null===(r=document.getElementById(J.Tu))||void 0===r||null===(n=r.scrollIntoView)||void 0===n||n.call(r,{behavior:"smooth",block:"start"}))},b=e=>{c.prefetchQuery(m(e))},j=d(g.BLOG_PAGINATION_PREVIOUS),w=d(g.BLOG_PAGINATION_NEXT),N=d(g.BLOG_PAGINATION_PREVIOUS_PAGE,{page:p-1}),S=d(g.BLOG_PAGINATION_NEXT_PAGE,{page:p+1}),A=d(g.BLOG_PAGINATION_PAGE,{page:p});return(0,r.jsxs)(ei,{id:J.Tu,"aria-busy":x,"aria-label":d(g.BLOG_PAGINATION_SECTION_LABEL),children:[(0,r.jsx)(es,{variant:"heading2",children:d(g.BLOG_PAGINATION_SECTION_TITLE)}),(0,r.jsx)(el,{$isFetching:x,children:v.map(e=>{var t,n,a,i;return(0,r.jsx)(q.p,{handle:e.handle,image:null!==(n=null===(t=e.image)||void 0===t?void 0:t.url)&&void 0!==n?n:"",text:(0,D.p)({title:e.title,author:null!==(a=e.authorName)&&void 0!==a?a:void 0,publishedAt:null!==(i=e.publishedAt)&&void 0!==i?i:void 0})},e.id)})}),(0,r.jsxs)(eo,{"aria-label":A,children:[C?(0,r.jsx)(ed,{href:(0,J.py)(s,p-1),rel:"prev","aria-label":N,onClick:e=>y(e,p-1),onMouseEnter:()=>b(p-1),onFocus:()=>b(p-1),children:j}):(0,r.jsx)(eu,{"aria-disabled":"true",children:j}),(0,r.jsx)(eg,{"aria-live":"polite",children:A}),f?(0,r.jsx)(ed,{href:(0,J.py)(s,p+1),rel:"next","aria-label":S,onClick:e=>y(e,p+1),onMouseEnter:()=>b(p+1),onFocus:()=>b(p+1),children:w}):(0,r.jsx)(eu,{"aria-disabled":"true",children:w})]})]})},em=e=>{var t,n;let{latestArticle:a,categoryArticles:i,paginatedArticles:d,seoMetadata:u}=e,{landingSeo:g}=(0,T.EJ)("news"),h=(0,l.useRouter)(),p=!!((null==u?void 0:u.title)||(null==u?void 0:u.description)),m=!!(null==u?void 0:u.schemas),_=null!==(n=null==d?void 0:null===(t=d.pageInfo)||void 0===t?void 0:t.page)&&void 0!==n?n:1,x=h.isReady?(0,J.AL)(h.query[J.Zr]):_,v=(0,b.gh)((0,J.uh)("news",x));return(0,r.jsxs)(G.z,{blogKey:"news",children:[!p&&(0,r.jsx)(o.ZP,{variant:"landing",blogKey:"news",title:g.title,de
1scription:g.description,page:x,hasNextPage:x===_?null==d?void 0:d.pageInfo.hasNextPage:void 0}),!m&&(0,r.jsx)(s(),{children:(0,r.jsx)("script",{type:"application/ld+json",children:JSON.stringify((0,o.zK)(g.title,g.description,v))})}),(0,r.jsx)(c.Z,{article:a}),(0,r.jsx)(B,{categoryArticles:i}),(0,r.jsx)(K,{}),(0,r.jsx)(R.Z,{}),d&&(0,r.jsx)(ep,{initialData:d})]})},e_=!0},95888:function(e){e.exports={articleCardLink:"styles_articleCardLink__Aodmx",articleCardContainer:"styles_articleCardContainer__VbTp8",articleCardImage:"styles_articleCardImage__3k7SJ",articleCardText:"styles_articleCardText__Pdvu9"}},34760:function(e){e.exports={blogArticlesSectionContainer:"styles_blogArticlesSectionContainer__XFZyR",categoriesWithSearchBar:"styles_categoriesWithSearchBar__zRT2u",mostLovedArticlesContainer:"styles_mostLovedArticlesContainer__DCwMS",articlesByCategoryContainer:"styles_articlesByCategoryContainer__zCSrn"}},49189:function(e){e.exports={categoriesSwiper:"styles_categoriesSwiper__c___d",searchBarCategory:"styles_searchBarCategory__6_rSd",selectedCategory:"styles_selectedCategory__Axxz8"}},69870:function(e){e.exports={titleButtonsCategories:"styles_titleButtonsCategories__nKj3X",categoriesContainer:"styles_categoriesContainer__qK_Nc",searchBarCategories:"styles_searchBarCategories__FPE1g",categoriesBlogHeading:"styles_categoriesBlogHeading__1KWnJ",buttonsCategories:"styles_buttonsCategories__yZH0p"}},76517:function(e){e.exports={mostLovedArticlesSectionContainer:"styles_mostLovedArticlesSectionContainer__qFttZ",mostLovedArticlesSectionTitle:"styles_mostLovedArticlesSectionTitle__EFIjC",mostLovedArticlesSectionCardsContainer:"styles_mostLovedArticlesSectionCardsContainer__kSiSv"}},17201:function(e){e.exports={wardrobeSectionContainer:"styles_wardrobeSectionContainer__PgGyE",wardrobeImage:"styles_wardrobeImage__nQdw9",wardrobeSectionLinksContainer:"styles_wardrobeSectionLinksContainer__ez3Gm",wardrobeImageWrapper:"styles_wardrobeImageWrapper__a4347"}}},function(e){e.O(0,[134,4166,2888,9774,179],function(){return e(e.s=37919)}),_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.