PageSourceSearch

https://cdn.shapermint.com/ssr/v8.48.12/_next/static/chunks/134-f79ea1079df9a626.js

js shapermint.com collected 2026-09-24 08:54:11 UTC 10,706 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[134],{70393:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var r=n(85893),i=n(67294),l=n(83566),a=n(96410),s=n(14126),o=n(32704),u=n(30719);n(64274),n(65140);var c=n(11163),h=n(82729),d=n(26601);function p(){let e=(0,h._)(["\n  position: relative;\n  min-width: 0;\n  width: 100%;\n"]);return p=function(){return e},e}function f(){let e=(0,h._)(["\n  --articles-swiper-gap: ","px;\n  overflow: hidden;\n  width: 100%;\n\n  & > .swiper-wrapper {\n    display: flex;\n    position: relative;\n    width: 100%;\n    z-index: 1;\n    box-sizing: content-box;\n  }\n\n  & .swiper-slide {\n    flex-shrink: 0;\n    height: auto;\n    margin-right: var(--articles-swiper-gap);\n  }\n"]);return f=function(){return e},e}function g(){let e=(0,h._)(["\n  position: absolute;\n  top: 50%;\n  transform: translateY(-50%);\n  z-index: 2;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 32px;\n  height: 32px;\n  padding: 0;\n  border: 1px solid #e5e5e5;\n  border-radius: 50%;\n  background-color: #fff;\n  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n  cursor: pointer;\n\n  &:disabled {\n    cursor: default;\n    opacity: 0.35;\n  }\n\n  &:focus-visible {\n    outline: 2px solid #292929;\n    outline-offset: 2px;\n  }\n\n  @media (min-width: ","px) {\n    width: 40px;\n    height: 40px;\n  }\n"]);return g=function(){return e},e}function x(){let e=(0,h._)(["\n  left: 4px;\n\n  @media (min-width: ","px) {\n    left: 8px;\n  }\n"]);return x=function(){return e},e}function m(){let e=(0,h._)(["\n  right: 4px;\n\n  @media (min-width: ","px) {\n    right: 8px;\n  }\n"]);return m=function(){return e},e}let b=d.Z.div(p()),v=(0,d.Z)(u.tq)(f(),26),w=d.Z.button(g(),e=>{let{theme:t}=e;return t.mediaQueries.tablet}),y=(0,d.Z)(w)(x(),e=>{let{theme:t}=e;return t.mediaQueries.tablet}),j=(0,d.Z)(w)(m(),e=>{let{theme:t}=e;return t.mediaQueries.tablet}),A="18px",k="#292929",S=e=>{requestAnimationFrame(()=>{e.update()})};var B=e=>{var t,n;let{articles:h,mostLovedBlogs:d,behaveAsSwiper:p,showArticleMeta:f=!0,slidesPerView:g="auto",hasNavigation:x=!0,children:m}=e,{locale:w}=(0,c.useRouter)(),{isMobile:B}=(0,a.v)({hasBooleanFlags:!0}),{translate:C}=(0,s.T)(),E=(0,i.useRef)(null),[F,_]=(0,i.useState)({isBeginning:!0,isEnd:!0}),V=e=>{_(t=>t.isBeginning===e.isBeginning&&t.isEnd===e.isEnd?t:{isBeginning:e.isBeginning,isEnd:e.isEnd})},D=!F.isBeginning||!F.isEnd;return(0,r.jsx)(r.Fragment,{children:p?(0,r.jsxs)(b,{children:[(0,r.jsx)(v,{className:"swiper",slidesPerView:g,spaceBetween:26,observer:!0,observeParents:!0,observeSlideChildren:!0,onSwiper:e=>{E.current=e,S(e),V(e)},onImagesReady:e=>{S(e),V(e)},onSlideChange:V,onResize:V,children:null===(n=h||d)||void 0===n?void 0:null===(t=n.filter(e=>{let{handle:t,imageSrc:n,title:r,author:i,published:l,publishedAt:a}=e;return l&&!!n&&!!r&&!!i&&!!a&&!!t}))||void 0===t?void 0:t.map((e,t)=>(0,r.jsx)(u.o5,{style:{marginRight:26},children:(0,r.jsx)(m,{handle:e.handle,image:e.imageSrc,text:f?(0,o.p)({title:(0,o.V)(e.title,B),author:e.author,publishedAt:e.publishedAt}):(0,o.p)({title:e.title})},"".concat(e.title,"-").concat(t))},"".concat(e.imageSrc,"-").concat(t)))}),x&&D&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y,{type:"button",onClick:()=>{var e;null===(e=E.current)||void 0===e||e.slidePrev()},disabled:F.isBeginning,"aria-label":C("blog:carousel.previousArticles",{defaultValue:"Previous articles"}),children:(0,r.jsx)(l.J.Arrows.ChevronLeft,{width:A,height:A,fill:k,"aria-hidden":"true"})}),(0,r.jsx)(j,{type:"button",onClick:()=>{var e;null===(e=E.current)||void 0===e||e.slideNext()},disabled:F.isEnd,"aria-label":C("blog:carousel.nextArticles",{defaultValue:"Next articles"}),children:(0,r.jsx)(l.J.Arrows.ChevronRight,{width:A,height:A,fill:k,"aria-hidden":"true"})})]})]}):null==h?void 0:h.filter(e=>{let{handle:t,imageSrc:n,title:r,publishedAt:i,author:l,published:a}=e;return a&&!!n&&!!r&&!!t&&!!i&&!!l}).map((e,t)=>{let n=new Date(e.publishedAt).toLocaleDateString(w,{year:"numeric",month:"long",day:"numeric"});return(0,r.jsx)(u.o5,{children:(0,r.jsx)(m,{handle:e.handle,image:e.imageSrc,footer:"".concat(n," | ").concat(e.author),text:(0,o.p)({title:e.title})},"".concat(e.title,"-").concat(t))},"".concat(e.imageSrc,"-").concat(t))})})}},32704:function(e,t,n){"use strict";n.d(t,{V:function(){return l},p:function(){return s}});var r=n(52343),i=n(1410);let l=(e,t)=>
1{let n=e;return t&&(null==e?void 0:e.length)>r.F4?n="".concat(e.slice(0,r.F4),"..."):!t&&(null==e?void 0:e.length)>r.Vj&&(n="".concat(e.slice(0,r.Vj),"...")),n},a=(e,t)=>{let n=(0,i.x)(e,"long").replace("th","");return t?"".concat(n," | ").concat(t):n},s=e=>{let{title:t,author:n,publishedAt:r}=e,i={type:"h3",children:[{text:"".concat(t)}]};return r?[i,{type:"paragraph",children:[{text:a(r,n)}]}]:[i]}},58900:function(e,t,n){"use strict";n.d(t,{HX:function(){return i},Vi:function(){return s},X$:function(){return l},dj:function(){return a},gh:function(){return h},hk:function(){return o},id:function(){return r},kl:function(){return u},sX:function(){return c}});let r=[{title:"Best Shapewear for Your Body Type\nShapewear: Before & After",image:"https://cdn.shapermint.com/backoffice/cdn/shapermint/images/blog-before-and-after-shapewear.webp",href:"/pages/shapewear-before-and-after"},{title:"The Ultimate First-Timer's Guide To Buying Shapewear",image:"https://cdn.shapermint.com/backoffice/cdn/shapermint/images/blog-ultimate.webp",href:"/blogs/news/first-timers-guide-to-buying-shapewear"},{title:"Which Bra Should You Choose?",image:"https://cdn.shapermint.com/backoffice/cdn/shapermint/images/blog-Which-Bra-Should-You-Choose.webp",href:"/blogs/news/which-bra-should-you-choose"}],i={title:"All about shapermint's body positivity and shapewear guides",description:"Find the most inspiring true stories from Shapermint Gals, tips and tricks for wearing and buying shapewear.",heading:"The Shapermint Blog: Shapewear, Bras & Lifestyle Guides"},l={title:"Exclusive Content",description:"Exclusive fashion, wellness, finance, fitness, and beauty articles for Shapermint Club members."},a=12,s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"news",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"".concat(t).concat("exclusiveContent"===e?"/blogs/exclusive-content":"/blogs/news")},o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"news",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"".concat(s(t,n),"/").concat(e)},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"".concat(t).concat(e.startsWith("/")?e:"/".concat(e))},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.startsWith("http")?u(e.replace(/^https?:\/\/[^/]+/,"").split("?")[0],t):u(e.split("?")[0],t)},h=e=>{var t;let n=null!==(t="https://shapermint.com".replace(/\/$/,""))&&void 0!==t?t:"https://shapermint.com";return"".concat(n).concat(e.startsWith("/")?e:"/".concat(e))}},77028:function(e,t,n){"use strict";n.d(t,{g:function(){return s},z:function(){return a}});var r=n(67294),i=n(58900);let l=(0,r.createContext)("news"),a=e=>{let{blogKey:t,children:n}=e;return r.createElement(l.Provider,{value:t},n)},s=e=>{let t=(0,r.useContext)(l),n=null!=e?e:t;return{blogKey:n,localePrefix:"",getArticlePath:e=>(0,i.hk)(e,n),landingPath:(0,i.Vi)(n)}}},57095:function(e,t,n){"use strict";var r=n(85893);n(67294);let i={paragraph:e=>{let{rest:t,children:n}=e;return(0,r.jsx)("p",{...t,children:n})},image:e=>{let{rest:t}=e;return(0,r.jsx)("img",{...t})},listItem:e=>{let{rest:t,children:n}=e;return(0,r.jsx)("li",{...t,children:n})},link:e=>{let{rest:t,children:n}=e;return(0,r.jsx)("a",{...t,children:n})},bulletedList:e=>{let{rest:t,children:n}=e;return(0,r.jsx)("ul",{...t,children:n})},numberedList:e=>{let{rest:t,children:n}=e;return(0,r.jsx)("ol",{...t,children:n})},separator:()=>(0,r.jsx)("br",{}),h1:e=>{let{rest:t,children:n}=e;return(0,r.jsx)("h1",{...t,children:n})},h2:e=>{let{rest:t,children:n}=e;return(0,r.jsx)("h2",{...t,children:n})},h3:e=>{let{rest:t,children:n}=e;return(0,r.jsx)("h3",{...t,children:n})},h4:e=>{let{rest:t,children:n}=e;return(0,r.jsx)("h4",{...t,children:n})},h5:e=>{let{rest:t,children:n}=e;return(0,r.jsx)("h5",{...t,children:n})},h6:e=>{let{rest:t,children:n}=e;return(0,r.jsx)("h6",{...t,children:n})}};function l(e){let{typeAlias:t}=e;return i[t]}let a={italic:{fontStyle:"italic"},strikethrough:{textDecoration:"line-through"},underline:{textDecoration:"underline"}};function s(e){let{styleAlias:t}=e;return a[t]}function o(e){let t={},n={},r={};
1return e.children.forEach(i=>{let{italic:l,strikethrough:a,underline:o}=i||{};l&&(n=s({styleAlias:"italic"})),a?t=s({styleAlias:"strikethrough"}):o&&(t=s({styleAlias:"underline"})),r={...null==e?void 0:e.style,...n,...t}}),r}function u(e){let t=l({typeAlias:e.type}),{external:n,url:i,style:a}=e||{};return(0,r.jsx)(t,{rest:{style:a,href:i,target:n?"_blank":void 0},children:e.children.map(e=>{let{text:t}=e;return t})})}t.Z=e=>{let{content:t}=e;return(0,r.jsx)(r.Fragment,{children:null==t?void 0:t.map(e=>{switch(e.type){case"image":return function(e){let t=l({typeAlias:e.type}),{alt:n,url:i}=e||{};return(0,r.jsx)(t,{rest:{src:i,alt:n}})}(e);case"separator":return function(e){let t=l({typeAlias:e.type});return(0,r.jsx)(t,{})}(e);case"bulletedList":case"numberedList":return function(e){let t=l({typeAlias:e.type}),n=e.children.map(e=>{let{type:t,children:n}=e,i=l({typeAlias:t});return(0,r.jsx)(i,{children:n.map(e=>{let{text:t}=e;return t})},Date.now())});return(0,r.jsx)(t,{children:n})}(e);case"link":return u(e);case"paragraph":return function(e){let t=l({typeAlias:e.type}),n=o(e),i=function(e){let t=[];return e.children.forEach(e=>{let{text:n,type:i}=e||{};if(""===n){let e=l({typeAlias:"separator"});t.push((0,r.jsx)(e,{}))}else n?t.push(n):"link"===i&&t.push(u(e))}),t}(e);return(0,r.jsx)(t,{rest:{style:n},children:i.map(e=>e)})}(e);default:return function(e){let t=l({typeAlias:e.type}),n=o(e);return(0,r.jsx)(t,{rest:{style:n},children:e.children.map(e=>{let{text:t}=e;return t})})}(e)}})})}},1410:function(e,t,n){"use strict";n.d(t,{x:function(){return l}});var r=n(28977),i=n(52343);let l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"long",n=new Date(e),l=null==n?void 0:n.getDate(),a=null==n?void 0:n.getMonth(),s=null==n?void 0:n.getFullYear();return"".concat(i.Oz[a][t]," ").concat(l).concat((0,r.h)(n),", ").concat(s)}},28977:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});let r=e=>{let t=e.getDate();return t%10==1&&11!==t?"st":t%10==2&&12!==t?"nd":t%10==3&&13!==t?"rd":"th"}},65140:function(){}}]);

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.