PageSourceSearch

https://www.popsugar.com/_next/static/chunks/7958.9efc3df0afd27cda65a8.js

js popsugar.com collected 2026-10-01 07:31:55 UTC 16,778 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7958],{87958:function(e,n,t){t.r(n),t.d(n,{default:function(){return X}});var o=t(57903),i=t(72829),r=t(77460),a=t(2784),s=t(25237),l=t(88465),p=t(54035),c=t(40849),d=t(14695),u=t(43625),h=t(32979);const m=d.default.div.withConfig({displayName:"ShopCarouselItemstyles__ShopCarouselItemContainer",componentId:"sc-15horc8-0"})(["\n  width: 140px;\n  display: block;\n  position: relative;\n\n  .shop-carousel-amp & {\n    vertical-align: top;\n    margin-left: 24px;\n  }\n"]),g=d.default.div.withConfig({displayName:"ShopCarouselItemstyles__ShopCarouselHoverOverlay",componentId:"sc-15horc8-1"})(["\n  display: none;\n  position: absolute;\n  width: 140px;\n  height: 140px;\n  top: 0px;\n  left: 0px;\n  z-index: 1;\n  ","\n  background-color: ",";\n  border-radius: 50%;\n  color: ",";\n  text-align: center;\n  font-style: normal;\n\n  & span {\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n    text-decoration: underline;\n    white-space: normal;\n  }\n"],(0,h.Z)("article/shoppable/retailer-info"),(({theme:e})=>e.product.carouselImageOverlayColor),(({theme:e})=>e.color.neutral.white.value)),f=d.default.div.withConfig({displayName:"ShopCarouselItemstyles__ShopCarouselItemInnerContainer",componentId:"sc-15horc8-2"})(["\n  display: block;\n  position: relative;\n  width: 100%;\n  height: 100%;\n\n  .shop-item-link {\n    width: 100%;\n    height: 100%;\n    display: block;\n\n    @media (min-width: ",") {\n      &:hover {\n        "," {\n          display: block;\n        }\n      }\n    }\n  }\n"],(({theme:e})=>`${e.breakpoints[2]}px`),g),b=d.default.div.withConfig({displayName:"ShopCarouselItemstyles__ShopCarouselItemImageContainer",componentId:"sc-15horc8-3"})(["\n  display: block;\n  position: relative;\n"]),x=d.default.div.withConfig({displayName:"ShopCarouselItemstyles__ShopCarouselItemSaleIcon",componentId:"sc-15horc8-4"})(["\n  position: absolute;\n  top: 0;\n  z-index: 2;\n\n  .sales-badge-background {\n    fill: ",";\n  }\n"],(({theme:e})=>e.product.carouselSaleItemFill)),y=d.default.div.withConfig({displayName:"ShopCarouselItemstyles__ShopCarouselItemBadgeIcon",componentId:"sc-15horc8-5"})(["\n  position: absolute;\n  top: 0;\n  z-index: 2;\n  width: 64px;\n\n  &.badge-poa {\n    width: 44px;\n  }\n\n  > svg {\n    width: 100%;\n    height: auto;\n  }\n"]),w=d.default.div.withConfig({displayName:"ShopCarouselItemstyles__ShopCarouselItemImage",componentId:"sc-15horc8-6"})(["\n  position: relative;\n  width: 140px;\n  height: 140px;\n\n  img {\n    border-radius: 50%;\n    border: ",";\n    box-sizing: border-box;\n  }\n"],(({theme:e})=>e.product.carouselImageBorder)),C=d.default.div.withConfig({displayName:"ShopCarouselItemstyles__ShopCarouselItemTextContainer",componentId:"sc-15horc8-7"})(["\n  display: block;\n  margin-top: 8px;\n"]),v=(0,d.default)(u.Text).attrs({as:"h2"}).withConfig({displayName:"ShopCarouselItemstyles__ShopCarouselItemTitle",componentId:"sc-15horc8-8"})(["\n  ","\n  margin-bottom: 4px;\n  overflow: hidden;\n  display: -webkit-box;\n  -webkit-line-clamp: 3;\n  -webkit-box-orient: vertical;\n  overflow-wrap: break-word;\n  white-space: normal;\n"],(0,h.Z)("shoppable/carousel/product-title")),_=d.default.div.withConfig({displayName:"ShopCarouselItemstyles__ShopCarouselItemPriceContainer",componentId:"sc-15horc8-9"})(["\n  text-align: center;\n"]),k=d.default.div.withConfig({displayName:"ShopCarouselItemstyles__ShopCarouselItemPrice",componentId:"sc-15horc8-10"})(["\n  ","\n  display: inline-block;\n"],(0,h.Z)("shoppable/carousel/price-default")),j=d.default.div.withConfig({displayName:"ShopCarouselItemstyles__ShopCarouselItemOriginalPrice",componentId:"sc-15horc8-11"})(["\n  ","\n  display: inline-block;\n  text-decoration: line-through;\n  margin-left: 8px;\n"],(0,h.Z)("shoppable/carousel/price-strikeout")),S=d.default.div.withConfig({displayName:"ShopCarouselItemstyles__ShopCarouselItemRetailer",componentId:"sc-15horc8-12"})(["\n  ","\n  text-align: center;\n  color: ",";\n\n  @media (min-width: ",") {\n    display: none;\n  }\n"],(0,h.Z)("article/shoppable/retailer-info"),(e=>e.theme.color.neutral[700].value),(({theme:e})=>`${e.breakpoints[2]}px`));var O=t(69670),P=t(42367),I=t(52322);function N(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?N(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function A(e){const{element:n,isAmp:t,productOnClick:o,page:i,config:r,getBadgeComponent:a}=e,{text:s,link:l,price:d,sale_price:u,artemis_id:h,image_alt_tag:N,retailer:A,domain:$,price_per_night:Z,listing_location:D,brand_approved:T,has_affiliate_link:z}=n,{site_code:B}=r,L=z?(0,c.Z1)(l,r,i,t):l,U=(0,c.ql)(n),R=Z&&D,V=(0,c.DR)(B,T),q=u?(0,c.OW)(B):null,H=!V&&u,G={width:140,height:140},M=(0,O.$r)({image_id:h,size:"280x280",operations:"flatten;crop",quality:70}),W=(0,P.z$)(),{ref:X}=(0,P.YD)({element:n,itemVariant:c.VX.TILE_CAROUSEL});return(0,I.jsx)(m,{ref:X,children:(0,I.jsx)(f,{children:(0,I.jsxs)("a",E(E({className:`shop-item-link shop-checkout-link ${(0,c.g)({config:r,hasAffiliateLink:z})}`,onClick:()=>{o(),W.productClick(n,c.VX.TILE_CAROUSEL)},href:L,target:"_blank",rel:"noreferrer sponsored","aria-label":s,"data-vars-action":"in-line product item"},U),{},{children:[(0,I.jsxs)(b,{children:[V&&(0,I.jsx)(y,{className:`badge-${T[B]}`,children:a(V)}),!R&&H&&(0,I.jsx)(x,{children:a(q)}),(0,I.jsxs)(w,{children:[(0,I.jsx)(g,{className:"desktop",children:(0,I.jsx)("span",{children:R?`Book Now ${A||$}`:`Shop at ${A||$}`})}),t?(0,I.jsx)("amp-img",{width:"140",height:"140",layout:"responsive",alt:N||s,src:M}):(0,I.jsx)(p.Z,{image_id:h,alt_tag:N||s,className:"carousel-item__image",operations:"flatten;crop",quality:70,mediaQueryParams:{mobile:G,desktop:G},lazyload:!1,preload:!0})]})]}),(0,I.jsxs)(C,{children:[(0,I.jsx)(v,{children:s}),A&&(0,I.jsx)(S,{className:"mobile",children:A}),R?(0,I.jsx)(_,{children:(0,I.jsx)(k,{children:`$${Z}`})}):(0,I.jsxs)(_,{children:[(u||d)&&(0,I.jsx)(k,{children:`$${u||d}`}),u&&(0,I.jsx)(j,{children:`$${d}`})]})]})]}))})})}var $=(0,l.Z)({gtmEventName:"Product Checkout Click Event",gaAction:"in-line product item",ecommerceType:"product carousel"},A);A.defaultProps={element:{link:"",text:"",price:"",sale_price:null,artemis_id:"",image_alt_tag:null,retailer:"",domain:"",price_per_night:null,listing_location:null,brand_approved:{},has_affiliate_link:!1},page:{},config:{site_code:""},saleIcon:"",isAmp:!1,gaSendEvent:()=>{},hasAffiliate:!1,targetingCookiesAccepted:!1,productOnClick:()=>{},siteCode:"",getBadgeComponent:()=>{}};var Z=t(4920),D=t(81388);const T=d.default.div.withConfig({displayName:"ParagraphShopCarouselstyles__ParagraphShopCarouselContainer",componentId:"sc-81redg-0"})(["\n  min-height: 160px;\n  margin: 40px 0;\n  padding: 28px 0;\n  background: ",";\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n\n  @media (min-width: ",") {\n    flex-direction: row;\n    padding: 40px 0px;\n  }\n\n  &.shop-carousel-amp {\n    flex-direction: column;\n    padding: 28px 0;\n    width: 100%;\n  }\n\n  amp-carousel {\n    width: 100%;\n\n    & div::-webkit-scrollbar {\n      display: none;\n    }\n  }\n\n  .amp-carousel-button,\n  .amp-carousel-button-prev {\n    display: none;\n  }\n"],(({theme:e})=>e.product.carouselBackgroundColor),(({theme:e})=>`${e.breakpoints[2]}px`)),z=d.default.div.withConfig({displayName:"ParagraphShopCarouselstyles__ParagraphShopCarouselTextContainer",componentId:"sc-81redg-1"})(["\n  max-width: 100%;\n  width: calc(100% - 30px);\n  margin: 0 15px 30px;\n\n  &.shop-carousel-text-mobile {\n    display: block;\n  }\n  &.shop-carousel-text-desktop {\n    display: none;\n  }\n\n  @media (min-width: ",") {\n    width: calc(100% - 40px);\n    margin: 0 20px 30px;\n  }\n\n  @media (min-width: ",") {\n    &.shop-carousel-text-mobile:not(.is-amp) {\n      display: none;\n    }\n    &.shop-carousel-text-desktop {\n      display: block;\n      max-width: 221px;\n      margin: 10% 0 0 32px;\n    }\n  }\n"],(({theme:e})=>`${e.breakpoints[1]}px`),(({theme:e})=>`${e.breakpoints[2]}px`)),B=d.default.h2.withConfig({displayName:"ParagraphShopCarouselstyles__ParagraphShopCarouselTitle",componentId:"sc-81redg-2"})(["\n  ","\n  margin-bottom: 8px;\n  color: ",";\n"],(0,h.Z)("global/standard/h2"),(({theme:e})=>e.product.carouselTitleColor)),L=d.default.div.withConfig({displayName:"ParagraphShopCarouselstyles__ParagraphShopCarouselSubtitle",componentId:"sc-81redg-3"})(["\n  ","\n"],(0,h.Z)("shoppable/carousel/subhead")),U=d.default.div.withConfig({displayName:"ParagraphShopCarouselstyles__ParagraphShopCarouselAuthor",componentId:"sc-81redg-4"})(["\n  ","\n  margin-top: 8px;\n  text-align: left;\n"],(0,h.Z)("author-page/standard/role")),R=d.default.div.withConfig({displayName:"ParagraphShopCarouselstyles__ParagraphShopCarouselSwipeContainer",componentId:"sc-81redg-5"})(["\n  max-height: 250px;\n  width: 100%;\n  display: block;\n  overflow: hidden;\n  z-index: 2;\n\n  .shop-carousel-swiper-container {\n    margin-left: auto;\n    margin-right: auto;\n    position: relative;\n    overflow: hidden;\n    z-index: 1;\n  }\n\n  .shop-carousel-swiper-wrapper {\n    width: 100%;\n    height: auto;\n    position: relative;\n    transition-timing-function: ease-out;\n    margin: 0 auto;\n    z-index: 1;\n    display: flex;\n    transition-property: transform;\n    box-sizing: content-box;\n    margin: 0 20px;\n\n    @media (min-width: ",") {\n      margin: 0;\n    }\n  }\n\n  .swiper-slide {\n    width: auto;\n  }\n\n  .swiper-slide:not(.swiper-slide-text-container) {\n    min-width: 140px;\n    margin-right: 24px;\n  }\n\n  .swiper-button-next,\n  .swiper-button-prev {\n    display: none;\n  }\n\n  @media (min-width: ",") {\n    .swiper-button-next,\n    .swiper-button-prev {\n      display: block;\n      border-radius: ",";\n    }\n\n    .swiper-button-disabled,\n    .swiper-button-disabled-overwrite {\n      display: none;\n    }\n\n    .swiper-button-prev {\n      left: 24px;\n      transform: rotate(360deg);\n    }\n\n    .swiper-button-next {\n      right: 24px;\n    }
1\n\n    .swiper-slide-text-container {\n      min-width: 221px;\n      margin-right: 32px;\n    }\n  }\n"],(({theme:e})=>`${e.breakpoints[2]}px`),(e=>`${e.theme.breakpoints[2]}px`),(({theme:e})=>e.series.series_button_border_radius)),V=d.default.button.withConfig({displayName:"ParagraphShopCarouselstyles__ParagraphShopCarouselButton",componentId:"sc-81redg-6"})(["\n  height: 48px;\n  width: 48px;\n  ",";\n  ",";\n  ","\n  cursor: pointer;\n  position: absolute;\n  top: 50%;\n  margin-top: -24px;\n  z-index: 10;\n  border: none;\n  border-radius: 50%;\n\n  svg {\n    height: 14px;\n    width: 14px;\n    color: ",";\n  }\n"],(0,h.Z)("button/text/default"),(0,D.Z)("button/button-color/primary","background-color"),(0,D.Z)("button/text-color/primary"),(({theme:e})=>e.color.neutral.white.value));function q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function H(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?q(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const G=(0,s.default)((()=>Promise.resolve().then(t.t.bind(t,25241,23))),{loadableGenerated:{webpack:()=>[25241],modules:["../../components/src/components/ParagraphShopCarousel/ParagraphShopCarousel.js -> react-id-swiper"]}}),M=e=>{var n,t;const{element:o,config:i,page:r,gaSendEvent:s,deviceType:l,targetingCookiesAccepted:p}=e,{author:c,products:d=[],title:u,subhead:h}=o,{has_affiliate:m}=r,g=(null===c||void 0===c||null===(n=c[0])||void 0===n||null===(t=n.entity)||void 0===t?void 0:t.name)||!1,{0:f,1:b}=(0,a.useState)(null);(0,a.useEffect)((()=>{f&&f.update()}),[l]);const x=e=>(0,I.jsx)(Z.pj,{variant:e}),y=e=>(0,I.jsxs)(z,{className:`shop-carousel-text-${e}`,children:[(0,I.jsx)(B,{children:u}),(0,I.jsx)(L,{children:h}),g&&(0,I.jsx)(U,{children:`Curated by ${g}`})]}),w={containerClass:"shop-carousel-swiper-container",wrapperClass:"shop-carousel-swiper-wrapper",setWrapperSize:!1,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},freeMode:!0,grabCursor:!0,centeredSlides:!1,slidesPerView:"auto",slidesPerGroup:3,lazy:!0,slidesOffsetBefore:0,slidesOffsetAfter:0,renderPrevButton:()=>(0,I.jsx)(V,{className:"swiper-button-prev slider-hide-nav",onClick:()=>s({category:"shop carousel",action:"arrow left click",label:"",value:0}),children:(0,I.jsx)(Z.pj,{variant:"chevron/left"})}),renderNextButton:()=>(0,I.jsx)(V,{className:"swiper-button-next",onClick:()=>s({category:"shop carousel",action:"arrow right click"}),children:(0,I.jsx)(Z.pj,{variant:"chevron/right"})})};return(0,I.jsxs)(T,{children:[y("mobile"),(0,I.jsx)(R,{children:(0,I.jsxs)(G,H(H({},w),{},{shouldSwiperUpdate:!0,getSwiper:e=>{e&&b(e)},children:[(0,I.jsx)("div",{className:"swiper-slide swiper-slide-text-container",children:y("desktop")}),d&&d.map(((e,n)=>(0,I.jsx)("div",{className:"swiper-slide",children:(0,I.jsx)($,{element:e,gaSendEvent:s,hasAffiliate:m,targetingCookiesAccepted:p,config:i,page:r,getBadgeComponent:x})},`shop-carousel-item-${n}`)))]}))})]})};M.defaultProps={config:{site_name:""},element:{className:"product",__typename:"",products:[],title:"",subhead:"",author:[]},page:{has_affiliate:!1},elementIndex:null,gaSendEvent:()=>{},deviceType:"",targetingCookiesAccepted:!1};var W=M;var X=(0,o.$j)((({app:e,ui:n,page:t})=>({deviceType:n.deviceType,config:e.config,page:t,targetingCookiesAccepted:e.cookieSettings.targeting})),{gaSendEvent:i.E_})(W)},88465:function(e,n,t){t.d(n,{Z:function(){return u}});var o=t(77460),i=(t(2784),t(86866)),r=t(97704),a=t(40849),s=t(98149),l=t(14143),p=t(52322);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?c(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function u(e,n){const t=t=>{const{element:o,targetingCookiesAccepted:c,gaSendEvent:u,hasAffiliate:h,isSwipeShop:m,page:g}=t,{text:f,link:b,price:x,url:y,link_text:w,button_type:C,product_name:v,cta_button_link:_}=o,{has_affiliate:k}=g,{customProductDimensions:j,ecommerceProductObject:S}=(0,a.YN)(o),{gtmEventName:O,gaAction:P,gaCategory:I,ecommerceType:N,useHasAffiliate:E}=e,A=b||y||_,$=h||k;let Z=E&&!$?"shop click":"affiliate click";Z=I||Z;const D=m?["pinnacle","swipeshop"]:["pinnacle"];let T=null;T=new l.Z(c);const z=!C||"affiliate"===String(C).toLowerCase();return(0,p.jsx)(r.df,{rootMargin:"100px",triggerOnce:!0,onChange:e=>e&&void(z&&D.forEach((e=>{i.ZP.plugin.execute(`${e}.ec`,"addImpression",Object.assign(S,{list:N}))}))),children:(0,p.jsx)(n,d(d({},t),{},{productOnClick:(e,n={})=>{i.ZP.set(n.customProductDimensions||j,D);const t="string"===typeof e?e:P;if(z){(0,s.ZP)({event:O,data:{product_content:{name:v||n.text||f||n.link_text||w,value:n.price||x||null}}}),D.forEach((e=>{i.ZP.plugin.execute(`${e}.ec`,"addProduct",n.ecommerceProductObject||S),i.ZP.plugin.execute(`${e}.ec`,"setAction","click",{list:N})})),u({category:Z,action:t,label:n.productUrl||A,trackers:D});const e=E&&("boolean"===typeof n.isProductAffiliate?n.isProductAffiliate:$)?"":"Skimlinks";T.affiliateLinkClick({product:o,url:n.productUrl||A,affiliate:e})}}}))})};return t.defaultProps={element:{link:"",text:"",price:null,sale_price:null,url:null,link_text:null,button_type:"",product_name:null,cta_button_link:null},gaSendEvent:()=>{},targetingCookiesAccepted:!1,analyticsParams:{gtmEventName:"",gaAction:"",gaCategory:"",ecommerceType:"",useHasAffiliate:!1},isSwipeShop:!1,hasAffiliate:!1,page:{has_affiliate:!1}},t}}}]);

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.