"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6395],{65610:function(e,l,a){var n,i;a.r(l);let t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"AccordionBlockContainer_block",selections:[i={alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"heading",plural:!1,selections:n=[{alias:null,args:null,kind:"ScalarField",name:"html",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"MethodologyAccordionSection",kind:"LinkedField",name:"sections",plural:!0,selections:[{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"content",plural:!1,selections:n,storageKey:null},i],storageKey:null}],type:"MethodologyAccordionBlockType",abstractKey:null};t.hash="1b9347a7f0ff54673015ea570a37cd38",l.default=t},97753:function(e,l,a){a.r(l);let n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ImageGalleryBlockContainer_block",selections:[{alias:null,args:null,concreteType:"CoreImageBlockType",kind:"LinkedField",name:"images",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"alt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hideCredit",storageKey:null},{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"credit",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"plaintext",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"caption",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"html",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ImageResourceType",kind:"LinkedField",name:"image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"ThumbnailMapType",kind:"LinkedField",name:"thumbnails",plural:!1,selections:[{alias:null,args:null,concreteType:"ThumbnailType",kind:"LinkedField",name:"horizontal",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"originalHeight",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"originalWidth",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,concreteType:"CoordinatesType",kind:"LinkedField",name:"cropCoordinates",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"CoreGalleryBlockType",abstractKey:null};n.hash="6a87ee421905f6a2c2b1aa9525b89add",l.default=n},44678:function(e,l,a){a.r(l);let n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"NewsletterBlockContainer_block",selections:[{alias:null,args:null,concreteType:"NewsletterType",kind:"LinkedField",name:"newsletter",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"promoText",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"html",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"listId",storageKey:null}],storageKey:null}],type:"NewsletterBlockType",abstractKey:null};n.hash="790690c0e3d1de89efe5fe6958a14f94",l.default=n},7795:function(e,l,a){var n,i,t,r,s;a.r(l);let d=(r=[{alias:null,args:null,kind:"ScalarField",name:"html",storageKey:null}],{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductBlockContainer_block",selections:[{alias:null,args:null,concreteType:"ProductBlockProductType",kind:"LinkedField",name:"product",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"productId",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"score",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"showDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"showImage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"showScores",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"parentFilter",storageKey:null},{alias:null,args:null,concreteType:"ProductRetailLinkType",kind:"LinkedField",name:"bestRetailLink",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"retailer",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"salePrice",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ProductBrandResourceType",kind:"LinkedField",name:"brand",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},n],storageKey:null},{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"description",plural:!1,selections:r,storageKey:null},{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"cons",plural:!1,selections:r,storageKey:null},{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"pros",plural:!1,selections:r,storageKey:null},{alias:null,args:null,concreteType:"ImageResourceType",kind:"LinkedField",name:"image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"alt",storageKey:null},{alias:null,args:null,concreteType:"ThumbnailMapType",kind:"LinkedField",name:"thumbnails",plural:!1,selections:[{alias:null,args:null,concreteType:"ThumbnailType",kind:"LinkedField",name:"horizontal",plural:!1,selections:s=[i],storageKey:null},{alias:null,args:null,concreteType:"ThumbnailType",kind:"LinkedField",name:"square",plural:!1,selections:s,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ProductRetailLinkType",kind:"LinkedField",name:"retailLinks",plural:!0,selections:t,storageKey:null}],storageKey:null}],type:"ProductBlockType",abstractKey:null});d.hash="d375c13b5f8b874ef0afa3e23ad1c1fd",l.default=d},39665:function(e,l,a){var n,i,t,r,s;a.r(l);let d=(r=[{alias:null,args:null,kind:"ScalarField",name:"html",storageKey:null}],{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProductsTableBlockContainer_block",selections:[{alias:null,args:null,concreteType:"ProductBlockProductType",kind:"LinkedField",name:"products",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"productId",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"score",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"showDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"showScores",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"parentFilter",storageKey:null},{alias:null,args:null,concreteType:"ProductRetailLinkType",kind:"LinkedField",name:"bestRetailLink",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"retailer",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"salePrice",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ProductBrandResourceType",kind:"LinkedField",name:"brand",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},n],storageKey:null},{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"description",plural:!1,selections:r,storageKey:null},{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"cons",plural:!1,selections:r,storageKey:null},{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"pros",plural:!1,selections:r,storageKey:null},{alias:null,args:null,concreteType:"ImageResourceType",kind:"LinkedField",name:"image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"alt",storageKey:null},{alias:null,args:null,concreteType:"ThumbnailMapType",kind:"LinkedField",name:"thumbnails",plural:!1,selections:[{alias:null,args:null,concreteType:"ThumbnailType",kind:"LinkedField",name:"horizontal",plural:!1,selections:s=[i],storageKey:null},{alias:null,args:null,concreteType:"ThumbnailType",kind:"LinkedField",name:"square",plural:!1,selections:s,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ProductRetailLinkType",kind:"LinkedField",name:"retailLinks",plural:!0,selections:t,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ProductsTableRangeType",kind:"LinkedField",name:"ranges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"max",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"min",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"filters",storageKey:null}],type:"ProductsTableBlockType",abstractKey:null});d.hash="8aac5b40a0fe58f9972fa8fdb2d14251",l.default=d},95992:function(e,l,a){var n,i;a.r(l);let t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"TableOfContentsBlockContainer_block",selections:[n={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hideTitle",storageKey:null},{alias:null,args:null,concreteType:"TableOfContentsEntry",kind:"LinkedField",name:"entries",plural:!0,selections:[i={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},n,{alias:null,args:null,concreteType:"TableOfContentsEntry",kind:"LinkedField",name:"entries",plural:!0,selections:[i,n,{alias:null,args:null,concreteType:"TableOfContentsEntry",kind:"LinkedField",name:"entries",plural:!0,selections:[i,n,{alias:null,args:null,concreteType:"TableOfContentsEntry",kind:"LinkedField",name:"entries",plural:!0,selections:[i,n,{alias:null,args:null,concreteType:"TableOfContentsEntry",kind:"LinkedField",name:"entries",plural:!0,selections:[i,n,{alias:null,args:null,concreteType:"TableOfContentsEntry",kind:"LinkedField",name:"entries",plural:!0,selections:[i,n],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"TableOfContentsBlockType",abstractKey:null};t.hash="65e75422ee60e40bd5cdc824b360ca91",l.default=t},3290:function(e,l,a){a.r(l);let n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"TableOfContentsBlockContainer_entry",selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],type:"TableOfContentsEntry",abstractKey:null};n.hash="868f8989c2bb8daeea87996cc4ff3c0e",l.default=n},22964:function(e,l,a){a.d(l,{Z:function(){return f}});var n,i=a(86273),t=a(31561),r=a(35458),s=a(82201),d=a(69135),c=a(75817),o=a(74795),u=a(60699),g=a(88321);a(3003);var m=({header:e,content:l,id:a})=>{let n=(0,g.z$)(),[i,m]=(0,s.useState)(!0),[h,p]=(0,s.useState)("auto"),f=(0,s.useRef)(null);return(0,s.useEffect)(()=>{setTimeout(()=>{if(!f.current)return;let{height:e}=f.current.getBoundingClientRect();p(`${e}px`),m(!1)},0)},[m,p]),(0,t.jsxs)("section",{className:"ni13og2",children:[(0,t.jsxs)("button",{id:`accordion-button-${a}`,className:"ni13og4",onClick:()=>{n?.emit({event:"accordion",accordion:{click_text:function(e){if("undefined"==typeof DOMParser)throw Error("Missing DOMParser. browserStripHtml does not run during SSR");return new DOMParser().parseFromString(e,"text/html").body.textContent||""}(e),action:i?"close":"open"}}),m(!i)},"aria-expanded":i?"true":"false","aria-controls":`accordion-content-${a}`,children:[(0,t.jsx)(d.Z,{component:"h3",className:"ni13og3",html:e}),(0,t.jsx)("div",{className:"ni13og6",children:i?(0,t.jsx)(c.Z,{}):(0,t.jsx)(o.Z,{})})]}),(0,t.jsx)("div",{id:`accordion-content-${a}`,className:(0,r.Z)("ni13og7",i&&"ni13og8"),style:{height:i?`${h}`:"0"},ref:f,"data-testid":"accordion-content","aria-labelledby":`accordion-button-${a}`,inert:i?void 0:"",children:(0,t.jsx)(d.Z,{className:(0,r.Z)("ni13og5",u.F.text.linkStyles),html:l})})]})},h=a(85056),p=({title:e,sections:l})=>(0,t.jsxs)("div",{className:(0,r.Z)(h.I.Accordion,"ni13og0"),children:[e&&(0,t.jsx)(d.Z,{component:"h2",className:"ni13og1",html:e}),l&&l.map((e,l)=>(0,t.jsx)(m,{header:e.header,content:e.content,id:l.toString()},l))]}),f=e=>{let{block:l}=e,{heading:r,sections:s}=(0,i.useFragment)((void 0!==n||(n=a(65610)).hash&&"1b9347a7f0ff54673015ea570a37cd38"!==n.hash&&console.error("The definition of 'AccordionBlockContainer_block' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),n),l),d=s.filter(e=>e.heading&&e.content).map(e=>({header:e.heading.html,content:e.content.html}));return(0,t.jsx)(p,{title:r.html,sections:d})}},49113:function(e,l,a){a.d(l,{Z:function(){return y}});var n,i=a(86273),t=a(31561),r=a(35458),s=a(82201),d=a(18191),c=a(46660),o=a(93376),u=a(60699),g=e=>{let l=(0,s.useId)();return(0,o.Z)(l),(0,t.jsxs)("div",{id:l,className:(0,r.Z)(c.Z.ImageGalleryFourUp,u.F.layout.blockSpacing.large),children:[(0,t.jsxs)("div",{className:d.tw,children:[(0,t.jsx)("div",{className:d.rE,children:e.image1}),(0,t.jsx)("div",{className:d.Mg,children:e.image2})]}),(0,t.jsxs)("div",{className:d.tw,children:[(0,t.jsx)("div",{className:d.u9,children:e.image3}),(0,t.jsx)("div",{className:d.$I,children:e.image4})]})]})},m=a(57432);a(6863);var h=e=>{let l=(0,s.useId)();return(0,o.Z)(l),(0,t.jsxs)("div",{id:l,className:(0,r.Z)(c.Z.ImageGalleryThreeUpBottom,u.F.layout.blockSpacing.large),children:[(0,t.jsxs)("div",{className:d.tw,children:[(0,t.jsx)("div",{className:d.rE,children:e.image1}),(0,t.jsx)("div",{className:d.Mg,children:e.image2})]}),(0,t.jsx)("div",{className:"_1gwvxmr0",children:e.image3})]})},p=e=>{let l=(0,s.useId)();return(0,o.Z)(l),(0,t.jsx)("div",{id:l,className:(0,r.Z)(c.Z.ImageGalleryTwoUp,u.F.layout.blockSpacing.large),children:(0,t.jsxs)("div",{className:d.fn,children:[(0,t.jsx)("div",{className:d.u9,children:e.image1}),(0,t.jsx)("div",{className:d.$I,children:e.image2})]})})};let f=e=>{let l=e.image?.thumbnails.horizontal;return{imageUrl:l?.url,thumbnailSize:"horizontal",alt:e.alt,caption:e.caption.html,credit:e.credit.plaintext,cropHeight:l?.cropCoordinates?l.originalHeight*(l.cropCoordinates.height/100):0,cropWidth:l?.cropCoordinates?l.originalWidth*(l.cropCoordinates.width/100):0}};var y=e=>{let{images:l}=(0,i.useFragment)((void 0!==n||(n=a(97753)).hash&&"6a87ee421905f6a2c2b1aa9525b89add"!==n.hash&&console.error("The definition of 'ImageGalleryBlockContainer_block' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),n),e.block);return 1===l.length&&l[0]?(0,t.jsx)(m.Z,{standalone:!0,...f(l[0])}):2===l.length&&l[0]&&l[1]?(0,t.jsx)(p,{image1:(0,t.jsx)(m.Z,{...f(l[0])}),image2:(0,t.jsx)(m.Z,{...f(l[1])})}):3===l.length&&l[0]&&l[1]&&l[2]?(0,t.jsx)(h,{image1:(0,t.jsx)(m.Z,{...f(l[0])}),image2:(0,t.jsx)(m.Z,{...f(l[1])}),image3:(0,t.jsx)(m.Z,{...f(l[2])})}):l[0]&&l[1]&&l[2]&&l[3]?(0,t.jsx)(g,{image1:(0,t.jsx)(m.Z,{...f(l[0])}),image2:(0,t.jsx)(m.Z,{...f(l[1])}),image3:(0,t.jsx)(m.Z,{...f(l[2])}),image4:(0,t.jsx)(m.Z,{...f(l[3])})}):void 0}},34818:function(e,l,a){a.d(l,{Z:function(){return s}});var n,i=a(86273),t=a(94802),r=a(31561),s=e=>{let{block:l}=e,{newsletter:s}=(0,i.useFragment)((void 0!==n||(n=a(44678)).hash&&"790690c0e3d1de89efe5fe6958a14f94"!==n.hash&&console.error("The definition of 'NewsletterBlockContainer_block' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),n),l);return(0,r.jsx)(t.Z,{name:s.title,text:s.promoText.html,lists:[s.listId],source:"articleBody"})}},68238:function(e,l,a){a.d(l,{Z:function(){return s}});var n,i=a(86273),t=a(57948),r=a(31561),s=e=>{let{product:l}=(0,i.useFragment)((void 0!==n||(n=a(7795)).hash&&"d375c13b5f8b874ef0afa3e23ad1c1fd"!==n.hash&&console.error("The definition of 'ProductBlockContainer_block' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),n),e.block),s=l.showImage&&l.image?.thumbnails.horizontal.url||"",d=l.image?.thumbnails.square.url||"";return(0,r.jsx)(t.Z,{...l,id:l.productId,imageUrl:s,mobileImageUrl:d,alt:l.image?.alt,description:l.description.html,pros:l.pros.html,cons:l.cons.html,layout:"full",pageTitle:e.pageTitle,retailLinks:l.retailLinks,brand:l.brand?.title,bestRetailLink:l.bestRetailLink})}},47068:function(e,l,a){a.d(l,{Z:function(){return b}});var n,i=a(86273),t=a(31561),r=a(35458),s=a(4783),d=a.n(s),c=a(42685),o=a(82201),u=a(66970),g=a(31994),m=a(85056),h=a(31218),p=a(60699);a(33108),a(35888);var f="_1w0bf4q9",y="_1w0bf4q8",k="_1w0bf4q2",x=(0,h.n)(({ranges:e,filters:l,products:a,filterTitle:n="What are you looking for?",rangeTitle:i="How much do you want to spend?",isSingleColumn:s})=>{let[h,x]=(0,o.useState)([]),[b,T]=(0,o.useState)([]),[j,v]=(0,o.useState)(a),F=(0,c.usePathname)(),K=(0,o.useCallback)((e,l)=>{let n=e.length>0?a.filter(l=>{let a=l.bestRetailLink?.salePrice||l.bestRetailLink?.price,n=d()(a)&&e.filter(e=>{let l=e.max||1e10;return a>=(e.min||0)&&a<=l});return n&&n.length>0}):a;n=l.length>0?n.filter(e=>e.parentFilter&&l.includes(e.parentFilter)):n;let i=new URLSearchParams(window.location.search);if(e.length>0){let l=e.map(e=>!!e.label&&e.label).join(",");i.set("ranges",encodeURIComponent(l))}else i.delete("ranges");if(l.length>0){let e=l.map(e=>e).join(",");i.set("filters",encodeURIComponent(e))}else i.delete("filters");window.history.replaceState(null,"update params",i.size?`${F}?${i.toString()}`:F),v(n)},[a,F]);(0,o.useEffect)(()=>{let a=new URLSearchParams(window.location.search),n=[],i=[];a.forEach((a,t)=>{if("ranges"===t&&e){let l=decodeURIComponent(a).split(",");n=e.filter(e=>{if(e.label&&l.includes(e.label))return e});return}if("filters"===t&&l){(i=decodeURIComponent(a).split(",")).filter(e=>l.includes(e));return}}),x(n),T(i),K(n,i)},[l,e,T,x,K]);let _=e=>{let l=[];x(l=h.includes(e)?h.filter(l=>l!==e):[...h,e]),K(l,b)},N=e=>{let l=[];T(l=b.includes(e)?b.filter(l=>l!==e):[...b,e]),K(h,l)};return(0,t.jsxs)("div",{className:(0,r.Z)(m.I.ProductGrid,p.F.layout.blockSpacing.large,"_1w0bf4q0",s&&"_1w0bf4q1"),children:[(0,t.jsxs)("div",{className:"_1w0bf4q3",children:[(0,t.jsx)("div",{className:"_1w0bf4q5",children:l&&l.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:k,children:n}),l.map((e,l)=>(0,t.jsx)(g.Z,{displayType:"secondary",className:(0,r.Z)(y,b.includes(e)&&f),text:e,onClick:()=>N(e)},l))]}):null}),(0,t.jsx)("div",{className:"_1w0bf4q4",children:e&&e.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:k,children:i}),e.map((e,l)=>(0,t.jsx)(g.Z,{displayType:"secondary",className:(0,r.Z)(y,h.includes(e)&&f),text:e.label||"",onClick:()=>_(e)},l))]}):null})]}),0===j.length?(0,t.jsx)("div",{className:"_1w0bf4qa",children:"No results found."}):(0,t.jsx)("div",{className:"_1w0bf4q7",children:j.map((e,l)=>(0,t.jsx)(u.Z,{...e,containerClassName:"_1w0bf4q6",truncateMobileDescription:!0,isGridItem:!0,gaComponentName:"product table"},l))})]})},{context:"ProductsTableErrorBoundary"}),b=e=>{let{products:l,filters:r,ranges:s}=(0,i.useFragment)((void 0!==n||(n=a(39665)).hash&&"8aac5b40a0fe58f9972fa8fdb2d14251"!==n.hash&&console.error("The definition of 'ProductsTableBlockContainer_block' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),n),e.block),d=l.map(l=>{let a=l.image?.thumbnails.horizontal.url||"",n=l.image?.thumbnails.square.url||"";return{...l,imageUrl:a,mobileImageUrl:n,id:l.productId,alt:l.image?.alt,description:l.description.html,pros:l.pros.html,cons:l.cons.html,layout:"full",pageTitle:e.pageTitle,brand:l.brand?.title}});return(0,t.jsx)(x,{products:d,filters:r,ranges:s,isSingleColumn:e.isSingleColumn})}},4759:function(e,l,a){a.d(l,{Z:function(){return h}});var n,i,t=a(86273),r=a(31561),s=a(35458),d=a(85056),c=a(88321);a(31118);var o="frdupq3",u="frdupq4";let g=({level:e,entries:l})=>{let a=(0,c.z$)();return(0,r.jsx)("ul",{className:1===e?"frdupq2":"frdupq5",children:l.map((l,n)=>{let i=()=>{a?.emit({event:"table_of_contents",table_of_contents:{click_text:l.title,click_url:l.url}})};return l.entries&&0!==l.entries.length?(0,r.jsxs)("li",{children:[(0,r.jsx)("span",{className:o,children:(0,r.jsx)("a",{className:u,href:l.url,onClick:i,children:l.title})}),(0,r.jsx)(g,{entries:l.entries,level:e+1})]},n):(0,r.jsx)("li",{className:o,children:(0,r.jsx)("a",{className:u,href:l.url,onClick:i,children:l.title})},n)})})};var m=({title:e,entries:l})=>(0,r.jsxs)("nav",{className:(0,s.Z)(d.I.TableOfContents,"frdupq0"),children:[e&&(0,r.jsx)("h2",{className:"frdupq1",children:e}),l&&(0,r.jsx)(g,{entries:l,level:1})]});void 0!==n||(n=a(3290)).hash&&"868f8989c2bb8daeea87996cc4ff3c0e"!==n.hash&&console.error("The definition of 'TableOfContentsBlockContainer_entry' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data.");var h=e=>{let{block:l}=e,{entries:n,hideTitle:s,title:d}=(0,t.useFragment)((void 0!==i||(i=a(95992)).hash&&"65e75422ee60e40bd5cdc824b360ca91"!==i.hash&&console.error("The definition of 'TableOfContentsBlockContainer_block' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),i),l);return(0,r.jsx)(m,{title:s?void 0:d,entries:n})}},66970:function(e,l,a){a.d(l,{Z:function(){return Z}});var n=a(31561),i=a(35458),t=a(82201),r=a(69135);a(33108),a(59065);var s="zl81gj9",d="zl81gj8",c=a(43158),o=()=>{let{scorecardDisclaimerText:e,scorecardDisclaimerUrl:l}=(0,c.dj)("disclaimer");return e&&l?(0,n.jsx)("div",{className:"zl81gj3",children:(0,n.jsx)("a",{className:"zl81gj4",href:l&&l,children:e})}):null},u={standard:"_1gd3xdf4 _1gd3xdf3",full:"_1gd3xdf3",scorecard:"_1gd3xdf3"},g={standard:"_1gd3xdfc _1gd3xdfa",full:"_1gd3xdfd _1gd3xdfa",scorecard:"_1gd3xdfe _1gd3xdfa"},m={standard:"_1gd3xdff",full:"_1gd3xdfg _1gd3xdfb",scorecard:"_1gd3xdfh _1gd3xdfb"},h="_1gd3xdfi",p=a(53130),f=a(92501),y=({alt:e,href:l,url:a,mobileUrl:i,handleClick:r,layout:s})=>{let d=(0,t.createRef)(),c=({children:e,className:l,href:a})=>((0,t.useEffect)(()=>{let e=d.current;e&&(e.onclick=(0,f.h8)(e=>{r(e,"image")}))},[]),a?(0,n.jsx)("a",{ref:d,className:l,href:a,rel:"nofollow noopener noreferrer",target:"_blank",children:e}):(0,n.jsx)("div",{className:l,children:e}));return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c,{className:g[s],href:l,children:(0,n.jsx)(p.Z,{src:i,alt:e,sizes:"(max-width: 768px) 100vw, 300px"})}),(0,n.jsx)(c,{className:m[s],href:l,children:(0,n.jsx)(p.Z,{src:a,alt:e,sizes:"(max-width: 768px) 100vw, 600px"})})]})},k=a(23246),x=a(88321),b=a(79245),T=({id:e,title:l,pageTitle:a,retailer:i,brand:r=null,url:s,price:d,salePrice:c,idx:o,variant:u,className:g,textOverride:m})=>{let h=(0,x.z$)(),p=(0,t.createRef)(),y=k.affiliates.getAffiliateByUrl(s),{current:T}=(0,t.useRef)({item_name:l,price:c||d,discount:c&&d?d-c:null,item_brand:r,item_id:e,item_category:y,item_category2:i,item_list_name:a,index:o+1,location_id:"article-body",item_variant:u,affiliation:s});return(0,t.useEffect)(()=>{let e=p.current;if(!e||"undefined"==typeof IntersectionObserver)return;e.onclick=(0,f.h8)(e=>{let l=e.target;h?.emit({event:"select_item",ecommerce:{items:[{...T,item_list_id:window.location.href,item_category3:b.H(l,y)}]}})});let l=new IntersectionObserver(([a])=>{a?.isIntersecting&&(h?.productViewed({...T,item_list_id:window.location.href,item_category3:b.H(e,y)}),l.unobserve(e))});return l.observe(e),()=>{l.unobserve(e)}},[y,h,p,T]),(0,n.jsx)("a",{ref:p,href:s,rel:"nofollow noopener noreferrer",target:"_blank",className:g||"_1gd3xdfw",children:m||`$${c||d||0} at ${i}`},l)},j=({retailLinks:e,title:l,pageTitle:a,id:i,brand:t,gaComponentName:r="product card"})=>e&&0!==e.length?(0,n.jsx)("div",{className:"_1gd3xdfv",children:e.map(({url:e,retailer:s,price:d,salePrice:c},o)=>e?(0,n.jsx)(T,{title:l,pageTitle:a,url:e,retailer:s||"",price:d&&Math.round(d),salePrice:c&&Math.round(c),idx:o,id:i,brand:t,variant:`${r} - button`},e):null)}):null,v=a(45293),F=({score:e})=>{let{communityName:l}=(0,v.q)().communityConfig;return(0,n.jsxs)("div",{className:"zl81gj0",children:[(0,n.jsx)("p",{className:"zl81gj1",children:e.toString()}),(0,n.jsxs)("p",{className:"zl81gj2",children:[l," Score"]})]})},K=a(60699),_=({pros:e,cons:l})=>(0,n.jsxs)("div",{className:(0,i.Z)("zl81gj5",K.F.text.linkStyles),children:[(0,n.jsxs)("div",{className:"zl81gj6",children:[(0,n.jsx)("h4",{className:d,children:"The Good"}),(0,n.jsx)(r.Z,{component:"p",className:s,html:e})]}),(0,n.jsxs)("div",{className:"zl81gj7",children:[(0,n.jsx)("h4",{className:d,children:"The Bad"}),(0,n.jsx)(r.Z,{component:"p",className:s,html:l})]})]}),N=({title:e,href:l,handleClick:a})=>{let i=(0,t.createRef)();return(0,t.useEffect)(()=>{let e=i.current;e&&(e.onclick=(0,f.h8)(e=>a(e,"title")))},[i,a]),(0,n.jsx)("h3",{className:"_1gd3xdfj",children:l?(0,n.jsx)("a",{ref:i,className:"_1gd3xdfk",rel:"nofollow noopener noreferrer",target:"_blank",href:l,children:e}):e})},S=a(85056),C=a(31218),w=a(90030),Z=(0,C.n)(({alt:e,id:l,imageUrl:a,mobileImageUrl:s,title:d,showDescription:c=!0,description:g,brand:m,retailLinks:p,bestRetailLink:f,pageTitle:T,showScores:v=!1,score:C,pros:Z,cons:L,layout:R="full",parentFilter:I,containerClassName:B,truncateMobileDescription:P=!1,isGridItem:z=!1,gaComponentName:$="product card"})=>{let q=(0,x.z$)(),E=(0,t.useRef)(null),M=v?"scorecard":R,[O,U]=(0,t.useState)(!0),{price:A,salePrice:D,retailer:H,url:G}=f||{};(0,t.useEffect)(()=>{(0,w.wh)()?E.current&&P&&E.current.children[0]&&U(E.current.children[0].scrollHeight>E.current.children[0].clientHeight):U(!1)},[U,O,E,P]);let W=(0,t.useCallback)(()=>{U(!O),q?.emit({event:"readmore_product_mobile_click"})},[U,O,q]),J=(e,a)=>{let n=e.target,i=G&&k.affiliates.getAffiliateByUrl(G);q?.emit({event:"select_item",ecommerce:{items:[{item_name:d,item_id:l,price:A,discount:D,item_brand:m,item_category:i,item_category2:H,item_category3:i&&b.H(n,i),item_list_name:T||"",item_list_id:window.location.href,location_id:"article-body",item_variant:`${$} - ${a}`,affiliation:G}]}})},V=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:(0,i.Z)("_1gd3xdf8","_1gd3xdf9"),children:[(0,n.jsx)(N,{title:d,href:G||void 0,handleClick:J}),(0,n.jsxs)("div",{className:"_1gd3xdfp",children:[(0,n.jsxs)("span",{className:"_1gd3xdfs",children:["$",Q||X]}),X&&Q?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"_1gd3xdft",children:["$",X]}),(0,n.jsxs)("span",{className:"_1gd3xdfu",children:[Math.round((X-Q)/X*100),"% off"]})]}):null]})]}),(0,n.jsx)("div",{className:"_1gd3xdfq",children:(A||D)&&(0,n.jsxs)("span",{className:"_1gd3xdfr",children:["$",Q||X]})}),c&&!v&&g?(0,n.jsxs)("div",{className:"_1gd3xdfl",children:[(0,n.jsx)("div",{className:"_1gd3xdfm",ref:E,children:(0,n.jsx)(r.Z,{className:(0,i.Z)(K.F.text.linkStyles,P&&O&&"_1gd3xdfn"),html:g})}),O&&(0,n.jsx)("button",{className:"_1gd3xdfo",onClick:W,children:"Read More"})]}):null,v&&Z&&L&&(0,n.jsx)(_,{pros:Z,cons:L}),(0,n.jsx)(j,{retailLinks:p,title:d,pageTitle:T||"",brand:m||"",id:l,gaComponentName:$})]}),Q=D?Math.round(D):null,X=A?Math.round(A):0;return z?(0,n.jsxs)("div",{className:(0,i.Z)(S.I.ProductCard,u[M],B&&B),"data-product-filter":I,children:[a&&s&&(0,n.jsx)("div",{className:h,children:(0,n.jsx)(y,{alt:e||"",href:G||void 0,mobileUrl:s,url:a,handleClick:J,layout:M})}),V()]}):(0,n.jsx)("div",{className:"_1gd3xdf1",children:(0,n.jsxs)("div",{className:(0,i.Z)(v?S.I.Scorecard:S.I.ProductCard,u[M],B&&B,v&&"_1gd3xdf2"),"data-product-filter":I,children:[(0,n.jsxs)("div",{className:h,children:[a&&s&&(0,n.jsx)(y,{alt:e||"",href:G||void 0,mobileUrl:s,url:a,handleClick:J,layout:M}),v&&C?(0,n.jsx)(F,{score:C}):null]}),(0,n.jsx)("div",{className:"_1gd3xdf7",children:V()}),v&&(0,n.jsx)(o,{})]})})},{context:"ProductCardErrorBoundary"})},57948:function(e,l,a){a.d(l,{Z:function(){return n.Z}});var n=a(66970)},74553:function(e,l,a){a.d(l,{Z:function(){return s}});var n=a(31561),i=a(35458),t=a(85056),r=a(31218);a(26427);var s=(0,r.n)(({className:e,children:l,centered:a})=>(0,n.jsx)("div",{className:(0,i.Z)(t.I.ArticleBody,"_36bfln0",a&&"_36bfln1",e),children:l}),{context:"ArticleBodyErrorBoundary"})},56688:function(e,l,a){a.d(l,{Z:function(){return s}});var n=a(31561),i=a(35458),t=a(85056),r=a(31218);a(51944);var s=(0,r.n)(({className:e,innerClassName:l,children:a})=>(0,n.jsx)("div",{className:(0,i.Z)(t.I.ArticleBodyContainer,"uui04u0",e),children:(0,n.jsx)("div",{className:(0,i.Z)("uui04u1",l),children:a})}),{context:"ArticleBodyContainerErrorBoundary"})},79245:function(e,l,a){a.d(l,{H:function(){return t}});let n={"Amazon Associates":{subtagKey:"ascsubtag"},Narrativ:{subtagKey:"u1"},Rakuten:{subtagKey:"u1"},Shareasale:{subtagKey:"afftrack"},Skimlinks:{subtagKey:"xcust"},Impact:{subtagKey:"subId2"},Avantlink:{subtagKey:"ctc"},CJ:{subtagKey:"sid"},Partnerize:{subtagKey:"pubref"},Pepperjam:{subtagKey:"sid"},Awin:{subtagKey:"pref1"}},i=(e,l)=>{var a;if(!e)return null;let i=null===(a=n[l])||void 0===a?void 0:a.subtagKey;return i?e.split(`${i}=`)[1]:null},t=(e,l)=>l&&i(e.search,l)||null}}]);