1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8528],{12103:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSG:()=>u,default:()=>m});var i=a(37876);a(14232);var n=a(83357),r=a(59419),l=a(12188),o=a(50250);let d={ArticleDetail:r.default,RelatedArticlesAdp:l.default,RelatedProducts:o.default},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,r="https://".concat("www.swiffer.com").concat(null==t?void 0:t.url);return e.map(e=>{let{fields:l,sys:o}=e,s=d[(0,n.ZH)(o.contentType.sys.id)];return s?(0,i.jsx)(s,{componentId:o.contentType.sys.id,disableLazyLoad:a,...l,currentPageUrl:r,pageType:null==t?void 0:t.pageType},o.id):null})};var c=a(80688),u=!0;let m=e=>{let{components:t,pageInfo:a,globalComponents:n,pgDataLayer:r,backgroundImage:l}=e,o=s(t,a.fields),d=t.map(e=>e.sys.contentType.sys.id),u=t.find(e=>"productHeader"===e.sys.contentType.sys.id);return(0,i.jsx)(c.default,{pageInfo:a.fields,pgDataLayer:r,header:n.header,footer:n.footer,componentIds:d,backgroundImage:l,productData:u,children:o})}},12188:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>u});var i=a(37876);a(14232);var n=a(42150),r=a(30388),l=a(26646),o=a(24879);let d=r.Ay.div.withConfig({componentId:"sc-1250618b-0"})(["",";margin-top:100px;@media (max-width:","){margin:48px auto;}.content{text-align:center;h2{margin-block-end:50px;color:white;font-size:42px;@media (max-width:","){font-size:24px;margin-block-end:18px;}}.card-container{display:grid;grid-template-columns:repeat(1,1fr);position:relative;margin:auto;flex-wrap:wrap;gap:24px;@media (min-width:","){display:grid;grid-template-columns:repeat(2,1fr);}@media (min-width:","){grid-template-columns:repeat(3,1fr);}@media (max-width:","){margin-bottom:35px;justify-content:space-evenly;}}.image-container{z-index:5;@media (max-width:","){width:auto;}}}.header{display:flex;justify-content:space-between;align-items:center;margin-bottom:64px;@media (max-width:","){justify-content:flex-start;margin-bottom:32px;}.main-title{margin:0;font-size:40px;@media (max-width:","){font-size:30px;margin-left:0;}}}.carousel__inner-slide{height:100%;}.all-articles-link{",";@media (max-width:","){display:none;}}"],l.vE.contentWide,l.LR.bannerWidthSmall,l.LR.tbBreakpointMax,l.LR.tbBreakpointMin,l.LR.bannerWidthSmall,l.LR.tbBreakpointMax,l.LR.tbBreakpointMax,l.LR.spBreakpointMax,l.LR.spBreakpointMax,o.dz,l.LR.spBreakpointMax);var s=a(93181),c=a(59151);let u=e=>{var t;let{articles:a,allArticlesLink:r}=e;return(0,i.jsxs)(d,{children:[(0,i.jsxs)("div",{className:"header",children:[(0,i.jsx)("h2",{className:"main-title",children:c.A.adp.relatedArticles}),r&&(0,i.jsx)(s.EJ,{url:null==(t=r.fields.page)?void 0:t.fields.url,ariaLabel:r.fields.label,label:r.fields.linkTitle,prefetch:!0,className:"all-articles-link"})]}),(0,i.jsx)("div",{className:"content",children:(0,i.jsx)("div",{className:"card-container",children:null==a?void 0:a.map((e,t)=>(0,i.jsx)("div",{className:"image-container",children:(0,i.jsx)(n.default,{...e.fields})},t))})})]})}},18847:(e,t,a)=>{e.exports=a(52496)},42150:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>d});var i=a(37876);a(14232);var n=a(93181),r=a(24879),l=a(59151),o=a(61011);let d=e=>{let{featuredImage:t,title:a,url:d,disableLazyLoad:s=!1,dataActionPrefix:c}=e;return(0,i.jsx)(r.Ay,{children:(0,i.jsxs)(n.EJ,{url:d,className:"article-card-link",eventClass:o.A.link.internal,dataActionDetailPrefix:c,ariaLabel:l.A.adp.readNow+" "+a,children:[(0,i.jsx)(n.VI,{desktopImage:t,alt:t.fields.title,pictureStyle:"article-card-image",disableLazyLoad:s,className:"article-card-picture"}),(0,i.jsxs)("div",{className:"article-card-description",children:[(0,i.jsx)("p",{className:"article-card-title",children:a.replace(" | Swiffer","")}),(0,i.jsx)("div",{className:"card-content",children:(0,i.jsx)("span",{className:"article-card-link",children:l.A.articleCard.readMore})})]})]})})}},52496:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var a in t)Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}(t,{default:function(){return o},noSSR:function(){return l}});let i=a(72687);a(37876),a(14232);let n=i._(a(90295));function r(e){return{default:(null==e?void 0:e.default)||e}}function l(e,t){return delete t.webpack,delete t.modules,e(t)}function o(e,t){let a=n.default,i={loading:e=>{let{error:t,isLoading:a,pastDelay:i}=e;return null}};e instanceof Promise?i.loader=()=>e:"function"==typeof e?i.loader=e:"object"==typeof e&&(i={...i,...e});let o=(i={...i,...t}).loader;return(i.loadableGenerated&&(i={...i,...i.loadableGenerated},delete i.loadableGenerated),"boolean"!=typeof i.ssr||i.ssr)?a({...i,loader:()=>
1null!=o?o().then(r):Promise.resolve(r(()=>null))}):(delete i.webpack,delete i.modules,l(a,i))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59419:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>A});var i=a(37876),n=a(26646),r=a(30388);let l=r.Ay.div.withConfig({componentId:"sc-e35d7e6f-0"})(["--content-width:835px;display:flex;flex-direction:column;align-items:center;padding-top:48px;@media (max-width:","){padding-top:26px;}.banner{margin:60px auto 0;justify-content:center;@media (max-width:","){margin:28px auto 0;max-width:530px;}img{box-shadow:0 11px 66px -15px #48528640;border-radius:22px;height:auto;object-fit:contain;max-width:100%;}}.header{",";max-width:1200px;width:fit-content;display:flex;flex-direction:column;margin-bottom:40px;@media (max-width:","){margin-bottom:0;}}.title{margin:0 0 48px;@media (max-width:","){text-align:center;line-height:40px;margin-bottom:20px;}}.content-container{max-width:var(--content-width);z-index:10;border-radius:12px;@media (max-width:","){padding:20px 16px;margin-top:0;}}.main-content{h2{font-size:24px;line-height:1.3;}h3{font-size:22px;line-height:1.3;@media (max-width:","){margin-top:0;}}> p{font-size:20px;line-height:30px;@media (max-width:","){font-size:18px;line-height:26px;}}p{font-size:18px;line-height:28px;@media (max-width:","){font-size:16px;line-height:24px;}}}li{p{margin-top:0;margin-bottom:10px;}}.video{margin-top:32px;padding:0;.container{@media (min-width:","){max-height:520px;}}.cover-image{@media (min-width:","){height:unset;max-height:520px;}img{object-fit:contain;}}.video-description{max-width:100%;border-bottom:1px solid ",";margin-top:15px;padding-bottom:15px;}}.detail-info{display:flex;flex-direction:column;align-items:center;gap:20px;position:relative;@media (min-width:","){flex-direction:row;gap:100px;}}&::before{@media (min-width:","){content:'';height:960px;position:absolute;display:flex;top:0;width:100%;z-index:-1000;background:linear-gradient(0,rgba(255,255,255,0.5) 0%,rgba(237,240,255,0.5) 100%);}}.internal-link,.external-link{text-decoration:underline;&:hover{text-decoration:underline;}}"],n.LR.tbBreakpointMax,n.LR.tbBreakpointMax,n.vE.smallContentWide,n.LR.tbBreakpointMax,n.LR.tbBreakpointMax,n.LR.tbBreakpointMax,n.LR.tbBreakpointMax,n.LR.tbBreakpointMax,n.LR.tbBreakpointMax,n.LR.dtBreakpointMin,n.LR.dtBreakpointMin,n.Tj.cyan500,n.LR.dtBreakpointMin,n.LR.dtBreakpointMin);var o=a(93610),d=a(93181),s=a(89099),c=a(14232),u=a(28823);let m=r.Ay.div.withConfig({componentId:"sc-70e99aa3-0"})(["display:flex;justify-content:center;align-items:center;gap:14px;@media (min-width:","){position:absolute;left:50%;bottom:0;transform:translateX(-50%);}button{display:flex;width:24px;height:24px;}.skeleton-loader{width:64px;height:24px;}.facebook-style{img{height:22px;}}.email-style{margin-left:8px;}"],n.LR.dtBreakpointMin);var p=a(59151),h=a(61011);let x=()=>{let e=(0,s.useRouter)();return(0,i.jsxs)(m,{children:[(0,i.jsx)("span",{className:"label",children:p.A.adp.share}),(0,i.jsx)(u.uI,{url:e.asPath,hashtag:"",className:"facebook-style ".concat(h.A.close.share),"data-action-detail":"Facebook",children:(0,i.jsx)("img",{src:"/icons/facebook-icon.svg",alt:"Facebook icon",width:"24",height:"24"})}),(0,i.jsx)(u.r6,{url:e.asPath,title:"",className:h.A.close.share,"data-action-detail":"Twitter",children:(0,i.jsx)("img",{src:"/icons/twitter-icon.svg",alt:"Twitter icon",width:"24",height:"24"})}),(0,i.jsx)(u.Ot,{url:e.asPath,className:"email-style ".concat(h.A.close.share),"data-action-detail":"Email",children:(0,i.jsx)("img",{src:"/icons/email-icon.svg",alt:"Email icon",width:"24",height:"24"})})]})};var f=a(24879),g=a(52454),b=a(91040);let y="en-US",w="https://mw-ar-recom-prod.pgapi.io",_="swiffer",v=e=>({headers:{"Content-Type":"application/json"},body:e?(0,g.R)(e):null}),j=async e=>{let t="/recommendedarticle?articleId=".concat(e,"&brand=").concat(_,"&locale=").concat(y),a=v();return await b.A.get(w+t,{headers:a.headers}).then(e=>e.data).catch(console.error)},k=async e=>{let t=v({articleId:e,brand:_,locale:y});return await b.A.post(w+"/recommendedarticle",t.body,{headers:t.headers}).then(e=>e.data).catch(console.error)};var L=a(51841),N=a(96570);let R=e=>{let{articleId:t,canRecommend:a=!1}=e,{likeCount:n,onLikeChange:r,isRecommended:l,isLoading:o}=(e=>
1{let[t,a]=(0,c.useState)(0),[i,n]=(0,c.useState)(null),[r,l]=(0,c.useState)(!0);return(0,c.useEffect)(()=>{if(e){let t=setTimeout(()=>{j(e).then(e=>{a(null==e?void 0:e.recommendedArticleCount[0].count),l(!1)})},3500);return()=>clearTimeout(t)}},[e]),(0,c.useEffect)(()=>{let t=setTimeout(()=>{n(localStorage.getItem("recommendedArticle_".concat(e)))},3500);return()=>clearTimeout(t)},[e]),{likeCount:t,isRecommended:i,onLikeChange:async()=>{e&&!localStorage.getItem("recommendedArticle_".concat(e))&&k(e).then(t=>{localStorage.setItem("recommendedArticle_".concat(e),"true"),n("true"),a(null==t?void 0:t.recommendedArticleCount)})},isLoading:r}})(t);return(0,i.jsxs)(f.bv,{className:a?"with-option":"",children:[(0,i.jsxs)("span",{className:"count-container",children:["Recommended ",(0,i.jsx)("span",{className:"count",children:o?(0,i.jsx)(L.A,{}):n})," times"]}),(0,i.jsx)("div",{className:"recomentation-button",children:a&&!l&&(o?(0,i.jsx)(L.A,{}):(0,i.jsx)("button",{className:"recommend-button event_button_click","data-action-detail":N.A.recommendThis,onClick:r,children:"Recommend This"}))})]})},A=e=>{let{content:t,title:a,banner:n,articleId:r}=e;return(0,i.jsxs)(l,{children:[(0,i.jsxs)("div",{className:"header",children:[(0,i.jsx)("h1",{className:"title",children:a}),(0,i.jsxs)("div",{className:"detail-info",children:[(0,i.jsx)(R,{articleId:r,canRecommend:!0}),(0,i.jsx)(x,{})]}),(0,i.jsx)(d.VI,{pictureStyle:"banner",...n.fields,disableLazyLoad:!0,isPreloaded:!0})]}),(0,i.jsx)("section",{className:"content-container",children:(0,i.jsx)("div",{className:"main-content",children:(0,i.jsx)(o.default,{data:t})})})]})}},72507:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/en-us/tips-and-articles/our-cleaning-tips/how-to-clean-hair-around-the-house",function(){return a(12103)}])},86581:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return i}});let i=a(72687)._(a(14232)).default.createContext(null)},90295:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return m}});let i=a(72687)._(a(14232)),n=a(86581),r=[],l=[],o=!1;function d(e){let t=e(),a={loading:!0,loaded:null,error:null};return a.promise=t.then(e=>(a.loading=!1,a.loaded=e,e)).catch(e=>{throw a.loading=!1,a.error=e,e}),a}class s{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let a=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function d(){if(!r){let t=new s(e,a);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!o){let e=a.webpack&&1?a.webpack():a.modules;e&&l.push(t=>{for(let a of e)if(t.includes(a))return d()})}function c(e,t){d();let l=i.default.useContext(n.LoadableContext);l&&Array.isArray(a.modules)&&a.modules.forEach(e=>{l(e)});let o=i.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:r.retry}),[]),i.default.useMemo(()=>{var t;return o.loading||o.error?i.default.createElement(a.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:r.retry}):o.loaded?i.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return c.preload=()=>d(),c.displayName="LoadableComponent",i.default.forwardRef(c)}(d,e)}function u(e,t){let a=[];for(;e.length;){let i=e.pop();a.push(i(t))}return Promise.all(a).then(()=>
1{if(e.length)return u(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{u(r).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let a=()=>(o=!0,t());u(l,e).then(a,a)})),window.__NEXT_PRELOADREADY=c.preloadReady;let m=c}},e=>{e.O(0,[6701,6649,8184,522,1040,8823,688,2772,326,250,636,6593,8792],()=>e(e.s=72507)),_N_E=e.O()}]);
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.