PageSourceSearch

https://www.thedodo.com/_next/static/chunks/7902.ba9073fd7a958b3109c5.js

js thedodo.com collected 2026-09-27 20:56:33 UTC 25,984 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7902],{67902:function(e,t,n){n.r(t),n.d(t,{default:function(){return z}});var r=n(57903),i=n(72829),a=n(77460),o=n(2784),c=n(54035),l=n(88465),s=n(18298),d=n(30120),p=n(14695),u=n(32979),m=n(81388);const h=p.default.div.withConfig({displayName:"ParagraphProductstyles__ParagraphProductContainer",componentId:"sc-5cswrk-0"})((({theme:{breakpoints:e,article:t}})=>(0,p.css)(["\n    width: 100%;\n    padding: 16px 20px 30px;\n\n    @media (min-width: ",") {\n      padding: 16px 25px 30px;\n    }\n\n    ","\n\n    &::after {\n      content: '';\n      clear: both;\n      display: table;\n    }\n\n    ","\n  "],`${e[2]}px`,t.product.container.background&&(0,p.css)(["\n      background-position: ",";\n      background-repeat: ",";\n      background-size: ",";\n      background-image: ",";\n\n      @media (min-width: ",") {\n        background-position: ",";\n        background-size: ",";\n      }\n      @media (min-width: ",") {\n        background-position: ",";\n        background-size: ",";\n      }\n      @media (min-width: ",") {\n        background-position: ",";\n        background-size: ",";\n      }\n    "],t.product.container.background.mobile.position,t.product.container.background.mobile.repeat,t.product.container.background.mobile.size,`url("${t.product.container.background.mobile.image}")`,`${e[2]}px`,t.product.container.background.small.position,t.product.container.background.small.size,`${e[3]}px`,t.product.container.background.medium.position,t.product.container.background.medium.size,`${e[4]}px`,t.product.container.background.large.position,t.product.container.background.large.size),(({displayType:t})=>"STRIKE_THROUGH"===t&&(0,p.css)(["\n        border-top: 1px solid ",";\n        padding: 18px 0 25px;\n        margin-top: 35px;\n        @media (min-width: ",") {\n          padding: 25px 0;\n        }\n      "],(({theme:e})=>e.color.neutral[300].value),`${e[2]}px`))))),g=p.default.div.withConfig({displayName:"ParagraphProductstyles__ParagraphProductImageContainer",componentId:"sc-5cswrk-1"})(["\n  position: relative;\n  float: left;\n\n  background-color: white;\n  border-radius: ",";\n  box-shadow: ",";\n\n  ","\n\n  picture {\n    background: none;\n  }\n"],(({theme:e})=>e.article.product.container.border_radius),(({theme:e})=>e.article.product.container.box_shadow),(({displayType:e})=>"STRIKE_THROUGH"===e?(0,p.css)(["\n          padding: 0 12px 12px 0;\n          width: 115px;\n          @media (min-width: ",") {\n            width: 180px;\n          }\n        "],(({theme:e})=>`${e.breakpoints[2]}px`)):"DEFAULT"===e?(0,p.css)(["\n          width: 100%;\n          padding: 12px;\n          margin-bottom: 30px;\n          @media (min-width: ",") {\n            width: 229px;\n            margin-right: 20px;\n          }\n          @media (min-width: ",") {\n            width: 222px;\n            margin-right: 24px;\n          }\n          @media (min-width: ",") {\n            width: 282px;\n          }\n        "],(({theme:e})=>`${e.breakpoints[2]}px`),(({theme:e})=>`${e.breakpoints[3]}px`),(({theme:e})=>`${e.breakpoints[4]}px`)):"")),f=p.default.div.withConfig({displayName:"ParagraphProductstyles__ParagraphProductBadge",componentId:"sc-5cswrk-2"})(["\n  position: absolute;\n  top: -12px;\n  left: -12px;\n  z-index: 1;\n  width: 90px;\n  height: 90px;\n\n  > svg {\n    width: 100%;\n    height: auto;\n  }\n"]),b=p.default.div.withConfig({displayName:"ParagraphProductstyles__ParagraphProductImage",componentId:"sc-5cswrk-3"})(["\n  width: 100%;\n  max-width: 100%;\n  height: auto;\n  overflow: hidden;\n  border: ",";\n  border-radius: ",";\n"],(({theme:e})=>e.article.product.image.border),(({theme:e})=>e.article.product.image.border_radius)),_=(p.default.div.withConfig({displayName:"ParagraphProductstyles__ParagraphProductSponsor",componentId:"sc-5cswrk-4"})(["\n  ","\n  padding-top: 8px;\n"],(0,u.Z)("global/standard/sponsor/black")),p.default.div.withConfig({displayName:"ParagraphProductstyles__ParagraphProductImageCredit",componentId:"sc-5cswrk-5"})(["\n  ","\n  padding-top: 8px;\n"],(0,u.Z)("global/standard/sponsor/black"))),x=p.default.div.withConfig({displayName:"ParagraphProductstyles__ParagraphProductInfoContainer",componentId:"sc-5cswrk-6"})([""]),y=p.default.h2.withConfig({displayName:"ParagraphProductstyles__ParagraphProductHeadline",componentId:"sc-5cswrk-7"})(["\n  ","\n  margin-bottom: 8px;\n"],(0,u.Z)("shoppable/featured/header")),w=p.default.div.withConfig({displayName:"ParagraphProductstyles__ParagraphProductTitle",componentId:"sc-5cswrk-8"})(["\n  ",";\n\n  @media (min-width: ",") {\n    ",";\n  }\n\n  margin-bottom: ",";\n"],(0,u.Z)("shoppable/featured/product-title/small"),(({theme:e})=>`${e.breakpoints[2]}px`),(0,u.Z)("shoppable/featured/product-title/default"),(({displayType:e})=>"STRIKE_THROUGH"===e?"4px":"DEFAULT"===e?"20px":"")),P=p.default.h2.withConfig({displayName:"ParagraphProductstyles__ParagraphProductSubheadline",componentId:"sc-5cswrk-9"})(["\n  ","\n  margin-bottom: 8px;\n"],(0,u.Z)("shoppable/featured/header")),k=p.default.div.withConfig({displayName:"ParagraphProductstyles__ParagraphProductText",componentId:"sc-5cswrk-10"})(["\n  ","\n  margin-bottom: 24px;\n\n  a:not(.has-image) {\n    color: inherit;\n    text-decoration: none;\n    border-bottom: ",";\n\n    &:hover {\n      color: ",";\n      border-bottom: ",";\n    }\n  }\n\n  li {\n    position: relative;\n    margin-bottom: 12px;\n    overflow: hidden;\n  }\n\n  li:last-child {\n    margin-bottom: 0;\n  }\n\n  ol li {\n    padding-left: ",";\n  }\n\n  ul li {\n    padding-left: ",";\n  }\n\n  ol li::before {\n    content: ",";\n    position: absolute;\n    top: ",";\n    left: 0;\n    width: ",";\n    height: ",";\n    background: ",";\n  }\n\n  ul li::before {\n    content: ",";\n    position: absolute;\n    top: ",";\n    left: 0;\n    width: ",";\n    height: ",";\n    background: ",";\n  }\n"],(0,u.Z)("shoppable/featured/subhead"),(({theme:e})=>e.global.linkBorderBottom),(({theme:e})=>e.global.linkHoverTextColor),(({theme:e})=>e.global.linkHoverBorderBottom),(({theme:e})=>e.article.ordered_list.list_item.padding_left),(({theme:e})=>e.article.unordered_list.list_item.padding_left),(({theme:e})=>e.article.ordered_list.list_item.before.content),(({theme:e})=>e.article.ordered_list.list_item.before.top),(({theme:e})=>e.article.ordered_list.list_item.before.width),(({theme:e})=>e.article.ordered_list.list_item.before.height),(({theme:e})=>e.article.ordered_list.list_item.before.background),(({theme:e})=>e.article.unordered_list.list_item.before.content),(({theme:e})=>e.article.unordered_list.list_item.before.top),(({theme:e})=>e.article.unordered_list.list_item.before.width),(({theme:e})=>e.article.unordered_list.list_item.before.height),(({theme:e})=>e.article.unordered_list.list_item.before.background)),v=p.default.div.withConfig({displayName:"ParagraphProductstyles__ParagraphProductStrikeThroughTitleContainer",componentId:"sc-5cswrk-11"})(["\n  display: flex;\n  flex-direction: column;\n  padding-left: 10px;\n\n  &:not(.product__button__two) > div:first-child {\n    ","\n    display: flex;\n    flex-direction: column;\n    @media (min-width: ",") {\n      flex-direction: row;\n      justify-content: space-between;\n    }\n  }\n"],(0,u.Z)("gallery/product-title/default"),(({theme:e})=>`${e.breakpoints[2]}px`)),j=p.default.div.withConfig({displayName:"ParagraphProductstyles__ParagraphProductStrikeThrough",componentId:"sc-5cswrk-12"})(["\n  margin: 8px 0;\n\n  span:first-child {\n    ","\n    text-decoration: line-through;\n  }\n  span:last-child {\n    ","\n    margin-left: 4px;\n  }\n"],(0,u.Z)("article/shoppable/price/strikethrough"),(0,u.Z)("gallery/product-price/promo")),C=p.default.div.withConfig({displayName:"ParagraphProductstyles__ParagraphProductFromPrice",componentId:"sc-5cswrk-13"})(["\n  ","\n\n  span {\n    display: none;\n  }\n\n  @media (min-width: ",") {\n    ","\n    display: flex;\n    flex-direction: column;
1\n    align-items: center;\n    border-left: 1px solid ",";\n    padding: 0 10px 0 20px;\n    margin-left: 16px;\n    margin-bottom: 0;\n\n    span {\n      display: block;\n      ","\n    }\n  }\n"],(0,u.Z)("article/shoppable/price/small"),(({theme:e})=>`${e.breakpoints[2]}px`),(0,u.Z)("article/shoppable/price/default"),(({theme:e})=>e.color.neutral[300].value),(0,u.Z)("gallery/product-price/detail")),T=p.default.div.withConfig({displayName:"ParagraphProductstyles__ParagraphProductCtaBtnContainer",componentId:"sc-5cswrk-14"})(["\n  ","\n"],(({displayType:e})=>"STRIKE_THROUGH"===e?(0,p.css)(["\n          width: 100%;\n          clear: both;\n          display: flex;\n          justify-content: center;\n          @media (min-width: ",") {\n            width: auto;\n            clear: none;\n            justify-content: flex-start;\n            padding-left: 10px;\n          }\n          button {\n            margin-top: 8px;\n            width: 275px;\n            /* truncate long button text */\n            /* @see https://css-tricks.com/snippets/css/truncate-string-with-ellipsis */\n            > div {\n              width: 100%;\n              > div {\n                white-space: nowrap;\n                overflow: hidden;\n                text-overflow: ellipsis;\n              }\n            }\n          }\n        "],(({theme:e})=>`${e.breakpoints[2]}px`)):"DEFAULT"===e?(0,p.css)(["\n          button {\n            ",";\n            height: 48px;\n            ",";\n            ","\n            border-radius: ",";\n            margin-right: 8px;\n            margin-bottom: 8px;\n          }\n        "],(0,u.Z)("button/text/default"),(0,m.Z)("button/button-color/primary","background-color"),(0,m.Z)("button/text-color/primary"),(({theme:e})=>e.article.product.button.border_radius)):""));var O=n(40849),N=n(4920),E=n(42367),A=n(52322);const S=p.default.div.withConfig({displayName:"ProductImageEdit__ProductImageEditContainer",componentId:"sc-12whg6d-0"})(["\n  position: absolute;\n  top: 10px;\n  left: 10px;\n"]),D=p.default.div.withConfig({displayName:"ProductImageEdit__ModalDiv",componentId:"sc-12whg6d-1"})(["\n  position: fixed;\n  width: 100vw;\n  height: 100vh;\n  top: 0;\n  left: 0;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  background: rgba(0, 0, 0, 0.2);\n  z-index: 4;\n  font-family: 'Texta';\n\n  form {\n    position: relative;\n    width: 500px;\n    display: flex;\n    flex-direction: column;\n    background: #fff;\n    padding: 20px;\n    max-height: 85vh;\n    overflow: scroll;\n  }\n\n  label {\n    margin-bottom: 4px;\n    font-weight: 600;\n  }\n\n  input {\n    padding: 4px;\n    font-size: 16px;\n  }\n\n  img,\n  input,\n  button {\n    margin-bottom: 10px;\n    font-family: 'Texta';\n  }\n\n  button {\n    max-width: 150px;\n    margin-right: 10px;\n  }\n\n  p {\n    font-style: italic;\n  }\n\n  .close-icon {\n    position: absolute;\n    top: 5px;\n    right: 5px;\n  }\n\n  .loader,\n  .loader:after {\n    border-radius: 50%;\n    width: 2em;\n    height: 2em;\n    display: inline-block;\n  }\n  .loader {\n    font-size: 8px;\n    position: relative;\n    border-top: 0.3em solid rgba(0, 0, 0, 0.2);\n    border-right: 0.3em solid rgba(0, 0, 0, 0.2);\n    border-bottom: 0.3em solid rgba(0, 0, 0, 0.2);\n    border-left: 0.3em solid rgba(0, 0, 0, 0.9);\n    -webkit-transform: translateZ(0);\n    -ms-transform: translateZ(0);\n    transform: translateZ(0);\n    -webkit-animation: load8 1.1s infinite linear;\n    animation: load8 1.1s infinite linear;\n  }\n  @-webkit-keyframes load8 {\n    0% {\n      -webkit-transform: rotate(0deg);\n      transform: rotate(0deg);\n    }\n    100% {\n      -webkit-transform: rotate(360deg);\n      transform: rotate(360deg);\n    }\n  }\n  @keyframes load8 {\n    0% {\n      -webkit-transform: rotate(0deg);\n      transform: rotate(0deg);\n    }\n    100% {\n      -webkit-transform: rotate(360deg);\n      transform: rotate(360deg);\n    }\n  }\n"]),Z="https://www.popsugar.com";var I=({page:e,product:t,slideNid:n})=>{const i=(0,r.v9)((({app:e})=>e.pinnacleEnv)),a=null===e||void 0===e?void 0:e.origin_nid;if("preview"!==i||!a)return null;const{0:l,1:s}=(0,o.useState)(!1),{0:d,1:p}=(0,o.useState)(!1),{0:u,1:m}=(0,o.useState)(null),{0:h,1:g}=(0,o.useState)(t.product_name),{0:f,1:b}=(0,o.useState)(t.price),{0:_}=(0,o.useState)(t.retailer),{0:x,1:y}=(0,o.useState)(t.cta_copy),{0:w,1:P}=(0,o.useState)(t.cta_button_link),k=(0,o.useRef)();(0,o.useEffect)((()=>{const e=e=>{"?"===e.key&&s((e=>!e))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[]);const v=e=>{e.preventDefault(),p(!1)};return(0,A.jsxs)(S,{children:[l&&(0,A.jsx)(N.pj,{variant:"edit",onClick:()=>p(!0)}),d&&(0,A.jsx)(D,{children:(0,A.jsxs)("form",{children:[(0,A.jsx)(N.pj,{variant:"states-x",width:"20px",onClick:v,extraClassName:"close-icon"}),u?(0,A.jsx)("img",{src:URL.createObjectURL(u),alt:"New Upload",width:258}):(0,A.jsx)(c.Z,{image_id:t.image,operations:"flatten;scale;matte=ffffff=center",quality:"70",imageData:t.image_data,mediaQueryParams:{desktop:{width:258,height:258}}}),(0,A.jsx)("span",{children:(0,A.jsx)("input",{type:"file",id:"files_editor_src",className:"files_editor_src",multiple:"",accept:"image/*",onChange:e=>{var t,n;const r=null===e||void 0===e||null===(t=e.target)||void 0===t||null===(n=t.files)||void 0===n?void 0:n[0];r&&m(r)}})}),(0,A.jsx)("label",{htmlFor:"product_value",children:"Product name:"}),(0,A.jsx)("input",{className:"product_value",type:"text",maxLength:"512",id:"product_value",size:"60",onChange:e=>g(e.target.value),value:h}),(0,A.jsx)("label",{htmlFor:"override_price",children:"Price:"}),(0,A.jsx)("input",{className:"override_price",type:"text",maxLength:"8",id:"override_price",size:"60",onChange:e=>b(e.target.value),value:f}),(0,A.jsx)("div",{children:"Retailer name:"}),(0,A.jsxs)("div",{children:["You can update the retailer name by searching for it"," ",(0,A.jsx)("a",{target:"_blank",href:"https://cms.popsugar.com/admin/editorial_tools/taxonomy-browser?vid=retailer",rel:"noreferrer",children:"here"}),", then editing the name."]}),(0,A.jsx)("label",{htmlFor:"override_button_label",children:"Override button label (default 'Buy Now'):"}),(0,A.jsx)("input",{className:"override_button_label",type:"text",id:"override_button_label",onCh
1ange:e=>y(e.target.value),value:x}),(0,A.jsx)("label",{htmlFor:"click_url",children:"Override Url (usually for native post editor / click tracker purpose):"}),(0,A.jsx)("input",{className:"click_url",type:"text",id:"click_url",onChange:e=>P(e.target.value),value:w}),(0,A.jsxs)("span",{children:[(0,A.jsx)("button",{onClick:async e=>{e.preventDefault(),k.current.classList.add("loader");const r=(()=>{const e={};return h!==t.product_name&&(e.product_value=h),f!==t.price&&(e.override_price=f),_!==t.retailer&&(e.retailer_name=_),x!==t.cta_copy&&(e.override_button_label=x),w!==t.cta_button_link&&(e.click_url=w),e})();if(r&&Object.entries(r).length>0){const e=new FormData;e.set("origin","pinnacle"),e.set("product[name]",t.product_name),e.set("nid",a),n&&e.set("slide_nid",n),Object.keys(r).forEach((t=>{e.set(`edit[${t}]`,r[t])}));try{await fetch(`${Z}/shoppable_product_override_ajax`,{method:"POST",body:e,mode:"cors"}).catch((e=>{throw console.log(e),new Error(`Could not update product data with name ${t.product_name} on node ${a}.`)}))}catch(i){console.log("Couldn't change data for product. Error message: ",i)}}if(u)try{const e=new FormData;e.set("origin","pinnacle"),e.set("product[name]",t.product_name),e.set("nid",a),n&&e.set("slide_nid",n),e.set("edit[foreign_image]",u),await fetch(`${Z}/shoppable_product_override_image_ajax`,{method:"post",body:e,mode:"cors"}).catch((e=>{throw console.log(e),new Error(`Could not update product image with name ${t.product_name} on node ${a}.`)}))}catch(i){console.log("Couldn't upload image. Error message: ",i)}k.current.classList.remove("loader"),p(!1)},children:"Save"}),(0,A.jsx)("button",{onClick:v,children:"Cancel"}),(0,A.jsx)("div",{ref:k})]}),(0,A.jsx)("p",{children:"Note: product data may take a few minutes to update on the frontend after you click Save."})]})})]})};function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U(e,t){if("string"!==typeof e||!e.trim())return e;const n=e.trim();if(n.match(/^[$\u20ac\xa3\xa5\u20b9]/))return e;const r="PSUK"===t?"\xa3":"$";return/^\d/.test(n)?e.replace(n,`${r}${n}`):e}function L(e){if(!e&&0!==e)return null;try{const t=String(e).trim().replace(/[$\u20ac\xa3\xa5\u20b9\xa2\u20bd\u20a9\u20aa\u20a8\u20a6\u20a1\u20b5\u20b4\u20b8\u20bc\u20be\ufdfc\s]/g,"");if(!/^\d/.test(t)||/[a-zA-Z]/.test(t))return null;const n=parseFloat(t.replace(/,/g,""));return isFinite(n)&&n>=0?n:null}catch{return null}}function H(e){const{page:t,element:n,isAmp:r,config:i,productOnClick:a,deviceType:o,slideNid:l}=e,{is_sponsored:d,sponsor:p}=t,{text:u,credit_url:m,cta_copy:S,cta_button_link:D,cta_copy_2:Z,cta_button_link_2:$,headline:V,image:z,image_credit:F,show_badge:B,subheadline:M,product_name:G,has_affiliate_link:X,has_affiliate_link_2:Y,brand_approved:K,image_data:q,price:Q,price_2:J,sale_price:W,sale_price_2:ee}=n,{site_code:te,article:{paragraph_product:{display_type:ne}={}}={}}=i,re=U(S,te),ie=U(Z,te),ae=U(Q,te),oe=U(J,te),ce=U(W,te),le=U(ee,te),se=function(e,t){if(!e||"object"!==typeof e)return null;const{price:n,price_2:r,salePrice:i,salePrice2:a}=e,o=[L(n),L(r),L(i),L(a)].filter((e=>null!==e));return 0===o.length?null:U(Math.min(...o).toString(),t)}({price:ae,price_2:oe,salePrice:ce,salePrice2:le},te),de=F&&!(d&&p),pe=X?(0,O.Z1)(D,i,t,r):D,ue=Y?(0,O.Z1)($,i,t,r):$,me={"aria-label":re,text:re,className:"cta-button"},he={"aria-label":ie,text:ie,className:"cta-button"},ge={url:ue,text:ie,price:oe,salePrice:le,hasAffiliateLink:Y},fe=(0,O.ql)(n),be=(0,E.z$)(),{ref:_e}=(0,E.YD)({element:n,itemVariant:O.VX.CARD_BUTTON}),xe={[te]:B?"poa":K||""},ye=(0,O.DR)(te,xe);function we(e){const{url:t,action:r,itemVariant:o,children:c}=e,l=e.text||u,s=e.price||ae,d=e.salePrice||ce,p=e.hasAffiliateLink||X,m=R(R({},n),{},{text:l,price:s,sale_price:d}),{customProductDimensions:h,ecommerceProductObject:g}=(0,O.YN)(m),f=t||pe;return(0,A.jsx)("a",R(R({className:`shop-item-link shop-checkout-link ${(0,O.g)({config:i,hasAffiliateLink:X})}`,onClick:()=>{a(r,{productUrl:f,customProductDimensions:h,ecommerceProductObject:g,text:l,price:s,isProductAffiliate:p}),be.productClick(m,o)},href:f,target:"_blank",rel:"noreferrer sponsored","aria-label":u,"data-vars-action":r},fe),{},{children:c}))}return(0,A.jsxs)(h,{ref:_e,displayType:ne,className:"product__container",children:[(0,A.jsxs)(g,{displayType:ne,children:[ye&&(0,A.jsx)(f,{className:`badge-${xe[te]}`,children:(0,A.jsx)(N.wq,{variant:ye})}),(0,A.jsxs)(b,{children:[(0,A.jsx)(I,{product:n,page:t,slideNid:l}),(0,A.jsx)(we,{action:"product image",itemVariant:O.VX.CARD_IMAGE,children:(0,A.jsx)(c.Z,{image_id:z,isAmp:r,o
1perations:"flatten;scale;matte=ffffff=center",quality:"70",imageData:q,mediaQueryParams:{mobile:{width:350,height:350},desktop:{width:258,height:258}},lazyload:!0})})]}),de&&(0,A.jsx)(_,{children:(0,A.jsx)(we,{action:"credit url",itemVariant:O.VX.CARD_IMAGE,url:m,children:F})})]}),ne===H.DISPLAY_TYPE.STRIKE_THROUGH?(()=>{const e=function(e){const{price:t,price_2:n,salePrice:r,salePrice2:i}=e,a=L(r),o=L(i);return a||o?a&&!o?{originalPrice:t,salePrice:r,percentageOff:(0,O.c3)(t,r)}:!a&&o?{originalPrice:n,salePrice:i,percentageOff:(0,O.c3)(n,i)}:a<=o?{originalPrice:t,salePrice:r,percentageOff:(0,O.c3)(t,r)}:{originalPrice:n,salePrice:i,percentageOff:(0,O.c3)(n,i)}:null}({price:ae,price_2:oe,salePrice:ce,salePrice2:le});if(!e)return(0,A.jsxs)(x,{className:"product__info__container",children:[V&&(0,A.jsx)(y,{children:V}),(0,A.jsxs)(we,{action:"product name",itemVariant:O.VX.CARD_NAME,url:pe,children:[(0,A.jsx)(v,{children:(0,A.jsxs)("div",{children:[G&&(0,A.jsx)(w,{displayType:ne,children:G}),se&&(0,A.jsxs)(C,{children:[(0,A.jsx)("span",{children:"From"}),(0,A.jsx)("div",{children:se})]})]})}),(0,A.jsx)(T,{displayType:ne,className:"product__button",children:(0,A.jsx)(s.Z,R(R({},me),{},{variant:"secondary",scale:"mobile"===o?"small":"default"}))})]}),ue&&(0,A.jsx)(we,R(R({action:"product name",itemVariant:O.VX.CARD_NAME,url:ue},ge),{},{children:(0,A.jsx)(T,{displayType:ne,className:"product__button",children:(0,A.jsx)(s.Z,R(R({},he),{},{variant:"secondary",scale:"mobile"===o?"small":"default"}))})}))]});const t=e.originalPrice===ae&&e.salePrice===ce,n=t?{url:pe,buttonProps:me,aTagProps:{}}:{url:ue,buttonProps:he,aTagProps:ge},r=t?{url:ue,buttonProps:he,aTagProps:ge}:{url:pe,buttonProps:me,aTagProps:{}};return(0,A.jsxs)(x,{className:"product__info__container",children:[V&&(0,A.jsx)(y,{children:V}),(0,A.jsxs)(we,R(R({action:"product name",itemVariant:O.VX.CARD_NAME,url:n.url},n.aTagProps),{},{children:[(0,A.jsxs)(v,{children:[(0,A.jsxs)("div",{children:[G&&(0,A.jsx)(w,{displayType:ne,children:G}),se&&(0,A.jsxs)(C,{children:[(0,A.jsx)("span",{children:"From"}),(0,A.jsx)("div",{children:se})]})]}),e&&(0,A.jsxs)(j,{children:[(0,A.jsx)("span",{children:e.originalPrice}),(0,A.jsxs)("span",{children:[" Now ",e.percentageOff,"% off"]})]})]}),(0,A.jsx)(T,{displayType:ne,className:"product__button",children:(0,A.jsx)(s.Z,R(R({},n.buttonProps),{},{variant:"secondary",scale:"mobile"===o?"small":"default"}))})]})),r.url&&(0,A.jsx)(we,R(R({action:"product name",itemVariant:O.VX.CARD_NAME,url:r.url},r.aTagProps),{},{children:(0,A.jsx)(T,{displayType:ne,className:"product__button",children:(0,A.jsx)(s.Z,R(R({},r.buttonProps),{},{variant:"secondary",scale:"mobile"===o?"small":"default"}))})}))]})})():(0,A.jsxs)(x,{children:[V&&(0,A.jsx)(y,{children:V}),(0,A.jsx)(we,{action:"product name",itemVariant:O.VX.CARD_NAME,url:pe,children:G&&(0,A.jsx)(w,{displayType:ne,children:G})}),M&&(0,A.jsx)(P,{children:M}),u&&(0,A.jsx)(k,{dangerouslySetInnerHTML:{__html:u}}),(0,A.jsxs)(T,{displayType:ne,children:[(0,A.jsx)(we,{action:"buy now button",itemVariant:O.VX.CARD_BUTTON,url:pe,children:(0,A.jsx)(s.Z,R({},me))}),ue&&(0,A.jsx)(we,R(R({action:"buy now button",itemVariant:O.VX.CARD_BUTTON},ge),{},{children:(0,A.jsx)(s.Z,R({},he))}))]})]})]})}H.DISPLAY_TYPE={DEFAULT:"DEFAULT",STRIKE_THROUGH:"STRIKE_THROUGH"};var V=(0,l.Z)({gtmEventName:"Product Checkout Click Event",ecommerceType:"paragraph product",useHasAffiliate:!0},H);H.defaultProps={page:{is_sponsored:null,sponsor:null},element:{className:"",text:"",credit_url:"",cta_copy:"Buy Now",cta_button_link:"",headline:"",image:"",image_credit:"",show_badge:!1,brand_approved:"",subheadline:"",product_name:"",price:"",has_affiliate_link:!1,has_affiliate_link_2:!1,image_data:d.QG},isAmp:!1,gaSendEvent:()=>{},targetingCookiesAccepted:!1,config:{site_code:""},productOnClick:()=>{},displayType:H.DISPLAY_TYPE.DEFAULT};var z=(0,r.$j)((({app:e,ui:t})=>({targetingCookiesAccepted:e.cookieSettings.targeting,deviceType:t.deviceType})),{gaSendEvent:i.E_})(V)},88465:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(77460),i=(n(2784),n(86866)),a=n(97704),o=n(40849),c=n(98149),l=n(14143),s=n(52322);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?d(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){const n=n=>{const{element:r,targetingCookiesAccepted:d,gaSendEvent:u,hasAffiliate:m,isSwipeShop:h,page:g}=n,{text:f,link:b,price:_,url:x,link_text:y,button_type:w,product_name:P,cta_button_link:k}=r,{has_affiliate:v}=g,{customProductDimensions:j,ecommerceProductObject:C}=(0,o.YN)(r),{gtmEventName:T,gaAction:O,gaCategory:N,ecommerceType:E,useHasAffiliate:A}=e,S=b||x||k,D=m||v;let Z=A&&!D?"shop click":"affiliate click";Z=N||Z;const I=h?["pinnacle","swipeshop"]:["pinnacle"];let $=null;$=new l.Z(d);const R=!w||"affiliate"===String(w).toLowerCase();return(0,s.jsx)(a.df,{rootMargin:"100px",triggerOnce:!0,onChange:e=>e&&void(R&&I.forEach((e=>{i.ZP.plugin.execute(`${e}.ec`,"addImpression",Object.assign(C,{list:E}))}))),children:(0,s.jsx)(t,p(p({},n),{},{productOnClick:(e,t={})=>{i.ZP.set(t.customProductDimensions||j,I);const n="string"===typeof e?e:O;if(R){(0,c.ZP)({event:T,data:{product_content:{name:P||t.text||f||t.link_text||y,value:t.price||_||null}}}),I.forEach((e=>{i.ZP.plugin.execute(`${e}.ec`,"addProduct",t.ecommerceProductObject||C),i.ZP.plugin.execute(`${e}.ec`,"setAction","click",{list:E})})),u({category:Z,action:n,label:t.productUrl||S,trackers:I});const e=A&&("boolean"===typeof t.isProductAffiliate?t.isProductAffiliate:D)?"":"Skimlinks";$.affiliateLinkClick({product:r,url:t.productUrl||S,affiliate:e})}}}))})};return n.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}},n}}}]);

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.