"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1018],{65610:function(e,l,a){var n,t;a.r(l);let r={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"AccordionBlockContainer_block",selections:[t={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},t],storageKey:null}],type:"MethodologyAccordionBlockType",abstractKey:null};r.hash="1b9347a7f0ff54673015ea570a37cd38",l.default=r},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,t,r,i,s;a.r(l);let c=(i=[{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:r=[{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},t={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:i,storageKey:null},{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"cons",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"pros",plural:!1,selections:i,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=[t],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:r,storageKey:null}],storageKey:null}],type:"ProductBlockType",abstractKey:null});c.hash="d375c13b5f8b874ef0afa3e23ad1c1fd",l.default=c},39665:function(e,l,a){var n,t,r,i,s;a.r(l);let c=(i=[{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:r=[{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},t={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:i,storageKey:null},{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"cons",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"pros",plural:!1,selections:i,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=[t],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:r,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});c.hash="8aac5b40a0fe58f9972fa8fdb2d14251",l.default=c},95992:function(e,l,a){var n,t;a.r(l);let r={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:[t={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},n,{alias:null,args:null,concreteType:"TableOfContentsEntry",kind:"LinkedField",name:"entries",plural:!0,selections:[t,n,{alias:null,args:null,concreteType:"TableOfContentsEntry",kind:"LinkedField",name:"entries",plural:!0,selections:[t,n,{alias:null,args:null,concreteType:"TableOfContentsEntry",kind:"LinkedField",name:"entries",plural:!0,selections:[t,n,{alias:null,args:null,concreteType:"TableOfContentsEntry",kind:"LinkedField",name:"entries",plural:!0,selections:[t,n,{alias:null,args:null,concreteType:"TableOfContentsEntry",kind:"LinkedField",name:"entries",plural:!0,selections:[t,n],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"TableOfContentsBlockType",abstractKey:null};r.hash="65e75422ee60e40bd5cdc824b360ca91",l.default=r},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 p}});var n,t=a(86273),r=a(31561),i=a(35458),s=a(82201),c=a(69135),d=a(75817),o=a(74795),u=a(418),g=a(88321);a(57385);var m=({header:e,content:l,id:a})=>{let n=(0,g.z$)(),[t,m]=(0,s.useState)(!0),[f,h]=(0,s.useState)("auto"),p=(0,s.useRef)(null);return(0,s.useEffect)(()=>{setTimeout(()=>{if(!p.current)return;let{height:e}=p.current.getBoundingClientRect();h(`${e}px`),m(!1)},0)},[m,h]),(0,r.jsxs)("section",{className:"ni13og2",children:[(0,r.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:t?"close":"open"}}),m(!t)},"aria-expanded":t?"true":"false","aria-controls":`accordion-content-${a}`,children:[(0,r.jsx)(c.Z,{component:"h3",className:"ni13og3",html:e}),(0,r.jsx)("div",{className:"ni13og6",children:t?(0,r.jsx)(d.Z,{}):(0,r.jsx)(o.Z,{})})]}),(0,r.jsx)("div",{id:`accordion-content-${a}`,className:(0,i.Z)("ni13og7",t&&"ni13og8"),style:{height:t?`${f}`:"0"},ref:p,"data-testid":"accordion-content","aria-labelledby":`accordion-button-${a}`,inert:t?void 0:"",children:(0,r.jsx)(c.Z,{className:(0,i.Z)("ni13og5",u.F.text.linkStyles),html:l})})]})},f=a(85056),h=({title:e,sections:l})=>(0,r.jsxs)("div",{className:(0,i.Z)(f.I.Accordion,"ni13og0"),children:[e&&(0,r.jsx)(c.Z,{component:"h2",className:"ni13og1",html:e}),l&&l.map((e,l)=>(0,r.jsx)(m,{header:e.header,content:e.content,id:l.toString()},l))]}),p=e=>{let{block:l}=e,{heading:i,sections:s}=(0,t.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),c=s.filter(e=>e.heading&&e.content).map(e=>({header:e.heading.html,content:e.content.html}));return(0,r.jsx)(h,{title:i.html,sections:c})}},34818:function(e,l,a){a.d(l,{Z:function(){return s}});var n,t=a(86273),r=a(94802),i=a(31561),s=e=>{let{block:l}=e,{newsletter:s}=(0,t.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,i.jsx)(r.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,t=a(86273),r=a(57948),i=a(31561),s=e=>{let{product:l}=(0,t.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||"",c=l.image?.thumbnails.square.url||"";return(0,i.jsx)(r.Z,{...l,id:l.productId,imageUrl:s,mobileImageUrl:c,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})}},83280:function(e,l,a){a.d(l,{Z:function(){return s}});var n,t=a(86273),r=a(28618),i=a(31561),s=e=>{let{products:l,filters:s,ranges:c}=(0,t.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,i.jsx)(r.Z,{products:d,filters:s,ranges:c,isSingleColumn:e.isSingleColumn})}},4759:function(e,l,a){a.d(l,{Z:function(){return f}});var n,t,r=a(86273),i=a(31561),s=a(35458),c=a(85056),d=a(88321);a(86054);var o="frdupq3",u="frdupq4";let g=({level:e,entries:l})=>{let a=(0,d.z$)();return(0,i.jsx)("ul",{className:1===e?"frdupq2":"frdupq5",children:l.map((l,n)=>{let t=()=>{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,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:o,children:(0,i.jsx)("a",{className:u,href:l.url,onClick:t,children:l.title})}),(0,i.jsx)(g,{entries:l.entries,level:e+1})]},n):(0,i.jsx)("li",{className:o,children:(0,i.jsx)("a",{className:u,href:l.url,onClick:t,children:l.title})},n)})})};var m=({title:e,entries:l})=>(0,i.jsxs)("nav",{className:(0,s.Z)(c.I.TableOfContents,"frdupq0"),children:[e&&(0,i.jsx)("h2",{className:"frdupq1",children:e}),l&&(0,i.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 f=e=>{let{block:l}=e,{entries:n,hideTitle:s,title:c}=(0,r.useFragment)((void 0!==t||(t=a(95992)).hash&&"65e75422ee60e40bd5cdc824b360ca91"!==t.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."),t),l);return(0,i.jsx)(m,{title:s?void 0:c,entries:n})}},66970:function(e,l,a){a.d(l,{Z:function(){return R}});var n=a(31561),t=a(35458),r=a(82201),i=a(69135);a(40012),a(99980);var s="zl81gj9",c="zl81gj8",d=a(43158),o=()=>{let{scorecardDisclaimerText:e,scorecardDisclaimerUrl:l}=(0,d.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"},f="_1gd3xdfi",h=a(53130),p=a(92501),y=({alt:e,href:l,url:a,mobileUrl:t,handleClick:i,layout:s})=>{let c=(0,r.createRef)(),d=({children:e,className:l,href:a})=>((0,r.useEffect)(()=>{let e=c.current;e&&(e.onclick=(0,p.h8)(e=>{i(e,"image")}))},[]),a?(0,n.jsx)("a",{ref:c,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)(d,{className:g[s],href:l,children:(0,n.jsx)(h.Z,{src:t,alt:e,sizes:"(max-width: 768px) 100vw, 300px"})}),(0,n.jsx)(d,{className:m[s],href:l,children:(0,n.jsx)(h.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:t,brand:i=null,url:s,price:c,salePrice:d,idx:o,variant:u,className:g,textOverride:m})=>{let f=(0,x.z$)(),h=(0,r.createRef)(),y=k.affiliates.getAffiliateByUrl(s),{current:T}=(0,r.useRef)({item_name:l,price:d||c,discount:d&&c?c-d:null,item_brand:i,item_id:e,item_category:y,item_category2:t,item_list_name:a,index:o+1,location_id:"article-body",item_variant:u,affiliation:s});return(0,r.useEffect)(()=>{let e=h.current;if(!e||"undefined"==typeof IntersectionObserver)return;e.onclick=(0,p.h8)(e=>{let l=e.target;f?.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&&(f?.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,f,h,T]),(0,n.jsx)("a",{ref:h,href:s,rel:"nofollow noopener noreferrer",target:"_blank",className:g||"_1gd3xdfw",children:m||`$${d||c||0} at ${t}`},l)},j=({retailLinks:e,title:l,pageTitle:a,id:t,brand:r,gaComponentName:i="product card"})=>e&&0!==e.length?(0,n.jsx)("div",{className:"_1gd3xdfv",children:e.map(({url:e,retailer:s,price:c,salePrice:d},o)=>e?(0,n.jsx)(T,{title:l,pageTitle:a,url:e,retailer:s||"",price:c&&Math.round(c),salePrice:d&&Math.round(d),idx:o,id:t,brand:r,variant:`${i} - button`},e):null)}):null,_=a(45293),v=({score:e,scoreLabel:l})=>{let{communityName:a}=(0,_.q)().communityConfig,t=l||`${a} Score`;return(0,n.jsxs)("div",{className:"zl81gj0",children:[(0,n.jsx)("p",{className:"zl81gj1",children:e.toString()}),(0,n.jsx)("p",{className:"zl81gj2",children:t})]})},F=a(418),K=({pros:e,cons:l})=>(0,n.jsxs)("div",{className:(0,t.Z)("zl81gj5",F.F.text.linkStyles),children:[(0,n.jsxs)("div",{className:"zl81gj6",children:[(0,n.jsx)("h4",{className:c,children:"The Good"}),(0,n.jsx)(i.Z,{component:"p",className:s,html:e})]}),(0,n.jsxs)("div",{className:"zl81gj7",children:[(0,n.jsx)("h4",{className:c,children:"The Bad"}),(0,n.jsx)(i.Z,{component:"p",className:s,html:l})]})]}),N=({title:e,href:l,handleClick:a})=>{let t=(0,r.createRef)();return(0,r.useEffect)(()=>{let e=t.current;e&&(e.onclick=(0,p.h8)(e=>a(e,"title")))},[t,a]),(0,n.jsx)("h3",{className:"_1gd3xdfj",children:l?(0,n.jsx)("a",{ref:t,className:"_1gd3xdfk",rel:"nofollow noopener noreferrer",target:"_blank",href:l,children:e}):e})},S=a(85056),C=a(31218),w=a(46688),L=a(90030),R=(0,C.n)(({alt:e,id:l,imageUrl:a,mobileImageUrl:s,title:c,showDescription:g=!0,description:m,brand:h,retailLinks:p,bestRetailLink:T,pageTitle:_,showScores:C=!1,score:R,pros:Z,cons:B,layout:P="full",parentFilter:I,containerClassName:q,truncateMobileDescription:z=!1,isGridItem:$=!1,gaComponentName:E="product card",...O})=>{let A=(0,x.z$)(),M=(0,r.useRef)(null),D=C?"scorecard":P,[U,H]=(0,r.useState)(!0),{price:G,salePrice:J,retailer:V,url:W}=T||{},Q=(0,d.dj)("productCard",""),{scoreLabel:X}=(0,w.Z)(O,Q);(0,r.useEffect)(()=>{(0,L.wh)()?M.current&&z&&M.current.children[0]&&H(M.current.children[0].scrollHeight>M.current.children[0].clientHeight):H(!1)},[H,U,M,z]);let Y=(0,r.useCallback)(()=>{H(!U),A?.emit({event:"readmore_product_mobile_click"})},[H,U,A]),ee=(e,a)=>{let n=e.target,t=W&&k.affiliates.getAffiliateByUrl(W);A?.emit({event:"select_item",ecommerce:{items:[{item_name:c,item_id:l,price:G,discount:J,item_brand:h,item_category:t,item_category2:V,item_category3:t&&b.H(n,t),item_list_name:_||"",item_list_id:window.location.href,location_id:"article-body",item_variant:`${E} - ${a}`,affiliation:W}]}})},el=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:(0,t.Z)("_1gd3xdf8","_1gd3xdf9"),children:[(0,n.jsx)(N,{title:c,href:W||void 0,handleClick:ee}),(0,n.jsxs)("div",{className:"_1gd3xdfp",children:[(0,n.jsxs)("span",{className:"_1gd3xdfs",children:["$",ea||en]}),en&&ea?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"_1gd3xdft",children:["$",en]}),(0,n.jsxs)("span",{className:"_1gd3xdfu",children:[Math.round((en-ea)/en*100),"% off"]})]}):null]})]}),(0,n.jsx)("div",{className:"_1gd3xdfq",children:(G||J)&&(0,n.jsxs)("span",{className:"_1gd3xdfr",children:["$",ea||en]})}),g&&!C&&m?(0,n.jsxs)("div",{className:"_1gd3xdfl",children:[(0,n.jsx)("div",{className:"_1gd3xdfm",ref:M,children:(0,n.jsx)(i.Z,{className:(0,t.Z)(F.F.text.linkStyles,z&&U&&"_1gd3xdfn"),html:m})}),U&&(0,n.jsx)("button",{className:"_1gd3xdfo",onClick:Y,children:"Read More"})]}):null,C&&Z&&B&&(0,n.jsx)(K,{pros:Z,cons:B}),(0,n.jsx)(j,{retailLinks:p,title:c,pageTitle:_||"",brand:h||"",id:l,gaComponentName:E})]}),ea=J?Math.round(J):null,en=G?Math.round(G):0;return $?(0,n.jsxs)("div",{className:(0,t.Z)(S.I.ProductCard,u[D],q&&q),"data-product-filter":I,children:[a&&s&&(0,n.jsx)("div",{className:f,children:(0,n.jsx)(y,{alt:e||"",href:W||void 0,mobileUrl:s,url:a,handleClick:ee,layout:D})}),el()]}):(0,n.jsx)("div",{className:"_1gd3xdf1",children:(0,n.jsxs)("div",{className:(0,t.Z)(C?S.I.Scorecard:S.I.ProductCard,u[D],q&&q,C&&"_1gd3xdf2"),"data-product-filter":I,children:[(0,n.jsxs)("div",{className:f,children:[a&&s&&(0,n.jsx)(y,{alt:e||"",href:W||void 0,mobileUrl:s,url:a,handleClick:ee,layout:D}),C&&R?(0,n.jsx)(v,{score:R,scoreLabel:X}):null]}),(0,n.jsx)("div",{className:"_1gd3xdf7",children:el()}),C&&(0,n.jsx)(o,{})]})})},{context:"ProductCardErrorBoundary"})},57948:function(e,l,a){a.d(l,{Z:function(){return n.Z}});var n=a(66970)},28618:function(e,l,a){a.d(l,{Z:function(){return y}});var n=a(31561),t=a(35458),r=a(4783),i=a.n(r),s=a(42685),c=a(82201),d=a(66970),o=a(31994),u=a(85056),g=a(31218),m=a(418);a(40012),a(17286);var f="_1w0bf4q9",h="_1w0bf4q8",p="_1w0bf4q2",y=(0,g.n)(({ranges:e,filters:l,products:a,filterTitle:r="What are you looking for?",rangeTitle:g="How much do you want to spend?",isSingleColumn:y})=>{let[k,x]=(0,c.useState)([]),[b,T]=(0,c.useState)([]),[j,_]=(0,c.useState)(a),v=(0,s.usePathname)(),F=(0,c.useCallback)((e,l)=>{let n=e.length>0?a.filter(l=>{let a=l.bestRetailLink?.salePrice||l.bestRetailLink?.price,n=i()(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 t=new URLSearchParams(window.location.search);if(e.length>0){let l=e.map(e=>!!e.label&&e.label).join(",");t.set("ranges",encodeURIComponent(l))}else t.delete("ranges");if(l.length>0){let e=l.map(e=>e).join(",");t.set("filters",encodeURIComponent(e))}else t.delete("filters");window.history.replaceState(null,"update params",t.size?`${v}?${t.toString()}`:v),_(n)},[a,v]);(0,c.useEffect)(()=>{let a=new URLSearchParams(window.location.search),n=[],t=[];a.forEach((a,r)=>{if("ranges"===r&&e){let l=decodeURIComponent(a).split(",");n=e.filter(e=>{if(e.label&&l.includes(e.label))return e});return}if("filters"===r&&l){(t=decodeURIComponent(a).split(",")).filter(e=>l.includes(e));return}}),x(n),T(t),F(n,t)},[l,e,T,x,F]);let K=e=>{let l=[];x(l=k.includes(e)?k.filter(l=>l!==e):[...k,e]),F(l,b)},N=e=>{let l=[];T(l=b.includes(e)?b.filter(l=>l!==e):[...b,e]),F(k,l)};return(0,n.jsxs)("div",{className:(0,t.Z)(u.I.ProductGrid,m.F.layout.blockSpacing.large,"_1w0bf4q0",y&&"_1w0bf4q1"),children:[(0,n.jsxs)("div",{className:"_1w0bf4q3",children:[(0,n.jsx)("div",{className:"_1w0bf4q5",children:l&&l.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:p,children:r}),l.map((e,l)=>(0,n.jsx)(o.Z,{displayType:"secondary",className:(0,t.Z)(h,b.includes(e)&&f),text:e,onClick:()=>N(e)},l))]}):null}),(0,n.jsx)("div",{className:"_1w0bf4q4",children:e&&e.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:p,children:g}),e.map((e,l)=>(0,n.jsx)(o.Z,{displayType:"secondary",className:(0,t.Z)(h,k.includes(e)&&f),text:e.label||"",onClick:()=>K(e)},l))]}):null})]}),0===j.length?(0,n.jsx)("div",{className:"_1w0bf4qa",children:"No results found."}):(0,n.jsx)("div",{className:"_1w0bf4q7",children:j.map(e=>(0,n.jsx)(d.Z,{...e,containerClassName:"_1w0bf4q6",truncateMobileDescription:!0,isGridItem:!0,gaComponentName:"product table"},e.id))})]})},{context:"ProductsTableErrorBoundary"})},74553:function(e,l,a){a.d(l,{Z:function(){return s}});var n=a(31561),t=a(35458),r=a(85056),i=a(31218);a(41173);var s=(0,i.n)(({className:e,children:l,centered:a})=>(0,n.jsx)("div",{className:(0,t.Z)(r.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),t=a(35458),r=a(85056),i=a(31218);a(51944);var s=(0,i.n)(({className:e,innerClassName:l,children:a})=>(0,n.jsx)("div",{className:(0,t.Z)(r.I.ArticleBodyContainer,"uui04u0",e),children:(0,n.jsx)("div",{className:(0,t.Z)("uui04u1",l),children:a})}),{context:"ArticleBodyContainerErrorBoundary"})},79245:function(e,l,a){a.d(l,{H:function(){return r}});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"}},t=(e,l)=>{var a;if(!e)return null;let t=null===(a=n[l])||void 0===a?void 0:a.subtagKey;return t?e.split(`${t}=`)[1]:null},r=(e,l)=>l&&t(e.search,l)||null}}]);