https://rachio.com/_next/static/chunks/3646-111b661d4fe44eca.js?dpl=dpl_CDmPsCeraabiGc4vdxkjYEvdxLPM
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3646],{6250:(e,t,s)=>{"use strict";s.d(t,{A:()=>h});var a=s(37876);s(14232);var i=s(69241),n=s(29777),l=s(31825),r=s(15448),c=s(60942),o=s.n(c);let d=e=>{let{navItem:t}=e;return(0,a.jsx)("div",{className:(0,i.A)("thumbnail-nav-item",t.active&&"active-nav-item"),children:(0,a.jsx)(r.Link,{to:t.url,children:(0,a.jsx)("div",{className:"nav-item-title",children:t.title})})})},h=e=>{let{header:t,description:s,theme:r,id:c,thumbnailNavigationItems:h,activeThumbnailIndex:m,headlineH1:_}=e;if(!h)return null;let x=[...h];return"number"==typeof m&&-1!==m&&(x[m||0].active=!0),(0,a.jsx)("div",{className:(0,i.A)(o().thumbnailNavigationContainer,(0,n.g4)(r)&&o().themeDark),children:(0,a.jsx)(l.w,{id:c,theme:r||"gray",paddingTop:"none",paddingBottom:"none",children:h.length>0&&(0,a.jsxs)("div",{children:[t&&(0,a.jsxs)("div",{className:"topic-navigation-header",children:[_?(0,a.jsx)("h1",{children:t}):(0,a.jsx)("h2",{children:t}),s&&(0,a.jsx)("p",{children:s})]}),(0,a.jsx)("div",{className:"thumbnail-navigation-items",children:x.map(e=>(0,a.jsx)(d,{navItem:e},e.id))})]})})})}},28108:e=>{e.exports={topicTag:"styles_topicTag__iOB5T"}},36606:e=>{e.exports={articleContentContainer:"styles_articleContentContainer__VEJ_o",navContainer:"styles_navContainer__L27iw",previous:"styles_previous__MIlFt",next:"styles_next__VXVJP",iconLeft:"styles_iconLeft__46u8w",iconRight:"styles_iconRight__YuK9A"}},40009:e=>{e.exports={grid:"styles_grid__gyspv",twoCol:"styles_twoCol__2827E",oneCol:"styles_oneCol__VT730",mainImageContainer:"styles_mainImageContainer__w_yyR",title:"styles_title__xbLiG",heroMeta:"styles_heroMeta__hzhHG",iconLeft:"styles_iconLeft__RWP5s",back:"styles_back__PksGI",backText:"styles_backText__vI5NT",author:"styles_author__aiixX",topics:"styles_topics__uXSfg",publishedAt:"styles_publishedAt__B3Clt",namePositions:"styles_namePositions__mFCLI"}},41066:(e,t,s)=>{"use strict";s.d(t,{C:()=>i});var a=s(99742);let i={isDevEnvironment:"dev"===a.env.VERCEL_ENV,isProduction:"production"===a.env.VERCEL_ENV||"staging"===a.env.VERCEL_ENV,isPreviewEnabled:!!a.env.NEXT_PUBLIC_PREVIEW_MODE,sanityApiToken:"sk8HAUaeyFGgHHOTDVndjro7KOy8P5E4alBmtCCXQRsRfLusdG1rhIjoxoODfKqZDplOHNUh27UWMvbnFFmWT9yrDiViuLiK5jjJAcFiy81ehheVktIqj1PrBL6Jp4Jf1aydGpGcuETmeBR8sl9IvaS5ZrI90iOi5ukCpIsIlstRTRHvsg7X",siteUrl:"https://rachio.com",staticPageRevalidation:{oneDay:86400,twelveHours:43200,oneHour:3600,oneMinute:60}}},59953:e=>{e.exports={blogHeroContainer:"styles_blogHeroContainer__IropA","text-right":"styles_text-right__wChY6",divider:"styles_divider__kiHDj","preview-content":"styles_preview-content__cjM3E"}},60942:e=>{e.exports={thumbnailNavigationContainer:"styles_thumbnailNavigationContainer__oCSl_",themeDark:"styles_themeDark__JHiSI"}},66578:(e,t,s)=>{"use strict";s.d(t,{r$:()=>d,vC:()=>h,fD:()=>m});var a=s(37876),i=s(78950);let n={...s(90249).M,useCdn:!1,perspective:"drafts"},l=(0,i.UU)(n);var r=s(66880),c=s(14185);function o(e){let{query:t,slug:s,initialData:i,TemplateComponent:n}=e,[l]=(0,c.kk)(i,t,{slug:s});return(0,a.jsx)(n,{data:l})}function d(e){return t=>{let{initialData:s,query:i,slug:n,isPreviewEnabled:c,token:d,...h}=t;return c&&d?(0,a.jsx)(r.Ay,{client:l,token:d,children:(0,a.jsx)(o,{query:i,slug:n,initialData:s,TemplateComponent:t=>{let{data:i}=t,n=function e(t,s){if(Array.isArray(s))return Array.isArray(t)?s.map((s,a)=>"object"==typeof s&&null!==s&&"object"==typeof t[a]&&null!==t[a]?e(t[a],s):s):s;if("object"!=typeof s||null===s||"object"!=typeof t||null===t)return s;let a={...t};for(let i of Object.keys(s))void 0!==s[i]&&(a[i]=e(t[i],s[i]));return a}(s,i);return(0,a.jsx)(e,{data:n,...h})}})}):(0,a.jsx)(e,{data:s,...h})}}function h(e){return t=>{let{initialData:s,query:i,slug:n,isPreviewEnabled:c,token:d,...h}=t;return c&&d?(0,a.jsx)(r.Ay,{client:l,token:d,children:(0,a.jsx)(o,{query:i,slug:n,initialData:s,TemplateComponent:t=>{let{data:s}=t;return(0,a.jsx)(e,{data:s,...h})}})}):(0,a.jsx)(e,{data:s,...h})}}function m(e){let t=d(e);return e=>(0,a.jsx)(t,{...e})}},67935:(e,t,s)=>{"use strict";s.d(t,{QN:()=>A,JZ:()=>k,SC:()=>w,md:()=>L});var a=s(37876),i=s(14232),n=s(15448),l=s(28108),r=s.n(l);let c=e=>{let{topic:t,style:s,className:i}=e;return(0,a.jsx)("div",{className:"".concat(r().topicTag," ").concat(i),style:s,children:(0,a.jsx)(n.Link,{to:"/blog/topics/".concat(t.slug,"/"),children:t.title})})};var o=s(46730),d=s(95245);let h={src:"/_next/static/media/favicon.ebdf32c5.png",height:480,width:480,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAGFBMVEUAHikVU0ANU3ojdU4UapkWdKIKRF0KQ11Nz1IlAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAKklEQVR4nGNgQAJMjFCalRnMYmdhYgSzGJkZmVjYQEKMzKxMEEWMUBoCAAkrAEDmUI0IAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8};var m=s(54587),_=s.n(m),x=s(82459),u=s.n(x);let p=e=>{let{topics:t,title:s}=e,i=(0,o.SO)();return(0,a.jsx)("div",{className:u().topics,children:(0,d.j6)(t).slice(0,i&&i<400?3:4).map(e=>(0,a.jsx)(c,{topic:e,style:{marginRight:"3px"}},"".concat(s," - ").concat(e.id)))})},j=e=>{let{article:t}=e,{seoDescription:s,author:i,mainImageAltText:l,mainImage:r,thumbnailImage:c,title:d,slug:m,topics:x,publishedAt:j}=t,v=(0,o.zm)(j),g=(null==c?void 0:c.asset)?c.asset:(null==r?void 0:r.asset)?r.asset:h,y=g===h;return(0,a.jsxs)("div",{className:u().articleCardContainer,"data-testid":"article-card",children:[(0,a.jsx)(n.Link,{to:"/blog/".concat(m,"/"),children:(0,a.jsx)("div",{className:u().articleImage,children:(0,a.jsx)(_(),{src:g,className:y?u().fallbackImage:"",alt:l||"".concat(d," image"),width:320,height:225})})}),(0,a.jsxs)("div",{className:u().articleBody,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(n.Link,{to:"/blog/".concat(m,"/"),className:u().articleTitle,children:(0,a.jsx)("h3",{children:d})}),(0,a.jsx)("div",{className:u().aboutArticle,children:(0,a.jsx)("div",{className:u().author,children:(0,a.jsxs)("div",{className:u().h6,children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"sr-only",children:"Author name"}),(0,a.jsx)("span",{children:(null==i?void 0:i.name)||"Team Rachio"})]}),v&&(0,a.jsxs)(a.Fragment,{children:[" - ",(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"sr-only",children:"Published date"}),(0,a.jsx)("span",{children:v})]})]})]})})})]}),x&&x.length>0&&(0,a.jsx)(p,{topics:x,title:d}),(0,a.jsx)("div",{className:u().previewContent,children:(0,a.jsx)("div",{children:s&&s})})]})]})};var v=s(36606),g=s.n(v),y=s(29777);let A=e=>{let{type:t,articleContent:s,sanityArticleLikeItems:i,currentSlug:l}=e,r=i.findIndex(e=>e.slug===l),c=i.length;return(0,a.jsxs)("div",{className:g().articleContentContainer,"data-testid":"article-content",children:[(0,a.jsx)(n.PortableText,{_rawContent:s,color:"var(--black)"}),(0,a.jsxs)("div",{className:g().navContainer,children:[r!==c-1&&(0,a.jsxs)(n.Link,{className:g().previous,to:"".concat(y.pY[t]).concat(i[r+1].slug,"/"),children:[(0,a.jsx)(n.Icon,{name:"caret",className:g().iconLeft,accent:"var(--primaryBlue)"}),"Previous"]}),0!==r&&(0,a.jsxs)(n.Link,{className:g().next,to:"".concat(y.pY[t]).concat(i[r-1].slug,"/"),children:["Next",(0,a.jsx)(n.Icon,{name:"caret",className:g().iconRight,accent:"var(--primaryBlue)"})]})]})]})};
1var C=s(40009),b=s.n(C),N=s(14e3);let k=e=>{let{type:t,author:s,title:i,mainImage:l,mainImageAltText:r,publishedAt:h,topics:m}=e,_=(0,N.useRouter)(),x=(0,o.zm)(h);return(0,a.jsx)("div",{className:b().articleHeroContainer,"data-testid":"article-hero",children:(0,a.jsxs)("div",{className:b().grid+" "+b().oneCol,children:[(0,a.jsxs)("div",{className:b().heroMeta+" "+b().oneCol,children:[(0,a.jsx)("h1",{className:b().title,children:i}),(0,a.jsx)("div",{className:b().author,children:(0,a.jsxs)("div",{className:b().namePositions,children:[(0,a.jsxs)("span",{children:[s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:(null==s?void 0:s.name)||"TEAM RACHIO"})," "," ",(0,a.jsx)("span",{children:" | "})]}),x&&(0,a.jsxs)("span",{children:["Published: ",x]})]}),m&&m.length>0&&(0,a.jsx)("div",{className:b().topics+" center-text",children:(0,d.j6)(m).slice(0,4).map(e=>(0,a.jsx)(c,{topic:e,style:{marginRight:"3px"}},"".concat(i," - ").concat(e.id)))}),t===y.co.ARTICLE&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.SocialShareButtons,{isPc:!1}),(0,a.jsxs)("a",{onClick:e=>{if(e&&e.preventDefault(),!window.history.state)return _.push(y.pY[t]);_.back()},className:b().back,children:[(0,a.jsx)(n.Icon,{name:"caret",className:b().iconLeft,accent:"#00a7e1"}),(0,a.jsx)("span",{className:b().backText,children:"Go Back"})]})]})]})})]}),(null==l?void 0:l.asset)&&(0,a.jsxs)("div",{className:b().mainImageContainer,children:[(0,a.jsx)(n.Img,{image:null==l?void 0:l.asset,alt:r||"".concat(i," image"),style:{height:"auto",borderRadius:"var(--cardRadius)",margin:"0 auto",width:"100%"}}),t===y.co.ARTICLE&&(0,a.jsx)(n.SocialShareButtons,{isPc:!0})]})]})})};var f=s(6250),I=s(92810),E=s.n(I);let w=e=>{let{topics:t,activeTopicIndex:s,header:i,description:n}=e,l=t.map(e=>({url:"/blog/"!==e.slug?"/blog/topics/".concat(e.slug):e.slug,id:e.id,title:e.title}));return(0,a.jsx)("div",{className:E().topicNavigationContainer,children:(0,a.jsx)(f.A,{id:"most-popular-topics",header:i,description:n,thumbnailNavigationItems:l,activeThumbnailIndex:s})})};var R=s(94364),T=s.n(R);let L=e=>{let{allSanityArticle:t,currentTopic:s}=e,[l,r]=(0,i.useState)(!1),[c,o]=(0,i.useState)(t.slice(0,d.UE));return(0,a.jsxs)(B,{children:[(0,a.jsxs)("h2",{className:"no-top-margin articles-headline",style:{marginBottom:"1.5em"},children:[s&&(0,a.jsxs)(a.Fragment,{children:[s.title," "]}),"Articles"]}),(0,a.jsx)("div",{className:T().blogCardsGrid,"data-testid":"blog-cards-container",children:c.map(e=>(0,a.jsx)(j,{article:e},e.id))}),t.length>d.UE&&(0,a.jsx)("div",{className:T().buttonContainer,children:(0,a.jsx)(n.Button,{style:{display:l?"none":"inline-block"},onClick:()=>{let e=t.slice(0,c.length+d.UE);o(e),e.length==t.length&&r(!0)},"aria-label":"View More Articles",children:(0,a.jsx)("span",{className:"view-more",children:"View More"})})})]})},B=e=>{let{children:t}=e;return(0,a.jsx)(n.Wrapper,{style:{paddingTop:"calc(var(--basePadding) * 2)",paddingBottom:"calc(var(--basePadding) * 2)"},children:t})};s(74e3),s(91548),s(59953)},80594:(e,t,s)=>{"use strict";s.d(t,{O:()=>l});var a=s(37876),i=s(77328),n=s.n(i);function l(e){let{title:t,description:s,image:i,pathname:l,robots:r="index, follow",children:c}=e,o=l?"".concat("https://rachio.com").concat(l.startsWith("/")?l:"/"+l):void 0;return(0,a.jsxs)(n(),{children:[(0,a.jsx)("title",{children:t?"".concat(t.trim()," | Rachio"):"Rachio | Save water and money"}),(0,a.jsx)("meta",{name:"description",content:s}),r&&(0,a.jsx)("meta",{name:"robots",content:r}),o&&(0,a.jsx)("link",{rel:"canonical",href:o}),(0,a.jsx)("meta",{property:"og:title",content:t}),s&&(0,a.jsx)("meta",{property:"og:description",content:s}),i&&(0,a.jsx)("meta",{property:"og:image",content:i}),o&&(0,a.jsx)("meta",{property:"og:url",content:o}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:title",content:t}),(0,a.jsx)("meta",{name:"twitter:description",content:s}),i&&(0,a.jsx)("meta",{name:"twitter:image",content:i}),c," "]})}},82459:e=>{e.exports={articleCardContainer:"styles_articleCardContainer__xtubO",cardBody:"styles_cardBody__OW6rH",articleImage:"styles_articleImage__GFFDv",fall:"styles_fall__WsryG",articleBody:"styles_articleBody__ol0Xa",articleTitle:"styles_articleTitle__Qd8U_",aboutArticle:"styles_aboutArticle__sWq3T",author:"styles_author__UUzad",h6:"styles_h6__km0tA",divider:"styles_divider__gliom",previewContent:"styles_previewContent__00rzz",topics:"styles_topics__X7KQu",fallbackImage:"styles_fallbackImage__hAFPC"}},92810:e=>{e.exports={topicNavigationContainer:"styles_topicNavigationContainer__1zqxL"}},94364:e=>
1{e.exports={blogCardsGrid:"styles_blogCardsGrid__Md24A",buttonContainer:"styles_buttonContainer__xmuFp"}}}]);
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.